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

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 #

Contains the parameters for RejectVpcPeeringConnection.

See: rejectVPCPeeringConnection smart constructor.

Instances

Eq RejectVPCPeeringConnection # 
Data RejectVPCPeeringConnection # 

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

Request Lenses

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

rvpcVPCPeeringConnectionId :: Lens' RejectVPCPeeringConnection Text #

The ID of the VPC peering connection.

Destructuring the Response

rejectVPCPeeringConnectionResponse #

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 #

Contains the output of RejectVpcPeeringConnection.

See: rejectVPCPeeringConnectionResponse smart constructor.

Instances

Eq RejectVPCPeeringConnectionResponse # 
Data RejectVPCPeeringConnectionResponse # 

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 # 
Show RejectVPCPeeringConnectionResponse # 
Generic RejectVPCPeeringConnectionResponse # 
NFData RejectVPCPeeringConnectionResponse # 
type Rep RejectVPCPeeringConnectionResponse # 
type Rep RejectVPCPeeringConnectionResponse = D1 (MetaData "RejectVPCPeeringConnectionResponse" "Network.AWS.EC2.RejectVPCPeeringConnection" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RejectVPCPeeringConnectionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rvpcrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_rvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

rvpcrsReturn :: Lens' RejectVPCPeeringConnectionResponse (Maybe Bool) #

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