- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UntagResourceCommand
Removes any tags with the specified keys from the specified resource.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { TextractClient, UntagResourceCommand } from "@aws-sdk/client-textract"; // ES Modules import
// const { TextractClient, UntagResourceCommand } = require("@aws-sdk/client-textract"); // CommonJS import
const client = new TextractClient(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
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ResourceARN Required | string | undefined | The Amazon Resource Name (ARN) that specifies the resource to be untagged. |
TagKeys Required | string[] | undefined | Specifies the tags to be removed from the resource specified by the ResourceARN. |
UntagResourceCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation. |
InternalServerError | server | Amazon Textract experienced a service issue. Try your call again. |
InvalidParameterException | client | An input parameter violated a constraint. For example, in synchronous operations, an |
ProvisionedThroughputExceededException | client | The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract. |
ResourceNotFoundException | client | Returned when an operation tried to access a nonexistent resource. |
ThrottlingException | server | Amazon Textract is temporarily unable to process the request. Try your call again. |
ValidationException | client | Indicates that a request was not valid. Check request for proper formatting. |
TextractServiceException | Base exception class for all service exceptions from Textract service. |