Interface BranchOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BranchProps
- All Known Implementing Classes:
BranchOptions.Jsii$Proxy
,BranchProps.Jsii$Proxy
Example:
App amplifyApp; Branch master = amplifyApp.addBranch("master"); // `id` will be used as repo branch name Branch dev = amplifyApp.addBranch("dev", BranchOptions.builder() .performanceMode(true) .build()); dev.addEnvironment("STAGE", "dev");
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBranchOptions
static final class
An implementation forBranchOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic BranchOptions.Builder
builder()
default Asset
getAsset()
(experimental) Asset for deployment.default Boolean
(experimental) Whether to enable auto building for the branch.default BasicAuth
(experimental) The Basic Auth configuration.default String
(experimental) The name of the branch.default BuildSpec
(experimental) BuildSpec for the branch.default String
(experimental) A description for the branch.(experimental) Environment variables for the branch.default Boolean
(experimental) Enables performance mode for the branch.default String
(experimental) The dedicated backend environment for the pull request previews.default Boolean
(experimental) Whether to enable pull request preview for the branch.default String
getStage()
(experimental) Stage for the branch.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAsset
(experimental) Asset for deployment.The Amplify app must not have a sourceCodeProvider configured as this resource uses Amplify's startDeployment API to initiate and deploy a S3 asset onto the App.
Default: - no asset
-
getAutoBuild
(experimental) Whether to enable auto building for the branch.Default: true
-
getBasicAuth
(experimental) The Basic Auth configuration.Use this to set password protection for the branch
Default: - no password protection
-
getBranchName
(experimental) The name of the branch.Default: - the construct's id
-
getBuildSpec
(experimental) BuildSpec for the branch.Default: - no build spec
- See Also:
-
getDescription
(experimental) A description for the branch.Default: - no description
-
getEnvironmentVariables
(experimental) Environment variables for the branch.All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
Default: - application environment variables
-
getPerformanceMode
(experimental) 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.
Default: false
-
getPullRequestEnvironmentName
(experimental) The dedicated backend environment for the pull request previews.Default: - automatically provision a temporary backend
-
getPullRequestPreview
(experimental) Whether to enable pull request preview for the branch.Default: true
-
getStage
(experimental) Stage for the branch.Default: - no stage
-
builder
- Returns:
- a
BranchOptions.Builder
ofBranchOptions
-