Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data DeleteVpcPeeringConnection = DeleteVpcPeeringConnection' {}
- newDeleteVpcPeeringConnection :: Text -> DeleteVpcPeeringConnection
- deleteVpcPeeringConnection_dryRun :: Lens' DeleteVpcPeeringConnection (Maybe Bool)
- deleteVpcPeeringConnection_vpcPeeringConnectionId :: Lens' DeleteVpcPeeringConnection Text
- data DeleteVpcPeeringConnectionResponse = DeleteVpcPeeringConnectionResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newDeleteVpcPeeringConnectionResponse :: Int -> DeleteVpcPeeringConnectionResponse
- deleteVpcPeeringConnectionResponse_return :: Lens' DeleteVpcPeeringConnectionResponse (Maybe Bool)
- deleteVpcPeeringConnectionResponse_httpStatus :: Lens' DeleteVpcPeeringConnectionResponse Int
Creating a Request
data DeleteVpcPeeringConnection Source #
See: newDeleteVpcPeeringConnection
smart constructor.
DeleteVpcPeeringConnection' | |
|
Instances
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
.
deleteVpcPeeringConnection_vpcPeeringConnectionId :: Lens' DeleteVpcPeeringConnection Text Source #
The ID of the VPC peering connection.
Destructuring the Response
data DeleteVpcPeeringConnectionResponse Source #
See: newDeleteVpcPeeringConnectionResponse
smart constructor.
DeleteVpcPeeringConnectionResponse' | |
|
Instances
Generic DeleteVpcPeeringConnectionResponse Source # | |
Read DeleteVpcPeeringConnectionResponse Source # | |
Show DeleteVpcPeeringConnectionResponse Source # | |
NFData DeleteVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.DeleteVpcPeeringConnection rnf :: DeleteVpcPeeringConnectionResponse -> () # | |
Eq DeleteVpcPeeringConnectionResponse Source # | |
type Rep DeleteVpcPeeringConnectionResponse Source # | |
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.
deleteVpcPeeringConnectionResponse_httpStatus :: Lens' DeleteVpcPeeringConnectionResponse Int Source #
The response's http status code.