| 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.Chime.ListAccounts
Description
Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result.
This operation returns paginated results.
Synopsis
- data ListAccounts = ListAccounts' {}
- newListAccounts :: ListAccounts
- listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural)
- listAccounts_name :: Lens' ListAccounts (Maybe Text)
- listAccounts_nextToken :: Lens' ListAccounts (Maybe Text)
- listAccounts_userEmail :: Lens' ListAccounts (Maybe Text)
- data ListAccountsResponse = ListAccountsResponse' {}
- newListAccountsResponse :: Int -> ListAccountsResponse
- listAccountsResponse_accounts :: Lens' ListAccountsResponse (Maybe [Account])
- listAccountsResponse_nextToken :: Lens' ListAccountsResponse (Maybe Text)
- listAccountsResponse_httpStatus :: Lens' ListAccountsResponse Int
Creating a Request
data ListAccounts Source #
See: newListAccounts smart constructor.
Constructors
| ListAccounts' | |
Fields
| |
Instances
newListAccounts :: ListAccounts Source #
Create a value of ListAccounts 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:ListAccounts', listAccounts_maxResults - The maximum number of results to return in a single call. Defaults to
100.
ListAccounts, listAccounts_name - Amazon Chime account name prefix with which to filter results.
ListAccounts, listAccounts_nextToken - The token to use to retrieve the next page of results.
$sel:userEmail:ListAccounts', listAccounts_userEmail - User email address with which to filter results.
Request Lenses
listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural) Source #
The maximum number of results to return in a single call. Defaults to 100.
listAccounts_name :: Lens' ListAccounts (Maybe Text) Source #
Amazon Chime account name prefix with which to filter results.
listAccounts_nextToken :: Lens' ListAccounts (Maybe Text) Source #
The token to use to retrieve the next page of results.
listAccounts_userEmail :: Lens' ListAccounts (Maybe Text) Source #
User email address with which to filter results.
Destructuring the Response
data ListAccountsResponse Source #
See: newListAccountsResponse smart constructor.
Constructors
| ListAccountsResponse' | |
Instances
newListAccountsResponse Source #
Arguments
| :: Int | |
| -> ListAccountsResponse |
Create a value of ListAccountsResponse 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:accounts:ListAccountsResponse', listAccountsResponse_accounts - List of Amazon Chime accounts and account details.
ListAccounts, listAccountsResponse_nextToken - The token to use to retrieve the next page of results.
$sel:httpStatus:ListAccountsResponse', listAccountsResponse_httpStatus - The response's http status code.
Response Lenses
listAccountsResponse_accounts :: Lens' ListAccountsResponse (Maybe [Account]) Source #
List of Amazon Chime accounts and account details.
listAccountsResponse_nextToken :: Lens' ListAccountsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results.
listAccountsResponse_httpStatus :: Lens' ListAccountsResponse Int Source #
The response's http status code.