AWS Resource Groups Tagging API

2025/11/18 - AWS Resource Groups Tagging API - 1 new api methods

Changes  Add support for new ListRequiredTags API used to retrieve the required tags specified in a customer's effective tag policy.

ListRequiredTags (new) Link ΒΆ

Lists the required tags for supported resource types in an Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.list_required_tags(
    NextToken='string',
    MaxResults=123
)
type NextToken:

string

param NextToken:

A token for requesting another page of required tags if the NextToken response element indicates that more required tags are available. Use the value of the returned NextToken element in your request until the token comes back as null. Pass null if this is the first call.

type MaxResults:

integer

param MaxResults:

The maximum number of required tags.

rtype:

dict

returns:

Response Syntax

{
    'RequiredTags': [
        {
            'ResourceType': 'string',
            'CloudFormationResourceTypes': [
                'string',
            ],
            'ReportingTagKeys': [
                'string',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • RequiredTags (list) --

      The required tags.

      • (dict) --

        Information that describes the required tags for a given resource type.

        • ResourceType (string) --

          Describes the resource type for the required tag keys.

        • CloudFormationResourceTypes (list) --

          Describes the CloudFormation resource type assigned the required tag keys.

          • (string) --

        • ReportingTagKeys (list) --

          These tag keys are marked as required in the report_required_tag_for block of the effective tag policy.

          • (string) --

    • NextToken (string) --

      A token for requesting another page of required tags if the NextToken response element indicates that more required tags are available. Use the value of the returned NextToken element in your request until the token comes back as null. Pass null if this is the first call.