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 |
Accept a VPC peering connection request. To accept a request, the VPC
peering connection must be in the pending-acceptance
state, and you
must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to
view your outstanding VPC peering connection requests.
For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.
Synopsis
- data AcceptVpcPeeringConnection = AcceptVpcPeeringConnection' {}
- newAcceptVpcPeeringConnection :: AcceptVpcPeeringConnection
- acceptVpcPeeringConnection_dryRun :: Lens' AcceptVpcPeeringConnection (Maybe Bool)
- acceptVpcPeeringConnection_vpcPeeringConnectionId :: Lens' AcceptVpcPeeringConnection (Maybe Text)
- data AcceptVpcPeeringConnectionResponse = AcceptVpcPeeringConnectionResponse' {}
- newAcceptVpcPeeringConnectionResponse :: Int -> AcceptVpcPeeringConnectionResponse
- acceptVpcPeeringConnectionResponse_vpcPeeringConnection :: Lens' AcceptVpcPeeringConnectionResponse (Maybe VpcPeeringConnection)
- acceptVpcPeeringConnectionResponse_httpStatus :: Lens' AcceptVpcPeeringConnectionResponse Int
Creating a Request
data AcceptVpcPeeringConnection Source #
See: newAcceptVpcPeeringConnection
smart constructor.
AcceptVpcPeeringConnection' | |
|
Instances
newAcceptVpcPeeringConnection :: AcceptVpcPeeringConnection Source #
Create a value of AcceptVpcPeeringConnection
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:AcceptVpcPeeringConnection'
, acceptVpcPeeringConnection_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
.
AcceptVpcPeeringConnection
, acceptVpcPeeringConnection_vpcPeeringConnectionId
- The ID of the VPC peering connection. You must specify this parameter in
the request.
Request Lenses
acceptVpcPeeringConnection_dryRun :: Lens' AcceptVpcPeeringConnection (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
.
acceptVpcPeeringConnection_vpcPeeringConnectionId :: Lens' AcceptVpcPeeringConnection (Maybe Text) Source #
The ID of the VPC peering connection. You must specify this parameter in the request.
Destructuring the Response
data AcceptVpcPeeringConnectionResponse Source #
See: newAcceptVpcPeeringConnectionResponse
smart constructor.
AcceptVpcPeeringConnectionResponse' | |
|
Instances
Generic AcceptVpcPeeringConnectionResponse Source # | |
Read AcceptVpcPeeringConnectionResponse Source # | |
Show AcceptVpcPeeringConnectionResponse Source # | |
NFData AcceptVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.AcceptVpcPeeringConnection rnf :: AcceptVpcPeeringConnectionResponse -> () # | |
Eq AcceptVpcPeeringConnectionResponse Source # | |
type Rep AcceptVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.AcceptVpcPeeringConnection type Rep AcceptVpcPeeringConnectionResponse = D1 ('MetaData "AcceptVpcPeeringConnectionResponse" "Amazonka.EC2.AcceptVpcPeeringConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AcceptVpcPeeringConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vpcPeeringConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcPeeringConnection)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAcceptVpcPeeringConnectionResponse Source #
Create a value of AcceptVpcPeeringConnectionResponse
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:
AcceptVpcPeeringConnectionResponse
, acceptVpcPeeringConnectionResponse_vpcPeeringConnection
- Information about the VPC peering connection.
$sel:httpStatus:AcceptVpcPeeringConnectionResponse'
, acceptVpcPeeringConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
acceptVpcPeeringConnectionResponse_vpcPeeringConnection :: Lens' AcceptVpcPeeringConnectionResponse (Maybe VpcPeeringConnection) Source #
Information about the VPC peering connection.
acceptVpcPeeringConnectionResponse_httpStatus :: Lens' AcceptVpcPeeringConnectionResponse Int Source #
The response's http status code.