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.
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);
TagResourceCommandInput for command's input shape.
input
TagResourceCommandOutput for command's response shape.
response
config for OrganizationsClient's config shape.
config
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.
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);
TagResourceCommandInput for command's
input
shape.TagResourceCommandOutput for command's
response
shape.config for OrganizationsClient's
config
shape.