Class CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppPropsMixin.AutoBranchCreationConfigProperty>
- Enclosing interface:
CfnAppPropsMixin.AutoBranchCreationConfigProperty
CfnAppPropsMixin.AutoBranchCreationConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoBranchCreationPatterns(List<String> autoBranchCreationPatterns) basicAuthConfig(CfnAppPropsMixin.BasicAuthConfigProperty basicAuthConfig) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBasicAuthConfig()basicAuthConfig(IResolvable basicAuthConfig) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBasicAuthConfig()build()Builds the configured instance.Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBuildSpec()enableAutoBranchCreation(Boolean enableAutoBranchCreation) enableAutoBranchCreation(IResolvable enableAutoBranchCreation) enableAutoBuild(Boolean enableAutoBuild) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getEnableAutoBuild()enableAutoBuild(IResolvable enableAutoBuild) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getEnableAutoBuild()enablePerformanceMode(Boolean enablePerformanceMode) enablePerformanceMode(IResolvable enablePerformanceMode) enablePullRequestPreview(Boolean enablePullRequestPreview) enablePullRequestPreview(IResolvable enablePullRequestPreview) environmentVariables(List<? extends Object> environmentVariables) environmentVariables(IResolvable environmentVariables) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getFramework()pullRequestEnvironmentName(String pullRequestEnvironmentName) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoBranchCreationPatterns
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder autoBranchCreationPatterns(List<String> autoBranchCreationPatterns) - Parameters:
autoBranchCreationPatterns- Automated branch creation glob patterns for the Amplify app.- Returns:
this
-
basicAuthConfig
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder basicAuthConfig(IResolvable basicAuthConfig) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBasicAuthConfig()- Parameters:
basicAuthConfig- Sets password protection for your auto created branch.- Returns:
this
-
basicAuthConfig
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder basicAuthConfig(CfnAppPropsMixin.BasicAuthConfigProperty basicAuthConfig) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBasicAuthConfig()- Parameters:
basicAuthConfig- Sets password protection for your auto created branch.- Returns:
this
-
buildSpec
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder buildSpec(String buildSpec) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getBuildSpec()- Parameters:
buildSpec- The build specification (build spec) for the autocreated branch.- Returns:
this
-
enableAutoBranchCreation
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enableAutoBranchCreation(Boolean enableAutoBranchCreation) - Parameters:
enableAutoBranchCreation- Enables automated branch creation for the Amplify app.- Returns:
this
-
enableAutoBranchCreation
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enableAutoBranchCreation(IResolvable enableAutoBranchCreation) - Parameters:
enableAutoBranchCreation- Enables automated branch creation for the Amplify app.- Returns:
this
-
enableAutoBuild
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enableAutoBuild(Boolean enableAutoBuild) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getEnableAutoBuild()- Parameters:
enableAutoBuild- Enables auto building for the auto created branch.- Returns:
this
-
enableAutoBuild
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enableAutoBuild(IResolvable enableAutoBuild) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getEnableAutoBuild()- Parameters:
enableAutoBuild- Enables auto building for the auto created branch.- Returns:
this
-
enablePerformanceMode
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enablePerformanceMode(Boolean enablePerformanceMode) - Parameters:
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.- Returns:
this
-
enablePerformanceMode
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enablePerformanceMode(IResolvable enablePerformanceMode) - Parameters:
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.- Returns:
this
-
enablePullRequestPreview
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enablePullRequestPreview(Boolean enablePullRequestPreview) - Parameters:
enablePullRequestPreview- Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app. Amplify creates previews by deploying your app to a unique URL whenever a pull request is opened for the branch. 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, Amplify Hosting 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
PullRequestEnvironmentNameproperty.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- Returns:
this
-
enablePullRequestPreview
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder enablePullRequestPreview(IResolvable enablePullRequestPreview) - Parameters:
enablePullRequestPreview- Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app. Amplify creates previews by deploying your app to a unique URL whenever a pull request is opened for the branch. 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, Amplify Hosting 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
PullRequestEnvironmentNameproperty.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder environmentVariables(IResolvable environmentVariables) - Parameters:
environmentVariables- The environment variables for the autocreated branch.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder environmentVariables(List<? extends Object> environmentVariables) - Parameters:
environmentVariables- The environment variables for the autocreated branch.- Returns:
this
-
framework
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder framework(String framework) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getFramework()- Parameters:
framework- The framework for the autocreated branch.- Returns:
this
-
pullRequestEnvironmentName
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder pullRequestEnvironmentName(String pullRequestEnvironmentName) - Parameters:
pullRequestEnvironmentName- If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment namedprod,test, ordevthat you initialized with the Amplify CLI.To enable pull request previews, set the
EnablePullRequestPreviewproperty totrue.If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify 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 .
- Returns:
this
-
stage
@Stability(Stable) public CfnAppPropsMixin.AutoBranchCreationConfigProperty.Builder stage(String stage) Sets the value ofCfnAppPropsMixin.AutoBranchCreationConfigProperty.getStage()- Parameters:
stage- Stage for the auto created branch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppPropsMixin.AutoBranchCreationConfigProperty>- Returns:
- a new instance of
CfnAppPropsMixin.AutoBranchCreationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-