CmdID

CmdID / aws / aws servicediscovery

aws servicediscovery tag-resource

Adds one or more tags to the specified resource. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To associate tags with the specified resource

The following tag-resource example associates a Department tag with the value Engineering with the specified namespace.

aws servicediscovery tag-resource --resource-arn arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-e4anhexample0004 --tags Key=Department,Value=EngineeringIdentify
--resource-arnThe Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
--tagsThe tags to add to the specified resource.

This command produces no output.

For more information, see Tagging your AWS Cloud Map resources in the AWS Cloud Map Developer Guide.

Options

2 in the AWS CLI reference
--resource-arnThe Amazon Resource Name (ARN) of the resource that you want to retrieve tags for.
--tagsThe tags to add to the specified resource.