SignInClient.batch_revoke_sessions
rboto-signin==0.4.0 · Service index · Types
Model summary (excerpt): Revokes up to five sign-in sessions. A revoked session can no longer be refreshed. Revoking a session that is already revoked succeeds. Each session must belong to the identity specified by principalArn, or to the caller if principalArn is omitted. Failures for individual sessions are returned in the errors list and do not fail the whole request.
Install and imports
from rboto import SignInClient
from collections.abc import Sequence
from rboto_signin.types import (
BatchRevokeSessionsOutput,
)
Signature
async def batch_revoke_sessions(
*,
session_arns: Sequence[str],
principal_arn: str | None = None,
reason: str | None = None,
) -> BatchRevokeSessionsOutput: ...
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_arns |
Yes | The ARNs of the sessions to revoke |
principal_arn |
No | The identity that owns the sessions. Omit to use the caller. Specify arn:aws:iam::{account-id}:* to revoke any session in the account. |
reason |
No | The reason for revoking the sessions |
Output
BatchRevokeSessionsOutput.
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 |
|---|---|---|---|
revoked_sessions |
list[RevokedSessionOutput] |
Always present | RevokedSessionOutput |
errors |
list[BatchRevokeSessionErrorOutput] |
Always present | BatchRevokeSessionErrorOutput |
| 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.
Related types
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.