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

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Data RejectVPCPeeringConnection # 
Instance details

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

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Show RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Generic RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Associated Types

type Rep RejectVPCPeeringConnection :: Type -> Type #

Hashable RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

AWSRequest RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Associated Types

type Rs RejectVPCPeeringConnection :: Type #

ToHeaders RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

ToPath RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

ToQuery RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

NFData RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

type Rep RejectVPCPeeringConnection # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

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

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

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Data RejectVPCPeeringConnectionResponse # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

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

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Show RejectVPCPeeringConnectionResponse # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Generic RejectVPCPeeringConnectionResponse # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

Associated Types

type Rep RejectVPCPeeringConnectionResponse :: Type -> Type #

NFData RejectVPCPeeringConnectionResponse # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

type Rep RejectVPCPeeringConnectionResponse # 
Instance details

Defined in Network.AWS.EC2.RejectVPCPeeringConnection

type Rep RejectVPCPeeringConnectionResponse = D1 (MetaData "RejectVPCPeeringConnectionResponse" "Network.AWS.EC2.RejectVPCPeeringConnection" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "RejectVPCPeeringConnectionResponse'" PrefixI True) (S1 (MetaSel (Just "_rvpcrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_rvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

rvpcrsReturn :: Lens' RejectVPCPeeringConnectionResponse (Maybe Bool) #

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