Skip to content

SignInClient.get_session

rboto-signin==0.4.0 · Service index · Types

Model summary (excerpt): Returns the details of a single sign-in session. The session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. A session that belongs to a different identity or account is reported as not found.

Install and imports

python -m pip install "rboto[signin]==0.4.0"
from rboto import SignInClient
from rboto_signin.types import (
    GetSessionOutput,
)

Signature

async def get_session(
    *,
    session_arn: str,
    principal_arn: str | None = None,
) -> GetSessionOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
session_arn Yes The ARN of the session to retrieve
principal_arn No The identity that owns the session. Omit to use the caller. Specify arn:aws:iam::{account-id}:* to retrieve any session in the account.

Output

GetSessionOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
session_arn str Always present —
principal_arn str Always present —
role str | None Always present —
status SessionStatusOutput | None Always present SessionStatusOutput
client_id str | None Always present —
client_type ClientTypeOutput | None Always present ClientTypeOutput
resource str | None Always present —
issued_at int Always present —
expires_at int Always present —
last_used_at int | None Always present —
issued_in_region str | None Always present —
origin_session_arn str | None Always present —
user_agent str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetSessionOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_signin.exceptions:

AccessDeniedError, InternalServerError, ResourceNotFoundError, TooManyRequestsError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model