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 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_nextToken :: Lens' ListAccounts (Maybe Text)
- listAccounts_name :: Lens' ListAccounts (Maybe Text)
- listAccounts_userEmail :: Lens' ListAccounts (Maybe Text)
- listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural)
- 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.
ListAccounts' | |
|
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:nextToken:ListAccounts'
, listAccounts_nextToken
- The token to use to retrieve the next page of results.
$sel:name:ListAccounts'
, listAccounts_name
- Amazon Chime account name prefix with which to filter results.
$sel:userEmail:ListAccounts'
, listAccounts_userEmail
- User email address with which to filter results.
$sel:maxResults:ListAccounts'
, listAccounts_maxResults
- The maximum number of results to return in a single call. Defaults to
100.
Request Lenses
listAccounts_nextToken :: Lens' ListAccounts (Maybe Text) Source #
The token to use to retrieve the next page of results.
listAccounts_name :: Lens' ListAccounts (Maybe Text) Source #
Amazon Chime account name prefix with which to filter results.
listAccounts_userEmail :: Lens' ListAccounts (Maybe Text) Source #
User email address with which to filter results.
listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural) Source #
The maximum number of results to return in a single call. Defaults to 100.
Destructuring the Response
data ListAccountsResponse Source #
See: newListAccountsResponse
smart constructor.
Instances
newListAccountsResponse Source #
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.
$sel:nextToken: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.