CmdID / aws / aws directconnect
aws directconnect tag-resource
Adds the specified tags to the specified Direct Connect resource. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To add a tag to an AWS Direct Connect resource
The following tag-resource example adds a tag with a key of Name and a value of VAConnection to the connection dxcon-abcabc12.
aws directconnect tag-resource --resource-arn arn:aws:directconnect:us-west-2:123456789012:dxcon/dxcon-abcabc12 --tags "key=Name,value=VAConnection"Identify--resource-arnThe Amazon Resource Name (ARN) of the resource.--tagsThe tags to add.This command produces no output.
For more information, see Tag AWS Direct Connect resources in the AWS Direct Connect User Guide.
Options
--resource-arnThe Amazon Resource Name (ARN) of the resource.--tagsThe tags to add.