Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListTagsForResourceCommand

Lists tags that are attached to the specified resource.

You can attach tags to the following resources in Organizations.

  • Amazon Web Services account

  • Organization root

  • Organizational unit (OU)

  • Policy (any type)

This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.

example

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

import { OrganizationsClient, ListTagsForResourceCommand } from "@aws-sdk/client-organizations"; // ES Modules import
// const { OrganizationsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
const client = new OrganizationsClient(config);
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
see

ListTagsForResourceCommandInput for command's input shape.

see

ListTagsForResourceCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ListTagsForResourceCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions