Skip to content

SessionDescriptionType

Source code in docs_src/capo_cognito_identity_provider/types/session_description_type.py
class SessionDescriptionType(TypedDict, closed=True):
    session_id: NotRequired[
        "capo_cognito_identity_provider.types.session_id_type.SessionIdType"
    ]
    """<p>The unique identifier for the session. This is a 28-character string of lowercase letters and digits, prefixed with <code>tkn</code> for a token session or <code>sso</code> for an SSO session.</p>"""
    session_type: NotRequired[
        "capo_cognito_identity_provider.types.session_type_type.SessionTypeType"
    ]
    """<p>The type of the session. Valid values are <code>TOKEN</code> and <code>SSO</code>.</p>"""
    client_id: NotRequired[
        "capo_cognito_identity_provider.types.client_id_type.ClientIdType"
    ]
    """<p>The ID of the app client that the session belongs to.</p>"""
    create_date: NotRequired["capo_cognito_identity_provider.types.date_type.DateType"]
    """<p>The date and time when the session was created.</p>"""
    last_active_date: NotRequired[
        "capo_cognito_identity_provider.types.date_type.DateType"
    ]
    """<p>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.</p>"""
    device_type: NotRequired[
        "capo_cognito_identity_provider.types.session_device_type.SessionDeviceType"
    ]
    """<p>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 <code>unknown</code>. The maximum length is 1,024 characters.</p>"""
    last_ip_address: NotRequired[
        "capo_cognito_identity_provider.types.session_ip_address_type.SessionIpAddressType"
    ]
    """<p>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.</p>"""
    last_location: NotRequired[
        "capo_cognito_identity_provider.types.session_location_type.SessionLocationType"
    ]
    """<p>The geographic location of the most recent activity on the session, derived from the IP address.</p>"""
    origin_session_id: NotRequired[
        "capo_cognito_identity_provider.types.session_id_type.SessionIdType"
    ]
    """<p>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.</p>"""
    is_current_session: NotRequired[
        "capo_cognito_identity_provider.types.wrapped_boolean_type.WrappedBooleanType"
    ]
    """<p>Specifies whether this session matches the access token supplied in the request. This value is always <code>false</code> for the <code>AdminListUserSessions</code> operation, which doesn't take an access token.</p>"""

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.