Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UntagResourceCommandProtected

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.

import { FSxClient, UntagResourceCommand } from "@aws-sdk/client-fsx"; // ES Modules import
// const { FSxClient, UntagResourceCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
const 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);
// {};

Param

UntagResourceCommandInput

Returns

UntagResourceCommandOutput

See

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

// 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

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods