Skip to content

SSMClient.list_command_invocations

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): An invocation is copy of a command sent to a specific managed node. A command can apply to one or more managed nodes. A command invocation applies to one managed node. For example, if a user runs SendCommand against three managed nodes, then a command invocation is created for each requested managed node ID. ListCommandInvocations provide status about command execution.

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 (
    CommandFilter,
    ListCommandInvocationsOutput,
)

Signature

async def list_command_invocations(
    *,
    command_id: str | None = None,
    instance_id: str | None = None,
    max_results: int | None = None,
    next_token: str | None = None,
    filters: Sequence[CommandFilter] | None = None,
    details: bool | None = None,
) -> ListCommandInvocationsOutput: ...

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)
command_id No (Optional) The invocations for a specific command ID.
instance_id No (Optional) The command execution details for a specific managed node ID.
max_results No (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
next_token No (Optional) The token for the next set of items to return. (You received this token from a previous call.)
filters No (Optional) One or more filters. Use a filter to return a more specific list of results.
details No (Optional) If set this returns the response of the command executions and any command output. The default value is false .

Output

ListCommandInvocationsOutput.

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
command_invocations list[CommandInvocationOutput] | None Always present CommandInvocationOutput
next_token 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.

CommandFilter, ListCommandInvocationsOutput

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

Pagination and streaming

client.paginators.list_command_invocations(...) accepts the same arguments and returns AsyncIterator[ListCommandInvocationsOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_ssm.exceptions:

InternalServerError, InvalidCommandIdError, InvalidFilterKeyError, InvalidInstanceIdError, InvalidNextTokenError.

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

Service guide · Pinned model