Skip to content

Session

Source code in docs_src/capo_signin/types/session.py
class Session(TypedDict, closed=True):
    session_arn: "capo_signin.types.session_arn.SessionArn"
    """The session ARN"""
    principal_arn: "capo_signin.types.principal_arn.PrincipalArn"
    """The IAM identity that owns the session"""
    role: NotRequired["capo_signin.types.principal_arn.PrincipalArn"]
    """The IAM role for the session, when the owner is a role"""
    status: NotRequired["capo_signin.types.session_status.SessionStatus"]
    """The session status"""
    issued_at: "int"
    """The time the session was created, in Unix epoch seconds"""
    expires_at: "int"
    """The time the session expires, in Unix epoch seconds"""
    client_id: NotRequired["str"]
    """The OAuth client that created the session"""
    client_type: NotRequired["capo_signin.types.client_type.ClientType"]
    """The type of OAuth client that created the session"""
    resource: NotRequired["str"]
    """The resource that the session's tokens are bound to"""

client_id instance-attribute

client_id: NotRequired[str]

The OAuth client that created the session

client_type instance-attribute

client_type: NotRequired[ClientType]

The type of OAuth client that created the session

expires_at instance-attribute

expires_at: int

The time the session expires, in Unix epoch seconds

issued_at instance-attribute

issued_at: int

The time the session was created, in Unix epoch seconds

principal_arn instance-attribute

principal_arn: PrincipalArn

The IAM identity that owns the session

resource instance-attribute

resource: NotRequired[str]

The resource that the session's tokens are bound to

role instance-attribute

role: NotRequired[PrincipalArn]

The IAM role for the session, when the owner is a role

session_arn instance-attribute

session_arn: SessionArn

The session ARN

status instance-attribute

status: NotRequired[SessionStatus]

The session status