SecurityAgent / Client / list_tags_for_resource

list_tags_for_resource

SecurityAgent.Client.list_tags_for_resource(**kwargs)

Returns the tags associated with the 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 to list tags for.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    Output for ListTagsForResource operation.

    • tags (dict) –

      The tags associated with the resource.

      • (string) –

        Key for a resource tag.

        • (string) –

          Value for a resource tag.