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 branch for an Amplify app.
Synopsis
- data CreateBranch = CreateBranch' {
- framework :: Maybe Text
- ttl :: Maybe Text
- enableNotification :: Maybe Bool
- stage :: Maybe Stage
- backendEnvironmentArn :: Maybe Text
- enablePullRequestPreview :: Maybe Bool
- basicAuthCredentials :: Maybe (Sensitive Text)
- buildSpec :: Maybe Text
- enablePerformanceMode :: Maybe Bool
- displayName :: Maybe Text
- environmentVariables :: Maybe (HashMap Text Text)
- enableAutoBuild :: Maybe Bool
- enableBasicAuth :: Maybe Bool
- pullRequestEnvironmentName :: Maybe Text
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- appId :: Text
- branchName :: Text
- newCreateBranch :: Text -> Text -> CreateBranch
- createBranch_framework :: Lens' CreateBranch (Maybe Text)
- createBranch_ttl :: Lens' CreateBranch (Maybe Text)
- createBranch_enableNotification :: Lens' CreateBranch (Maybe Bool)
- createBranch_stage :: Lens' CreateBranch (Maybe Stage)
- createBranch_backendEnvironmentArn :: Lens' CreateBranch (Maybe Text)
- createBranch_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool)
- createBranch_basicAuthCredentials :: Lens' CreateBranch (Maybe Text)
- createBranch_buildSpec :: Lens' CreateBranch (Maybe Text)
- createBranch_enablePerformanceMode :: Lens' CreateBranch (Maybe Bool)
- createBranch_displayName :: Lens' CreateBranch (Maybe Text)
- createBranch_environmentVariables :: Lens' CreateBranch (Maybe (HashMap Text Text))
- createBranch_enableAutoBuild :: Lens' CreateBranch (Maybe Bool)
- createBranch_enableBasicAuth :: Lens' CreateBranch (Maybe Bool)
- createBranch_pullRequestEnvironmentName :: Lens' CreateBranch (Maybe Text)
- createBranch_description :: Lens' CreateBranch (Maybe Text)
- createBranch_tags :: Lens' CreateBranch (Maybe (HashMap Text Text))
- createBranch_appId :: Lens' CreateBranch Text
- createBranch_branchName :: Lens' CreateBranch Text
- data CreateBranchResponse = CreateBranchResponse' {
- httpStatus :: Int
- branch :: Branch
- newCreateBranchResponse :: Int -> Branch -> CreateBranchResponse
- createBranchResponse_httpStatus :: Lens' CreateBranchResponse Int
- createBranchResponse_branch :: Lens' CreateBranchResponse Branch
Creating a Request
data CreateBranch Source #
The request structure for the create branch request.
See: newCreateBranch
smart constructor.
CreateBranch' | |
|
Instances
Create a value of CreateBranch
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:framework:CreateBranch'
, createBranch_framework
- The framework for the branch.
$sel:ttl:CreateBranch'
, createBranch_ttl
- The content Time To Live (TTL) for the website in seconds.
$sel:enableNotification:CreateBranch'
, createBranch_enableNotification
- Enables notifications for the branch.
$sel:stage:CreateBranch'
, createBranch_stage
- Describes the current stage for the branch.
$sel:backendEnvironmentArn:CreateBranch'
, createBranch_backendEnvironmentArn
- The Amazon Resource Name (ARN) for a backend environment that is part of
an Amplify app.
$sel:enablePullRequestPreview:CreateBranch'
, createBranch_enablePullRequestPreview
- Enables pull request previews for this branch.
$sel:basicAuthCredentials:CreateBranch'
, createBranch_basicAuthCredentials
- The basic authorization credentials for the branch.
$sel:buildSpec:CreateBranch'
, createBranch_buildSpec
- The build specification (build spec) for the branch.
$sel:enablePerformanceMode:CreateBranch'
, createBranch_enablePerformanceMode
- Enables performance mode for the branch.
Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
$sel:displayName:CreateBranch'
, createBranch_displayName
- The display name for a branch. This is used as the default domain
prefix.
$sel:environmentVariables:CreateBranch'
, createBranch_environmentVariables
- The environment variables for the branch.
$sel:enableAutoBuild:CreateBranch'
, createBranch_enableAutoBuild
- Enables auto building for the branch.
$sel:enableBasicAuth:CreateBranch'
, createBranch_enableBasicAuth
- Enables basic authorization for the branch.
$sel:pullRequestEnvironmentName:CreateBranch'
, createBranch_pullRequestEnvironmentName
- The Amplify environment name for the pull request.
$sel:description:CreateBranch'
, createBranch_description
- The description for the branch.
$sel:tags:CreateBranch'
, createBranch_tags
- The tag for the branch.
$sel:appId:CreateBranch'
, createBranch_appId
- The unique ID for an Amplify app.
$sel:branchName:CreateBranch'
, createBranch_branchName
- The name for the branch.
Request Lenses
createBranch_framework :: Lens' CreateBranch (Maybe Text) Source #
The framework for the branch.
createBranch_ttl :: Lens' CreateBranch (Maybe Text) Source #
The content Time To Live (TTL) for the website in seconds.
createBranch_enableNotification :: Lens' CreateBranch (Maybe Bool) Source #
Enables notifications for the branch.
createBranch_stage :: Lens' CreateBranch (Maybe Stage) Source #
Describes the current stage for the branch.
createBranch_backendEnvironmentArn :: Lens' CreateBranch (Maybe Text) Source #
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
createBranch_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool) Source #
Enables pull request previews for this branch.
createBranch_basicAuthCredentials :: Lens' CreateBranch (Maybe Text) Source #
The basic authorization credentials for the branch.
createBranch_buildSpec :: Lens' CreateBranch (Maybe Text) Source #
The build specification (build spec) for the branch.
createBranch_enablePerformanceMode :: Lens' CreateBranch (Maybe Bool) Source #
Enables performance mode for the branch.
Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
createBranch_displayName :: Lens' CreateBranch (Maybe Text) Source #
The display name for a branch. This is used as the default domain prefix.
createBranch_environmentVariables :: Lens' CreateBranch (Maybe (HashMap Text Text)) Source #
The environment variables for the branch.
createBranch_enableAutoBuild :: Lens' CreateBranch (Maybe Bool) Source #
Enables auto building for the branch.
createBranch_enableBasicAuth :: Lens' CreateBranch (Maybe Bool) Source #
Enables basic authorization for the branch.
createBranch_pullRequestEnvironmentName :: Lens' CreateBranch (Maybe Text) Source #
The Amplify environment name for the pull request.
createBranch_description :: Lens' CreateBranch (Maybe Text) Source #
The description for the branch.
createBranch_tags :: Lens' CreateBranch (Maybe (HashMap Text Text)) Source #
The tag for the branch.
createBranch_appId :: Lens' CreateBranch Text Source #
The unique ID for an Amplify app.
createBranch_branchName :: Lens' CreateBranch Text Source #
The name for the branch.
Destructuring the Response
data CreateBranchResponse Source #
The result structure for create branch request.
See: newCreateBranchResponse
smart constructor.
CreateBranchResponse' | |
|
Instances
newCreateBranchResponse Source #
:: Int | |
-> Branch | |
-> CreateBranchResponse |
Create a value of CreateBranchResponse
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:CreateBranchResponse'
, createBranchResponse_httpStatus
- The response's http status code.
$sel:branch:CreateBranchResponse'
, createBranchResponse_branch
- Describes the branch for an Amplify app, which maps to a third-party
repository branch.
Response Lenses
createBranchResponse_httpStatus :: Lens' CreateBranchResponse Int Source #
The response's http status code.
createBranchResponse_branch :: Lens' CreateBranchResponse Branch Source #
Describes the branch for an Amplify app, which maps to a third-party repository branch.