Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new Amplify app.
Synopsis
- data CreateApp = CreateApp' {
- enableBranchAutoBuild :: Maybe Bool
- oauthToken :: Maybe (Sensitive Text)
- accessToken :: Maybe (Sensitive Text)
- customHeaders :: Maybe Text
- platform :: Maybe Platform
- basicAuthCredentials :: Maybe (Sensitive Text)
- repository :: Maybe Text
- buildSpec :: Maybe Text
- enableBranchAutoDeletion :: Maybe Bool
- customRules :: Maybe [CustomRule]
- iamServiceRoleArn :: Maybe Text
- autoBranchCreationPatterns :: Maybe [Text]
- autoBranchCreationConfig :: Maybe AutoBranchCreationConfig
- environmentVariables :: Maybe (HashMap Text Text)
- enableAutoBranchCreation :: Maybe Bool
- enableBasicAuth :: Maybe Bool
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- name :: Text
- newCreateApp :: Text -> CreateApp
- createApp_enableBranchAutoBuild :: Lens' CreateApp (Maybe Bool)
- createApp_oauthToken :: Lens' CreateApp (Maybe Text)
- createApp_accessToken :: Lens' CreateApp (Maybe Text)
- createApp_customHeaders :: Lens' CreateApp (Maybe Text)
- createApp_platform :: Lens' CreateApp (Maybe Platform)
- createApp_basicAuthCredentials :: Lens' CreateApp (Maybe Text)
- createApp_repository :: Lens' CreateApp (Maybe Text)
- createApp_buildSpec :: Lens' CreateApp (Maybe Text)
- createApp_enableBranchAutoDeletion :: Lens' CreateApp (Maybe Bool)
- createApp_customRules :: Lens' CreateApp (Maybe [CustomRule])
- createApp_iamServiceRoleArn :: Lens' CreateApp (Maybe Text)
- createApp_autoBranchCreationPatterns :: Lens' CreateApp (Maybe [Text])
- createApp_autoBranchCreationConfig :: Lens' CreateApp (Maybe AutoBranchCreationConfig)
- createApp_environmentVariables :: Lens' CreateApp (Maybe (HashMap Text Text))
- createApp_enableAutoBranchCreation :: Lens' CreateApp (Maybe Bool)
- createApp_enableBasicAuth :: Lens' CreateApp (Maybe Bool)
- createApp_description :: Lens' CreateApp (Maybe Text)
- createApp_tags :: Lens' CreateApp (Maybe (HashMap Text Text))
- createApp_name :: Lens' CreateApp Text
- data CreateAppResponse = CreateAppResponse' {
- httpStatus :: Int
- app :: App
- newCreateAppResponse :: Int -> App -> CreateAppResponse
- createAppResponse_httpStatus :: Lens' CreateAppResponse Int
- createAppResponse_app :: Lens' CreateAppResponse App
Creating a Request
The request structure used to create apps in Amplify.
See: newCreateApp
smart constructor.
CreateApp' | |
|
Instances
Create a value of CreateApp
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:enableBranchAutoBuild:CreateApp'
, createApp_enableBranchAutoBuild
- Enables the auto building of branches for an Amplify app.
$sel:oauthToken:CreateApp'
, createApp_oauthToken
- The OAuth token for a third-party source control system for an Amplify
app. The OAuth token is used to create a webhook and a read-only deploy
key. The OAuth token is not stored.
$sel:accessToken:CreateApp'
, createApp_accessToken
- The personal access token for a third-party source control system for an
Amplify app. The personal access token is used to create a webhook and a
read-only deploy key. The token is not stored.
$sel:customHeaders:CreateApp'
, createApp_customHeaders
- The custom HTTP headers for an Amplify app.
$sel:platform:CreateApp'
, createApp_platform
- The platform or framework for an Amplify app.
$sel:basicAuthCredentials:CreateApp'
, createApp_basicAuthCredentials
- The credentials for basic authorization for an Amplify app.
$sel:repository:CreateApp'
, createApp_repository
- The repository for an Amplify app.
$sel:buildSpec:CreateApp'
, createApp_buildSpec
- The build specification (build spec) for an Amplify app.
$sel:enableBranchAutoDeletion:CreateApp'
, createApp_enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify Console when you
delete a branch from your Git repository.
$sel:customRules:CreateApp'
, createApp_customRules
- The custom rewrite and redirect rules for an Amplify app.
$sel:iamServiceRoleArn:CreateApp'
, createApp_iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify
app.
$sel:autoBranchCreationPatterns:CreateApp'
, createApp_autoBranchCreationPatterns
- The automated branch creation glob patterns for an Amplify app.
$sel:autoBranchCreationConfig:CreateApp'
, createApp_autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.
$sel:environmentVariables:CreateApp'
, createApp_environmentVariables
- The environment variables map for an Amplify app.
$sel:enableAutoBranchCreation:CreateApp'
, createApp_enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.
$sel:enableBasicAuth:CreateApp'
, createApp_enableBasicAuth
- Enables basic authorization for an Amplify app. This will apply to all
branches that are part of this app.
$sel:description:CreateApp'
, createApp_description
- The description for an Amplify app.
$sel:tags:CreateApp'
, createApp_tags
- The tag for an Amplify app.
$sel:name:CreateApp'
, createApp_name
- The name for an Amplify app.
Request Lenses
createApp_enableBranchAutoBuild :: Lens' CreateApp (Maybe Bool) Source #
Enables the auto building of branches for an Amplify app.
createApp_oauthToken :: Lens' CreateApp (Maybe Text) Source #
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored.
createApp_accessToken :: Lens' CreateApp (Maybe Text) Source #
The personal access token for a third-party source control system for an Amplify app. The personal access token is used to create a webhook and a read-only deploy key. The token is not stored.
createApp_customHeaders :: Lens' CreateApp (Maybe Text) Source #
The custom HTTP headers for an Amplify app.
createApp_platform :: Lens' CreateApp (Maybe Platform) Source #
The platform or framework for an Amplify app.
createApp_basicAuthCredentials :: Lens' CreateApp (Maybe Text) Source #
The credentials for basic authorization for an Amplify app.
createApp_buildSpec :: Lens' CreateApp (Maybe Text) Source #
The build specification (build spec) for an Amplify app.
createApp_enableBranchAutoDeletion :: Lens' CreateApp (Maybe Bool) Source #
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
createApp_customRules :: Lens' CreateApp (Maybe [CustomRule]) Source #
The custom rewrite and redirect rules for an Amplify app.
createApp_iamServiceRoleArn :: Lens' CreateApp (Maybe Text) Source #
The AWS Identity and Access Management (IAM) service role for an Amplify app.
createApp_autoBranchCreationPatterns :: Lens' CreateApp (Maybe [Text]) Source #
The automated branch creation glob patterns for an Amplify app.
createApp_autoBranchCreationConfig :: Lens' CreateApp (Maybe AutoBranchCreationConfig) Source #
The automated branch creation configuration for an Amplify app.
createApp_environmentVariables :: Lens' CreateApp (Maybe (HashMap Text Text)) Source #
The environment variables map for an Amplify app.
createApp_enableAutoBranchCreation :: Lens' CreateApp (Maybe Bool) Source #
Enables automated branch creation for an Amplify app.
createApp_enableBasicAuth :: Lens' CreateApp (Maybe Bool) Source #
Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
Destructuring the Response
data CreateAppResponse Source #
See: newCreateAppResponse
smart constructor.
CreateAppResponse' | |
|
Instances
Create a value of CreateAppResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateAppResponse'
, createAppResponse_httpStatus
- The response's http status code.
$sel:app:CreateAppResponse'
, createAppResponse_app
- Undocumented member.
Response Lenses
createAppResponse_httpStatus :: Lens' CreateAppResponse Int Source #
The response's http status code.
createAppResponse_app :: Lens' CreateAppResponse App Source #
Undocumented member.