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

Contents

Description

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection .

Synopsis

Creating a Request

rejectVPCPeeringConnection Source #

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

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

  • rvpcDryRun - 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 .
  • rvpcVPCPeeringConnectionId - The ID of the VPC peering connection.

data RejectVPCPeeringConnection Source #

Contains the parameters for RejectVpcPeeringConnection.

See: rejectVPCPeeringConnection smart constructor.

Instances

Eq RejectVPCPeeringConnection Source # 
Data RejectVPCPeeringConnection Source # 

Methods

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

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

toConstr :: RejectVPCPeeringConnection -> Constr #

dataTypeOf :: RejectVPCPeeringConnection -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Request Lenses

rvpcDryRun :: Lens' RejectVPCPeeringConnection (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

rejectVPCPeeringConnectionResponse Source #

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

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

data RejectVPCPeeringConnectionResponse Source #

Contains the output of RejectVpcPeeringConnection.

See: rejectVPCPeeringConnectionResponse smart constructor.

Instances

Eq RejectVPCPeeringConnectionResponse Source # 
Data RejectVPCPeeringConnectionResponse Source # 

Methods

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

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

toConstr :: RejectVPCPeeringConnectionResponse -> Constr #

dataTypeOf :: RejectVPCPeeringConnectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RejectVPCPeeringConnectionResponse Source # 
Show RejectVPCPeeringConnectionResponse Source # 
Generic RejectVPCPeeringConnectionResponse Source # 
NFData RejectVPCPeeringConnectionResponse Source # 
type Rep RejectVPCPeeringConnectionResponse Source # 
type Rep RejectVPCPeeringConnectionResponse = D1 * (MetaData "RejectVPCPeeringConnectionResponse" "Network.AWS.EC2.RejectVPCPeeringConnection" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "RejectVPCPeeringConnectionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rvpcrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

rvpcrsReturn :: Lens' RejectVPCPeeringConnectionResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.