Amazon Simple Notification Service
API Reference (API Version 2010-03-31)
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with AWS services in China.

UntagResource

Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ResourceArn

The ARN of the topic from which to remove tags.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1011.

Required: Yes

TagKeys.member.N

The list of tag keys to remove from the specified topic.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Errors

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

AuthorizationError

Indicates that the user has been denied access to the requested resource.

HTTP Status Code: 403

ConcurrentAccess

Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially.

HTTP Status Code: 400

InvalidParameter

Indicates that a request parameter does not comply with the associated constraints.

HTTP Status Code: 400

ResourceNotFound

Can't tag resource. Verify that the topic exists.

HTTP Status Code: 404

StaleTag

A tag has been added to a resource with the same ARN as a deleted resource. Wait a short while and then retry the operation.

HTTP Status Code: 400

TagLimitExceeded

Can't add more than 50 tags to a topic.

HTTP Status Code: 400

TagPolicy

The request doesn't comply with the IAM tag policy. Correct your request and then retry it.

HTTP Status Code: 400

Example

The structure of AUTHPARAMS depends on the signature of the API request. For more information, see Examples of Signed Signature Version 4 Requests in the Amazon Web Services General Reference.

Example

Sample Request

http://sns.us-east-2.amazonaws.com/?Action=UntagResource &ResourceArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3Atagging &TagKeys.TagKey.1=tagKey &Version=2010-03-31 &AUTHPARAMS

Sample Response

<UntagResourceResponse> <UntagResourceResult/> <ResponseMetadata> <RequestId>1a34f567-8bc9-01de-f234-g567h8908i12</RequestId> </ResponseMetadata> </UntagResourceResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: