amazonka-organizations-1.5.0: Amazon Organizations SDK.

Copyright(c) 2013-2017 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.Organizations.DeclineHandshake

Contents

Description

Declines a handshake request. This sets the handshake state to DECLINED and effectively deactivates the request.

This operation can be called only from the account that received the handshake. The originator of the handshake can use CancelHandshake instead. The originator can't reactivate a declined request, but can re-initiate the process with a new handshake request.

After you decline a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.

Synopsis

Creating a Request

declineHandshake Source #

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

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

  • dHandshakeId - The unique identifier (ID) of the handshake that you want to decline. You can get the ID from the ListHandshakesForAccount operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.

data DeclineHandshake Source #

See: declineHandshake smart constructor.

Instances

Eq DeclineHandshake Source # 
Data DeclineHandshake Source # 

Methods

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

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

toConstr :: DeclineHandshake -> Constr #

dataTypeOf :: DeclineHandshake -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeclineHandshake Source # 
Show DeclineHandshake Source # 
Generic DeclineHandshake Source # 
Hashable DeclineHandshake Source # 
ToJSON DeclineHandshake Source # 
NFData DeclineHandshake Source # 

Methods

rnf :: DeclineHandshake -> () #

AWSRequest DeclineHandshake Source # 
ToQuery DeclineHandshake Source # 
ToPath DeclineHandshake Source # 
ToHeaders DeclineHandshake Source # 
type Rep DeclineHandshake Source # 
type Rep DeclineHandshake = D1 (MetaData "DeclineHandshake" "Network.AWS.Organizations.DeclineHandshake" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" True) (C1 (MetaCons "DeclineHandshake'" PrefixI True) (S1 (MetaSel (Just Symbol "_dHandshakeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeclineHandshake Source # 

Request Lenses

dHandshakeId :: Lens' DeclineHandshake Text Source #

The unique identifier (ID) of the handshake that you want to decline. You can get the ID from the ListHandshakesForAccount operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.

Destructuring the Response

declineHandshakeResponse Source #

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

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

  • drsHandshake - A structure that contains details about the declined handshake. The state is updated to show the value DECLINED .
  • drsResponseStatus - -- | The response status code.

data DeclineHandshakeResponse Source #

See: declineHandshakeResponse smart constructor.

Instances

Eq DeclineHandshakeResponse Source # 
Data DeclineHandshakeResponse Source # 

Methods

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

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

toConstr :: DeclineHandshakeResponse -> Constr #

dataTypeOf :: DeclineHandshakeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DeclineHandshakeResponse Source # 
Generic DeclineHandshakeResponse Source # 
NFData DeclineHandshakeResponse Source # 
type Rep DeclineHandshakeResponse Source # 
type Rep DeclineHandshakeResponse = D1 (MetaData "DeclineHandshakeResponse" "Network.AWS.Organizations.DeclineHandshake" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "DeclineHandshakeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drsHandshake") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Handshake))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

drsHandshake :: Lens' DeclineHandshakeResponse (Maybe Handshake) Source #

A structure that contains details about the declined handshake. The state is updated to show the value DECLINED .