DAX / Client / tag_resource

tag_resource#

DAX.Client.tag_resource(**kwargs)#

Associates a set of tags with a DAX resource. You can call TagResource up to 5 times per second, per account.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceName='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceName (string) –

    [REQUIRED]

    The name of the DAX resource to which tags should be added.

  • Tags (list) –

    [REQUIRED]

    The tags to be assigned to the DAX resource.

    • (dict) –

      A description of a tag. Every tag is a key-value pair. You can add up to 50 tags to a single DAX cluster.

      AWS-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user:.

      You cannot backdate the application of a tag.

      • Key (string) –

        The key for the tag. Tag keys are case sensitive. Every DAX cluster can only have one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.

      • Value (string) –

        The value of the tag. Tag values are case-sensitive and can be null.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (list) –

      The list of tags that are associated with the DAX resource.

      • (dict) –

        A description of a tag. Every tag is a key-value pair. You can add up to 50 tags to a single DAX cluster.

        AWS-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user:.

        You cannot backdate the application of a tag.

        • Key (string) –

          The key for the tag. Tag keys are case sensitive. Every DAX cluster can only have one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.

        • Value (string) –

          The value of the tag. Tag values are case-sensitive and can be null.

Exceptions

  • DAX.Client.exceptions.ClusterNotFoundFault

  • DAX.Client.exceptions.TagQuotaPerResourceExceeded

  • DAX.Client.exceptions.InvalidARNFault

  • DAX.Client.exceptions.InvalidClusterStateFault

  • DAX.Client.exceptions.ServiceLinkedRoleNotFoundFault

  • DAX.Client.exceptions.InvalidParameterValueException

  • DAX.Client.exceptions.InvalidParameterCombinationException