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 |
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.
RejectVpcPeeringConnection' | |
|
Instances
newRejectVpcPeeringConnection Source #
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.
RejectVpcPeeringConnectionResponse' | |
|
Instances
Generic RejectVpcPeeringConnectionResponse Source # | |
Read RejectVpcPeeringConnectionResponse Source # | |
Show RejectVpcPeeringConnectionResponse Source # | |
NFData RejectVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.RejectVpcPeeringConnection rnf :: RejectVpcPeeringConnectionResponse -> () # | |
Eq RejectVpcPeeringConnectionResponse Source # | |
type Rep RejectVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.RejectVpcPeeringConnection type Rep RejectVpcPeeringConnectionResponse = D1 ('MetaData "RejectVpcPeeringConnectionResponse" "Amazonka.EC2.RejectVpcPeeringConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RejectVpcPeeringConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRejectVpcPeeringConnectionResponse Source #
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.