SSMClient.start_automation_execution
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Initiates execution of an Automation runbook.
Install and imports
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
AlarmConfiguration,
ExecutionMode,
StartAutomationExecutionOutput,
Tag,
Target,
TargetLocation,
)
Signature
async def start_automation_execution(
*,
document_name: str,
document_version: str | None = None,
parameters: dict[str, Sequence[str]] | None = None,
client_token: str | None = None,
mode: ExecutionMode | None = None,
target_parameter_name: str | None = None,
targets: Sequence[Target] | None = None,
target_maps: Sequence[dict[str, Sequence[str]]] | None = None,
max_concurrency: str | None = None,
max_errors: str | None = None,
target_locations: Sequence[TargetLocation] | None = None,
tags: Sequence[Tag] | None = None,
alarm_configuration: AlarmConfiguration | None = None,
target_locations_url: str | None = None,
) -> StartAutomationExecutionOutput: ...
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) |
|---|---|---|
document_name |
Yes | The name of the SSM document to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document ARN. For more information about how to use shared documents, see Sharing SSM documents in the Amazon Web Services Systems Manager User Guide . |
document_version |
No | The version of the Automation runbook to use for this execution. |
parameters |
No | A key-value map of execution parameters, which match the declared parameters in the Automation runbook. |
client_token |
No | User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused. |
mode |
No | The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto. |
target_parameter_name |
No | The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets. |
targets |
No | A key-value mapping to target resources. Required if you specify TargetParameterName. If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence. |
target_maps |
No | A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together. |
max_concurrency |
No | The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10 . If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence. |
max_errors |
No | The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the... |
target_locations |
No | A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems... |
tags |
No | Optional metadata that you assign to a resource. You can specify a maximum of five tags for an automation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an automation to identify an environment or operating system. In this case, you could specify the following key-value pairs: Key=environment,Value=test... |
alarm_configuration |
No | The CloudWatch alarm you want to apply to your automation. |
target_locations_url |
No | Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported. |
Output
StartAutomationExecutionOutput.
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 |
|---|---|---|---|
automation_execution_id |
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.
Related types
AlarmConfiguration, ExecutionMode, StartAutomationExecutionOutput, Tag, Target, TargetLocation
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:
AutomationDefinitionNotFoundError, AutomationDefinitionVersionNotFoundError, AutomationExecutionLimitExceededError, IdempotentParameterMismatchError, InternalServerError, InvalidAutomationExecutionParametersError, InvalidTargetError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.