Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TagCommand

Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.

Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:Tag

example

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

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

TagCommandInput for command's input shape.

see

TagCommandOutput for command's response shape.

see

config for ResourceGroupsClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    Returns TagCommand

Properties

Readonly input

input: TagCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<TagCommandInput, TagCommandOutput>