| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkMail.ListOrganizations
Description
Returns summaries of the customer's organizations.
This operation returns paginated results.
Synopsis
- data ListOrganizations = ListOrganizations' {}
- newListOrganizations :: ListOrganizations
- listOrganizations_maxResults :: Lens' ListOrganizations (Maybe Natural)
- listOrganizations_nextToken :: Lens' ListOrganizations (Maybe Text)
- data ListOrganizationsResponse = ListOrganizationsResponse' {}
- newListOrganizationsResponse :: Int -> ListOrganizationsResponse
- listOrganizationsResponse_nextToken :: Lens' ListOrganizationsResponse (Maybe Text)
- listOrganizationsResponse_organizationSummaries :: Lens' ListOrganizationsResponse (Maybe [OrganizationSummary])
- listOrganizationsResponse_httpStatus :: Lens' ListOrganizationsResponse Int
Creating a Request
data ListOrganizations Source #
See: newListOrganizations smart constructor.
Constructors
| ListOrganizations' | |
Instances
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:maxResults:ListOrganizations', listOrganizations_maxResults - The maximum number of results to return in a single call.
ListOrganizations, listOrganizations_nextToken - The token to use to retrieve the next page of results. The first call
does not contain any tokens.
Request Lenses
listOrganizations_maxResults :: Lens' ListOrganizations (Maybe Natural) Source #
The maximum number of results to return in a single call.
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.
Destructuring the Response
data ListOrganizationsResponse Source #
See: newListOrganizationsResponse smart constructor.
Constructors
| ListOrganizationsResponse' | |
Fields
| |
Instances
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:
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.
listOrganizationsResponse_httpStatus :: Lens' ListOrganizationsResponse Int Source #
The response's http status code.