StackArgs

data class StackArgs(val capabilities: Output<List<StackCapabilitiesItem>>? = null, val description: Output<String>? = null, val disableRollback: Output<Boolean>? = null, val enableTerminationProtection: Output<Boolean>? = null, val notificationArns: Output<List<String>>? = null, val parameters: Output<Map<String, String>>? = null, val roleArn: Output<String>? = null, val stackName: Output<String>? = null, val stackPolicyBody: Output<Any>? = null, val stackPolicyUrl: Output<String>? = null, val stackStatusReason: Output<String>? = null, val tags: Output<List<TagArgs>>? = null, val templateBody: Output<Any>? = null, val templateUrl: Output<String>? = null, val timeoutInMinutes: Output<Int>? = null) : ConvertibleToJava<StackArgs>

The AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template.

Constructors

Link copied to clipboard
constructor(capabilities: Output<List<StackCapabilitiesItem>>? = null, description: Output<String>? = null, disableRollback: Output<Boolean>? = null, enableTerminationProtection: Output<Boolean>? = null, notificationArns: Output<List<String>>? = null, parameters: Output<Map<String, String>>? = null, roleArn: Output<String>? = null, stackName: Output<String>? = null, stackPolicyBody: Output<Any>? = null, stackPolicyUrl: Output<String>? = null, stackStatusReason: Output<String>? = null, tags: Output<List<TagArgs>>? = null, templateBody: Output<Any>? = null, templateUrl: Output<String>? = null, timeoutInMinutes: Output<Int>? = null)

Properties

Link copied to clipboard

In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.

Link copied to clipboard
val description: Output<String>? = null

A user-defined description associated with the stack.

Link copied to clipboard
val disableRollback: Output<Boolean>? = null

Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure , but not both. Default: false

Link copied to clipboard

Whether to enable termination protection on the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect CloudFormation stacks from being deleted in the AWS CloudFormation User Guide . Termination protection is deactivated on stacks by default. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.

Link copied to clipboard
val notificationArns: Output<List<String>>? = null

The Amazon SNS topic ARNs to publish stack related events. You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line Interface (CLI).

Link copied to clipboard
val parameters: Output<Map<String, String>>? = null

The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created. Each parameter has a name corresponding to a parameter defined in the embedded template and a value representing the value that you want to set for the parameter.

Link copied to clipboard
val roleArn: Output<String>? = null

The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to create the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.

Link copied to clipboard
val stackName: Output<String>? = null

The name that's associated with the stack. The name must be unique in the Region in which you are creating the stack.

Link copied to clipboard
val stackPolicyBody: Output<Any>? = null

Structure containing the stack policy body. For more information, go to Prevent updates to stack resources in the AWS CloudFormation User Guide . You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. Search the CloudFormation User Guide for AWS::CloudFormation::Stack for more information about the expected schema for this property.

Link copied to clipboard
val stackPolicyUrl: Output<String>? = null

Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

Link copied to clipboard
val stackStatusReason: Output<String>? = null

Success/failure message associated with the stack status.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

Key-value pairs to associate with this stack. CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 50 tags can be specified.

Link copied to clipboard
val templateBody: Output<Any>? = null

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both. Search the CloudFormation User Guide for AWS::CloudFormation::Stack for more information about the expected schema for this property.

Link copied to clipboard
val templateUrl: Output<String>? = null

The URL of a file containing the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket. The location for an Amazon S3 bucket must start with https:// . Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced.

Link copied to clipboard
val timeoutInMinutes: Output<Int>? = null

The length of time, in minutes, that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state. The default is no timeout. When CloudFormation detects that the nested stack has reached the CREATE_COMPLETE state, it marks the nested stack resource as CREATE_COMPLETE in the parent stack and resumes creating the parent stack. If the timeout period expires before the nested stack reaches CREATE_COMPLETE , CloudFormation marks the nested stack as failed and rolls back both the nested stack and parent stack. Updates aren't supported.

Functions

Link copied to clipboard
open override fun toJava(): StackArgs