amazonka-ec2-1.4.3: 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.ModifyVPCPeeringConnectionOptions

Contents

Description

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

  • Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.
  • Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.

If the peered VPCs are in different accounts, each owner must initiate a separate request to enable or disable communication in either direction, depending on whether their VPC was the requester or accepter for the VPC peering connection. If the peered VPCs are in the same account, you can modify the requester and accepter options in the same request. To confirm which VPC is the accepter and requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

Synopsis

Creating a Request

data ModifyVPCPeeringConnectionOptions Source #

See: modifyVPCPeeringConnectionOptions smart constructor.

Instances

Eq ModifyVPCPeeringConnectionOptions Source # 
Data ModifyVPCPeeringConnectionOptions Source # 

Methods

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

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

toConstr :: ModifyVPCPeeringConnectionOptions -> Constr #

dataTypeOf :: ModifyVPCPeeringConnectionOptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyVPCPeeringConnectionOptions Source # 
Show ModifyVPCPeeringConnectionOptions Source # 
Generic ModifyVPCPeeringConnectionOptions Source # 
Hashable ModifyVPCPeeringConnectionOptions Source # 
NFData ModifyVPCPeeringConnectionOptions Source # 
AWSRequest ModifyVPCPeeringConnectionOptions Source # 
ToQuery ModifyVPCPeeringConnectionOptions Source # 
ToPath ModifyVPCPeeringConnectionOptions Source # 
ToHeaders ModifyVPCPeeringConnectionOptions Source # 
type Rep ModifyVPCPeeringConnectionOptions Source # 
type Rep ModifyVPCPeeringConnectionOptions = D1 (MetaData "ModifyVPCPeeringConnectionOptions" "Network.AWS.EC2.ModifyVPCPeeringConnectionOptions" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "ModifyVPCPeeringConnectionOptions'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_mvpcoRequesterPeeringConnectionOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PeeringConnectionOptionsRequest))) (S1 (MetaSel (Just Symbol "_mvpcoAccepterPeeringConnectionOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PeeringConnectionOptionsRequest)))) ((:*:) (S1 (MetaSel (Just Symbol "_mvpcoDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_mvpcoVPCPeeringConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ModifyVPCPeeringConnectionOptions Source # 

Request Lenses

mvpcoDryRun :: Lens' ModifyVPCPeeringConnectionOptions (Maybe Bool) Source #

Checks whether you have the required permissions for the operation, 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

data ModifyVPCPeeringConnectionOptionsResponse Source #

Instances

Eq ModifyVPCPeeringConnectionOptionsResponse Source # 
Data ModifyVPCPeeringConnectionOptionsResponse Source # 

Methods

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

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

toConstr :: ModifyVPCPeeringConnectionOptionsResponse -> Constr #

dataTypeOf :: ModifyVPCPeeringConnectionOptionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyVPCPeeringConnectionOptionsResponse Source # 
Show ModifyVPCPeeringConnectionOptionsResponse Source # 
Generic ModifyVPCPeeringConnectionOptionsResponse Source # 
NFData ModifyVPCPeeringConnectionOptionsResponse Source # 
type Rep ModifyVPCPeeringConnectionOptionsResponse Source # 
type Rep ModifyVPCPeeringConnectionOptionsResponse = D1 (MetaData "ModifyVPCPeeringConnectionOptionsResponse" "Network.AWS.EC2.ModifyVPCPeeringConnectionOptions" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "ModifyVPCPeeringConnectionOptionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mvpcorsRequesterPeeringConnectionOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PeeringConnectionOptions))) ((:*:) (S1 (MetaSel (Just Symbol "_mvpcorsAccepterPeeringConnectionOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PeeringConnectionOptions))) (S1 (MetaSel (Just Symbol "_mvpcorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

mvpcorsRequesterPeeringConnectionOptions :: Lens' ModifyVPCPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions) Source #

Information about the VPC peering connection options for the requester VPC.

mvpcorsAccepterPeeringConnectionOptions :: Lens' ModifyVPCPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions) Source #

Information about the VPC peering connection options for the accepter VPC.