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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 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 .

Synopsis

Creating a Request

createVPCPeeringConnection :: CreateVPCPeeringConnection #

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.
  • cvpcVPCId - The ID of the requester VPC.
  • cvpcPeerOwnerId - The AWS account ID of the owner of the peer VPC. Default: Your AWS account ID
  • 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 #

Contains the parameters for CreateVpcPeeringConnection.

See: createVPCPeeringConnection smart constructor.

Instances

Eq CreateVPCPeeringConnection # 
Data CreateVPCPeeringConnection # 

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 # 
Show CreateVPCPeeringConnection # 
Generic CreateVPCPeeringConnection # 
Hashable CreateVPCPeeringConnection # 
NFData CreateVPCPeeringConnection # 
AWSRequest CreateVPCPeeringConnection # 
ToQuery CreateVPCPeeringConnection # 
ToPath CreateVPCPeeringConnection # 
ToHeaders CreateVPCPeeringConnection # 
type Rep CreateVPCPeeringConnection # 
type Rep CreateVPCPeeringConnection = D1 (MetaData "CreateVPCPeeringConnection" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 "_cvpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs CreateVPCPeeringConnection # 

Request Lenses

cvpcPeerVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text) #

The ID of the VPC with which you are creating the VPC peering connection.

cvpcVPCId :: Lens' CreateVPCPeeringConnection (Maybe Text) #

The ID of the requester VPC.

cvpcPeerOwnerId :: Lens' CreateVPCPeeringConnection (Maybe Text) #

The AWS account ID of the owner of the peer VPC. Default: Your AWS account ID

cvpcDryRun :: Lens' CreateVPCPeeringConnection (Maybe Bool) #

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 #

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 #

Contains the output of CreateVpcPeeringConnection.

See: createVPCPeeringConnectionResponse smart constructor.

Instances

Eq CreateVPCPeeringConnectionResponse # 
Data CreateVPCPeeringConnectionResponse # 

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 # 
Show CreateVPCPeeringConnectionResponse # 
Generic CreateVPCPeeringConnectionResponse # 
NFData CreateVPCPeeringConnectionResponse # 
type Rep CreateVPCPeeringConnectionResponse # 
type Rep CreateVPCPeeringConnectionResponse = D1 (MetaData "CreateVPCPeeringConnectionResponse" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateVPCPeeringConnectionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvpcrsVPCPeeringConnection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCPeeringConnection))) (S1 (MetaSel (Just Symbol "_cvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses