Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TagResourceCommand

Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag a resource, the caller account must be the same as the resource’s OwnerAccountId. Tagging resources in other accounts is not supported.

Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an environment’s transit gateway.

example

Use a bare-bones client and the command you need to make an API call.

import { MigrationHubRefactorSpacesClient, TagResourceCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, TagResourceCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const command = new TagResourceCommand(input);
const response = await client.send(command);
see

TagResourceCommandInput for command's input shape.

see

TagResourceCommandOutput for command's response shape.

see

config for MigrationHubRefactorSpacesClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: TagResourceCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<TagResourceCommandInput, TagResourceCommandOutput>

Methods

Static getEndpointParameterInstructions