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 |
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
- 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.
Constructors
DeleteVpcPeeringConnection' | |
Fields
|
Instances
newDeleteVpcPeeringConnection Source #
Arguments
:: Text | |
-> DeleteVpcPeeringConnection |
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.
Constructors
DeleteVpcPeeringConnectionResponse' | |
Fields
|
Instances
newDeleteVpcPeeringConnectionResponse Source #
Arguments
:: Int | |
-> DeleteVpcPeeringConnectionResponse |
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.