Class DefaultStackSynthesizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DefaultStackSynthesizerProps>
- Enclosing interface:
- DefaultStackSynthesizerProps
DefaultStackSynthesizerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbootstrapStackVersionSsmParameter
(String bootstrapStackVersionSsmParameter) Sets the value ofDefaultStackSynthesizerProps.getBootstrapStackVersionSsmParameter()
bucketPrefix
(String bucketPrefix) Sets the value ofDefaultStackSynthesizerProps.getBucketPrefix()
build()
Builds the configured instance.cloudFormationExecutionRole
(String cloudFormationExecutionRole) Sets the value ofDefaultStackSynthesizerProps.getCloudFormationExecutionRole()
deployRoleAdditionalOptions
(Map<String, ? extends Object> deployRoleAdditionalOptions) Sets the value ofDefaultStackSynthesizerProps.getDeployRoleAdditionalOptions()
deployRoleArn
(String deployRoleArn) Sets the value ofDefaultStackSynthesizerProps.getDeployRoleArn()
deployRoleExternalId
(String deployRoleExternalId) Sets the value ofDefaultStackSynthesizerProps.getDeployRoleExternalId()
dockerTagPrefix
(String dockerTagPrefix) Sets the value ofDefaultStackSynthesizerProps.getDockerTagPrefix()
fileAssetPublishingExternalId
(String fileAssetPublishingExternalId) Sets the value ofDefaultStackSynthesizerProps.getFileAssetPublishingExternalId()
fileAssetPublishingRoleAdditionalOptions
(Map<String, ? extends Object> fileAssetPublishingRoleAdditionalOptions) fileAssetPublishingRoleArn
(String fileAssetPublishingRoleArn) Sets the value ofDefaultStackSynthesizerProps.getFileAssetPublishingRoleArn()
fileAssetsBucketName
(String fileAssetsBucketName) Sets the value ofDefaultStackSynthesizerProps.getFileAssetsBucketName()
generateBootstrapVersionRule
(Boolean generateBootstrapVersionRule) Sets the value ofDefaultStackSynthesizerProps.getGenerateBootstrapVersionRule()
imageAssetPublishingExternalId
(String imageAssetPublishingExternalId) Sets the value ofDefaultStackSynthesizerProps.getImageAssetPublishingExternalId()
imageAssetPublishingRoleAdditionalOptions
(Map<String, ? extends Object> imageAssetPublishingRoleAdditionalOptions) imageAssetPublishingRoleArn
(String imageAssetPublishingRoleArn) Sets the value ofDefaultStackSynthesizerProps.getImageAssetPublishingRoleArn()
imageAssetsRepositoryName
(String imageAssetsRepositoryName) Sets the value ofDefaultStackSynthesizerProps.getImageAssetsRepositoryName()
lookupRoleAdditionalOptions
(Map<String, ? extends Object> lookupRoleAdditionalOptions) Sets the value ofDefaultStackSynthesizerProps.getLookupRoleAdditionalOptions()
lookupRoleArn
(String lookupRoleArn) Sets the value ofDefaultStackSynthesizerProps.getLookupRoleArn()
lookupRoleExternalId
(String lookupRoleExternalId) Sets the value ofDefaultStackSynthesizerProps.getLookupRoleExternalId()
Sets the value ofDefaultStackSynthesizerProps.getQualifier()
useLookupRoleForStackOperations
(Boolean useLookupRoleForStackOperations) Sets the value ofDefaultStackSynthesizerProps.getUseLookupRoleForStackOperations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bootstrapStackVersionSsmParameter
@Stability(Stable) public DefaultStackSynthesizerProps.Builder bootstrapStackVersionSsmParameter(String bootstrapStackVersionSsmParameter) Sets the value ofDefaultStackSynthesizerProps.getBootstrapStackVersionSsmParameter()
- Parameters:
bootstrapStackVersionSsmParameter
- Bootstrap stack version SSM parameter. The placeholder${Qualifier}
will be replaced with the value of qualifier.- Returns:
this
-
bucketPrefix
Sets the value ofDefaultStackSynthesizerProps.getBucketPrefix()
- Parameters:
bucketPrefix
- bucketPrefix to use while storing S3 Assets.- Returns:
this
-
cloudFormationExecutionRole
@Stability(Stable) public DefaultStackSynthesizerProps.Builder cloudFormationExecutionRole(String cloudFormationExecutionRole) Sets the value ofDefaultStackSynthesizerProps.getCloudFormationExecutionRole()
- Parameters:
cloudFormationExecutionRole
- The role CloudFormation will assume when deploying the Stack. You must supply this if you have given a non-standard name to the execution role.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
deployRoleAdditionalOptions
@Stability(Stable) public DefaultStackSynthesizerProps.Builder deployRoleAdditionalOptions(Map<String, ? extends Object> deployRoleAdditionalOptions) Sets the value ofDefaultStackSynthesizerProps.getDeployRoleAdditionalOptions()
- Parameters:
deployRoleAdditionalOptions
- Additional options to pass to STS when assuming the deploy role.RoleArn
should not be used. Use the dedicateddeployRoleArn
property instead.ExternalId
should not be used. Use the dedicateddeployRoleExternalId
instead.TransitiveTagKeys
defaults to use all keys (if any) specified inTags
. E.g, all tags are transitive by default.
- Returns:
this
-
deployRoleArn
Sets the value ofDefaultStackSynthesizerProps.getDeployRoleArn()
- Parameters:
deployRoleArn
- The role to assume to initiate a deployment in this environment. You must supply this if you have given a non-standard name to the publishing role.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
deployRoleExternalId
@Stability(Stable) public DefaultStackSynthesizerProps.Builder deployRoleExternalId(String deployRoleExternalId) Sets the value ofDefaultStackSynthesizerProps.getDeployRoleExternalId()
- Parameters:
deployRoleExternalId
- External ID to use when assuming role for cloudformation deployments.- Returns:
this
-
dockerTagPrefix
@Stability(Stable) public DefaultStackSynthesizerProps.Builder dockerTagPrefix(String dockerTagPrefix) Sets the value ofDefaultStackSynthesizerProps.getDockerTagPrefix()
- Parameters:
dockerTagPrefix
- A prefix to use while tagging and uploading Docker images to ECR. This does not add any separators - the source hash will be appended to this string directly.- Returns:
this
-
fileAssetPublishingExternalId
@Stability(Stable) public DefaultStackSynthesizerProps.Builder fileAssetPublishingExternalId(String fileAssetPublishingExternalId) Sets the value ofDefaultStackSynthesizerProps.getFileAssetPublishingExternalId()
- Parameters:
fileAssetPublishingExternalId
- External ID to use when assuming role for file asset publishing.- Returns:
this
-
fileAssetPublishingRoleAdditionalOptions
@Stability(Stable) public DefaultStackSynthesizerProps.Builder fileAssetPublishingRoleAdditionalOptions(Map<String, ? extends Object> fileAssetPublishingRoleAdditionalOptions) - Parameters:
fileAssetPublishingRoleAdditionalOptions
- Additional options to pass to STS when assuming the file asset publishing.RoleArn
should not be used. Use the dedicatedfileAssetPublishingRoleArn
property instead.ExternalId
should not be used. Use the dedicatedfileAssetPublishingExternalId
instead.TransitiveTagKeys
defaults to use all keys (if any) specified inTags
. E.g, all tags are transitive by default.
- Returns:
this
-
fileAssetPublishingRoleArn
@Stability(Stable) public DefaultStackSynthesizerProps.Builder fileAssetPublishingRoleArn(String fileAssetPublishingRoleArn) Sets the value ofDefaultStackSynthesizerProps.getFileAssetPublishingRoleArn()
- Parameters:
fileAssetPublishingRoleArn
- The role to use to publish file assets to the S3 bucket in this environment. You must supply this if you have given a non-standard name to the publishing role.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
fileAssetsBucketName
@Stability(Stable) public DefaultStackSynthesizerProps.Builder fileAssetsBucketName(String fileAssetsBucketName) Sets the value ofDefaultStackSynthesizerProps.getFileAssetsBucketName()
- Parameters:
fileAssetsBucketName
- Name of the S3 bucket to hold file assets. You must supply this if you have given a non-standard name to the staging bucket.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
generateBootstrapVersionRule
@Stability(Stable) public DefaultStackSynthesizerProps.Builder generateBootstrapVersionRule(Boolean generateBootstrapVersionRule) Sets the value ofDefaultStackSynthesizerProps.getGenerateBootstrapVersionRule()
- Parameters:
generateBootstrapVersionRule
- Whether to add a Rule to the stack template verifying the bootstrap stack version. This generally should be left set totrue
, unless you explicitly want to be able to deploy to an unbootstrapped environment.- Returns:
this
-
imageAssetPublishingExternalId
@Stability(Stable) public DefaultStackSynthesizerProps.Builder imageAssetPublishingExternalId(String imageAssetPublishingExternalId) Sets the value ofDefaultStackSynthesizerProps.getImageAssetPublishingExternalId()
- Parameters:
imageAssetPublishingExternalId
- External ID to use when assuming role for image asset publishing.- Returns:
this
-
imageAssetPublishingRoleAdditionalOptions
@Stability(Stable) public DefaultStackSynthesizerProps.Builder imageAssetPublishingRoleAdditionalOptions(Map<String, ? extends Object> imageAssetPublishingRoleAdditionalOptions) - Parameters:
imageAssetPublishingRoleAdditionalOptions
- Additional options to pass to STS when assuming the image asset publishing.RoleArn
should not be used. Use the dedicatedimageAssetPublishingRoleArn
property instead.ExternalId
should not be used. Use the dedicatedimageAssetPublishingExternalId
instead.TransitiveTagKeys
defaults to use all keys (if any) specified inTags
. E.g, all tags are transitive by default.
- Returns:
this
-
imageAssetPublishingRoleArn
@Stability(Stable) public DefaultStackSynthesizerProps.Builder imageAssetPublishingRoleArn(String imageAssetPublishingRoleArn) Sets the value ofDefaultStackSynthesizerProps.getImageAssetPublishingRoleArn()
- Parameters:
imageAssetPublishingRoleArn
- The role to use to publish image assets to the ECR repository in this environment. You must supply this if you have given a non-standard name to the publishing role.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
imageAssetsRepositoryName
@Stability(Stable) public DefaultStackSynthesizerProps.Builder imageAssetsRepositoryName(String imageAssetsRepositoryName) Sets the value ofDefaultStackSynthesizerProps.getImageAssetsRepositoryName()
- Parameters:
imageAssetsRepositoryName
- Name of the ECR repository to hold Docker Image assets. You must supply this if you have given a non-standard name to the ECR repository.The placeholders
${Qualifier}
,${AWS::AccountId}
and${AWS::Region}
will be replaced with the values of qualifier and the stack's account and region, respectively.- Returns:
this
-
lookupRoleAdditionalOptions
@Stability(Stable) public DefaultStackSynthesizerProps.Builder lookupRoleAdditionalOptions(Map<String, ? extends Object> lookupRoleAdditionalOptions) Sets the value ofDefaultStackSynthesizerProps.getLookupRoleAdditionalOptions()
- Parameters:
lookupRoleAdditionalOptions
- Additional options to pass to STS when assuming the lookup role.RoleArn
should not be used. Use the dedicatedlookupRoleArn
property instead.ExternalId
should not be used. Use the dedicatedlookupRoleExternalId
instead.TransitiveTagKeys
defaults to use all keys (if any) specified inTags
. E.g, all tags are transitive by default.
- Returns:
this
-
lookupRoleArn
Sets the value ofDefaultStackSynthesizerProps.getLookupRoleArn()
- Parameters:
lookupRoleArn
- The role to use to look up values from the target AWS account during synthesis.- Returns:
this
-
lookupRoleExternalId
@Stability(Stable) public DefaultStackSynthesizerProps.Builder lookupRoleExternalId(String lookupRoleExternalId) Sets the value ofDefaultStackSynthesizerProps.getLookupRoleExternalId()
- Parameters:
lookupRoleExternalId
- External ID to use when assuming lookup role.- Returns:
this
-
qualifier
Sets the value ofDefaultStackSynthesizerProps.getQualifier()
- Parameters:
qualifier
- Qualifier to disambiguate multiple environments in the same account. You can use this and leave the other naming properties empty if you have deployed the bootstrap environment with standard names but only different qualifiers.- Returns:
this
-
useLookupRoleForStackOperations
@Stability(Stable) public DefaultStackSynthesizerProps.Builder useLookupRoleForStackOperations(Boolean useLookupRoleForStackOperations) Sets the value ofDefaultStackSynthesizerProps.getUseLookupRoleForStackOperations()
- Parameters:
useLookupRoleForStackOperations
- Use the bootstrapped lookup role for (read-only) stack operations. Use the lookup role when performing acdk diff
. If set tofalse
, thedeploy role
credentials will be used to perform acdk diff
.Requires bootstrap stack version 8.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DefaultStackSynthesizerProps>
- Returns:
- a new instance of
DefaultStackSynthesizerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-