- 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 a specific tag from a given resource. The tag is specified by its key.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { LookoutEquipmentClient, UntagResourceCommand } from "@aws-sdk/client-lookoutequipment"; // ES Modules import
// const { LookoutEquipmentClient, UntagResourceCommand } = require("@aws-sdk/client-lookoutequipment"); // CommonJS import
const client = new LookoutEquipmentClient(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) of the resource to which the tag is currently associated. |
TagKeys Required | string[] | undefined | Specifies the key of the tag to be removed from a specified resource. |
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 | The request could not be completed because you do not have access to the resource. |
InternalServerException | server | Processing of the request has failed because of an unknown error, exception or failure. |
ResourceNotFoundException | client | The resource requested could not be found. Verify the resource ID and retry your request. |
ThrottlingException | client | The request was denied due to request throttling. |
ValidationException | client | The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized. |
LookoutEquipmentServiceException | Base exception class for all service exceptions from LookoutEquipment service. |