UntagResourceCommand

Remove one or more tags (keys and values) from a specified resource.

Example Syntax

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

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

UntagResourceCommand Input

See UntagResourceCommandInput for more details

Parameter
Type
Description
ResourceArn
Required
string | undefined

The Amazon Resource Name (ARN) of the resource that you want to untag.

TagKeys
Required
string[] | undefined

The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

UntagResourceCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
ConflictException
client

The request configuration has conflicts. For details, see the accompanying error message.

ResourceNotFoundException
client

Occurs when a requested resource is not found.

ValidationException
client

The request validation has failed. For details, see the accompanying error message.

MailManagerServiceException
Base exception class for all service exceptions from MailManager service.