| 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.GuardDuty.ListOrganizationAdminAccounts
Description
Lists the accounts configured as GuardDuty delegated administrators.
This operation returns paginated results.
Synopsis
- data ListOrganizationAdminAccounts = ListOrganizationAdminAccounts' {}
- newListOrganizationAdminAccounts :: ListOrganizationAdminAccounts
- listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural)
- listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text)
- 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.
Constructors
| ListOrganizationAdminAccounts' | |
Fields
| |
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 in the response.
ListOrganizationAdminAccounts, listOrganizationAdminAccounts_nextToken - A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
Request Lenses
listOrganizationAdminAccounts_maxResults :: Lens' ListOrganizationAdminAccounts (Maybe Natural) Source #
The maximum number of results to return in the response.
listOrganizationAdminAccounts_nextToken :: Lens' ListOrganizationAdminAccounts (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
Destructuring the Response
data ListOrganizationAdminAccountsResponse Source #
See: newListOrganizationAdminAccountsResponse smart constructor.
Constructors
| ListOrganizationAdminAccountsResponse' | |
Fields
| |
Instances
newListOrganizationAdminAccountsResponse Source #
Arguments
| :: Int | |
| -> ListOrganizationAdminAccountsResponse |
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 - A list of accounts configured as GuardDuty delegated administrators.
ListOrganizationAdminAccounts, listOrganizationAdminAccountsResponse_nextToken - The pagination parameter to be used on the next list operation to
retrieve more items.
$sel:httpStatus:ListOrganizationAdminAccountsResponse', listOrganizationAdminAccountsResponse_httpStatus - The response's http status code.
Response Lenses
listOrganizationAdminAccountsResponse_adminAccounts :: Lens' ListOrganizationAdminAccountsResponse (Maybe [AdminAccount]) Source #
A list of accounts configured as GuardDuty delegated administrators.
listOrganizationAdminAccountsResponse_nextToken :: Lens' ListOrganizationAdminAccountsResponse (Maybe Text) Source #
The pagination parameter to be used on the next list operation to retrieve more items.
listOrganizationAdminAccountsResponse_httpStatus :: Lens' ListOrganizationAdminAccountsResponse Int Source #
The response's http status code.