# AWS::CloudFormation::Stack The AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::CloudFormation::Stack",
    "Properties" : {
        "Capabilities" : [ String, ... ],
        "RoleARN" : String,
        "Description" : String,
        "DisableRollback" : Boolean,
        "EnableTerminationProtection" : Boolean,
        "NotificationARNs" : [ String, ... ],
        "Parameters" : Parameters,
        "StackName" : String,
        "StackPolicyBody" : Map,
        "StackPolicyURL" : String,
        "StackStatusReason" : String,
        "Tags" : [ Tag, ... ],
        "TemplateBody" : Map,
        "TemplateURL" : String,
        "TimeoutInMinutes" : Integer,
    }
}
### YAML
Type: AWS::CloudFormation::Stack
Properties:
    Capabilities: 
      - String
    RoleARN: String
    Description: String
    DisableRollback: Boolean
    EnableTerminationProtection: Boolean
    NotificationARNs: 
      - String
    Parameters: Parameters
    StackName: String
    StackPolicyBody: Map
    StackPolicyURL: String
    StackStatusReason: String
    Tags: 
      - Tag
    TemplateBody: Map
    TemplateURL: String
    TimeoutInMinutes: Integer
## Properties #### Capabilities _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### RoleARN _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Description _Required_: No _Type_: String _Minimum Length_: 1 _Maximum Length_: 1024 _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### DisableRollback _Required_: No _Type_: Boolean _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### EnableTerminationProtection _Required_: No _Type_: Boolean _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### NotificationARNs _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Parameters _Required_: No _Type_: Parameters _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### StackName _Required_: Yes _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### StackPolicyBody _Required_: No _Type_: Map _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### StackPolicyURL _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### StackStatusReason _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Tags _Required_: No _Type_: List of Tag _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### TemplateBody _Required_: No _Type_: Map _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### TemplateURL _Required_: No _Type_: String _Minimum Length_: 1 _Maximum Length_: 1024 _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### TimeoutInMinutes _Required_: No _Type_: Integer _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the StackId. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### StackId Returns the StackId value. #### StackStatus Returns the StackStatus value. #### CreationTime Returns the CreationTime value. #### RootId Returns the RootId value. #### ParentId Returns the ParentId value. #### ChangeSetId Returns the ChangeSetId value. #### Outputs Returns the Outputs value. #### LastUpdateTime Returns the LastUpdateTime value.