Skip to main content

personal_access_token_metadatas

Creates, updates, deletes, gets or lists a personal_access_token_metadatas resource.

Overview

Namepersonal_access_token_metadatas
TypeResource
Idaws.workmail.personal_access_token_metadatas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
date_createdstring (date-time)The date when the Personal Access Token ID was created.
date_last_usedstring (date-time)The date when the Personal Access Token ID was last used.
expires_timestring (date-time)The time when the Personal Access Token ID will expire.
namestringThe Personal Access Token name. (pattern: <code>[^\x00-\x1F\x7F\x3C\x3E\x5C]+</code>)
personal_access_token_idstringThe Personal Access Token ID. (pattern: <code>[a-zA-Z0-9_-]+</code>)
scopesarrayLists all the Personal Access Token permissions for a mailbox.
user_idstringThe WorkMail User ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_personal_access_token_metadataselectregionRequests details of a specific Personal Access Token within the WorkMail organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Requests details of a specific Personal Access Token within the WorkMail organization.

SELECT
date_created,
date_last_used,
expires_time,
name,
personal_access_token_id,
scopes,
user_id
FROM aws.workmail.personal_access_token_metadatas
WHERE region = '{{ region }}' -- required
;