CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

1 in the AWS CLI reference
--resourceAn ARN of a CloudFront resource.