UntagResource
Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from a resource that were already removed. Note the following:
-
To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information, see the documentation for the service whose resource you want to untag.
-
You can only tag resources that are located in the specified AWS Region for the calling AWS account.
Minimum permissions
In addition to the tag:UntagResources
permission required by this operation, you must also have the remove tags permission defined by the service that created the resource.
For example, to remove the tags from an Amazon EC2 instance using the UntagResources
operation, you must have both of the following permissions:
tag:UntagResource
ChimeSDKMeetings:DeleteTags
Request Syntax
POST /tags?operation=untag-resource HTTP/1.1
Content-type: application/json
{
"ResourceARN": "string
",
"TagKeys": [ "string
" ]
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ResourceARN
-
The ARN of the resource that you're removing tags from.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1011.
Pattern:
^arn:.*
Required: Yes
- TagKeys
-
The tag keys being removed from the resources.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
^[a-zA-Z+-=._:/]+$
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.
- BadRequestException
-
The input parameters don't match the service's restrictions.
HTTP Status Code: 400
- ForbiddenException
-
The client is permanently forbidden from making the request.
HTTP Status Code: 403
- LimitExceededException
-
The request exceeds the resource limit.
HTTP Status Code: 400
- ResourceNotFoundException
-
The resource that you want to tag couldn't be found.
HTTP Status Code: 404
- ServiceFailureException
-
The service encountered an unexpected error.
HTTP Status Code: 500
- ServiceUnavailableException
-
The service is currently unavailable.
HTTP Status Code: 503
- ThrottlingException
-
The number of customer requests exceeds the request rate limit.
HTTP Status Code: 429
- UnauthorizedException
-
The user isn't authorized to request a resource.
HTTP Status Code: 401
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: