UntagResourceCommand

Removes tags from a resource.

Example Syntax

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

import { PanoramaClient, UntagResourceCommand } from "@aws-sdk/client-panorama"; // ES Modules import
// const { PanoramaClient, UntagResourceCommand } = require("@aws-sdk/client-panorama"); // CommonJS import
const client = new PanoramaClient(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 resource's ARN.

TagKeys
Required
string[] | undefined

Tag keys to remove.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
InternalServerException
server

An internal error occurred.

ResourceNotFoundException
client

The target resource was not found.

ValidationException
client

The request contains an invalid parameter value.

PanoramaServiceException
Base exception class for all service exceptions from Panorama service.