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

Contents

Description

Lists the current handshakes that are associated with the account of the requesting user.

Handshakes that are ACCEPTED, DECLINED, or CANCELED appear in the results of this API for only 30 days after changing to that state. After that they are deleted and no longer accessible.

This operation can be called from any account in the organization.

This operation returns paginated results.

Synopsis

Creating a Request

listHandshakesForAccount :: ListHandshakesForAccount Source #

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

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

  • lhfaNextToken - Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.
  • lhfaFilter - Filters the handshakes that you want included in the response. The default is all types. Use the ActionType element to limit the output to only a specified type, such as INVITE , ENABLE-FULL-CONTROL , or APPROVE-FULL-CONTROL . Alternatively, for the ENABLE-FULL-CONTROL handshake that generates a separate child handshake for each member account, you can specify ParentHandshakeId to see only the handshakes that were generated by that parent request.
  • lhfaMaxResults - (Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

data ListHandshakesForAccount Source #

See: listHandshakesForAccount smart constructor.

Instances

Eq ListHandshakesForAccount Source # 
Data ListHandshakesForAccount Source # 

Methods

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

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

toConstr :: ListHandshakesForAccount -> Constr #

dataTypeOf :: ListHandshakesForAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListHandshakesForAccount Source # 
Show ListHandshakesForAccount Source # 
Generic ListHandshakesForAccount Source # 
Hashable ListHandshakesForAccount Source # 
ToJSON ListHandshakesForAccount Source # 
NFData ListHandshakesForAccount Source # 
AWSPager ListHandshakesForAccount Source # 
AWSRequest ListHandshakesForAccount Source # 
ToQuery ListHandshakesForAccount Source # 
ToPath ListHandshakesForAccount Source # 
ToHeaders ListHandshakesForAccount Source # 
type Rep ListHandshakesForAccount Source # 
type Rep ListHandshakesForAccount = D1 (MetaData "ListHandshakesForAccount" "Network.AWS.Organizations.ListHandshakesForAccount" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "ListHandshakesForAccount'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lhfaNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lhfaFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe HandshakeFilter))) (S1 (MetaSel (Just Symbol "_lhfaMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs ListHandshakesForAccount Source # 

Request Lenses

lhfaNextToken :: Lens' ListHandshakesForAccount (Maybe Text) Source #

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

lhfaFilter :: Lens' ListHandshakesForAccount (Maybe HandshakeFilter) Source #

Filters the handshakes that you want included in the response. The default is all types. Use the ActionType element to limit the output to only a specified type, such as INVITE , ENABLE-FULL-CONTROL , or APPROVE-FULL-CONTROL . Alternatively, for the ENABLE-FULL-CONTROL handshake that generates a separate child handshake for each member account, you can specify ParentHandshakeId to see only the handshakes that were generated by that parent request.

lhfaMaxResults :: Lens' ListHandshakesForAccount (Maybe Natural) Source #

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

Destructuring the Response

listHandshakesForAccountResponse Source #

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

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

  • lhfarsHandshakes - A list of Handshake objects with details about each of the handshakes that is associated with the specified account.
  • lhfarsNextToken - If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .
  • lhfarsResponseStatus - -- | The response status code.

data ListHandshakesForAccountResponse Source #

See: listHandshakesForAccountResponse smart constructor.

Instances

Eq ListHandshakesForAccountResponse Source # 
Data ListHandshakesForAccountResponse Source # 

Methods

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

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

toConstr :: ListHandshakesForAccountResponse -> Constr #

dataTypeOf :: ListHandshakesForAccountResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListHandshakesForAccountResponse Source # 
Generic ListHandshakesForAccountResponse Source # 
NFData ListHandshakesForAccountResponse Source # 
type Rep ListHandshakesForAccountResponse Source # 
type Rep ListHandshakesForAccountResponse = D1 (MetaData "ListHandshakesForAccountResponse" "Network.AWS.Organizations.ListHandshakesForAccount" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "ListHandshakesForAccountResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lhfarsHandshakes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Handshake]))) ((:*:) (S1 (MetaSel (Just Symbol "_lhfarsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lhfarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lhfarsHandshakes :: Lens' ListHandshakesForAccountResponse [Handshake] Source #

A list of Handshake objects with details about each of the handshakes that is associated with the specified account.

lhfarsNextToken :: Lens' ListHandshakesForAccountResponse (Maybe Text) Source #

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .