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 |
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 Amazon Web Services account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.
Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.
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
.
Synopsis
- data CreateVpcPeeringConnection = CreateVpcPeeringConnection' {
- dryRun :: Maybe Bool
- peerOwnerId :: Maybe Text
- peerRegion :: Maybe Text
- peerVpcId :: Maybe Text
- tagSpecifications :: Maybe [TagSpecification]
- vpcId :: Maybe Text
- newCreateVpcPeeringConnection :: CreateVpcPeeringConnection
- createVpcPeeringConnection_dryRun :: Lens' CreateVpcPeeringConnection (Maybe Bool)
- createVpcPeeringConnection_peerOwnerId :: Lens' CreateVpcPeeringConnection (Maybe Text)
- createVpcPeeringConnection_peerRegion :: Lens' CreateVpcPeeringConnection (Maybe Text)
- createVpcPeeringConnection_peerVpcId :: Lens' CreateVpcPeeringConnection (Maybe Text)
- createVpcPeeringConnection_tagSpecifications :: Lens' CreateVpcPeeringConnection (Maybe [TagSpecification])
- createVpcPeeringConnection_vpcId :: Lens' CreateVpcPeeringConnection (Maybe Text)
- data CreateVpcPeeringConnectionResponse = CreateVpcPeeringConnectionResponse' {}
- newCreateVpcPeeringConnectionResponse :: Int -> CreateVpcPeeringConnectionResponse
- createVpcPeeringConnectionResponse_vpcPeeringConnection :: Lens' CreateVpcPeeringConnectionResponse (Maybe VpcPeeringConnection)
- createVpcPeeringConnectionResponse_httpStatus :: Lens' CreateVpcPeeringConnectionResponse Int
Creating a Request
data CreateVpcPeeringConnection Source #
See: newCreateVpcPeeringConnection
smart constructor.
CreateVpcPeeringConnection' | |
|
Instances
newCreateVpcPeeringConnection :: CreateVpcPeeringConnection Source #
Create a value of CreateVpcPeeringConnection
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:CreateVpcPeeringConnection'
, createVpcPeeringConnection_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
.
$sel:peerOwnerId:CreateVpcPeeringConnection'
, createVpcPeeringConnection_peerOwnerId
- The Amazon Web Services account ID of the owner of the accepter VPC.
Default: Your Amazon Web Services account ID
$sel:peerRegion:CreateVpcPeeringConnection'
, createVpcPeeringConnection_peerRegion
- 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.
$sel:peerVpcId:CreateVpcPeeringConnection'
, createVpcPeeringConnection_peerVpcId
- The ID of the VPC with which you are creating the VPC peering
connection. You must specify this parameter in the request.
CreateVpcPeeringConnection
, createVpcPeeringConnection_tagSpecifications
- The tags to assign to the peering connection.
CreateVpcPeeringConnection
, createVpcPeeringConnection_vpcId
- The ID of the requester VPC. You must specify this parameter in the
request.
Request Lenses
createVpcPeeringConnection_dryRun :: 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
.
createVpcPeeringConnection_peerOwnerId :: Lens' CreateVpcPeeringConnection (Maybe Text) Source #
The Amazon Web Services account ID of the owner of the accepter VPC.
Default: Your Amazon Web Services account ID
createVpcPeeringConnection_peerRegion :: 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.
createVpcPeeringConnection_peerVpcId :: 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.
createVpcPeeringConnection_tagSpecifications :: Lens' CreateVpcPeeringConnection (Maybe [TagSpecification]) Source #
The tags to assign to the peering connection.
createVpcPeeringConnection_vpcId :: Lens' CreateVpcPeeringConnection (Maybe Text) Source #
The ID of the requester VPC. You must specify this parameter in the request.
Destructuring the Response
data CreateVpcPeeringConnectionResponse Source #
See: newCreateVpcPeeringConnectionResponse
smart constructor.
CreateVpcPeeringConnectionResponse' | |
|
Instances
Generic CreateVpcPeeringConnectionResponse Source # | |
Read CreateVpcPeeringConnectionResponse Source # | |
Show CreateVpcPeeringConnectionResponse Source # | |
NFData CreateVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.CreateVpcPeeringConnection rnf :: CreateVpcPeeringConnectionResponse -> () # | |
Eq CreateVpcPeeringConnectionResponse Source # | |
type Rep CreateVpcPeeringConnectionResponse Source # | |
Defined in Amazonka.EC2.CreateVpcPeeringConnection type Rep CreateVpcPeeringConnectionResponse = D1 ('MetaData "CreateVpcPeeringConnectionResponse" "Amazonka.EC2.CreateVpcPeeringConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateVpcPeeringConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vpcPeeringConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcPeeringConnection)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateVpcPeeringConnectionResponse Source #
Create a value of CreateVpcPeeringConnectionResponse
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:
CreateVpcPeeringConnectionResponse
, createVpcPeeringConnectionResponse_vpcPeeringConnection
- Information about the VPC peering connection.
$sel:httpStatus:CreateVpcPeeringConnectionResponse'
, createVpcPeeringConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
createVpcPeeringConnectionResponse_vpcPeeringConnection :: Lens' CreateVpcPeeringConnectionResponse (Maybe VpcPeeringConnection) Source #
Information about the VPC peering connection.
createVpcPeeringConnectionResponse_httpStatus :: Lens' CreateVpcPeeringConnectionResponse Int Source #
The response's http status code.