Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TagResourceCommand

Adds one or more tags to the specified resource.

Currently, 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.

example

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

import { OrganizationsClient, TagResourceCommand } from "@aws-sdk/client-organizations"; // ES Modules import
// const { OrganizationsClient, TagResourceCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
const client = new OrganizationsClient(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 OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: TagResourceCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<TagResourceCommandInput, TagResourceCommandOutput>

Methods

Static getEndpointParameterInstructions