Class CustomFactoryOptions.Builder
java.lang.Object
software.amazon.awscdk.app.staging.synthesizer.alpha.CustomFactoryOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomFactoryOptions>
- Enclosing interface:
CustomFactoryOptions
@Stability(Experimental)
public static final class CustomFactoryOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomFactoryOptions>
A builder for
CustomFactoryOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbootstrapQualifier
(String bootstrapQualifier) Sets the value ofAppStagingSynthesizerOptions.getBootstrapQualifier()
build()
Builds the configured instance.deploymentIdentities
(DeploymentIdentities deploymentIdentities) Sets the value ofAppStagingSynthesizerOptions.getDeploymentIdentities()
factory
(IStagingResourcesFactory factory) Sets the value ofCustomFactoryOptions.getFactory()
oncePerEnv
(Boolean oncePerEnv) Sets the value ofCustomFactoryOptions.getOncePerEnv()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
factory
@Stability(Experimental) public CustomFactoryOptions.Builder factory(IStagingResourcesFactory factory) Sets the value ofCustomFactoryOptions.getFactory()
- Parameters:
factory
- The factory that will be used to return staging resources for each stack. This parameter is required.- Returns:
this
-
oncePerEnv
Sets the value ofCustomFactoryOptions.getOncePerEnv()
- Parameters:
oncePerEnv
- Reuse the answer from the factory for stacks in the same environment.- Returns:
this
-
bootstrapQualifier
@Stability(Experimental) public CustomFactoryOptions.Builder bootstrapQualifier(String bootstrapQualifier) Sets the value ofAppStagingSynthesizerOptions.getBootstrapQualifier()
- Parameters:
bootstrapQualifier
- Qualifier to disambiguate multiple bootstrapped environments in the same account. This qualifier is only used to reference bootstrapped resources. It will not be used in the creation of app-specific staging resources:appId
is used for that instead.- Returns:
this
-
deploymentIdentities
@Stability(Experimental) public CustomFactoryOptions.Builder deploymentIdentities(DeploymentIdentities deploymentIdentities) Sets the value ofAppStagingSynthesizerOptions.getDeploymentIdentities()
- Parameters:
deploymentIdentities
- What roles to use to deploy applications. These are the roles that have permissions to interact with CloudFormation on your behalf. By default these are the standard bootstrapped CDK roles, but you can customize them or turn them off and use the CLI credentials to deploy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomFactoryOptions>
- Returns:
- a new instance of
CustomFactoryOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-