# AWS::CloudFormation::StackSet AutoDeployment ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Enabled" : Boolean, "RetainStacksOnAccountRemoval" : Boolean }### YAML
Enabled: Boolean RetainStacksOnAccountRemoval: Boolean## Properties #### Enabled If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions. _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) #### RetainStacksOnAccountRemoval If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True. _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)