amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateVPCPeeringConnection

Contents

Description

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 .

Synopsis

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 ID
  • cvpcPeerRegion - 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 is DryRunOperation . Otherwise, it is UnauthorizedOperation .

data CreateVPCPeeringConnection Source #

Contains the parameters for CreateVpcPeeringConnection.

See: createVPCPeeringConnection smart constructor.

Instances

Eq CreateVPCPeeringConnection Source # 
Data CreateVPCPeeringConnection Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateVPCPeeringConnection -> c CreateVPCPeeringConnection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateVPCPeeringConnection #

toConstr :: CreateVPCPeeringConnection -> Constr #

dataTypeOf :: CreateVPCPeeringConnection -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateVPCPeeringConnection) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateVPCPeeringConnection) #

gmapT :: (forall b. Data b => b -> b) -> CreateVPCPeeringConnection -> CreateVPCPeeringConnection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCPeeringConnection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCPeeringConnection -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateVPCPeeringConnection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateVPCPeeringConnection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnection -> m CreateVPCPeeringConnection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnection -> m CreateVPCPeeringConnection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnection -> m CreateVPCPeeringConnection #

Read CreateVPCPeeringConnection Source # 
Show CreateVPCPeeringConnection Source # 
Generic CreateVPCPeeringConnection Source # 
Hashable CreateVPCPeeringConnection Source # 
NFData CreateVPCPeeringConnection Source # 
AWSRequest CreateVPCPeeringConnection Source # 
ToHeaders CreateVPCPeeringConnection Source # 
ToPath CreateVPCPeeringConnection Source # 
ToQuery CreateVPCPeeringConnection Source # 
type Rep CreateVPCPeeringConnection Source # 
type Rep CreateVPCPeeringConnection = D1 * (MetaData "CreateVPCPeeringConnection" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CreateVPCPeeringConnection'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcPeerVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cvpcVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcPeerOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcPeerRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cvpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))))))
type Rs CreateVPCPeeringConnection Source # 

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:

data CreateVPCPeeringConnectionResponse Source #

Contains the output of CreateVpcPeeringConnection.

See: createVPCPeeringConnectionResponse smart constructor.

Instances

Eq CreateVPCPeeringConnectionResponse Source # 
Data CreateVPCPeeringConnectionResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateVPCPeeringConnectionResponse -> c CreateVPCPeeringConnectionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateVPCPeeringConnectionResponse #

toConstr :: CreateVPCPeeringConnectionResponse -> Constr #

dataTypeOf :: CreateVPCPeeringConnectionResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateVPCPeeringConnectionResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateVPCPeeringConnectionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateVPCPeeringConnectionResponse -> CreateVPCPeeringConnectionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCPeeringConnectionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCPeeringConnectionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateVPCPeeringConnectionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateVPCPeeringConnectionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnectionResponse -> m CreateVPCPeeringConnectionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnectionResponse -> m CreateVPCPeeringConnectionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCPeeringConnectionResponse -> m CreateVPCPeeringConnectionResponse #

Read CreateVPCPeeringConnectionResponse Source # 
Show CreateVPCPeeringConnectionResponse Source # 
Generic CreateVPCPeeringConnectionResponse Source # 
NFData CreateVPCPeeringConnectionResponse Source # 
type Rep CreateVPCPeeringConnectionResponse Source # 
type Rep CreateVPCPeeringConnectionResponse = D1 * (MetaData "CreateVPCPeeringConnectionResponse" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CreateVPCPeeringConnectionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcrsVPCPeeringConnection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VPCPeeringConnection))) (S1 * (MetaSel (Just Symbol "_cvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses