Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns summaries of the customer's organizations.
This operation returns paginated results.
Synopsis
- data ListOrganizations = ListOrganizations' {}
- newListOrganizations :: ListOrganizations
- listOrganizations_nextToken :: Lens' ListOrganizations (Maybe Text)
- listOrganizations_maxResults :: Lens' ListOrganizations (Maybe Natural)
- 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.
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: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.
ListOrganizationsResponse' | |
|
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:
$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.
listOrganizationsResponse_httpStatus :: Lens' ListOrganizationsResponse Int Source #
The response's http status code.