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