Skip to content

SSMClient.get_command_invocation

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Returns detailed information about command execution for an invocation or plugin. The Run Command API follows an eventual consistency model, due to the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your resources might not be immediately visible to all subsequent commands you run. You should keep this in mind when you...

Install and imports

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

Signature

async def get_command_invocation(
    *,
    command_id: str,
    instance_id: str,
    plugin_name: str | None = None,
) -> GetCommandInvocationOutput: ...

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 Yes (Required) The parent command ID of the invocation plugin.
instance_id Yes (Required) The ID of the managed node targeted by the command. A managed node can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.
plugin_name No The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like aws:RunShellScript . To find the PluginName , check the...

Output

GetCommandInvocationOutput.

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_id str | None Always present —
instance_id str | None Always present —
comment str | None Always present —
document_name str | None Always present —
document_version str | None Always present —
plugin_name str | None Always present —
response_code int Always present —
execution_start_date_time str | None Always present —
execution_elapsed_time str | None Always present —
execution_end_date_time str | None Always present —
status CommandInvocationStatusOutput | None Always present CommandInvocationStatusOutput
status_details str | None Always present —
standard_output_content str | None Always present —
standard_output_url str | None Always present —
standard_error_content str | None Always present —
standard_error_url str | None Always present —
cloud_watch_output_config CloudWatchOutputConfigOutput | None Always present CloudWatchOutputConfigOutput

| 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.

GetCommandInvocationOutput

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.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.command_executed:

async def command_executed(
    *,
    command_id: str,
    instance_id: str,
    plugin_name: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> GetCommandInvocationOutput: ...

Default fixed delay: 5 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 retry stringEquals Status Pending
1 retry stringEquals Status InProgress
2 retry stringEquals Status Delayed
3 success stringEquals Status Success
4 failure stringEquals Status Cancelled
5 failure stringEquals Status TimedOut
6 failure stringEquals Status Failed
7 failure stringEquals Status Cancelling
8 retry errorType — InvocationDoesNotExist

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

Errors

Import from rboto_ssm.exceptions:

InternalServerError, InvalidCommandIdError, InvalidInstanceIdError, InvalidPluginNameError, InvocationDoesNotExistError.

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

Service guide · Pinned model