Skip to content

SSMClient.start_session

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Initiates a connection to a target (for example, a managed node) for a Session Manager session. Returns a URL and token that can be used to open a WebSocket connection for sending input and receiving outputs. Amazon Web Services CLI usage: start-session is an interactive command that requires the Session Manager plugin to be installed on the client machine making the call. For information, see...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    StartSessionOutput,
)

Signature

async def start_session(
    *,
    target: str,
    document_name: str | None = None,
    reason: str | None = None,
    parameters: dict[str, Sequence[str]] | None = None,
) -> StartSessionOutput: ...

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)
target Yes The managed node to connect to for the session.
document_name No The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example, SSM-SessionManagerRunShell . You can call the GetDocument API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session...
reason No The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.
parameters No The values you want to specify for the parameters defined in the Session document. For more information about these parameters, see Create a Session Manager preferences document in the Amazon Web Services Systems Manager User Guide .

Output

StartSessionOutput.

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_id str | None Always present —
token_value str | None Always present —
stream_url 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.

StartSessionOutput

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_ssm.exceptions:

InternalServerError, InvalidDocumentError, TargetNotConnectedError.

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

Service guide · Pinned model