SessionDescriptionType
¶
Source code in docs_src/capo_cognito_identity_provider/types/session_description_type.py
client_id
instance-attribute
¶
client_id: NotRequired[ClientIdType]
The ID of the app client that the session belongs to.
create_date
instance-attribute
¶
create_date: NotRequired[DateType]
The date and time when the session was created.
device_type
instance-attribute
¶
device_type: NotRequired[SessionDeviceType]
A description of the device associated with the most recent activity on the session, derived from the parsed user agent (operating system and browser or app). Amazon Cognito overwrites this value on each sign-in, refresh, and rotation. The value can be unknown. The maximum length is 1,024 characters.
is_current_session
instance-attribute
¶
is_current_session: NotRequired[WrappedBooleanType]
Specifies whether this session matches the access token supplied in the request. This value is always false for the AdminListUserSessions operation, which doesn't take an access token.
last_active_date
instance-attribute
¶
last_active_date: NotRequired[DateType]
The date and time of the most recent activity on the session. For a token session, this is the most recent token refresh or rotation; a new authentication creates a new token session rather than updating an existing one. For an SSO session, this is the most recent authentication, token grant, or token rotation.
last_ip_address
instance-attribute
¶
last_ip_address: NotRequired[SessionIpAddressType]
The IP address associated with the most recent activity on the session. Amazon Cognito overwrites this value on each refresh and rotation. The maximum length is 128 characters.
last_location
instance-attribute
¶
last_location: NotRequired[SessionLocationType]
The geographic location of the most recent activity on the session, derived from the IP address.
origin_session_id
instance-attribute
¶
origin_session_id: NotRequired[SessionIdType]
For a token session, the ID of the SSO session that the token session originated from. This value is null for sessions that were initiated through the API and didn't come through an SSO session. Amazon Cognito returns this value for token sessions only.
session_id
instance-attribute
¶
session_id: NotRequired[SessionIdType]
The unique identifier for the session. This is a 28-character string of lowercase letters and digits, prefixed with tkn for a token session or sso for an SSO session.
session_type
instance-attribute
¶
session_type: NotRequired[SessionTypeType]
The type of the session. Valid values are TOKEN and SSO.