MemoryDB / Client / untag_resource

untag_resource

MemoryDB.Client.untag_resource(**kwargs)

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

When you remove tags from multi region clusters, you might not immediately see the latest effective tags in the ListTags API response due to it being eventually consistent specifically for multi region clusters. For more information, see Tagging your MemoryDB resources.

You can specify cost-allocation tags for your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource to which the tags are to be removed.

  • TagKeys (list) –

    [REQUIRED]

    The list of keys of the tags that are to be removed.

    • (string) –

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • TagList (list) –

      The list of tags removed.

      • (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.TagNotFoundFault

  • MemoryDB.Client.exceptions.ServiceLinkedRoleNotFoundFault

  • MemoryDB.Client.exceptions.UserNotFoundFault

  • MemoryDB.Client.exceptions.ACLNotFoundFault

  • MemoryDB.Client.exceptions.InvalidParameterValueException

  • MemoryDB.Client.exceptions.MultiRegionClusterNotFoundFault

  • MemoryDB.Client.exceptions.MultiRegionParameterGroupNotFoundFault