IAMRolesAnywhere / Client / list_tags_for_resource

list_tags_for_resource#

IAMRolesAnywhere.Client.list_tags_for_resource(**kwargs)#

Lists the tags attached to the resource.

Required permissions: rolesanywhere:ListTagsForResource.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

The ARN of the resource.

Return type:

dict

Returns:

Response Syntax

{
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • tags (list) –

      A list of tags attached to the resource.

      • (dict) –

        A label that consists of a key and value you define.

        • key (string) –

          The tag key.

        • value (string) –

          The tag value.

Exceptions