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 |
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.
The owner of the accepter 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.
If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed
.
- createVPCPeeringConnection :: CreateVPCPeeringConnection
- data CreateVPCPeeringConnection
- cvpcPeerVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcPeerOwnerId :: Lens' CreateVPCPeeringConnection (Maybe Text)
- cvpcPeerRegion :: 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:
cvpcPeerVPCId
- The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.cvpcVPCId
- The ID of the requester VPC. You must specify this parameter in the request.cvpcPeerOwnerId
- The AWS account ID of the owner of the accepter VPC. Default: Your AWS account IDcvpcPeerRegion
- The region code for the accepter VPC, if the accepter VPC is located in a region other than the region in which you make the request. Default: The region in which you make the request.cvpcDryRun
- 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 CreateVPCPeeringConnection Source #
Contains the parameters for CreateVpcPeeringConnection.
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. You must specify this parameter in the request.
cvpcVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text) Source #
The ID of the requester VPC. You must specify this parameter in the request.
cvpcPeerOwnerId :: Lens' CreateVPCPeeringConnection (Maybe Text) Source #
The AWS account ID of the owner of the accepter VPC. Default: Your AWS account ID
cvpcPeerRegion :: Lens' CreateVPCPeeringConnection (Maybe Text) Source #
The region code for the accepter VPC, if the accepter VPC is located in a region other than the region in which you make the request. Default: The region in which you make the request.
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:
cvpcrsVPCPeeringConnection
- Information about the VPC peering connection.cvpcrsResponseStatus
- -- | The response status code.
data CreateVPCPeeringConnectionResponse Source #
Contains the output of CreateVpcPeeringConnection.
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.