amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DeleteVpcEndpoints

Description

Deletes one or more specified VPC endpoints. You can delete any of the following types of VPC endpoints.

  • Gateway endpoint,
  • Gateway Load Balancer endpoint,
  • Interface endpoint

The following rules apply when you delete a VPC endpoint:

  • When you delete a gateway endpoint, we delete the endpoint routes in the route tables that are associated with the endpoint.
  • When you delete a Gateway Load Balancer endpoint, we delete the 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 the endpoint network interfaces.
Synopsis

Creating a Request

data DeleteVpcEndpoints Source #

Contains the parameters for DeleteVpcEndpoints.

See: newDeleteVpcEndpoints smart constructor.

Constructors

DeleteVpcEndpoints' 

Fields

  • dryRun :: Maybe Bool

    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 :: [Text]

    One or more VPC endpoint IDs.

Instances

Instances details
ToHeaders DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

ToPath DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

ToQuery DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

AWSRequest DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Associated Types

type AWSResponse DeleteVpcEndpoints #

Generic DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Associated Types

type Rep DeleteVpcEndpoints :: Type -> Type #

Read DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Show DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

NFData DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Methods

rnf :: DeleteVpcEndpoints -> () #

Eq DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Hashable DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

type AWSResponse DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

type Rep DeleteVpcEndpoints Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

type Rep DeleteVpcEndpoints = D1 ('MetaData "DeleteVpcEndpoints" "Amazonka.EC2.DeleteVpcEndpoints" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteVpcEndpoints'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "vpcEndpointIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

newDeleteVpcEndpoints :: DeleteVpcEndpoints Source #

Create a value of DeleteVpcEndpoints with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DeleteVpcEndpoints', deleteVpcEndpoints_dryRun - 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.

$sel:vpcEndpointIds:DeleteVpcEndpoints', deleteVpcEndpoints_vpcEndpointIds - One or more VPC endpoint IDs.

Request Lenses

deleteVpcEndpoints_dryRun :: Lens' DeleteVpcEndpoints (Maybe Bool) Source #

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.

Destructuring the Response

data DeleteVpcEndpointsResponse Source #

Contains the output of DeleteVpcEndpoints.

See: newDeleteVpcEndpointsResponse smart constructor.

Constructors

DeleteVpcEndpointsResponse' 

Fields

Instances

Instances details
Generic DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Associated Types

type Rep DeleteVpcEndpointsResponse :: Type -> Type #

Read DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Show DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

NFData DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

Eq DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

type Rep DeleteVpcEndpointsResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcEndpoints

type Rep DeleteVpcEndpointsResponse = D1 ('MetaData "DeleteVpcEndpointsResponse" "Amazonka.EC2.DeleteVpcEndpoints" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteVpcEndpointsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unsuccessful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteVpcEndpointsResponse Source #

Create a value of DeleteVpcEndpointsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:unsuccessful:DeleteVpcEndpointsResponse', deleteVpcEndpointsResponse_unsuccessful - Information about the VPC endpoints that were not successfully deleted.

$sel:httpStatus:DeleteVpcEndpointsResponse', deleteVpcEndpointsResponse_httpStatus - The response's http status code.

Response Lenses

deleteVpcEndpointsResponse_unsuccessful :: Lens' DeleteVpcEndpointsResponse (Maybe [UnsuccessfulItem]) Source #

Information about the VPC endpoints that were not successfully deleted.