public static final class DefaultStackSynthesizer.Builder
extends java.lang.Object
DefaultStackSynthesizer
.Modifier and Type | Method and Description |
---|---|
DefaultStackSynthesizer.Builder |
bootstrapStackVersionSsmParameter(java.lang.String bootstrapStackVersionSsmParameter)
Bootstrap stack version SSM parameter.
|
DefaultStackSynthesizer.Builder |
bucketPrefix(java.lang.String bucketPrefix)
bucketPrefix to use while storing S3 Assets.
|
DefaultStackSynthesizer |
build() |
DefaultStackSynthesizer.Builder |
cloudFormationExecutionRole(java.lang.String cloudFormationExecutionRole)
The role CloudFormation will assume when deploying the Stack.
|
static DefaultStackSynthesizer.Builder |
create() |
DefaultStackSynthesizer.Builder |
deployRoleArn(java.lang.String deployRoleArn)
The role to assume to initiate a deployment in this environment.
|
DefaultStackSynthesizer.Builder |
deployRoleExternalId(java.lang.String deployRoleExternalId)
External ID to use when assuming role for cloudformation deployments.
|
DefaultStackSynthesizer.Builder |
dockerTagPrefix(java.lang.String dockerTagPrefix)
A prefix to use while tagging and uploading Docker images to ECR.
|
DefaultStackSynthesizer.Builder |
fileAssetKeyArnExportName(java.lang.String fileAssetKeyArnExportName)
Deprecated.
This property is not used anymore
|
DefaultStackSynthesizer.Builder |
fileAssetPublishingExternalId(java.lang.String fileAssetPublishingExternalId)
External ID to use when assuming role for file asset publishing.
|
DefaultStackSynthesizer.Builder |
fileAssetPublishingRoleArn(java.lang.String fileAssetPublishingRoleArn)
The role to use to publish file assets to the S3 bucket in this environment.
|
DefaultStackSynthesizer.Builder |
fileAssetsBucketName(java.lang.String fileAssetsBucketName)
Name of the S3 bucket to hold file assets.
|
DefaultStackSynthesizer.Builder |
generateBootstrapVersionRule(java.lang.Boolean generateBootstrapVersionRule)
Whether to add a Rule to the stack template verifying the bootstrap stack version.
|
DefaultStackSynthesizer.Builder |
imageAssetPublishingExternalId(java.lang.String imageAssetPublishingExternalId)
External ID to use when assuming role for image asset publishing.
|
DefaultStackSynthesizer.Builder |
imageAssetPublishingRoleArn(java.lang.String imageAssetPublishingRoleArn)
The role to use to publish image assets to the ECR repository in this environment.
|
DefaultStackSynthesizer.Builder |
imageAssetsRepositoryName(java.lang.String imageAssetsRepositoryName)
Name of the ECR repository to hold Docker Image assets.
|
DefaultStackSynthesizer.Builder |
lookupRoleArn(java.lang.String lookupRoleArn)
The role to use to look up values from the target AWS account during synthesis.
|
DefaultStackSynthesizer.Builder |
lookupRoleExternalId(java.lang.String lookupRoleExternalId)
External ID to use when assuming lookup role.
|
DefaultStackSynthesizer.Builder |
qualifier(java.lang.String qualifier)
Qualifier to disambiguate multiple environments in the same account.
|
DefaultStackSynthesizer.Builder |
useLookupRoleForStackOperations(java.lang.Boolean useLookupRoleForStackOperations)
Use the bootstrapped lookup role for (read-only) stack operations.
|
public static DefaultStackSynthesizer.Builder create()
DefaultStackSynthesizer.Builder
.public DefaultStackSynthesizer.Builder bootstrapStackVersionSsmParameter(java.lang.String bootstrapStackVersionSsmParameter)
The placeholder ${Qualifier}
will be replaced with the value of qualifier.
Default: DefaultStackSynthesizer.DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER
bootstrapStackVersionSsmParameter
- Bootstrap stack version SSM parameter. This parameter is required.this
public DefaultStackSynthesizer.Builder bucketPrefix(java.lang.String bucketPrefix)
Default: - DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PREFIX
bucketPrefix
- bucketPrefix to use while storing S3 Assets. This parameter is required.this
public DefaultStackSynthesizer.Builder cloudFormationExecutionRole(java.lang.String cloudFormationExecutionRole)
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.
Default: DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN
cloudFormationExecutionRole
- The role CloudFormation will assume when deploying the Stack. This parameter is required.this
public DefaultStackSynthesizer.Builder deployRoleArn(java.lang.String deployRoleArn)
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.
Default: DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN
deployRoleArn
- The role to assume to initiate a deployment in this environment. This parameter is required.this
public DefaultStackSynthesizer.Builder deployRoleExternalId(java.lang.String deployRoleExternalId)
Default: - No external ID
deployRoleExternalId
- External ID to use when assuming role for cloudformation deployments. This parameter is required.this
public DefaultStackSynthesizer.Builder dockerTagPrefix(java.lang.String dockerTagPrefix)
This does not add any separators - the source hash will be appended to this string directly.
Default: - DefaultStackSynthesizer.DEFAULT_DOCKER_ASSET_PREFIX
dockerTagPrefix
- A prefix to use while tagging and uploading Docker images to ECR. This parameter is required.this
@Deprecated public DefaultStackSynthesizer.Builder fileAssetKeyArnExportName(java.lang.String fileAssetKeyArnExportName)
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.
Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME
fileAssetKeyArnExportName
- Name of the CloudFormation Export with the asset key name. This parameter is required.this
public DefaultStackSynthesizer.Builder fileAssetPublishingExternalId(java.lang.String fileAssetPublishingExternalId)
Default: - No external ID
fileAssetPublishingExternalId
- External ID to use when assuming role for file asset publishing. This parameter is required.this
public DefaultStackSynthesizer.Builder fileAssetPublishingRoleArn(java.lang.String fileAssetPublishingRoleArn)
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.
Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN
fileAssetPublishingRoleArn
- The role to use to publish file assets to the S3 bucket in this environment. This parameter is required.this
public DefaultStackSynthesizer.Builder fileAssetsBucketName(java.lang.String fileAssetsBucketName)
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.
Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME
fileAssetsBucketName
- Name of the S3 bucket to hold file assets. This parameter is required.this
public DefaultStackSynthesizer.Builder generateBootstrapVersionRule(java.lang.Boolean generateBootstrapVersionRule)
This generally should be left set to true
, unless you explicitly
want to be able to deploy to an unbootstrapped environment.
Default: true
generateBootstrapVersionRule
- Whether to add a Rule to the stack template verifying the bootstrap stack version. This parameter is required.this
public DefaultStackSynthesizer.Builder imageAssetPublishingExternalId(java.lang.String imageAssetPublishingExternalId)
Default: - No external ID
imageAssetPublishingExternalId
- External ID to use when assuming role for image asset publishing. This parameter is required.this
public DefaultStackSynthesizer.Builder imageAssetPublishingRoleArn(java.lang.String imageAssetPublishingRoleArn)
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.
Default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN
imageAssetPublishingRoleArn
- The role to use to publish image assets to the ECR repository in this environment. This parameter is required.this
public DefaultStackSynthesizer.Builder imageAssetsRepositoryName(java.lang.String imageAssetsRepositoryName)
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.
Default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME
imageAssetsRepositoryName
- Name of the ECR repository to hold Docker Image assets. This parameter is required.this
public DefaultStackSynthesizer.Builder lookupRoleArn(java.lang.String lookupRoleArn)
Default: - None
lookupRoleArn
- The role to use to look up values from the target AWS account during synthesis. This parameter is required.this
public DefaultStackSynthesizer.Builder lookupRoleExternalId(java.lang.String lookupRoleExternalId)
Default: - No external ID
lookupRoleExternalId
- External ID to use when assuming lookup role. This parameter is required.this
public DefaultStackSynthesizer.Builder qualifier(java.lang.String qualifier)
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.
Default: - Value of context key '
qualifier
- Qualifier to disambiguate multiple environments in the same account. This parameter is required.this
public DefaultStackSynthesizer.Builder useLookupRoleForStackOperations(java.lang.Boolean useLookupRoleForStackOperations)
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.
Default: true
useLookupRoleForStackOperations
- Use the bootstrapped lookup role for (read-only) stack operations. This parameter is required.this
public DefaultStackSynthesizer build()