Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.
The owner of the peer VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.
A CreateVpcPeeringConnection
request between VPCs with overlapping
CIDR blocks results in the VPC peering connection having a status of
failed
.
- createVPCPeeringConnection :: CreateVPCPeeringConnection
- data CreateVPCPeeringConnection
- cvpcPeerVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcPeerOwnerId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcDryRun :: Lens' CreateVPCPeeringConnection (Maybe Bool)
- createVPCPeeringConnectionResponse :: Int -> CreateVPCPeeringConnectionResponse
- data CreateVPCPeeringConnectionResponse
- cvpcrsVPCPeeringConnection :: Lens' CreateVPCPeeringConnectionResponse (Maybe VPCPeeringConnection)
- cvpcrsResponseStatus :: Lens' CreateVPCPeeringConnectionResponse Int
Creating a Request
createVPCPeeringConnection :: CreateVPCPeeringConnection Source
Creates a value of CreateVPCPeeringConnection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPCPeeringConnection Source
See: createVPCPeeringConnection
smart constructor.
Request Lenses
cvpcPeerVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text) Source
The ID of the VPC with which you are creating the VPC peering connection.
cvpcPeerOwnerId :: Lens' CreateVPCPeeringConnection (Maybe Text) Source
The AWS account ID of the owner of the peer VPC.
Default: Your AWS account ID
cvpcDryRun :: Lens' CreateVPCPeeringConnection (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
createVPCPeeringConnectionResponse Source
Creates a value of CreateVPCPeeringConnectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPCPeeringConnectionResponse Source
See: createVPCPeeringConnectionResponse
smart constructor.
Response Lenses
cvpcrsVPCPeeringConnection :: Lens' CreateVPCPeeringConnectionResponse (Maybe VPCPeeringConnection) Source
Information about the VPC peering connection.
cvpcrsResponseStatus :: Lens' CreateVPCPeeringConnectionResponse Int Source
The response status code.