Interface AwsCloudFormationStackProperties
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AwsCloudFormationStackProperties.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:18.346Z")
@Stability(Stable)
public interface AwsCloudFormationStackProperties
extends software.amazon.jsii.JsiiSerializable
Artifact properties for CloudFormation stacks.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.cloud_assembly_schema.*; Object assumeRoleAdditionalOptions; AwsCloudFormationStackProperties awsCloudFormationStackProperties = AwsCloudFormationStackProperties.builder() .templateFile("templateFile") // the properties below are optional .assumeRoleAdditionalOptions(Map.of( "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) .assumeRoleArn("assumeRoleArn") .assumeRoleExternalId("assumeRoleExternalId") .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") .lookupRole(BootstrapRole.builder() .arn("arn") // the properties below are optional .assumeRoleAdditionalOptions(Map.of( "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) .assumeRoleExternalId("assumeRoleExternalId") .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") .requiresBootstrapStackVersion(123) .build()) .notificationArns(List.of("notificationArns")) .parameters(Map.of( "parametersKey", "parameters")) .requiresBootstrapStackVersion(123) .stackName("stackName") .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") .tags(Map.of( "tagsKey", "tags")) .terminationProtection(false) .validateOnSynth(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAwsCloudFormationStackProperties
static final class
An implementation forAwsCloudFormationStackProperties
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Additional options to pass to STS when assuming the role.default String
The role that needs to be assumed to deploy the stack.default String
External ID to use when assuming role for cloudformation deployments.default String
SSM parameter where the bootstrap stack version number can be found.default String
The role that is passed to CloudFormation to execute the change set.default BootstrapRole
The role to use to look up values from the target AWS account.SNS Notification ARNs that should receive CloudFormation Stack Events.Values for CloudFormation stack parameters that should be passed when the stack is deployed.default Number
Version of bootstrap stack required to deploy this stack.default String
The name to use for the CloudFormation stack.default String
If the stack template has already been included in the asset manifest, its asset URL.getTags()
Values for CloudFormation stack tags that should be passed when the stack is deployed.A file relative to the assembly root which contains the CloudFormation template for this stack.default Boolean
Whether to enable termination protection for this stack.default Boolean
Whether this stack should be validated by the CLI after synthesis.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTemplateFile
A file relative to the assembly root which contains the CloudFormation template for this stack. -
getAssumeRoleAdditionalOptions
Additional options to pass to STS when assuming the role.RoleArn
should not be used. Use the dedicatedassumeRoleArn
property instead.ExternalId
should not be used. Use the dedicatedassumeRoleExternalId
instead.
Default: - No additional options.
- See Also:
-
getAssumeRoleArn
The role that needs to be assumed to deploy the stack.Default: - No role is assumed (current credentials are used)
-
getAssumeRoleExternalId
External ID to use when assuming role for cloudformation deployments.Default: - No external ID
-
getBootstrapStackVersionSsmParameter
SSM parameter where the bootstrap stack version number can be found.Only used if
requiresBootstrapStackVersion
is set.- If this value is not set, the bootstrap stack name must be known at deployment time so the stack version can be looked up from the stack outputs.
- If this value is set, the bootstrap stack can have any name because we won't need to look it up.
Default: - Bootstrap stack version number looked up
-
getCloudFormationExecutionRoleArn
The role that is passed to CloudFormation to execute the change set.Default: - No role is passed (currently assumed role/credentials are used)
-
getLookupRole
The role to use to look up values from the target AWS account.Default: - No role is assumed (current credentials are used)
-
getNotificationArns
SNS Notification ARNs that should receive CloudFormation Stack Events.Default: - No notification arns
-
getParameters
Values for CloudFormation stack parameters that should be passed when the stack is deployed.Default: - No parameters
-
getRequiresBootstrapStackVersion
Version of bootstrap stack required to deploy this stack.Default: - No bootstrap stack required
-
getStackName
The name to use for the CloudFormation stack.Default: - name derived from artifact ID
-
getStackTemplateAssetObjectUrl
If the stack template has already been included in the asset manifest, its asset URL.Default: - Not uploaded yet, upload just before deploying
-
getTags
Values for CloudFormation stack tags that should be passed when the stack is deployed.Default: - No tags
-
getTerminationProtection
Whether to enable termination protection for this stack.Default: false
-
getValidateOnSynth
Whether this stack should be validated by the CLI after synthesis.Default: - false
-
builder
-