CodeGuruProfiler / Client / list_tags_for_resource

list_tags_for_resource#

CodeGuruProfiler.Client.list_tags_for_resource(**kwargs)#

Returns a list of the tags that are assigned to a specified 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 that contains the tags to return.

Return type:

dict

Returns:

Response Syntax

{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • tags (dict) –

      The list of tags assigned to the specified resource. This is the list of tags returned in the response.

      • (string) –

        • (string) –

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException

  • CodeGuruProfiler.Client.exceptions.ValidationException

  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException