amazonka-workmail-1.6.1: 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.ListGroups

Contents

Description

Returns summaries of the organization's groups.

This operation returns paginated results.

Synopsis

Creating a Request

listGroups Source #

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

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

  • lgNextToken - The token to use to retrieve the next page of results. The first call does not contain any tokens.
  • lgMaxResults - The maximum number of results to return in a single call.
  • lgOrganizationId - The identifier for the organization under which the groups exist.

data ListGroups Source #

See: listGroups smart constructor.

Instances
Eq ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Data ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Methods

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

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

toConstr :: ListGroups -> Constr #

dataTypeOf :: ListGroups -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Show ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Generic ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Associated Types

type Rep ListGroups :: Type -> Type #

Hashable ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

ToJSON ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

AWSPager ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

AWSRequest ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Associated Types

type Rs ListGroups :: Type #

ToHeaders ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Methods

toHeaders :: ListGroups -> [Header] #

ToPath ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

ToQuery ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

NFData ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Methods

rnf :: ListGroups -> () #

type Rep ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

type Rep ListGroups = D1 (MetaData "ListGroups" "Network.AWS.WorkMail.ListGroups" "amazonka-workmail-1.6.1-9RRutGyw1Wr48gbVhlSAOF" False) (C1 (MetaCons "ListGroups'" PrefixI True) (S1 (MetaSel (Just "_lgNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lgMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lgOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListGroups Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Request Lenses

lgNextToken :: Lens' ListGroups (Maybe Text) Source #

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

lgMaxResults :: Lens' ListGroups (Maybe Natural) Source #

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

lgOrganizationId :: Lens' ListGroups Text Source #

The identifier for the organization under which the groups exist.

Destructuring the Response

listGroupsResponse Source #

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

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

  • lgrsGroups - The overview of groups for an organization.
  • lgrsNextToken - The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
  • lgrsResponseStatus - -- | The response status code.

data ListGroupsResponse Source #

See: listGroupsResponse smart constructor.

Instances
Eq ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Data ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Methods

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

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

toConstr :: ListGroupsResponse -> Constr #

dataTypeOf :: ListGroupsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Show ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Generic ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Associated Types

type Rep ListGroupsResponse :: Type -> Type #

NFData ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

Methods

rnf :: ListGroupsResponse -> () #

type Rep ListGroupsResponse Source # 
Instance details

Defined in Network.AWS.WorkMail.ListGroups

type Rep ListGroupsResponse = D1 (MetaData "ListGroupsResponse" "Network.AWS.WorkMail.ListGroups" "amazonka-workmail-1.6.1-9RRutGyw1Wr48gbVhlSAOF" False) (C1 (MetaCons "ListGroupsResponse'" PrefixI True) (S1 (MetaSel (Just "_lgrsGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Group])) :*: (S1 (MetaSel (Just "_lgrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lgrsGroups :: Lens' ListGroupsResponse [Group] Source #

The overview of groups for an organization.

lgrsNextToken :: Lens' ListGroupsResponse (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.

lgrsResponseStatus :: Lens' ListGroupsResponse Int Source #

  • - | The response status code.