amazonka-workmail-1.6.0: Amazon WorkMail 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.WorkMail.ListOrganizations

Contents

Description

Returns summaries of the customer's non-deleted organizations.

This operation returns paginated results.

Synopsis

Creating a Request

listOrganizations :: ListOrganizations Source #

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

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

  • loNextToken - The token to use to retrieve the next page of results. The first call does not contain any tokens.
  • loMaxResults - The maximum number of results to return in a single call.

data ListOrganizations Source #

See: listOrganizations smart constructor.

Instances

Eq ListOrganizations Source # 
Data ListOrganizations Source # 

Methods

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

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

toConstr :: ListOrganizations -> Constr #

dataTypeOf :: ListOrganizations -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: ListOrganizations -> () #

AWSPager ListOrganizations Source # 
AWSRequest ListOrganizations Source # 
ToHeaders ListOrganizations Source # 
ToPath ListOrganizations Source # 
ToQuery ListOrganizations Source # 
type Rep ListOrganizations Source # 
type Rep ListOrganizations = D1 * (MetaData "ListOrganizations" "Network.AWS.WorkMail.ListOrganizations" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "ListOrganizations'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_loNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_loMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))))
type Rs ListOrganizations Source # 

Request Lenses

loNextToken :: Lens' ListOrganizations (Maybe Text) Source #

The token to use to retrieve the next page of results. The first call does not contain any tokens.

loMaxResults :: Lens' ListOrganizations (Maybe Natural) Source #

The maximum number of results to return in a single call.

Destructuring the Response

listOrganizationsResponse Source #

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

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

  • lorsNextToken - The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
  • lorsOrganizationSummaries - The overview of owned organizations presented as a list of organization summaries.
  • lorsResponseStatus - -- | The response status code.

data ListOrganizationsResponse Source #

See: listOrganizationsResponse smart constructor.

Instances

Eq ListOrganizationsResponse Source # 
Data ListOrganizationsResponse Source # 

Methods

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

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

toConstr :: ListOrganizationsResponse -> Constr #

dataTypeOf :: ListOrganizationsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListOrganizationsResponse Source # 
Show ListOrganizationsResponse Source # 
Generic ListOrganizationsResponse Source # 
NFData ListOrganizationsResponse Source # 
type Rep ListOrganizationsResponse Source # 
type Rep ListOrganizationsResponse = D1 * (MetaData "ListOrganizationsResponse" "Network.AWS.WorkMail.ListOrganizations" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "ListOrganizationsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lorsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lorsOrganizationSummaries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [OrganizationSummary]))) (S1 * (MetaSel (Just Symbol "_lorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lorsNextToken :: Lens' ListOrganizationsResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.

lorsOrganizationSummaries :: Lens' ListOrganizationsResponse [OrganizationSummary] Source #

The overview of owned organizations presented as a list of organization summaries.