AWS::EC2::VPC Tag - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::EC2::VPC Tag

Specifies a tag. For more information, see Resource tags.

Syntax

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

JSON

{ "Key" : String, "Value" : String }

YAML

Key: String Value: String

Properties

Key

The tag key.

Required: Yes

Type: String

Update requires: No interruption

Value

The tag value.

Required: Yes

Type: String

Update requires: No interruption

Examples

This example specifies two tags for the VPC.

JSON

"Tags" : [ { "Key" : "key1", "Value" : "value1" }, { "Key" : "key2", "Value" : "value2" } ]

YAML

Tags: - Key: "key1" Value: "value1" - Key: "key2" Value: "value2"