libZSservicesZSamazonka-workmailZSamazonka-workmail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkMail.ListOrganizations

Description

Returns summaries of the customer's organizations.

This operation returns paginated results.

Synopsis

Creating a Request

data ListOrganizations Source #

See: newListOrganizations smart constructor.

Constructors

ListOrganizations' 

Fields

  • nextToken :: Maybe Text

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

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Read ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Show ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Generic ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Associated Types

type Rep ListOrganizations :: Type -> Type #

NFData ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Methods

rnf :: ListOrganizations -> () #

Hashable ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

ToJSON ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

AWSPager ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

AWSRequest ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Associated Types

type AWSResponse ListOrganizations #

ToHeaders ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

ToPath ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

ToQuery ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

type Rep ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

type Rep ListOrganizations = D1 ('MetaData "ListOrganizations" "Amazonka.WorkMail.ListOrganizations" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "ListOrganizations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListOrganizations Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

newListOrganizations :: ListOrganizations Source #

Create a value of ListOrganizations 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:nextToken:ListOrganizations', listOrganizations_nextToken - The token to use to retrieve the next page of results. The first call does not contain any tokens.

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

Request Lenses

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

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

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

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

Destructuring the Response

data ListOrganizationsResponse Source #

See: newListOrganizationsResponse smart constructor.

Constructors

ListOrganizationsResponse' 

Fields

Instances

Instances details
Eq ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Read ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Show ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Generic ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

Associated Types

type Rep ListOrganizationsResponse :: Type -> Type #

NFData ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

type Rep ListOrganizationsResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListOrganizations

type Rep ListOrganizationsResponse = D1 ('MetaData "ListOrganizationsResponse" "Amazonka.WorkMail.ListOrganizations" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "ListOrganizationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "organizationSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OrganizationSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListOrganizationsResponse Source #

Create a value of ListOrganizationsResponse 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:nextToken:ListOrganizations', listOrganizationsResponse_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:organizationSummaries:ListOrganizationsResponse', listOrganizationsResponse_organizationSummaries - The overview of owned organizations presented as a list of organization summaries.

$sel:httpStatus:ListOrganizationsResponse', listOrganizationsResponse_httpStatus - The response's http status code.

Response Lenses

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

listOrganizationsResponse_organizationSummaries :: Lens' ListOrganizationsResponse (Maybe [OrganizationSummary]) Source #

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