CmdID

CmdID / aws / aws accessanalyzer

aws accessanalyzer tag-resource

Adds a tag 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 add a tag to the specified resource

The following tag-resource example adds a tag to the specified resource in your AWS account.

aws accessanalyzer tag-resource --resource-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account --tags Environment=dev,Purpose=testingIdentify
--resource-arnThe ARN of the resource to add the tag to.
--tagsThe tags to add to the resource.

This command produces no output.

For more information, see Using AWS Identity and Access Management Access Analyzer in the AWS IAM User Guide.

Options

2 in the AWS CLI reference
--resource-arnThe ARN of the resource to add the tag to.
--tagsThe tags to add to the resource.