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
Examples
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
--resource-arnThe ARN of the resource to retrieve tags from.