UntagResourceCommand

Untags a resource in Amazon DataZone.

Example Syntax

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

import { DataZoneClient, UntagResourceCommand } from "@aws-sdk/client-datazone"; // ES Modules import
// const { DataZoneClient, UntagResourceCommand } = require("@aws-sdk/client-datazone"); // CommonJS import
const client = new DataZoneClient(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 ARN of the resource to be untagged in Amazon DataZone.

tagKeys
Required
string[] | undefined

Specifies the tag keys for the UntagResource action.

UntagResourceCommand Output

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

Throws

Name
Fault
Details
InternalServerException
server

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

ResourceNotFoundException
client

The specified resource cannot be found.

AccessDeniedException
client

You do not have sufficient access to perform this action.

ThrottlingException
client

The request was denied due to request throttling.

UnauthorizedException
client

You do not have permission to perform this action.

DataZoneServiceException
Base exception class for all service exceptions from DataZone service.