UntagResourceCommand

Removes a tag from a resource.

Example Syntax

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

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

Example Usage

 Loading code editorLoading code editor

UntagResourceCommand Input

See UntagResourceCommandInput for more details

Parameter
Type
Description
ResourceArn
Required
string | undefined

The Amazon Resource Name (ARN) to untag.

ResourceTagKeys
Required
string[] | undefined

Keys for the tags to be removed.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
AccessDeniedException
client

You don't have sufficient access to perform this action.

InternalServerException
server

The processing request failed because of an unknown error, exception, or failure.

ResourceNotFoundException
client

The resource could not be found.

ThrottlingException
client

The request was denied due to request throttling.

ValidationException
client

The input fails to satisfy the constraints specified by an Amazon Web Services service.

InvoicingServiceException
Base exception class for all service exceptions from Invoicing service.