ResourceGroups / Client / tag

tag#

ResourceGroups.Client.tag(**kwargs)#

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.

Warning

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

See also: AWS API Documentation

Request Syntax

response = client.tag(
    Arn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • Arn (string) –

    [REQUIRED]

    The ARN of the resource group to which to add tags.

  • Tags (dict) –

    [REQUIRED]

    The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • Arn (string) –

      The ARN of the tagged resource.

    • Tags (dict) –

      The tags that have been added to the specified resource group.

      • (string) –

        • (string) –

Exceptions