list_personal_access_tokens
¶
list_personal_access_tokens(
organization_id: OrganizationId,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
user_id: Optional[EntityIdentifier] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListPersonalAccessTokensResponse
Returns a summary of your Personal Access Tokens.
Parameters:
-
organization_id(OrganizationId) –The Organization ID.
-
user_id(Optional[EntityIdentifier], default:None) –The WorkMail User ID.
-
next_token(Optional[NextToken], default:None) –The token from the previous response to query the next page.
-
max_results(Optional[MaxResults], default:None) –The maximum amount of items that should be returned in a response.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 | |