Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId. Listing tags in other accounts is not supported.
OwnerAccountId
Use a bare-bones client and the command you need to make an API call.
import { MigrationHubRefactorSpacesClient, ListTagsForResourceCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import // const { MigrationHubRefactorSpacesClient, ListTagsForResourceCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import const client = new MigrationHubRefactorSpacesClient(config); const command = new ListTagsForResourceCommand(input); const response = await client.send(command);
ListTagsForResourceCommandInput for command's input shape.
input
ListTagsForResourceCommandOutput for command's response shape.
response
config for MigrationHubRefactorSpacesClient's config shape.
config
Lists the tags of a resource. The caller account must be the same as the resource’s
OwnerAccountId
. Listing tags in other accounts is not supported.Use a bare-bones client and the command you need to make an API call.
import { MigrationHubRefactorSpacesClient, ListTagsForResourceCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import // const { MigrationHubRefactorSpacesClient, ListTagsForResourceCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import const client = new MigrationHubRefactorSpacesClient(config); const command = new ListTagsForResourceCommand(input); const response = await client.send(command);
ListTagsForResourceCommandInput for command's
input
shape.ListTagsForResourceCommandOutput for command's
response
shape.config for MigrationHubRefactorSpacesClient's
config
shape.