CmdID

CmdID / aws / aws accessanalyzer

aws accessanalyzer list-tags-for-resource

Retrieves a list of tags applied to the specified resource. AWS CLI reference

1 example 1 option 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 retrieve a list of tags applied to the specified resource

The following list-tags-for-resource example retrieves a list of tags applied to the specified resource in your AWS account.

aws accessanalyzer list-tags-for-resource --resource-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-accountIdentify
--resource-arnThe ARN of the resource to retrieve tags from.
Its output
{
    "tags": {
        "Zone-of-trust": "Account",
        "Name": "ConsoleAnalyzer"
    }
}

For more information, see IAM Access Analyzer policy generation in the AWS IAM User Guide.

Options

1 in the AWS CLI reference
--resource-arnThe ARN of the resource to retrieve tags from.