- 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
Use this operation to remove tags on a resource.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MemoryDBClient, UntagResourceCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
// const { MemoryDBClient, UntagResourceCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
const client = new MemoryDBClient(config);
const input = { // UntagResourceRequest
ResourceArn: "STRING_VALUE", // required
TagKeys: [ // KeyList // required
"STRING_VALUE",
],
};
const command = new UntagResourceCommand(input);
const response = await client.send(command);
// { // UntagResourceResponse
// TagList: [ // TagList
// { // Tag
// Key: "STRING_VALUE",
// Value: "STRING_VALUE",
// },
// ],
// };
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 to which the tags are to be removed. |
TagKeys Required | string[] | undefined | The list of keys of the tags that are to be removed. |
UntagResourceCommand Output
See UntagResourceCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
TagList | Tag[] | undefined | The list of tags removed. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ACLNotFoundFault | client | |
ClusterNotFoundFault | client | |
InvalidARNFault | client | |
InvalidClusterStateFault | client | |
InvalidParameterValueException | client | |
MultiRegionClusterNotFoundFault | client | The specified multi-Region cluster does not exist. |
MultiRegionParameterGroupNotFoundFault | client | The specified multi-Region parameter group does not exist. |
ParameterGroupNotFoundFault | client | |
ServiceLinkedRoleNotFoundFault | client | |
SnapshotNotFoundFault | client | |
SubnetGroupNotFoundFault | client | |
TagNotFoundFault | client | |
UserNotFoundFault | client | |
MemoryDBServiceException | Base exception class for all service exceptions from MemoryDB service. |