EC2 / Client / delete_transit_gateway_client_vpn_attachment

delete_transit_gateway_client_vpn_attachment

EC2.Client.delete_transit_gateway_client_vpn_attachment(**kwargs)

Deletes a Transit Gateway attachment for a Client VPN endpoint. The Transit Gateway owner can delete the attachment to remove the association between the Client VPN endpoint and the Transit Gateway.

See also: AWS API Documentation

Request Syntax

response = client.delete_transit_gateway_client_vpn_attachment(
    TransitGatewayAttachmentId='string',
    DryRun=True|False
)
Parameters:
  • TransitGatewayAttachmentId (string) –

    [REQUIRED]

    The ID of the Transit Gateway attachment.

  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Return type:

dict

Returns:

Response Syntax

{
    'TransitGatewayClientVpnAttachment': {
        'TransitGatewayAttachmentId': 'string',
        'TransitGatewayId': 'string',
        'ClientVpnEndpointId': 'string',
        'ClientVpnOwnerId': 'string',
        'State': 'pending-acceptance'|'pending'|'rejected'|'available'|'deleting'|'deleted',
        'CreationTime': 'string'
    }
}

Response Structure

  • (dict) –

    • TransitGatewayClientVpnAttachment (dict) –

      Information about the Transit Gateway Client VPN attachment.

      • TransitGatewayAttachmentId (string) –

        The ID of the Transit Gateway attachment.

      • TransitGatewayId (string) –

        The ID of the Transit Gateway.

      • ClientVpnEndpointId (string) –

        The ID of the Client VPN endpoint.

      • ClientVpnOwnerId (string) –

        The ID of the Amazon Web Services account that owns the Client VPN endpoint.

      • State (string) –

        The state of the Transit Gateway attachment.

      • CreationTime (string) –

        The date and time the Transit Gateway attachment was created.