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 |
Returns information about the Detective administrator account for an organization. Can only be called by the organization management account.
Synopsis
- data ListOrganizationAdminAccounts = ListOrganizationAdminAccounts' {}
- newListOrganizationAdminAccounts :: ListOrganizationAdminAccounts
- listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural)
- listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text)
- data ListOrganizationAdminAccountsResponse = ListOrganizationAdminAccountsResponse' {
- administrators :: Maybe [Administrator]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListOrganizationAdminAccountsResponse :: Int -> ListOrganizationAdminAccountsResponse
- listOrganizationAdminAccountsResponse_administrators :: Lens' ListOrganizationAdminAccountsResponse (Maybe [Administrator])
- listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text)
- listOrganizationAdminAccountsResponse_httpStatus :: Lens' ListOrganizationAdminAccountsResponse Int
Creating a Request
data ListOrganizationAdminAccounts Source #
See: newListOrganizationAdminAccounts
smart constructor.
Instances
newListOrganizationAdminAccounts :: ListOrganizationAdminAccounts Source #
Create a value of ListOrganizationAdminAccounts
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:ListOrganizationAdminAccounts'
, listOrganizationAdminAccounts_maxResults
- The maximum number of results to return.
ListOrganizationAdminAccounts
, listOrganizationAdminAccounts_nextToken
- For requests to get the next page of results, the pagination token that
was returned with the previous set of results. The initial request does
not include a pagination token.
Request Lenses
listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural) Source #
The maximum number of results to return.
listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text) Source #
For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.
Destructuring the Response
data ListOrganizationAdminAccountsResponse Source #
See: newListOrganizationAdminAccountsResponse
smart constructor.
ListOrganizationAdminAccountsResponse' | |
|
Instances
newListOrganizationAdminAccountsResponse Source #
Create a value of ListOrganizationAdminAccountsResponse
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:administrators:ListOrganizationAdminAccountsResponse'
, listOrganizationAdminAccountsResponse_administrators
- The list of Detective administrator accounts.
ListOrganizationAdminAccounts
, listOrganizationAdminAccountsResponse_nextToken
- If there are more accounts remaining in the results, then this is the
pagination token to use to request the next page of accounts.
$sel:httpStatus:ListOrganizationAdminAccountsResponse'
, listOrganizationAdminAccountsResponse_httpStatus
- The response's http status code.
Response Lenses
listOrganizationAdminAccountsResponse_administrators :: Lens' ListOrganizationAdminAccountsResponse (Maybe [Administrator]) Source #
The list of Detective administrator accounts.
listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text) Source #
If there are more accounts remaining in the results, then this is the pagination token to use to request the next page of accounts.
listOrganizationAdminAccountsResponse_httpStatus :: Lens' ListOrganizationAdminAccountsResponse Int Source #
The response's http status code.