- 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 one or more tags from an Amazon Web Services resource.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { FMSClient, UntagResourceCommand } from "@aws-sdk/client-fms"; // ES Modules import
// const { FMSClient, UntagResourceCommand } = require("@aws-sdk/client-fms"); // CommonJS import
const client = new FMSClient(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 return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists. |
TagKeys Required | string[] | undefined | The keys of the tags to remove from the resource. |
UntagResourceCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalErrorException | client | The operation failed because of a system problem, even though the request was valid. Retry your request. |
InvalidInputException | client | The parameters of the request were invalid. |
InvalidOperationException | client | The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an |
ResourceNotFoundException | client | The specified resource was not found. |
FMSServiceException | Base exception class for all service exceptions from FMS service. |