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.
Protected
Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.
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 importconst 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);// {};
UntagResourceCommandInput
UntagResourceCommandOutput
input
response
config
AuthorizationErrorException (client fault)
Indicates that the user has been denied access to the requested resource.
ConcurrentAccessException (client fault)
Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially.
InvalidParameterException (client fault)
Indicates that a request parameter does not comply with the associated constraints.
ResourceNotFoundException (client fault)
Can’t perform the action on the specified resource. Make sure that the resource exists.
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.
TagLimitExceededException (client fault)
Can't add more than 50 tags to a topic.
TagPolicyException (client fault)
The request doesn't comply with the IAM tag policy. Correct your request and then retry it.
SNSServiceException
Base exception class for all service exceptions from SNS service.
Readonly
Static
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.
Param
UntagResourceCommandInput
Returns
UntagResourceCommandOutput
See
input
shape.response
shape.config
shape.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.