amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkMail.ListGroups

Description

Returns summaries of the organization's groups.

This operation returns paginated results.

Synopsis

Creating a Request

data ListGroups Source #

See: newListGroups smart constructor.

Constructors

ListGroups' 

Fields

  • maxResults :: Maybe Natural

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

  • nextToken :: Maybe Text

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

  • organizationId :: Text

    The identifier for the organization under which the groups exist.

Instances

Instances details
ToJSON ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

ToHeaders ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Methods

toHeaders :: ListGroups -> [Header] #

ToPath ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

ToQuery ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

AWSPager ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

AWSRequest ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Associated Types

type AWSResponse ListGroups #

Generic ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Associated Types

type Rep ListGroups :: Type -> Type #

Read ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Show ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

NFData ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Methods

rnf :: ListGroups -> () #

Eq ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Hashable ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

type AWSResponse ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

type Rep ListGroups Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

type Rep ListGroups = D1 ('MetaData "ListGroups" "Amazonka.WorkMail.ListGroups" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "ListGroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListGroups Source #

Arguments

:: Text

ListGroups

-> ListGroups 

Create a value of ListGroups with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListGroups', listGroups_maxResults - The maximum number of results to return in a single call.

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

ListGroups, listGroups_organizationId - The identifier for the organization under which the groups exist.

Request Lenses

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

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

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

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

listGroups_organizationId :: Lens' ListGroups Text Source #

The identifier for the organization under which the groups exist.

Destructuring the Response

data ListGroupsResponse Source #

See: newListGroupsResponse smart constructor.

Constructors

ListGroupsResponse' 

Fields

  • groups :: Maybe [Group]

    The overview of groups for an organization.

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Associated Types

type Rep ListGroupsResponse :: Type -> Type #

Read ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Show ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

NFData ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

Methods

rnf :: ListGroupsResponse -> () #

Eq ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

type Rep ListGroupsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListGroups

type Rep ListGroupsResponse = D1 ('MetaData "ListGroupsResponse" "Amazonka.WorkMail.ListGroups" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "ListGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Group])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListGroupsResponse Source #

Create a value of ListGroupsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:groups:ListGroupsResponse', listGroupsResponse_groups - The overview of groups for an organization.

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

$sel:httpStatus:ListGroupsResponse', listGroupsResponse_httpStatus - The response's http status code.

Response Lenses

listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [Group]) Source #

The overview of groups for an organization.

listGroupsResponse_nextToken :: 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.