ResourceGroupsTaggingAPI / Client / get_tag_keys



Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account.

This operation supports pagination, where the response can be sent in multiple pages. You should check the PaginationToken response parameter to determine if there are additional results available to return. Repeat the query, passing the PaginationToken response parameter value as an input to the next request until you recieve a null value. A null value for PaginationToken indicates that there are no more results waiting to be returned.

See also: AWS API Documentation

Request Syntax

response = client.get_tag_keys(

PaginationToken (string) – Specifies a PaginationToken response value from a previous request to indicate that you want the next page of results. Leave this parameter empty in your initial request.

Return type:



Response Syntax

    'PaginationToken': 'string',
    'TagKeys': [

Response Structure

  • (dict) –

    • PaginationToken (string) –

      A string that indicates that there is more data available than this response contains. To receive the next part of the response, specify this response value as the PaginationToken value in the request for the next page.

    • TagKeys (list) –

      A list of all tag keys in the Amazon Web Services account.

      • (string) –


  • ResourceGroupsTaggingAPI.Client.exceptions.InvalidParameterException

  • ResourceGroupsTaggingAPI.Client.exceptions.ThrottledException

  • ResourceGroupsTaggingAPI.Client.exceptions.InternalServiceException

  • ResourceGroupsTaggingAPI.Client.exceptions.PaginationTokenExpiredException