PartnerCentralAccountAPI / Client / list_tags_for_resource

list_tags_for_resource

PartnerCentralAccountAPI.Client.list_tags_for_resource(**kwargs)

Lists all tags associated with a specific AWS Partner Central Account resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to list tags for.

Return type:

dict

Returns:

Response Syntax

{
    'ResourceArn': 'string',
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • ResourceArn (string) –

      The Amazon Resource Name (ARN) of the resource that the tags are associated with.

    • Tags (list) –

      A list of tags associated with the specified resource.

      • (dict) –

        A key-value pair used to associate metadata with AWS Partner Central Account resources.

        • Key (string) –

          The key name of the tag. Tag keys are case-sensitive.

        • Value (string) –

          The value associated with the tag key. Tag values are case-sensitive.

Exceptions

  • PartnerCentralAccountAPI.Client.exceptions.ResourceNotFoundException

  • PartnerCentralAccountAPI.Client.exceptions.AccessDeniedException

  • PartnerCentralAccountAPI.Client.exceptions.ThrottlingException

  • PartnerCentralAccountAPI.Client.exceptions.ValidationException

  • PartnerCentralAccountAPI.Client.exceptions.InternalServerException