Skip to content

EC2  >  Operations  >  delete_vpc_endpoints

delete_vpc_endpoints

Operation

delete_vpc_endpoints async

delete_vpc_endpoints(request: DeleteVpcEndpointsInput | DeleteVpcEndpointsInputDict, /, *, plugins: list[Plugin] | None = None) -> DeleteVpcEndpointsOutput
delete_vpc_endpoints(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteVpcEndpointsInputDict]) -> DeleteVpcEndpointsOutput

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.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteVpcEndpointsOutput

An instance of DeleteVpcEndpointsOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DeleteVpcEndpointsInput dataclass

Bases: _SerdeShape

Dataclass for DeleteVpcEndpointsInput structure.

Attributes
dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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.

vpc_endpoint_ids class-attribute instance-attribute
vpc_endpoint_ids: list[str] | None = ...

The IDs of the VPC endpoints.

Dictionaries

DeleteVpcEndpointsInputDict

Bases: TypedDict

Dictionary form of DeleteVpcEndpointsInput.

Attributes
dry_run instance-attribute
dry_run: bool | None

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.

vpc_endpoint_ids instance-attribute
vpc_endpoint_ids: Required[Sequence[str]]

The IDs of the VPC endpoints.

Output

DeleteVpcEndpointsOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteVpcEndpointsOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

unsuccessful class-attribute instance-attribute
unsuccessful: list[UnsuccessfulItem] | None = ...

Information about the VPC endpoints that were not successfully deleted.