EC2 / Client / delete_vpc_endpoints

delete_vpc_endpoints#

EC2.Client.delete_vpc_endpoints(**kwargs)#

Deletes the specified VPC endpoints.

When you delete a gateway endpoint, we delete the endpoint routes in the route tables for the endpoint.

When you delete a Gateway Load Balancer endpoint, we delete its endpoint network interfaces. You can only delete Gateway Load Balancer endpoints when the routes that are associated with the endpoint are deleted.

When you delete an interface endpoint, we delete its endpoint network interfaces.

See also: AWS API Documentation

Request Syntax

response = client.delete_vpc_endpoints(
    DryRun=True|False,
    VpcEndpointIds=[
        'string',
    ]
)
Parameters:
  • 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 .

  • VpcEndpointIds (list) –

    [REQUIRED]

    The IDs of the VPC endpoints.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Unsuccessful': [
        {
            'Error': {
                'Code': 'string',
                'Message': 'string'
            },
            'ResourceId': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Unsuccessful (list) –

      Information about the VPC endpoints that were not successfully deleted.

      • (dict) –

        Information about items that were not successfully processed in a batch call.

        • Error (dict) –

          Information about the error.

          • Code (string) –

            The error code.

          • Message (string) –

            The error message accompanying the error code.

        • ResourceId (string) –

          The ID of the resource.