public static final class DefaultStackSynthesizerProps.Builder
extends java.lang.Object
DefaultStackSynthesizerProps
Constructor and Description |
---|
Builder() |
public DefaultStackSynthesizerProps.Builder bootstrapStackVersionSsmParameter(java.lang.String bootstrapStackVersionSsmParameter)
DefaultStackSynthesizerProps.getBootstrapStackVersionSsmParameter()
bootstrapStackVersionSsmParameter
- Bootstrap stack version SSM parameter.
The placeholder ${Qualifier}
will be replaced with the value of qualifier.this
public DefaultStackSynthesizerProps.Builder bucketPrefix(java.lang.String bucketPrefix)
DefaultStackSynthesizerProps.getBucketPrefix()
bucketPrefix
- bucketPrefix to use while storing S3 Assets.this
public DefaultStackSynthesizerProps.Builder cloudFormationExecutionRole(java.lang.String cloudFormationExecutionRole)
DefaultStackSynthesizerProps.getCloudFormationExecutionRole()
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.
this
public DefaultStackSynthesizerProps.Builder deployRoleArn(java.lang.String deployRoleArn)
DefaultStackSynthesizerProps.getDeployRoleArn()
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.
this
public DefaultStackSynthesizerProps.Builder deployRoleExternalId(java.lang.String deployRoleExternalId)
DefaultStackSynthesizerProps.getDeployRoleExternalId()
deployRoleExternalId
- External ID to use when assuming role for cloudformation deployments.this
public DefaultStackSynthesizerProps.Builder dockerTagPrefix(java.lang.String dockerTagPrefix)
DefaultStackSynthesizerProps.getDockerTagPrefix()
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.this
@Deprecated public DefaultStackSynthesizerProps.Builder fileAssetKeyArnExportName(java.lang.String fileAssetKeyArnExportName)
DefaultStackSynthesizerProps.getFileAssetKeyArnExportName()
fileAssetKeyArnExportName
- Name of the CloudFormation Export with the asset key name.
You must supply this if you have given a non-standard name to the KMS key export
The placeholders ${Qualifier}
, ${AWS::AccountId}
and ${AWS::Region}
will
be replaced with the values of qualifier and the stack's account and region,
respectively.
this
public DefaultStackSynthesizerProps.Builder fileAssetPublishingExternalId(java.lang.String fileAssetPublishingExternalId)
DefaultStackSynthesizerProps.getFileAssetPublishingExternalId()
fileAssetPublishingExternalId
- External ID to use when assuming role for file asset publishing.this
public DefaultStackSynthesizerProps.Builder fileAssetPublishingRoleArn(java.lang.String fileAssetPublishingRoleArn)
DefaultStackSynthesizerProps.getFileAssetPublishingRoleArn()
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.
this
public DefaultStackSynthesizerProps.Builder fileAssetsBucketName(java.lang.String fileAssetsBucketName)
DefaultStackSynthesizerProps.getFileAssetsBucketName()
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.
this
public DefaultStackSynthesizerProps.Builder generateBootstrapVersionRule(java.lang.Boolean generateBootstrapVersionRule)
DefaultStackSynthesizerProps.getGenerateBootstrapVersionRule()
generateBootstrapVersionRule
- Whether to add a Rule to the stack template verifying the bootstrap stack version.
This generally should be left set to true
, unless you explicitly
want to be able to deploy to an unbootstrapped environment.this
public DefaultStackSynthesizerProps.Builder imageAssetPublishingExternalId(java.lang.String imageAssetPublishingExternalId)
DefaultStackSynthesizerProps.getImageAssetPublishingExternalId()
imageAssetPublishingExternalId
- External ID to use when assuming role for image asset publishing.this
public DefaultStackSynthesizerProps.Builder imageAssetPublishingRoleArn(java.lang.String imageAssetPublishingRoleArn)
DefaultStackSynthesizerProps.getImageAssetPublishingRoleArn()
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.
this
public DefaultStackSynthesizerProps.Builder imageAssetsRepositoryName(java.lang.String imageAssetsRepositoryName)
DefaultStackSynthesizerProps.getImageAssetsRepositoryName()
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.
this
public DefaultStackSynthesizerProps.Builder lookupRoleArn(java.lang.String lookupRoleArn)
DefaultStackSynthesizerProps.getLookupRoleArn()
lookupRoleArn
- The role to use to look up values from the target AWS account during synthesis.this
public DefaultStackSynthesizerProps.Builder lookupRoleExternalId(java.lang.String lookupRoleExternalId)
DefaultStackSynthesizerProps.getLookupRoleExternalId()
lookupRoleExternalId
- External ID to use when assuming lookup role.this
public DefaultStackSynthesizerProps.Builder qualifier(java.lang.String qualifier)
DefaultStackSynthesizerProps.getQualifier()
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 differnet qualifiers.this
public DefaultStackSynthesizerProps.Builder useLookupRoleForStackOperations(java.lang.Boolean useLookupRoleForStackOperations)
DefaultStackSynthesizerProps.getUseLookupRoleForStackOperations()
useLookupRoleForStackOperations
- Use the bootstrapped lookup role for (read-only) stack operations.
Use the lookup role when performing a cdk diff
. If set to false
, the
deploy role
credentials will be used to perform a cdk diff
.
Requires bootstrap stack version 8.
this
public DefaultStackSynthesizerProps build()
DefaultStackSynthesizerProps
java.lang.NullPointerException
- if any required attribute was not provided