@Stability(value=Experimental) public static final class BranchProps.Builder extends Object implements software.amazon.jsii.Builder<BranchProps>
BranchProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public BranchProps.Builder app(IApp app)
BranchProps.getApp()app - The application within which the branch must be created. This parameter is required.this@Stability(value=Experimental) public BranchProps.Builder asset(Asset asset)
BranchOptions.getAsset()asset - 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.this@Stability(value=Experimental) public BranchProps.Builder autoBuild(Boolean autoBuild)
BranchOptions.getAutoBuild()autoBuild - Whether to enable auto building for the branch.this@Stability(value=Experimental) public BranchProps.Builder basicAuth(BasicAuth basicAuth)
BranchOptions.getBasicAuth()basicAuth - The Basic Auth configuration.
Use this to set password protection for
the branchthis@Stability(value=Experimental) public BranchProps.Builder branchName(String branchName)
BranchOptions.getBranchName()branchName - The name of the branch.this@Stability(value=Experimental) public BranchProps.Builder buildSpec(BuildSpec buildSpec)
BranchOptions.getBuildSpec()buildSpec - BuildSpec for the branch.this@Stability(value=Experimental) public BranchProps.Builder description(String description)
BranchOptions.getDescription()description - A description for the branch.this@Stability(value=Experimental) public BranchProps.Builder environmentVariables(Map<String,String> environmentVariables)
BranchOptions.getEnvironmentVariables()environmentVariables - 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.this@Stability(value=Experimental) public BranchProps.Builder pullRequestEnvironmentName(String pullRequestEnvironmentName)
BranchOptions.getPullRequestEnvironmentName()pullRequestEnvironmentName - The dedicated backend environment for the pull request previews.this@Stability(value=Experimental) public BranchProps.Builder pullRequestPreview(Boolean pullRequestPreview)
BranchOptions.getPullRequestPreview()pullRequestPreview - Whether to enable pull request preview for the branch.this@Stability(value=Experimental) public BranchProps.Builder stage(String stage)
BranchOptions.getStage()stage - Stage for the branch.this@Stability(value=Experimental) public BranchProps build()
build in interface software.amazon.jsii.Builder<BranchProps>BranchPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.