| 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.RejectVpcPeeringConnection
Description
Rejects a VPC peering connection request. The VPC peering connection
must be in the pending-acceptance state. Use the
DescribeVpcPeeringConnections request to view your outstanding VPC
peering connection requests. To delete an active VPC peering connection,
or to delete a VPC peering connection request that you initiated, use
DeleteVpcPeeringConnection.
Synopsis
- data RejectVpcPeeringConnection = RejectVpcPeeringConnection' {}
- newRejectVpcPeeringConnection :: Text -> RejectVpcPeeringConnection
- rejectVpcPeeringConnection_dryRun :: Lens' RejectVpcPeeringConnection (Maybe Bool)
- rejectVpcPeeringConnection_vpcPeeringConnectionId :: Lens' RejectVpcPeeringConnection Text
- data RejectVpcPeeringConnectionResponse = RejectVpcPeeringConnectionResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newRejectVpcPeeringConnectionResponse :: Int -> RejectVpcPeeringConnectionResponse
- rejectVpcPeeringConnectionResponse_return :: Lens' RejectVpcPeeringConnectionResponse (Maybe Bool)
- rejectVpcPeeringConnectionResponse_httpStatus :: Lens' RejectVpcPeeringConnectionResponse Int
Creating a Request
data RejectVpcPeeringConnection Source #
See: newRejectVpcPeeringConnection smart constructor.
Constructors
| RejectVpcPeeringConnection' | |
Fields
| |
Instances
newRejectVpcPeeringConnection Source #
Arguments
| :: Text | |
| -> RejectVpcPeeringConnection |
Create a value of RejectVpcPeeringConnection 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:RejectVpcPeeringConnection', rejectVpcPeeringConnection_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.
RejectVpcPeeringConnection, rejectVpcPeeringConnection_vpcPeeringConnectionId - The ID of the VPC peering connection.
Request Lenses
rejectVpcPeeringConnection_dryRun :: Lens' RejectVpcPeeringConnection (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.
rejectVpcPeeringConnection_vpcPeeringConnectionId :: Lens' RejectVpcPeeringConnection Text Source #
The ID of the VPC peering connection.
Destructuring the Response
data RejectVpcPeeringConnectionResponse Source #
See: newRejectVpcPeeringConnectionResponse smart constructor.
Constructors
| RejectVpcPeeringConnectionResponse' | |
Fields
| |
Instances
newRejectVpcPeeringConnectionResponse Source #
Arguments
| :: Int | |
| -> RejectVpcPeeringConnectionResponse |
Create a value of RejectVpcPeeringConnectionResponse 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':RejectVpcPeeringConnectionResponse', rejectVpcPeeringConnectionResponse_return - Returns true if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:RejectVpcPeeringConnectionResponse', rejectVpcPeeringConnectionResponse_httpStatus - The response's http status code.
Response Lenses
rejectVpcPeeringConnectionResponse_return :: Lens' RejectVpcPeeringConnectionResponse (Maybe Bool) Source #
Returns true if the request succeeds; otherwise, it returns an error.
rejectVpcPeeringConnectionResponse_httpStatus :: Lens' RejectVpcPeeringConnectionResponse Int Source #
The response's http status code.