VPCLattice / Client / delete_target_group

delete_target_group#

VPCLattice.Client.delete_target_group(**kwargs)#

Deletes a target group. You can’t delete a target group if it is used in a listener rule or if the target group creation is in progress.

See also: AWS API Documentation

Request Syntax

response = client.delete_target_group(
    targetGroupIdentifier='string'
)
Parameters:

targetGroupIdentifier (string) –

[REQUIRED]

The ID or Amazon Resource Name (ARN) of the target group.

Return type:

dict

Returns:

Response Syntax

{
    'arn': 'string',
    'id': 'string',
    'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED'
}

Response Structure

  • (dict) –

    • arn (string) –

      The Amazon Resource Name (ARN) of the target group.

    • id (string) –

      The ID of the target group.

    • status (string) –

      The status. You can retry the operation if the status is DELETE_FAILED. However, if you retry it while the status is DELETE_IN_PROGRESS, the status doesn’t change.

Exceptions