UntagResourceCommand

Untags a resource with a specified Amazon Resource Name (ARN).

Example Syntax

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

import { AmplifyClient, UntagResourceCommand } from "@aws-sdk/client-amplify"; // ES Modules import
// const { AmplifyClient, UntagResourceCommand } = require("@aws-sdk/client-amplify"); // CommonJS import
const client = new AmplifyClient(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) to use to untag a resource.

tagKeys
Required
string[] | undefined

The tag keys to use to untag a resource.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
BadRequestException
client

A request contains unexpected data.

InternalFailureException
server

The service failed to perform an operation due to an internal issue.

ResourceNotFoundException
client

An operation failed due to a non-existent resource.

AmplifyServiceException
Base exception class for all service exceptions from Amplify service.