Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class UntagResourceCommandProtected

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

Example

Use a bare-bones client and the command you need to make an API call.

import { SNSClient, UntagResourceCommand } from "@aws-sdk/client-sns"; // ES Modules import
// const { SNSClient, UntagResourceCommand } = require("@aws-sdk/client-sns"); // CommonJS import
const client = new SNSClient(config);
const input = { // UntagResourceRequest
ResourceArn: "STRING_VALUE", // required
TagKeys: [ // TagKeyList // required
"STRING_VALUE",
],
};
const command = new UntagResourceCommand(input);
const response = await client.send(command);
// {};

Param

UntagResourceCommandInput

Returns

UntagResourceCommandOutput

See

Throws

AuthorizationErrorException (client fault)

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

Throws

ConcurrentAccessException (client fault)

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

Throws

InvalidParameterException (client fault)

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

Throws

ResourceNotFoundException (client fault)

Can’t perform the action on the specified resource. Make sure that the resource exists.

Throws

StaleTagException (client fault)

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.

Throws

TagLimitExceededException (client fault)

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

Throws

TagPolicyException (client fault)

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

Throws

SNSServiceException

Base exception class for all service exceptions from SNS service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<UntagResourceCommandInput, UntagResourceCommandOutput>

Methods