We recommend new projects start with resources from the AWS provider.
aws-native.cloudformation.getStack
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template.
Using getStack
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStack(args: GetStackArgs, opts?: InvokeOptions): Promise<GetStackResult>
function getStackOutput(args: GetStackOutputArgs, opts?: InvokeOptions): Output<GetStackResult>def get_stack(stack_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetStackResult
def get_stack_output(stack_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetStackResult]func LookupStack(ctx *Context, args *LookupStackArgs, opts ...InvokeOption) (*LookupStackResult, error)
func LookupStackOutput(ctx *Context, args *LookupStackOutputArgs, opts ...InvokeOption) LookupStackResultOutput> Note: This function is named LookupStack in the Go SDK.
public static class GetStack 
{
    public static Task<GetStackResult> InvokeAsync(GetStackArgs args, InvokeOptions? opts = null)
    public static Output<GetStackResult> Invoke(GetStackInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
public static Output<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:cloudformation:getStack
  arguments:
    # arguments dictionaryThe following arguments are supported:
- StackId string
- Unique identifier of the stack.
- StackId string
- Unique identifier of the stack.
- stackId String
- Unique identifier of the stack.
- stackId string
- Unique identifier of the stack.
- stack_id str
- Unique identifier of the stack.
- stackId String
- Unique identifier of the stack.
getStack Result
The following output properties are available:
- Capabilities
List<Pulumi.Aws Native. Cloud Formation. Stack Capabilities Item> 
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- ChangeSet stringId 
- The unique ID of the change set.
- CreationTime string
- The time at which the stack was created.
- Description string
- A user-defined description associated with the stack.
- DisableRollback bool
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- EnableTermination boolProtection 
- 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. 
- LastUpdate stringTime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- NotificationArns List<string>
- 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).
- Outputs
List<Pulumi.Aws Native. Cloud Formation. Outputs. Stack Output> 
- A list of output structures.
- Parameters Dictionary<string, string>
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- ParentId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- RoleArn string
- 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. 
- RootId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- StackId string
- Unique identifier of the stack.
- StackPolicy objectBody 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- StackStatus Pulumi.Aws Native. Cloud Formation. Stack Status 
- Current status of the stack.
- StackStatus stringReason 
- Success/failure message associated with the stack status.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- 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.
- TemplateBody object
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- TimeoutIn intMinutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
- Capabilities
[]StackCapabilities Item 
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- ChangeSet stringId 
- The unique ID of the change set.
- CreationTime string
- The time at which the stack was created.
- Description string
- A user-defined description associated with the stack.
- DisableRollback bool
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- EnableTermination boolProtection 
- 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. 
- LastUpdate stringTime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- NotificationArns []string
- 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).
- Outputs
[]StackOutput Type 
- A list of output structures.
- Parameters map[string]string
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- ParentId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- RoleArn string
- 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. 
- RootId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- StackId string
- Unique identifier of the stack.
- StackPolicy interface{}Body 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- StackStatus StackStatus 
- Current status of the stack.
- StackStatus stringReason 
- Success/failure message associated with the stack status.
- Tag
- 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.
- TemplateBody interface{}
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- TimeoutIn intMinutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
- capabilities
List<StackCapabilities Item> 
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- changeSet StringId 
- The unique ID of the change set.
- creationTime String
- The time at which the stack was created.
- description String
- A user-defined description associated with the stack.
- disableRollback Boolean
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- enableTermination BooleanProtection 
- 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. 
- lastUpdate StringTime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- notificationArns List<String>
- 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).
- outputs
List<StackOutput> 
- A list of output structures.
- parameters Map<String,String>
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- parentId String
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- roleArn String
- 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. 
- rootId String
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- stackId String
- Unique identifier of the stack.
- stackPolicy ObjectBody 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- stackStatus StackStatus 
- Current status of the stack.
- stackStatus StringReason 
- Success/failure message associated with the stack status.
- List<Tag>
- 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.
- templateBody Object
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- timeoutIn IntegerMinutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
- capabilities
StackCapabilities Item[] 
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- changeSet stringId 
- The unique ID of the change set.
- creationTime string
- The time at which the stack was created.
- description string
- A user-defined description associated with the stack.
- disableRollback boolean
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- enableTermination booleanProtection 
- 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. 
- lastUpdate stringTime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- notificationArns string[]
- 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).
- outputs
StackOutput[] 
- A list of output structures.
- parameters {[key: string]: string}
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- parentId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- roleArn string
- 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. 
- rootId string
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- stackId string
- Unique identifier of the stack.
- stackPolicy anyBody 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- stackStatus StackStatus 
- Current status of the stack.
- stackStatus stringReason 
- Success/failure message associated with the stack status.
- Tag[]
- 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.
- templateBody any
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- timeoutIn numberMinutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
- capabilities
Sequence[StackCapabilities Item] 
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- change_set_ strid 
- The unique ID of the change set.
- creation_time str
- The time at which the stack was created.
- description str
- A user-defined description associated with the stack.
- disable_rollback bool
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- enable_termination_ boolprotection 
- 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. 
- last_update_ strtime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- notification_arns Sequence[str]
- 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).
- outputs
Sequence[StackOutput] 
- A list of output structures.
- parameters Mapping[str, str]
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- parent_id str
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- role_arn str
- 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. 
- root_id str
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- stack_id str
- Unique identifier of the stack.
- stack_policy_ Anybody 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- stack_status StackStatus 
- Current status of the stack.
- stack_status_ strreason 
- Success/failure message associated with the stack status.
- Sequence[root_Tag]
- 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.
- template_body Any
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- timeout_in_ intminutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
- capabilities List<"CAPABILITY_IAM" | "CAPABILITY_NAMED_IAM" | "CAPABILITY_AUTO_EXPAND">
- In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack. - CAPABILITY_IAMand- CAPABILITY_NAMED_IAM
 - Some stack templates might include resources that can affect permissions in your AWS account ; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. - The following IAM resources require you to specify either the - CAPABILITY_IAMor- CAPABILITY_NAMED_IAMcapability.- If you have IAM resources, you can specify either capability.
- If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
- If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilitieserror.
 - If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. - AWS::IAM::AccessKey
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Policy
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::UserToGroupAddition
 - For more information, see Acknowledging IAM resources in CloudFormation templates in the AWS CloudFormation User Guide . - CAPABILITY_AUTO_EXPAND
 - Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation . - If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability. - You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. - Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. - For more information, see Perform custom processing on CloudFormation templates with template macros in the AWS CloudFormation User Guide . 
- changeSet StringId 
- The unique ID of the change set.
- creationTime String
- The time at which the stack was created.
- description String
- A user-defined description associated with the stack.
- disableRollback Boolean
- Set to - trueto disable rollback of the stack if stack creation failed. You can specify either- DisableRollbackor- OnFailure, but not both.- Default: - false
- enableTermination BooleanProtection 
- 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. 
- lastUpdate StringTime 
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- notificationArns List<String>
- 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).
- outputs List<Property Map>
- A list of output structures.
- parameters Map<String>
- 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. - If you use the - Reffunction to pass a parameter value to a nested stack, comma-delimited list parameters must be of type- String. In other words, you can't pass values that are of type- CommaDelimitedListto nested stacks.- Required if the nested stack requires input parameters. - Whether an update causes interruptions depends on the resources that are being updated. An update never causes a nested stack to be replaced. 
- parentId String
- For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- roleArn String
- 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. 
- rootId String
- For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs. - For more information, see Embed stacks within other stacks using nested stacks in the AWS CloudFormation User Guide . 
- stackId String
- Unique identifier of the stack.
- stackPolicy AnyBody 
- 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 - StackPolicyBodyor the- StackPolicyURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- stackStatus "CREATE_IN_PROGRESS" | "CREATE_FAILED" | "CREATE_COMPLETE" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_FAILED" | "ROLLBACK_COMPLETE" | "DELETE_IN_PROGRESS" | "DELETE_FAILED" | "DELETE_COMPLETE" | "UPDATE_IN_PROGRESS" | "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS" | "UPDATE_COMPLETE" | "UPDATE_FAILED" | "UPDATE_ROLLBACK_IN_PROGRESS" | "UPDATE_ROLLBACK_FAILED" | "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS" | "UPDATE_ROLLBACK_COMPLETE" | "REVIEW_IN_PROGRESS" | "IMPORT_IN_PROGRESS" | "IMPORT_COMPLETE" | "IMPORT_ROLLBACK_IN_PROGRESS" | "IMPORT_ROLLBACK_FAILED" | "IMPORT_ROLLBACK_COMPLETE"
- Current status of the stack.
- stackStatus StringReason 
- Success/failure message associated with the stack status.
- List<Property Map>
- 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.
- templateBody Any
- 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 - TemplateBodyor the- TemplateURLparameter, but not both.- Search the CloudFormation User Guide for - AWS::CloudFormation::Stackfor more information about the expected schema for this property.
- timeoutIn NumberMinutes 
- The length of time, in minutes, that CloudFormation waits for the nested stack to reach the - CREATE_COMPLETEstate. The default is no timeout. When CloudFormation detects that the nested stack has reached the- CREATE_COMPLETEstate, it marks the nested stack resource as- CREATE_COMPLETEin 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. 
Supporting Types
StackCapabilitiesItem  
StackOutput 
- Description string
- User defined description associated with the output.
- ExportName string
- The name of the export associated with the output.
- OutputKey string
- The key associated with the output.
- OutputValue string
- The value associated with the output.
- Description string
- User defined description associated with the output.
- ExportName string
- The name of the export associated with the output.
- OutputKey string
- The key associated with the output.
- OutputValue string
- The value associated with the output.
- description String
- User defined description associated with the output.
- exportName String
- The name of the export associated with the output.
- outputKey String
- The key associated with the output.
- outputValue String
- The value associated with the output.
- description string
- User defined description associated with the output.
- exportName string
- The name of the export associated with the output.
- outputKey string
- The key associated with the output.
- outputValue string
- The value associated with the output.
- description str
- User defined description associated with the output.
- export_name str
- The name of the export associated with the output.
- output_key str
- The key associated with the output.
- output_value str
- The value associated with the output.
- description String
- User defined description associated with the output.
- exportName String
- The name of the export associated with the output.
- outputKey String
- The key associated with the output.
- outputValue String
- The value associated with the output.
StackStatus 
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.