list_personal_access_tokens
async
¶
list_personal_access_tokens(
organization_id: OrganizationId,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = 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/async_work_mail.py
4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 | |