# AWS::CloudFormation::StackSet StackSet as a resource provides one-click experience for provisioning a StackSet and StackInstances ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::CloudFormation::StackSet", "Properties" : { "StackSetName" : String, "AdministrationRoleARN" : String, "AutoDeployment" : AutoDeployment, "Capabilities" : [ String, ... ], "Description" : String, "ExecutionRoleName" : String, "OperationPreferences" : OperationPreferences, "StackInstancesGroup" : [ StackInstances, ... ], "Parameters" : [ Parameter, ... ], "PermissionModel" : String, "Tags" : [ Tag, ... ], "TemplateBody" : String, "TemplateURL" : String, "CallAs" : String, "ManagedExecution" : ManagedExecution } }### YAML
Type: AWS::CloudFormation::StackSet Properties: StackSetName: String AdministrationRoleARN: String AutoDeployment: AutoDeployment Capabilities: - String Description: String ExecutionRoleName: String OperationPreferences: OperationPreferences StackInstancesGroup: - StackInstances Parameters: - Parameter PermissionModel: String Tags: - Tag TemplateBody: String TemplateURL: String CallAs: String ManagedExecution: ManagedExecution## Properties #### StackSetName The name to associate with the stack set. The name must be unique in the Region where you create your stack set. _Required_: Yes _Type_: String _Maximum Length_:
128
_Pattern_: ^[a-zA-Z][a-zA-Z0-9\-]{0,127}$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### AdministrationRoleARN
The Amazon Resource Number (ARN) of the IAM role to use to create this stack set. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account.
_Required_: No
_Type_: String
_Minimum Length_: 20
_Maximum Length_: 2048
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### AutoDeployment
_Required_: No
_Type_: AutoDeployment
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Capabilities
In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for AWS CloudFormation to create the stack set and related stack instances.
_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)
#### Description
A description of the stack set. You can use the description to identify the stack set's purpose or other important information.
_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)
#### ExecutionRoleName
The name of the IAM execution role to use to create the stack set. If you do not specify an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the stack set operation.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 64
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### OperationPreferences
The user-specified preferences for how AWS CloudFormation performs a stack set operation.
_Required_: No
_Type_: OperationPreferences
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### StackInstancesGroup
A group of stack instances with parameters in some specific accounts and regions.
_Required_: No
_Type_: List of StackInstances
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Parameters
The input parameters for the stack set template.
_Required_: No
_Type_: List of Parameter
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### PermissionModel
Describes how the IAM roles required for stack set operations are created. By default, SELF-MANAGED is specified.
_Required_: Yes
_Type_: String
_Allowed Values_: SERVICE_MANAGED
| SELF_MANAGED
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Tags
The key-value pairs to associate with this stack set and the stacks created from it. AWS CloudFormation also propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags can be specified.
_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
The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 51200
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### TemplateURL
Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket.
_Required_: No
_Type_: String
_Minimum Length_: 1
_Maximum Length_: 5120
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### CallAs
Specifies the AWS account that you are acting from. By default, SELF is specified. For self-managed permissions, specify SELF; for service-managed permissions, if you are signed in to the organization's management account, specify SELF. If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
_Required_: No
_Type_: String
_Allowed Values_: SELF
| DELEGATED_ADMIN
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### ManagedExecution
Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.
_Required_: No
_Type_: ManagedExecution
_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 StackSetId.
### 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).
#### StackSetId
The ID of the stack set that you're creating.