CmdID / aws / aws cloudfront
aws cloudfront list-tags-for-resource
List tags for a CloudFront resource. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To list tags for a CloudFront distribution
The following list-tags-for-resource example gets a list of the tags for a CloudFront distribution.
aws cloudfront list-tags-for-resource --resource arn:aws:cloudfront::123456789012:distribution/EDFDVBD6EXAMPLEIdentify--resourceAn ARN of a CloudFront resource.Its output
{
"Tags": {
"Items": [
{
"Key": "DateCreated",
"Value": "2019-12-04"
},
{
"Key": "Name",
"Value": "Example name"
},
{
"Key": "Project",
"Value": "Example project"
}
]
}
}For more information, see Tag a CloudFront resource in the Amazon CloudFront Developer Guide.
Options
--resourceAn ARN of a CloudFront resource.