Interface DefaultStackSynthesizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DefaultStackSynthesizerProps.Jsii$Proxy
Example:
App app;
Stage prodStage = Stage.Builder.create(app, "ProdStage")
.permissionsBoundary(PermissionsBoundary.fromName("cdk-${Qualifier}-PermissionsBoundary-${AWS::AccountId}-${AWS::Region}"))
.build();
Stack.Builder.create(prodStage, "ProdStack")
.synthesizer(DefaultStackSynthesizer.Builder.create()
.qualifier("custom")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDefaultStackSynthesizerPropsstatic final classAn implementation forDefaultStackSynthesizerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringBootstrap stack version SSM parameter.default StringbucketPrefix to use while storing S3 Assets.default StringThe role CloudFormation will assume when deploying the Stack.Additional options to pass to STS when assuming the deploy role.default StringThe role to assume to initiate a deployment in this environment.default StringExternal ID to use when assuming role for cloudformation deployments.default StringA prefix to use while tagging and uploading Docker images to ECR.default StringExternal ID to use when assuming role for file asset publishing.Additional options to pass to STS when assuming the file asset publishing.default StringThe role to use to publish file assets to the S3 bucket in this environment.default StringName of the S3 bucket to hold file assets.default BooleanWhether to add a Rule to the stack template verifying the bootstrap stack version.default StringExternal ID to use when assuming role for image asset publishing.Additional options to pass to STS when assuming the image asset publishing.default StringThe role to use to publish image assets to the ECR repository in this environment.default StringName of the ECR repository to hold Docker Image assets.Additional options to pass to STS when assuming the lookup role.default StringThe role to use to look up values from the target AWS account during synthesis.default StringExternal ID to use when assuming lookup role.default StringQualifier to disambiguate multiple environments in the same account.default BooleanUse the bootstrapped lookup role for (read-only) stack operations.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBootstrapStackVersionSsmParameter
Bootstrap stack version SSM parameter.The placeholder
${Qualifier}will be replaced with the value of qualifier.Default: DefaultStackSynthesizer.DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER
-
getBucketPrefix
bucketPrefix to use while storing S3 Assets.Default: - DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PREFIX
-
getCloudFormationExecutionRole
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.Default: DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN
-
getDeployRoleAdditionalOptions
Additional options to pass to STS when assuming the deploy role.RoleArnshould not be used. Use the dedicateddeployRoleArnproperty instead.ExternalIdshould not be used. Use the dedicateddeployRoleExternalIdinstead.TransitiveTagKeysdefaults to use all keys (if any) specified inTags. E.g, all tags are transitive by default.
Default: - No additional options.
- See Also:
-
getDeployRoleArn
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.Default: DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN
-
getDeployRoleExternalId
External ID to use when assuming role for cloudformation deployments.Default: - No external ID
-
getDockerTagPrefix
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.
Default: - DefaultStackSynthesizer.DEFAULT_DOCKER_ASSET_PREFIX
-
getFileAssetPublishingExternalId
External ID to use when assuming role for file asset publishing.Default: - No external ID
-
getFileAssetPublishingRoleAdditionalOptions
@Stability(Stable) @Nullable default Map<String,Object> getFileAssetPublishingRoleAdditionalOptions()Additional options to pass to STS when assuming the file asset publishing.RoleArnshould not be used. Use the dedicatedfileAssetPublishingRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedfileAssetPublishingExternalIdinstead.TransitiveTagKeysdefaults to use all keys (if any) specified inTags. E.g, all tags are transitive by default.
Default: - No additional options.
- See Also:
-
getFileAssetPublishingRoleArn
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.Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN
-
getFileAssetsBucketName
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.Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME
-
getGenerateBootstrapVersionRule
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.Default: true
-
getImageAssetPublishingExternalId
External ID to use when assuming role for image asset publishing.Default: - No external ID
-
getImageAssetPublishingRoleAdditionalOptions
@Stability(Stable) @Nullable default Map<String,Object> getImageAssetPublishingRoleAdditionalOptions()Additional options to pass to STS when assuming the image asset publishing.RoleArnshould not be used. Use the dedicatedimageAssetPublishingRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedimageAssetPublishingExternalIdinstead.TransitiveTagKeysdefaults to use all keys (if any) specified inTags. E.g, all tags are transitive by default.
Default: - No additional options.
- See Also:
-
getImageAssetPublishingRoleArn
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.Default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN
-
getImageAssetsRepositoryName
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.Default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME
-
getLookupRoleAdditionalOptions
Additional options to pass to STS when assuming the lookup role.RoleArnshould not be used. Use the dedicatedlookupRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedlookupRoleExternalIdinstead.TransitiveTagKeysdefaults to use all keys (if any) specified inTags. E.g, all tags are transitive by default.
Default: - No additional options.
- See Also:
-
getLookupRoleArn
The role to use to look up values from the target AWS account during synthesis.Default: - None
-
getLookupRoleExternalId
External ID to use when assuming lookup role.Default: - No external ID
-
getQualifier
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.
Default: - Value of context key '@aws-cdk/core:bootstrapQualifier' if set, otherwise `DefaultStackSynthesizer.DEFAULT_QUALIFIER`
-
getUseLookupRoleForStackOperations
Use the bootstrapped lookup role for (read-only) stack operations.Use the lookup role when performing a
cdk diff. If set tofalse, thedeploy rolecredentials will be used to perform acdk diff.Requires bootstrap stack version 8.
Default: true
-
builder
-