ResourceGroups / Client / delete_group

delete_group#

ResourceGroups.Client.delete_group(**kwargs)#

Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.

Minimum permissions

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

  • resource-groups:DeleteGroup

See also: AWS API Documentation

Request Syntax

response = client.delete_group(
    GroupName='string',
    Group='string'
)
Parameters:
  • GroupName (string) – Deprecated - don’t use this parameter. Use Group instead.

  • Group (string) – The name or the Amazon resource name (ARN) of the resource group to delete.

Return type:

dict

Returns:

Response Syntax

{
    'Group': {
        'GroupArn': 'string',
        'Name': 'string',
        'Description': 'string',
        'Criticality': 123,
        'Owner': 'string',
        'DisplayName': 'string',
        'ApplicationTag': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Group (dict) –

      A full description of the deleted resource group.

      • GroupArn (string) –

        The Amazon resource name (ARN) of the resource group.

      • Name (string) –

        The name of the resource group.

      • Description (string) –

        The description of the resource group.

      • Criticality (integer) –

        The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.

      • Owner (string) –

        A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.

      • DisplayName (string) –

        The name of the application group, which you can change at any time.

      • ApplicationTag (dict) –

        A tag that defines the application group membership. This tag is only supported for application groups.

        • (string) –

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