CostExplorer / Client / untag_resource

untag_resource#

CostExplorer.Client.untag_resource(**kwargs)#

Removes one or more tags from a resource. Specify only tag keys in your request. Don’t specify the value.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.

  • ResourceTagKeys (list) –

    [REQUIRED]

    A list of tag keys associated with tags that need to be removed from the resource. If you specify a tag key that doesn’t exist, it’s ignored. Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • CostExplorer.Client.exceptions.ResourceNotFoundException

  • CostExplorer.Client.exceptions.LimitExceededException