CmdID / aws / aws networkmonitor
aws networkmonitor tag-resource
Adds key-value pairs to a monitor or probe. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To tag a resource
The following tag-resource example tags a monitor named Example_NetworkMonitor with Environment=Dev and Application=PetStore tags.
aws networkmonitor tag-resource --resource-arn arn:aws:networkmonitor:region:123456789012:monitor/Example_NetworkMonitor --tags Environment=Dev,Application=PetStoreIdentify--resource-arnThe ARN of the monitor or probe to tag.--tagsThe list of key-value pairs assigned to the monitor or probe.This command produces no output.
For more information, see How Amazon CloudWatch Network Monitor Works in the Amazon CloudWatch User Guide.
Options
--resource-arnThe ARN of the monitor or probe to tag.--tagsThe list of key-value pairs assigned to the monitor or probe.