UntagResourceCommand

Removes the specified tags from the specified resource.

Example Syntax

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

import { DLMClient, UntagResourceCommand } from "@aws-sdk/client-dlm"; // ES Modules import
// const { DLMClient, UntagResourceCommand } = require("@aws-sdk/client-dlm"); // CommonJS import
const client = new DLMClient(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.

TagKeys
Required
string[] | undefined

The tag keys.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
InternalServerException
server

The service failed in an unexpected way.

InvalidRequestException
client

Bad request. The request is missing required parameters or has invalid parameters.

ResourceNotFoundException
client

A requested resource was not found.

DLMServiceException
Base exception class for all service exceptions from DLM service.