amazonka-organizations-1.6.1: Amazon Organizations 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.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 # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Data DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

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

Defined in Network.AWS.Organizations.DeclineHandshake

Show DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Generic DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Associated Types

type Rep DeclineHandshake :: Type -> Type #

Hashable DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

ToJSON DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

AWSRequest DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Associated Types

type Rs DeclineHandshake :: Type #

ToHeaders DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

ToPath DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

ToQuery DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

NFData DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Methods

rnf :: DeclineHandshake -> () #

type Rep DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

type Rep DeclineHandshake = D1 (MetaData "DeclineHandshake" "Network.AWS.Organizations.DeclineHandshake" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" True) (C1 (MetaCons "DeclineHandshake'" PrefixI True) (S1 (MetaSel (Just "_dHandshakeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeclineHandshake Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

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

Defined in Network.AWS.Organizations.DeclineHandshake

Data DeclineHandshakeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

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

Defined in Network.AWS.Organizations.DeclineHandshake

Generic DeclineHandshakeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

Associated Types

type Rep DeclineHandshakeResponse :: Type -> Type #

NFData DeclineHandshakeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

type Rep DeclineHandshakeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeclineHandshake

type Rep DeclineHandshakeResponse = D1 (MetaData "DeclineHandshakeResponse" "Network.AWS.Organizations.DeclineHandshake" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "DeclineHandshakeResponse'" PrefixI True) (S1 (MetaSel (Just "_drsHandshake") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Handshake)) :*: S1 (MetaSel (Just "_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 .