- 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
Deletes the specified tags from a resource.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DeviceFarmClient, UntagResourceCommand } from "@aws-sdk/client-device-farm"; // ES Modules import
// const { DeviceFarmClient, UntagResourceCommand } = require("@aws-sdk/client-device-farm"); // CommonJS import
const client = new DeviceFarmClient(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 |
---|
Parameter | Type | Description |
---|---|---|
ResourceARN Required | string | undefined | The Amazon Resource Name (ARN) of the resource or resources from which to delete tags. You can associate tags with the following Device Farm resources: |
TagKeys Required | string[] | undefined | The keys of the tags to be removed. |
UntagResourceCommand Output
See UntagResourceCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ArgumentException | client | An invalid argument was specified. |
NotFoundException | client | The specified entity was not found. |
TagOperationException | client | The operation was not successful. Try again. |
DeviceFarmServiceException | Base exception class for all service exceptions from DeviceFarm service. |