amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Data CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Show CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Generic CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Associated Types

type Rep CreateVPCPeeringConnection :: Type -> Type #

Hashable CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

AWSRequest CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Associated Types

type Rs CreateVPCPeeringConnection :: Type #

ToHeaders CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

ToPath CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

ToQuery CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

NFData CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

type Rep CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

type Rep CreateVPCPeeringConnection = D1 (MetaData "CreateVPCPeeringConnection" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateVPCPeeringConnection'" PrefixI True) ((S1 (MetaSel (Just "_cvpcPeerVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cvpcVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cvpcPeerOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cvpcPeerRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cvpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs CreateVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

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 # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Data CreateVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

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 # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Show CreateVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Generic CreateVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

Associated Types

type Rep CreateVPCPeeringConnectionResponse :: Type -> Type #

NFData CreateVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

type Rep CreateVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPCPeeringConnection

type Rep CreateVPCPeeringConnectionResponse = D1 (MetaData "CreateVPCPeeringConnectionResponse" "Network.AWS.EC2.CreateVPCPeeringConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateVPCPeeringConnectionResponse'" PrefixI True) (S1 (MetaSel (Just "_cvpcrsVPCPeeringConnection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCPeeringConnection)) :*: S1 (MetaSel (Just "_cvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses