Shield / Client / list_tags_for_resource



Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(

ResourceARN (string) –


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

Return type:



Response Syntax

    'Tags': [
            'Key': 'string',
            'Value': 'string'

Response Structure

  • (dict) –

    • Tags (list) –

      A list of tag key and value pairs associated with the specified resource.

      • (dict) –

        A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as “environment”, and the tag value represents a specific value within that category, such as “test,” “development,” or “production”. Or you might set the tag key to “customer” and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource.

        • Key (string) –

          Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as “customer.” Tag keys are case-sensitive.

        • Value (string) –

          Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as “companyA” or “companyB.” Tag values are case-sensitive.


  • Shield.Client.exceptions.InternalErrorException

  • Shield.Client.exceptions.InvalidResourceException

  • Shield.Client.exceptions.ResourceNotFoundException