list_account_roles
async
¶
list_account_roles(
access_token: AccessTokenType,
account_id: AccountIdType,
*,
config_overrides: Optional[AsyncSSOClientConfig] = None,
next_token: Optional[NextTokenType] = None,
max_results: Optional[MaxResultType] = None,
) -> ListAccountRolesResponse
Lists all roles that are assigned to the user for a given AWS account.
Parameters:
-
next_token(Optional[NextTokenType], default:None) –The page token from the previous response output when you request subsequent pages.
-
max_results(Optional[MaxResultType], default:None) –The number of items that clients can request per page.
-
access_token(AccessTokenType) –The token issued by the
CreateTokenAPI call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide. -
account_id(AccountIdType) –The identifier for the AWS account that is assigned to the user.
Raises:
-
InvalidRequestException–Indicates that a problem occurred with the input to the request. For example, a required parameter might be missing or out of range.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
TooManyRequestsException–Indicates that the request is being made too frequently and is more than what the server can handle.
-
UnauthorizedException–Indicates that the request is not authorized. This can happen due to an invalid access token in the request.
-
UnknownServiceError–The service returned an error code this client does not model.