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.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 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. 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 Source #

Contains the parameters for AcceptVpcPeeringConnection.

See: acceptVPCPeeringConnection smart constructor.

Instances
Eq AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Data AcceptVPCPeeringConnection Source # 
Instance details

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

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Show AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Generic AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Associated Types

type Rep AcceptVPCPeeringConnection :: Type -> Type #

Hashable AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

AWSRequest AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Associated Types

type Rs AcceptVPCPeeringConnection :: Type #

ToHeaders AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

ToPath AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

ToQuery AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

NFData AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

type Rep AcceptVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

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

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Request Lenses

avpcVPCPeeringConnectionId :: Lens' AcceptVPCPeeringConnection (Maybe Text) Source #

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

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

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Data AcceptVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

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

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Show AcceptVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Generic AcceptVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

Associated Types

type Rep AcceptVPCPeeringConnectionResponse :: Type -> Type #

NFData AcceptVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

type Rep AcceptVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.AcceptVPCPeeringConnection

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

Response Lenses