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.DeleteVpcPeeringConnection

Description

Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state.

Synopsis

Creating a Request

data DeleteVpcPeeringConnection Source #

See: newDeleteVpcPeeringConnection smart constructor.

Constructors

DeleteVpcPeeringConnection' 

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.

  • vpcPeeringConnectionId :: Text

    The ID of the VPC peering connection.

Instances

Instances details
ToHeaders DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

ToPath DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

ToQuery DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

AWSRequest DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Generic DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Associated Types

type Rep DeleteVpcPeeringConnection :: Type -> Type #

Read DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Show DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

NFData DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Eq DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Hashable DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

type AWSResponse DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

type Rep DeleteVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

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

newDeleteVpcPeeringConnection Source #

Create a value of DeleteVpcPeeringConnection 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:DeleteVpcPeeringConnection', deleteVpcPeeringConnection_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.

DeleteVpcPeeringConnection, deleteVpcPeeringConnection_vpcPeeringConnectionId - The ID of the VPC peering connection.

Request Lenses

deleteVpcPeeringConnection_dryRun :: Lens' DeleteVpcPeeringConnection (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 DeleteVpcPeeringConnectionResponse Source #

Constructors

DeleteVpcPeeringConnectionResponse' 

Fields

Instances

Instances details
Generic DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Associated Types

type Rep DeleteVpcPeeringConnectionResponse :: Type -> Type #

Read DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Show DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

NFData DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

Eq DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

type Rep DeleteVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpcPeeringConnection

type Rep DeleteVpcPeeringConnectionResponse = D1 ('MetaData "DeleteVpcPeeringConnectionResponse" "Amazonka.EC2.DeleteVpcPeeringConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteVpcPeeringConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteVpcPeeringConnectionResponse Source #

Create a value of DeleteVpcPeeringConnectionResponse 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:return':DeleteVpcPeeringConnectionResponse', deleteVpcPeeringConnectionResponse_return - Returns true if the request succeeds; otherwise, it returns an error.

$sel:httpStatus:DeleteVpcPeeringConnectionResponse', deleteVpcPeeringConnectionResponse_httpStatus - The response's http status code.

Response Lenses

deleteVpcPeeringConnectionResponse_return :: Lens' DeleteVpcPeeringConnectionResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.