We are excited to announce our new API Documentation.
Protected
This action removes a tag from an Amazon FSx resource.
Use a bare-bones client and the command you need to make an API call.
import { FSxClient, UntagResourceCommand } from "@aws-sdk/client-fsx"; // ES Modules import// const { FSxClient, UntagResourceCommand } = require("@aws-sdk/client-fsx"); // CommonJS importconst client = new FSxClient(config);const input = { // UntagResourceRequest ResourceARN: "STRING_VALUE", // required TagKeys: [ // TagKeys // required "STRING_VALUE", ],};const command = new UntagResourceCommand(input);const response = await client.send(command);// {};
UntagResourceCommandInput
UntagResourceCommandOutput
input
response
config
BadRequest (client fault)
A generic error indicating a failure with a client request.
InternalServerError (server fault)
A generic error indicating a server-side failure.
NotServiceResourceError (client fault)
The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation.
ResourceDoesNotSupportTagging (client fault)
The resource specified does not support tagging.
ResourceNotFound (client fault)
The resource specified by the Amazon Resource Name (ARN) can't be found.
FSxServiceException
Base exception class for all service exceptions from FSx service.
To untag a resource
// This operation untags an Amazon FSx resource.const input = { "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", "TagKeys": [ "Name" ]};const command = new UntagResourceCommand(input);await client.send(command);// example id: to-untag-a-fsx-resource-1481847318373
Readonly
Static
This action removes a tag from an Amazon FSx resource.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UntagResourceCommandInput
Returns
UntagResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
BadRequest (client fault)
A generic error indicating a failure with a client request.
Throws
InternalServerError (server fault)
A generic error indicating a server-side failure.
Throws
NotServiceResourceError (client fault)
The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation.
Throws
ResourceDoesNotSupportTagging (client fault)
The resource specified does not support tagging.
Throws
ResourceNotFound (client fault)
The resource specified by the Amazon Resource Name (ARN) can't be found.
Throws
FSxServiceException
Base exception class for all service exceptions from FSx service.
Example
To untag a resource