

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CloudFormation::StackSet Tag
<a name="aws-properties-cloudformation-stackset-tag"></a>

The Tag type enables you to specify a key-value pair that can be used to store information about an CloudFormation stack.

## Syntax
<a name="aws-properties-cloudformation-stackset-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-cloudformation-stackset-tag-syntax.json"></a>

```
{
  "[Key](#cfn-cloudformation-stackset-tag-key)" : String,
  "[Value](#cfn-cloudformation-stackset-tag-value)" : String
}
```

### YAML
<a name="aws-properties-cloudformation-stackset-tag-syntax.yaml"></a>

```
  [Key](#cfn-cloudformation-stackset-tag-key): String
  [Value](#cfn-cloudformation-stackset-tag-value): String
```

## Properties
<a name="aws-properties-cloudformation-stackset-tag-properties"></a>

`Key`  <a name="cfn-cloudformation-stackset-tag-key"></a>
A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by AWS have the reserved prefix: `aws:`.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^(?!aws:.*)[a-zA-Z0-9\s\:\_\.\/\=\+\-]+$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-cloudformation-stackset-tag-value"></a>
A string that contains the value for this tag. You can specify a maximum of 256 characters for a tag value.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)