AccessToken

pydantic model openapi_client.models.access_token.AccessToken

DynamoDB access-token item as returned by list (minus lineage-schedule-token). projectionExpression may return a subset.

Fields:
field token_id: Optional[StrictStr] = None (alias 'TokenId')

Unique ID of the access token.

field name: Optional[StrictStr] = None (alias 'Name')

Display name of the access token.

field user_id: Optional[StrictStr] = None (alias 'UserId')

User ID that owns the access token.

field created_on: Optional[StrictStr] = None (alias 'CreatedOn')

When the access token was created.

field expires_on: Optional[AccessTokenExpiresOn] = None (alias 'ExpiresOn')
field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')

User ID that last updated the access token.

field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')

When the access token was last updated.

field token_status: Optional[StrictStr] = None (alias 'TokenStatus')

active, inactive, disabled, expired (list may set expired when past ExpiresOn), or revoked (admin compromise flow).

field role_id: Optional[StrictStr] = None (alias 'RoleId')

Role ID bound to the access token.

field expiration_alert_one: Optional[AccessTokenExpirationAlertOne] = None (alias 'ExpirationAlertOne')
field expiration_alert_two: Optional[AccessTokenExpirationAlertTwo] = None (alias 'ExpirationAlertTwo')
field description: Optional[StrictStr] = None (alias 'Description')

Free-text description of the access token.

field token_version_id: Optional[StrictStr] = None (alias 'TokenVersionId')

Secrets Manager version ID used when the token was signed.

field assumed_by: Optional[StrictStr] = None (alias 'AssumedBy')

User who assumed the service user when creating a service-user PAT.

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of AccessToken from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of AccessToken from a dict

Return type:

Optional[Self]