ComputeOptimizerAutomation / Client / untag_resource

untag_resource

ComputeOptimizerAutomation.Client.untag_resource(**kwargs)

Removes tags from the specified resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    resourceArn='string',
    ruleRevision=123,
    tagKeys=[
        'string',
    ],
    clientToken='string'
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The ARN of the resource to untag.

  • ruleRevision (integer) –

    [REQUIRED]

    The revision number of the automation rule to untag. This ensures you’re untagging the correct version of the rule.

  • tagKeys (list) –

    [REQUIRED]

    The keys of the tags to remove from the resource.

    • (string) –

  • clientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException

  • ComputeOptimizerAutomation.Client.exceptions.ForbiddenException

  • ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException

  • ComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundException

  • ComputeOptimizerAutomation.Client.exceptions.ThrottlingException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchException

  • ComputeOptimizerAutomation.Client.exceptions.AccessDeniedException

  • ComputeOptimizerAutomation.Client.exceptions.InternalServerException

  • ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException