| 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.SSO.ListAccountRoles
Description
Lists all roles that are assigned to the user for a given AWS account.
This operation returns paginated results.
Synopsis
- data ListAccountRoles = ListAccountRoles' {}
- newListAccountRoles :: Text -> Text -> ListAccountRoles
- listAccountRoles_maxResults :: Lens' ListAccountRoles (Maybe Natural)
- listAccountRoles_nextToken :: Lens' ListAccountRoles (Maybe Text)
- listAccountRoles_accessToken :: Lens' ListAccountRoles Text
- listAccountRoles_accountId :: Lens' ListAccountRoles Text
- data ListAccountRolesResponse = ListAccountRolesResponse' {}
- newListAccountRolesResponse :: Int -> ListAccountRolesResponse
- listAccountRolesResponse_nextToken :: Lens' ListAccountRolesResponse (Maybe Text)
- listAccountRolesResponse_roleList :: Lens' ListAccountRolesResponse (Maybe [RoleInfo])
- listAccountRolesResponse_httpStatus :: Lens' ListAccountRolesResponse Int
Creating a Request
data ListAccountRoles Source #
See: newListAccountRoles smart constructor.
Constructors
| ListAccountRoles' | |
Fields
| |
Instances
Create a value of ListAccountRoles 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:ListAccountRoles', listAccountRoles_maxResults - The number of items that clients can request per page.
ListAccountRoles, listAccountRoles_nextToken - The page token from the previous response output when you request
subsequent pages.
$sel:accessToken:ListAccountRoles', listAccountRoles_accessToken - The token issued by the CreateToken API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
ListAccountRoles, listAccountRoles_accountId - The identifier for the AWS account that is assigned to the user.
Request Lenses
listAccountRoles_maxResults :: Lens' ListAccountRoles (Maybe Natural) Source #
The number of items that clients can request per page.
listAccountRoles_nextToken :: Lens' ListAccountRoles (Maybe Text) Source #
The page token from the previous response output when you request subsequent pages.
listAccountRoles_accessToken :: Lens' ListAccountRoles Text Source #
The token issued by the CreateToken API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
listAccountRoles_accountId :: Lens' ListAccountRoles Text Source #
The identifier for the AWS account that is assigned to the user.
Destructuring the Response
data ListAccountRolesResponse Source #
See: newListAccountRolesResponse smart constructor.
Constructors
| ListAccountRolesResponse' | |
Instances
newListAccountRolesResponse Source #
Create a value of ListAccountRolesResponse 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:
ListAccountRoles, listAccountRolesResponse_nextToken - The page token client that is used to retrieve the list of accounts.
$sel:roleList:ListAccountRolesResponse', listAccountRolesResponse_roleList - A paginated response with the list of roles and the next token if more
results are available.
$sel:httpStatus:ListAccountRolesResponse', listAccountRolesResponse_httpStatus - The response's http status code.
Response Lenses
listAccountRolesResponse_nextToken :: Lens' ListAccountRolesResponse (Maybe Text) Source #
The page token client that is used to retrieve the list of accounts.
listAccountRolesResponse_roleList :: Lens' ListAccountRolesResponse (Maybe [RoleInfo]) Source #
A paginated response with the list of roles and the next token if more results are available.
listAccountRolesResponse_httpStatus :: Lens' ListAccountRolesResponse Int Source #
The response's http status code.