

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

# AWS::CE::AnomalyMonitor ResourceTag
<a name="aws-properties-ce-anomalymonitor-resourcetag"></a>

The tag structure that contains a tag key and value. 

**Note**  
Tagging is supported only for the following Cost Explorer resource types: [https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html](https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html), [https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_AnomalySubscription.html](https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_AnomalySubscription.html), [https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_CostCategory.html](https://docs.amazonaws.cn/aws-cost-management/latest/APIReference/API_CostCategory.html).

## Syntax
<a name="aws-properties-ce-anomalymonitor-resourcetag-syntax"></a>

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

### JSON
<a name="aws-properties-ce-anomalymonitor-resourcetag-syntax.json"></a>

```
{
  "[Key](#cfn-ce-anomalymonitor-resourcetag-key)" : String,
  "[Value](#cfn-ce-anomalymonitor-resourcetag-value)" : String
}
```

### YAML
<a name="aws-properties-ce-anomalymonitor-resourcetag-syntax.yaml"></a>

```
  [Key](#cfn-ce-anomalymonitor-resourcetag-key): String
  [Value](#cfn-ce-anomalymonitor-resourcetag-value): String
```

## Properties
<a name="aws-properties-ce-anomalymonitor-resourcetag-properties"></a>

`Key`  <a name="cfn-ce-anomalymonitor-resourcetag-key"></a>
The key that's associated with the tag.   
*Required*: Yes  
*Type*: String  
*Pattern*: `^(?!aws:).*$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Value`  <a name="cfn-ce-anomalymonitor-resourcetag-value"></a>
The value that's associated with the tag.   
*Required*: Yes  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `256`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)