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 |
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
This operation returns paginated results.
Synopsis
- data ListOrganizationAdminAccounts = ListOrganizationAdminAccounts' {}
- newListOrganizationAdminAccounts :: ListOrganizationAdminAccounts
- listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text)
- listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural)
- data ListOrganizationAdminAccountsResponse = ListOrganizationAdminAccountsResponse' {
- adminAccounts :: Maybe [AdminAccount]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListOrganizationAdminAccountsResponse :: Int -> ListOrganizationAdminAccountsResponse
- listOrganizationAdminAccountsResponse_adminAccounts :: Lens' ListOrganizationAdminAccountsResponse (Maybe [AdminAccount])
- listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text)
- listOrganizationAdminAccountsResponse_httpStatus :: Lens' ListOrganizationAdminAccountsResponse Int
Creating a Request
data ListOrganizationAdminAccounts Source #
See: newListOrganizationAdminAccounts
smart constructor.
ListOrganizationAdminAccounts' | |
|
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:nextToken:ListOrganizationAdminAccounts'
, listOrganizationAdminAccounts_nextToken
- The token that is required for pagination. On your first call to the
ListOrganizationAdminAccounts
operation, set the value of this
parameter to NULL
. For subsequent calls to the operation, to continue
listing data, set the value of this parameter to the value returned from
the previous response.
$sel:maxResults:ListOrganizationAdminAccounts'
, listOrganizationAdminAccounts_maxResults
- The maximum number of items to return in the response.
Request Lenses
listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text) Source #
The token that is required for pagination. On your first call to the
ListOrganizationAdminAccounts
operation, set the value of this
parameter to NULL
. For subsequent calls to the operation, to continue
listing data, set the value of this parameter to the value returned from
the previous response.
listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural) Source #
The maximum number of items to return in the response.
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:adminAccounts:ListOrganizationAdminAccountsResponse'
, listOrganizationAdminAccountsResponse_adminAccounts
- The list of Security Hub administrator accounts.
$sel:nextToken:ListOrganizationAdminAccounts'
, listOrganizationAdminAccountsResponse_nextToken
- The pagination token to use to request the next page of results.
$sel:httpStatus:ListOrganizationAdminAccountsResponse'
, listOrganizationAdminAccountsResponse_httpStatus
- The response's http status code.
Response Lenses
listOrganizationAdminAccountsResponse_adminAccounts :: Lens' ListOrganizationAdminAccountsResponse (Maybe [AdminAccount]) Source #
The list of Security Hub administrator accounts.
listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text) Source #
The pagination token to use to request the next page of results.
listOrganizationAdminAccountsResponse_httpStatus :: Lens' ListOrganizationAdminAccountsResponse Int Source #
The response's http status code.