Skip to content

AdminRevokeUserSessionRequest

Source code in docs_src/capo_cognito_identity_provider/types/admin_revoke_user_session_request.py
class AdminRevokeUserSessionRequest(TypedDict, closed=True):
    user_pool_id: (
        "capo_cognito_identity_provider.types.user_pool_id_type.UserPoolIdType"
    )
    """<p>The ID of the user pool that contains the session.</p>"""
    username: "capo_cognito_identity_provider.types.username_type.UsernameType"
    """<p>The username of the user who owns the session. The username must match the user associated with the <code>SessionId</code>, to confirm they are the intended target user.</p>"""
    session_id: "capo_cognito_identity_provider.types.session_id_type.SessionIdType"
    """<p>The ID of the session to revoke. 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>"""
    revoke_associated_sessions: NotRequired[
        "capo_cognito_identity_provider.types.revoke_associated_sessions_type.RevokeAssociatedSessionsType"
    ]
    """<p>Specifies whether to also revoke the sessions that are linked to the targeted session. <code>NONE</code>, the default, revokes only the targeted session. <code>LINKED</code> also revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.</p>"""

revoke_associated_sessions instance-attribute

revoke_associated_sessions: NotRequired[RevokeAssociatedSessionsType]

Specifies whether to also revoke the sessions that are linked to the targeted session. NONE, the default, revokes only the targeted session. LINKED also revokes the directly linked session or sessions, interpreted relative to the type of the targeted session: revoking a token session also revokes the parent SSO session it came through, and revoking an SSO session also revokes the token sessions that came through it. The set of linked sessions is eventually consistent, so associated sessions are typically revoked within a few seconds.

session_id instance-attribute

session_id: SessionIdType

The ID of the session to revoke. This is a 28-character string of lowercase letters and digits, prefixed with tkn for a token session or sso for an SSO session.

user_pool_id instance-attribute

user_pool_id: UserPoolIdType

The ID of the user pool that contains the session.

username instance-attribute

username: UsernameType

The username of the user who owns the session. The username must match the user associated with the SessionId, to confirm they are the intended target user.