MemoryDB / Client / list_tags

list_tags#

MemoryDB.Client.list_tags(**kwargs)#

Lists all tags currently on a named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track your MemoryDB resources. For more information, see Tagging your MemoryDB resources

See also: AWS API Documentation

Request Syntax

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

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource for which you want the list of tags

Return type:

dict

Returns:

Response Syntax

{
    'TagList': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • TagList (list) –

      A list of tags as key-value pairs.

      • (dict) –

        A tag that can be added to an MemoryDB resource. Tags are composed of a Key/Value pair. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. A tag with a null Value is permitted. For more information, see Tagging your MemoryDB resources

        • Key (string) –

          The key for the tag. May not be null.

        • Value (string) –

          The tag’s value. May be null.

Exceptions

  • MemoryDB.Client.exceptions.ClusterNotFoundFault

  • MemoryDB.Client.exceptions.InvalidClusterStateFault

  • MemoryDB.Client.exceptions.ParameterGroupNotFoundFault

  • MemoryDB.Client.exceptions.SubnetGroupNotFoundFault

  • MemoryDB.Client.exceptions.SnapshotNotFoundFault

  • MemoryDB.Client.exceptions.InvalidARNFault

  • MemoryDB.Client.exceptions.ServiceLinkedRoleNotFoundFault

  • MemoryDB.Client.exceptions.UserNotFoundFault

  • MemoryDB.Client.exceptions.ACLNotFoundFault