@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.077Z") @Stability(value=Experimental) public interface BranchOptions extends software.amazon.jsii.JsiiSerializable
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");
| Modifier and Type | Interface and Description |
|---|---|
static class |
BranchOptions.Builder
A builder for
BranchOptions |
static class |
BranchOptions.Jsii$Proxy
An implementation for
BranchOptions |
| Modifier and Type | Method and Description |
|---|---|
static BranchOptions.Builder |
builder() |
default Asset |
getAsset()
(experimental) Asset for deployment.
|
default Boolean |
getAutoBuild()
(experimental) Whether to enable auto building for the branch.
|
default BasicAuth |
getBasicAuth()
(experimental) The Basic Auth configuration.
|
default String |
getBranchName()
(experimental) The name of the branch.
|
default BuildSpec |
getBuildSpec()
(experimental) BuildSpec for the branch.
|
default String |
getDescription()
(experimental) A description for the branch.
|
default Map<String,String> |
getEnvironmentVariables()
(experimental) Environment variables for the branch.
|
default Boolean |
getPerformanceMode()
(experimental) Enables performance mode for the branch.
|
default String |
getPullRequestEnvironmentName()
(experimental) The dedicated backend environment for the pull request previews.
|
default Boolean |
getPullRequestPreview()
(experimental) Whether to enable pull request preview for the branch.
|
default String |
getStage()
(experimental) Stage for the branch.
|
@Stability(value=Experimental) @Nullable default Asset getAsset()
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
@Stability(value=Experimental) @Nullable default Boolean getAutoBuild()
Default: true
@Stability(value=Experimental) @Nullable default BasicAuth getBasicAuth()
Use this to set password protection for the branch
Default: - no password protection
@Stability(value=Experimental) @Nullable default String getBranchName()
Default: - the construct's id
@Stability(value=Experimental) @Nullable default BuildSpec getBuildSpec()
Default: - no build spec
@Stability(value=Experimental) @Nullable default String getDescription()
Default: - no description
@Stability(value=Experimental) @Nullable default Map<String,String> getEnvironmentVariables()
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
@Stability(value=Experimental) @Nullable default Boolean getPerformanceMode()
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
@Stability(value=Experimental) @Nullable default String getPullRequestEnvironmentName()
Default: - automatically provision a temporary backend
@Stability(value=Experimental) @Nullable default Boolean getPullRequestPreview()
Default: true
@Stability(value=Experimental) @Nullable default String getStage()
Default: - no stage
@Stability(value=Experimental) static BranchOptions.Builder builder()
BranchOptions.Builder of BranchOptionsCopyright © 2022. All rights reserved.