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 |
Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the IAM Identity Center User Guide. This operation returns a paginated response.
This operation returns paginated results.
Synopsis
- data ListAccounts = ListAccounts' {}
- newListAccounts :: Text -> ListAccounts
- listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural)
- listAccounts_nextToken :: Lens' ListAccounts (Maybe Text)
- listAccounts_accessToken :: Lens' ListAccounts Text
- data ListAccountsResponse = ListAccountsResponse' {
- accountList :: Maybe [AccountInfo]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListAccountsResponse :: Int -> ListAccountsResponse
- listAccountsResponse_accountList :: Lens' ListAccountsResponse (Maybe [AccountInfo])
- listAccountsResponse_nextToken :: Lens' ListAccountsResponse (Maybe Text)
- listAccountsResponse_httpStatus :: Lens' ListAccountsResponse Int
Creating a Request
data ListAccounts Source #
See: newListAccounts
smart constructor.
ListAccounts' | |
|
Instances
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
- This is the number of items clients can request per page.
ListAccounts
, listAccounts_nextToken
- (Optional) When requesting subsequent pages, this is the page token from
the previous response output.
$sel:accessToken:ListAccounts'
, listAccounts_accessToken
- The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
Request Lenses
listAccounts_maxResults :: Lens' ListAccounts (Maybe Natural) Source #
This is the number of items clients can request per page.
listAccounts_nextToken :: Lens' ListAccounts (Maybe Text) Source #
(Optional) When requesting subsequent pages, this is the page token from the previous response output.
listAccounts_accessToken :: Lens' ListAccounts Text Source #
The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
Destructuring the Response
data ListAccountsResponse Source #
See: newListAccountsResponse
smart constructor.
ListAccountsResponse' | |
|
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:accountList:ListAccountsResponse'
, listAccountsResponse_accountList
- A paginated response with the list of account information and the next
token if more results are available.
ListAccounts
, listAccountsResponse_nextToken
- The page token client that is used to retrieve the list of accounts.
$sel:httpStatus:ListAccountsResponse'
, listAccountsResponse_httpStatus
- The response's http status code.
Response Lenses
listAccountsResponse_accountList :: Lens' ListAccountsResponse (Maybe [AccountInfo]) Source #
A paginated response with the list of account information and the next token if more results are available.
listAccountsResponse_nextToken :: Lens' ListAccountsResponse (Maybe Text) Source #
The page token client that is used to retrieve the list of accounts.
listAccountsResponse_httpStatus :: Lens' ListAccountsResponse Int Source #
The response's http status code.