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.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 DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-region VPC peering connection request, you must accept the VPC peering connection in the region of the accepter VPC.

Synopsis

Creating a Request

acceptVPCPeeringConnection :: AcceptVPCPeeringConnection #

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. You must specify this parameter in the request.
  • 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 #

Contains the parameters for AcceptVpcPeeringConnection.

See: acceptVPCPeeringConnection smart constructor.

Instances

Eq AcceptVPCPeeringConnection # 
Data AcceptVPCPeeringConnection # 

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 # 
Show AcceptVPCPeeringConnection # 
Generic AcceptVPCPeeringConnection # 
Hashable AcceptVPCPeeringConnection # 
NFData AcceptVPCPeeringConnection # 
AWSRequest AcceptVPCPeeringConnection # 
ToHeaders AcceptVPCPeeringConnection # 
ToPath AcceptVPCPeeringConnection # 
ToQuery AcceptVPCPeeringConnection # 
type Rep AcceptVPCPeeringConnection # 
type Rep AcceptVPCPeeringConnection = D1 * (MetaData "AcceptVPCPeeringConnection" "Network.AWS.EC2.AcceptVPCPeeringConnection" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

avpcVPCPeeringConnectionId :: Lens' AcceptVPCPeeringConnection (Maybe Text) #

The ID of the VPC peering connection. You must specify this parameter in the request.

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

acceptVPCPeeringConnectionResponse #

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 #

Contains the output of AcceptVpcPeeringConnection.

See: acceptVPCPeeringConnectionResponse smart constructor.

Instances

Eq AcceptVPCPeeringConnectionResponse # 
Data AcceptVPCPeeringConnectionResponse # 

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 # 
Show AcceptVPCPeeringConnectionResponse # 
Generic AcceptVPCPeeringConnectionResponse # 
NFData AcceptVPCPeeringConnectionResponse # 
type Rep AcceptVPCPeeringConnectionResponse # 
type Rep AcceptVPCPeeringConnectionResponse = D1 * (MetaData "AcceptVPCPeeringConnectionResponse" "Network.AWS.EC2.AcceptVPCPeeringConnection" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "AcceptVPCPeeringConnectionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_avpcrsVPCPeeringConnection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VPCPeeringConnection))) (S1 * (MetaSel (Just Symbol "_avpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses