

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::EC2::FcaPolicy CidrMapping
<a name="aws-properties-ec2-fcapolicy-cidrmapping"></a>

Maps a single CIDR range to a label for cost reporting.

## Syntax
<a name="aws-properties-ec2-fcapolicy-cidrmapping-syntax"></a>

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

### JSON
<a name="aws-properties-ec2-fcapolicy-cidrmapping-syntax.json"></a>

```
{
  "[CidrLabel](#cfn-ec2-fcapolicy-cidrmapping-cidrlabel)" : {{String}},
  "[CidrRange](#cfn-ec2-fcapolicy-cidrmapping-cidrrange)" : {{String}}
}
```

### YAML
<a name="aws-properties-ec2-fcapolicy-cidrmapping-syntax.yaml"></a>

```
  [CidrLabel](#cfn-ec2-fcapolicy-cidrmapping-cidrlabel): {{String}}
  [CidrRange](#cfn-ec2-fcapolicy-cidrmapping-cidrrange): {{String}}
```

## Properties
<a name="aws-properties-ec2-fcapolicy-cidrmapping-properties"></a>

`CidrLabel`  <a name="cfn-ec2-fcapolicy-cidrmapping-cidrlabel"></a>
The label for the CIDR range.  
The label can be up to 64 characters long. It can contain letters, numbers, hyphens (`-`), and underscores (`_`), and must start with a letter or a number.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9][a-zA-Z0-9_\-]{0,63}$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CidrRange`  <a name="cfn-ec2-fcapolicy-cidrmapping-cidrrange"></a>
The CIDR range.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `43`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)