Modifier and Type | Method and Description |
---|---|
CfnBranch.Builder |
appId(java.lang.String appId)
The unique ID for an Amplify app.
|
CfnBranch.Builder |
basicAuthConfig(CfnBranch.BasicAuthConfigProperty basicAuthConfig)
The basic authorization credentials for a branch of an Amplify app.
|
CfnBranch.Builder |
basicAuthConfig(IResolvable basicAuthConfig)
The basic authorization credentials for a branch of an Amplify app.
|
CfnBranch.Builder |
branchName(java.lang.String branchName)
The name for the branch.
|
CfnBranch |
build() |
CfnBranch.Builder |
buildSpec(java.lang.String buildSpec)
The build specification (build spec) for the branch.
|
static CfnBranch.Builder |
create(Construct scope,
java.lang.String id) |
CfnBranch.Builder |
description(java.lang.String description)
The description for the branch that is part of an Amplify app.
|
CfnBranch.Builder |
enableAutoBuild(java.lang.Boolean enableAutoBuild)
Enables auto building for the branch.
|
CfnBranch.Builder |
enableAutoBuild(IResolvable enableAutoBuild)
Enables auto building for the branch.
|
CfnBranch.Builder |
enablePerformanceMode(java.lang.Boolean enablePerformanceMode)
Enables performance mode for the branch.
|
CfnBranch.Builder |
enablePerformanceMode(IResolvable enablePerformanceMode)
Enables performance mode for the branch.
|
CfnBranch.Builder |
enablePullRequestPreview(java.lang.Boolean enablePullRequestPreview)
Sets whether the Amplify Console creates a preview for each pull request that is made for this branch.
|
CfnBranch.Builder |
enablePullRequestPreview(IResolvable enablePullRequestPreview)
Sets whether the Amplify Console creates a preview for each pull request that is made for this branch.
|
CfnBranch.Builder |
environmentVariables(IResolvable environmentVariables)
The environment variables for the branch.
|
CfnBranch.Builder |
environmentVariables(java.util.List<? extends java.lang.Object> environmentVariables)
The environment variables for the branch.
|
CfnBranch.Builder |
pullRequestEnvironmentName(java.lang.String pullRequestEnvironmentName)
If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews.
|
CfnBranch.Builder |
stage(java.lang.String stage)
Describes the current stage for the branch.
|
CfnBranch.Builder |
tags(java.util.List<? extends CfnTag> tags)
The tag for the branch.
|
public static CfnBranch.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnBranch.BasicAuthConfigProperty.Builder
.public CfnBranch.Builder appId(java.lang.String appId)
Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern: d[a-z0-9]+
appId
- The unique ID for an Amplify app. This parameter is required.this
public CfnBranch.Builder branchName(java.lang.String branchName)
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
branchName
- The name for the branch. This parameter is required.this
public CfnBranch.Builder basicAuthConfig(IResolvable basicAuthConfig)
You must base64-encode the authorization credentials and provide them in the format user:password
.
basicAuthConfig
- The basic authorization credentials for a branch of an Amplify app. This parameter is required.this
public CfnBranch.Builder basicAuthConfig(CfnBranch.BasicAuthConfigProperty basicAuthConfig)
You must base64-encode the authorization credentials and provide them in the format user:password
.
basicAuthConfig
- The basic authorization credentials for a branch of an Amplify app. This parameter is required.this
public CfnBranch.Builder buildSpec(java.lang.String buildSpec)
Length Constraints: Minimum length of 1. Maximum length of 25000.
Pattern: (?s).+
buildSpec
- The build specification (build spec) for the branch. This parameter is required.this
public CfnBranch.Builder description(java.lang.String description)
Length Constraints: Maximum length of 1000.
Pattern: (?s).*
description
- The description for the branch that is part of an Amplify app. This parameter is required.this
public CfnBranch.Builder enableAutoBuild(java.lang.Boolean enableAutoBuild)
enableAutoBuild
- Enables auto building for the branch. This parameter is required.this
public CfnBranch.Builder enableAutoBuild(IResolvable enableAutoBuild)
enableAutoBuild
- Enables auto building for the branch. This parameter is required.this
public CfnBranch.Builder enablePerformanceMode(java.lang.Boolean enablePerformanceMode)
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.
enablePerformanceMode
- Enables performance mode for the branch. This parameter is required.this
public CfnBranch.Builder enablePerformanceMode(IResolvable enablePerformanceMode)
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.
enablePerformanceMode
- Enables performance mode for the branch. This parameter is required.this
public CfnBranch.Builder enablePullRequestPreview(java.lang.Boolean enablePullRequestPreview)
If this property is enabled, the Amplify Console deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch.
To provide backend support for your preview, the Amplify Console automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the PullRequestEnvironmentName
property.
For more information, see Web Previews in the AWS Amplify Hosting User Guide .
enablePullRequestPreview
- Sets whether the Amplify Console creates a preview for each pull request that is made for this branch. This parameter is required.this
public CfnBranch.Builder enablePullRequestPreview(IResolvable enablePullRequestPreview)
If this property is enabled, the Amplify Console deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch.
To provide backend support for your preview, the Amplify Console automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the PullRequestEnvironmentName
property.
For more information, see Web Previews in the AWS Amplify Hosting User Guide .
enablePullRequestPreview
- Sets whether the Amplify Console creates a preview for each pull request that is made for this branch. This parameter is required.this
public CfnBranch.Builder environmentVariables(IResolvable environmentVariables)
environmentVariables
- The environment variables for the branch. This parameter is required.this
public CfnBranch.Builder environmentVariables(java.util.List<? extends java.lang.Object> environmentVariables)
environmentVariables
- The environment variables for the branch. This parameter is required.this
public CfnBranch.Builder pullRequestEnvironmentName(java.lang.String pullRequestEnvironmentName)
For example, you could specify an environment named prod
, test
, or dev
that you initialized with the Amplify CLI and mapped to this branch.
To enable pull request previews, set the EnablePullRequestPreview
property to true
.
If you don't specify an environment, the Amplify Console provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Console deletes this environment when the pull request is closed.
For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide .
Length Constraints: Maximum length of 20.
Pattern: (?s).*
pullRequestEnvironmentName
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. This parameter is required.this
public CfnBranch.Builder stage(java.lang.String stage)
Valid Values: PRODUCTION | BETA | DEVELOPMENT | EXPERIMENTAL | PULL_REQUEST
stage
- Describes the current stage for the branch. This parameter is required.this
public CfnBranch.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- The tag for the branch. This parameter is required.this
public CfnBranch build()