UntagResourceCommand

Removes the tag from the specified resource.

Example Syntax

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

import { TimestreamInfluxDBClient, UntagResourceCommand } from "@aws-sdk/client-timestream-influxdb"; // ES Modules import
// const { TimestreamInfluxDBClient, UntagResourceCommand } = require("@aws-sdk/client-timestream-influxdb"); // CommonJS import
const client = new TimestreamInfluxDBClient(config);
const input = { // UntagResourceRequest
  resourceArn: "STRING_VALUE", // required
  tagKeys: [ // TagKeys // 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 tagged resource.

tagKeys
Required
string[] | undefined

The keys used to identify the tags.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
ResourceNotFoundException
client

The requested resource was not found or does not exist.

TimestreamInfluxDBServiceException
Base exception class for all service exceptions from TimestreamInfluxDB service.