| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Amplify.CreateBranch
Description
Creates a new branch for an Amplify app.
Synopsis
- data CreateBranch = CreateBranch' {
- backendEnvironmentArn :: Maybe Text
- basicAuthCredentials :: Maybe (Sensitive Text)
- buildSpec :: Maybe (Sensitive Text)
- description :: Maybe Text
- displayName :: Maybe Text
- enableAutoBuild :: Maybe Bool
- enableBasicAuth :: Maybe Bool
- enableNotification :: Maybe Bool
- enablePerformanceMode :: Maybe Bool
- enablePullRequestPreview :: Maybe Bool
- environmentVariables :: Maybe (HashMap Text Text)
- framework :: Maybe Text
- pullRequestEnvironmentName :: Maybe Text
- stage :: Maybe Stage
- tags :: Maybe (HashMap Text Text)
- ttl :: Maybe Text
- appId :: Text
- branchName :: Text
- newCreateBranch :: Text -> Text -> CreateBranch
- createBranch_backendEnvironmentArn :: Lens' CreateBranch (Maybe Text)
- createBranch_basicAuthCredentials :: Lens' CreateBranch (Maybe Text)
- createBranch_buildSpec :: Lens' CreateBranch (Maybe Text)
- createBranch_description :: Lens' CreateBranch (Maybe Text)
- createBranch_displayName :: Lens' CreateBranch (Maybe Text)
- createBranch_enableAutoBuild :: Lens' CreateBranch (Maybe Bool)
- createBranch_enableBasicAuth :: Lens' CreateBranch (Maybe Bool)
- createBranch_enableNotification :: Lens' CreateBranch (Maybe Bool)
- createBranch_enablePerformanceMode :: Lens' CreateBranch (Maybe Bool)
- createBranch_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool)
- createBranch_environmentVariables :: Lens' CreateBranch (Maybe (HashMap Text Text))
- createBranch_framework :: Lens' CreateBranch (Maybe Text)
- createBranch_pullRequestEnvironmentName :: Lens' CreateBranch (Maybe Text)
- createBranch_stage :: Lens' CreateBranch (Maybe Stage)
- createBranch_tags :: Lens' CreateBranch (Maybe (HashMap Text Text))
- createBranch_ttl :: Lens' CreateBranch (Maybe 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.
Constructors
| CreateBranch' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateBranch |
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:
CreateBranch, createBranch_backendEnvironmentArn - The Amazon Resource Name (ARN) for a backend environment that is part of
an Amplify app.
CreateBranch, createBranch_basicAuthCredentials - The basic authorization credentials for the branch. You must
base64-encode the authorization credentials and provide them in the
format user:password.
CreateBranch, createBranch_buildSpec - The build specification (build spec) for the branch.
CreateBranch, createBranch_description - The description for the branch.
CreateBranch, createBranch_displayName - The display name for a branch. This is used as the default domain
prefix.
CreateBranch, createBranch_enableAutoBuild - Enables auto building for the branch.
CreateBranch, createBranch_enableBasicAuth - Enables basic authorization for the branch.
CreateBranch, createBranch_enableNotification - Enables notifications for the branch.
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.
CreateBranch, createBranch_enablePullRequestPreview - Enables pull request previews for this branch.
CreateBranch, createBranch_environmentVariables - The environment variables for the branch.
CreateBranch, createBranch_framework - The framework for the branch.
CreateBranch, createBranch_pullRequestEnvironmentName - The Amplify environment name for the pull request.
CreateBranch, createBranch_stage - Describes the current stage for the branch.
CreateBranch, createBranch_tags - The tag for the branch.
CreateBranch, createBranch_ttl - The content Time To Live (TTL) for the website in seconds.
CreateBranch, createBranch_appId - The unique ID for an Amplify app.
CreateBranch, createBranch_branchName - The name for the branch.
Request Lenses
createBranch_backendEnvironmentArn :: Lens' CreateBranch (Maybe Text) Source #
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
createBranch_basicAuthCredentials :: Lens' CreateBranch (Maybe Text) Source #
The basic authorization credentials for the branch. You must
base64-encode the authorization credentials and provide them in the
format user:password.
createBranch_buildSpec :: Lens' CreateBranch (Maybe Text) Source #
The build specification (build spec) for the branch.
createBranch_description :: Lens' CreateBranch (Maybe Text) Source #
The description for the branch.
createBranch_displayName :: Lens' CreateBranch (Maybe Text) Source #
The display name for a branch. This is used as the default domain prefix.
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_enableNotification :: Lens' CreateBranch (Maybe Bool) Source #
Enables notifications 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_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool) Source #
Enables pull request previews for this branch.
createBranch_environmentVariables :: Lens' CreateBranch (Maybe (HashMap Text Text)) Source #
The environment variables for the branch.
createBranch_framework :: Lens' CreateBranch (Maybe Text) Source #
The framework for the branch.
createBranch_pullRequestEnvironmentName :: Lens' CreateBranch (Maybe Text) Source #
The Amplify environment name for the pull request.
createBranch_stage :: Lens' CreateBranch (Maybe Stage) Source #
Describes the current stage for the branch.
createBranch_tags :: Lens' CreateBranch (Maybe (HashMap Text Text)) Source #
The tag for the branch.
createBranch_ttl :: Lens' CreateBranch (Maybe Text) Source #
The content Time To Live (TTL) for the website in seconds.
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.
Constructors
| CreateBranchResponse' | |
Fields
| |
Instances
newCreateBranchResponse Source #
Arguments
| :: 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.