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.AcceptVPCPeeringConnection

Contents

Description

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.

Synopsis

Creating a Request

acceptVPCPeeringConnection :: AcceptVPCPeeringConnection Source #

Creates a value of AcceptVPCPeeringConnection with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • avpcVPCPeeringConnectionId - The ID of the VPC peering connection.
  • avpcDryRun - 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 AcceptVPCPeeringConnection Source #

Contains the parameters for AcceptVpcPeeringConnection.

See: acceptVPCPeeringConnection smart constructor.

Instances

Eq AcceptVPCPeeringConnection Source # 
Data AcceptVPCPeeringConnection Source # 

Methods

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

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

toConstr :: AcceptVPCPeeringConnection -> Constr #

dataTypeOf :: AcceptVPCPeeringConnection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AcceptVPCPeeringConnection Source # 
Show AcceptVPCPeeringConnection Source # 
Generic AcceptVPCPeeringConnection Source # 
Hashable AcceptVPCPeeringConnection Source # 
NFData AcceptVPCPeeringConnection Source # 
AWSRequest AcceptVPCPeeringConnection Source # 
ToPath AcceptVPCPeeringConnection Source # 
ToHeaders AcceptVPCPeeringConnection Source # 
ToQuery AcceptVPCPeeringConnection Source # 
type Rep AcceptVPCPeeringConnection Source # 
type Rep AcceptVPCPeeringConnection = D1 (MetaData "AcceptVPCPeeringConnection" "Network.AWS.EC2.AcceptVPCPeeringConnection" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "AcceptVPCPeeringConnection'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avpcVPCPeeringConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_avpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Rs AcceptVPCPeeringConnection Source # 

Request Lenses

avpcDryRun :: Lens' AcceptVPCPeeringConnection (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

acceptVPCPeeringConnectionResponse Source #

Creates a value of AcceptVPCPeeringConnectionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AcceptVPCPeeringConnectionResponse Source #

Contains the output of AcceptVpcPeeringConnection.

See: acceptVPCPeeringConnectionResponse smart constructor.

Instances

Eq AcceptVPCPeeringConnectionResponse Source # 
Data AcceptVPCPeeringConnectionResponse Source # 

Methods

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

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

toConstr :: AcceptVPCPeeringConnectionResponse -> Constr #

dataTypeOf :: AcceptVPCPeeringConnectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AcceptVPCPeeringConnectionResponse Source # 
Show AcceptVPCPeeringConnectionResponse Source # 
Generic AcceptVPCPeeringConnectionResponse Source # 
NFData AcceptVPCPeeringConnectionResponse Source # 
type Rep AcceptVPCPeeringConnectionResponse Source # 
type Rep AcceptVPCPeeringConnectionResponse = D1 (MetaData "AcceptVPCPeeringConnectionResponse" "Network.AWS.EC2.AcceptVPCPeeringConnection" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "AcceptVPCPeeringConnectionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avpcrsVPCPeeringConnection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCPeeringConnection))) (S1 (MetaSel (Just Symbol "_avpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses