Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- acceptVPCPeeringConnection :: AcceptVPCPeeringConnection
- data AcceptVPCPeeringConnection
- avpcVPCPeeringConnectionId :: Lens' AcceptVPCPeeringConnection (Maybe Text)
- avpcDryRun :: Lens' AcceptVPCPeeringConnection (Maybe Bool)
- acceptVPCPeeringConnectionResponse :: Int -> AcceptVPCPeeringConnectionResponse
- data AcceptVPCPeeringConnectionResponse
- avpcrsVPCPeeringConnection :: Lens' AcceptVPCPeeringConnectionResponse (Maybe VPCPeeringConnection)
- avpcrsResponseStatus :: Lens' AcceptVPCPeeringConnectionResponse Int
Creating a Request
acceptVPCPeeringConnection :: AcceptVPCPeeringConnection Source #
Creates a value of AcceptVPCPeeringConnection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avpcVPCPeeringConnectionId
- The ID of the VPC peering connection. You must specify this parameter in the request.avpcDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.
data AcceptVPCPeeringConnection Source #
Contains the parameters for AcceptVpcPeeringConnection.
See: acceptVPCPeeringConnection
smart constructor.
Instances
Request Lenses
avpcVPCPeeringConnectionId :: Lens' AcceptVPCPeeringConnection (Maybe Text) Source #
The ID of the VPC peering connection. You must specify this parameter in the request.
avpcDryRun :: 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
.
Destructuring the Response
acceptVPCPeeringConnectionResponse Source #
Creates a value of AcceptVPCPeeringConnectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avpcrsVPCPeeringConnection
- Information about the VPC peering connection.avpcrsResponseStatus
- -- | The response status code.
data AcceptVPCPeeringConnectionResponse Source #
Contains the output of AcceptVpcPeeringConnection.
See: acceptVPCPeeringConnectionResponse
smart constructor.
Instances
Response Lenses
avpcrsVPCPeeringConnection :: Lens' AcceptVPCPeeringConnectionResponse (Maybe VPCPeeringConnection) Source #
Information about the VPC peering connection.
avpcrsResponseStatus :: Lens' AcceptVPCPeeringConnectionResponse Int Source #
- - | The response status code.