CmdID / aws / aws cloudfront
aws cloudfront untag-resource
Remove tags from a CloudFront resource. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To remove tags from a CloudFront distribution
The following untag-resource example removes two tags from a CloudFront distribution by using command line arguments.
aws cloudfront untag-resource --resource arn:aws:cloudfront::123456789012:distribution/EDFDVBD6EXAMPLE --tag-keys Items=Name,ProjectIdentify--resourceAn ARN of a CloudFront resource.--tag-keysA complex type that contains zero or more Tag key elements.This command produces no output.
Instead of using command line arguments, you can provide the tag keys in a JSON file, as shown in the following example.
aws cloudfront untag-resource --resource arn:aws:cloudfront::123456789012:distribution/EDFDVBD6EXAMPLE --tag-keys file://tag-keys.jsonIdentify--resourceAn ARN of a CloudFront resource.--tag-keysA complex type that contains zero or more Tag key elements.Contents of tag-keys.json:
{
"Items": [
"Name",
"Project"
]
}
When successful, this command has no output.
For more information, see Tag a CloudFront resource in the Amazon CloudFront Developer Guide.
Options
--resourceAn ARN of a CloudFront resource.--tag-keysA complex type that contains zero or more Tag key elements.