get_tags

ResourceGroups.Client.get_tags(**kwargs)

Returns a list of tags that are associated with a resource group, specified by an ARN.

Minimum permissions

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

  • resource-groups:GetTags

See also: AWS API Documentation

Request Syntax

response = client.get_tags(
    Arn='string'
)
Parameters
Arn (string) --

[REQUIRED]

The ARN of the resource group whose tags you want to retrieve.

Return type
dict
Returns
Response Syntax
{
    'Arn': 'string',
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --
    • Arn (string) --

      The ARN of the tagged resource group.

    • Tags (dict) --

      The tags associated with the specified resource group.

      • (string) --
        • (string) --

Exceptions

  • ResourceGroups.Client.exceptions.BadRequestException
  • ResourceGroups.Client.exceptions.ForbiddenException
  • ResourceGroups.Client.exceptions.NotFoundException
  • ResourceGroups.Client.exceptions.MethodNotAllowedException
  • ResourceGroups.Client.exceptions.TooManyRequestsException
  • ResourceGroups.Client.exceptions.InternalServerErrorException