untag

ResourceGroups.Client.untag(**kwargs)

Deletes tags from a specified resource group.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:Untag

See also: AWS API Documentation

Request Syntax

response = client.untag(
    Arn='string',
    Keys=[
        'string',
    ]
)
Parameters
  • Arn (string) --

    [REQUIRED]

    The ARN of the resource group from which to remove tags. The command removed both the specified keys and any values associated with those keys.

  • Keys (list) --

    [REQUIRED]

    The keys of the tags to be removed.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string',
    'Keys': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • Arn (string) --

      The ARN of the resource group from which tags have been removed.

    • Keys (list) --

      The keys of the tags that were removed.

      • (string) --

Exceptions

  • ResourceGroups.Client.exceptions.BadRequestException
  • ResourceGroups.Client.exceptions.ForbiddenException
  • ResourceGroups.Client.exceptions.NotFoundException
  • ResourceGroups.Client.exceptions.MethodNotAllowedException
  • ResourceGroups.Client.exceptions.TooManyRequestsException
  • ResourceGroups.Client.exceptions.InternalServerErrorException