Menu
Amazon CloudFront
API Reference (API Version 2016-11-25)

UntagResource

Remove tags from a CloudFront resource.

Request Syntax

POST /2016-11-25/tagging?Operation=Untag?Resource=Resource HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<UntagResourceRequest>
   <TagKeys>
      <Items>
         <Key>string</Key></Items>
   </TagKeys>
</UntagResourceRequest>

URI Request Parameters

The request requires the following URI parameters.

Resource

An ARN of a CloudFront resource.

Pattern: arn:aws:cloudfront::[0-9]+:.*

Request Body

The request requires the following data in XML format.

UntagResourceRequest

Root level tag for the UntagResourceRequest parameters.

Required: Yes

TagKeys

A complex type that contains zero or more Tag key elements.

Type: TagKeys object

Required: Yes

Response Syntax

HTTP/1.1 204

Response Elements

If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDenied

Access denied.

HTTP Status Code: 403

InvalidArgument

The argument is invalid.

HTTP Status Code: 400

InvalidTagging

HTTP Status Code: 400

NoSuchResource

HTTP Status Code: 404