Skip to content

StepFunctionsClient.start_sync_execution

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): Starts a Synchronous Express state machine execution. StartSyncExecution is not available for STANDARD workflows. StartSyncExecution will return a 200 OK response, even if your execution fails, because the status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your execution from running, such as permissions errors, limit errors, or...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from rboto_sfn.types import (
    IncludedData,
    StartSyncExecutionOutput,
)

Signature

async def start_sync_execution(
    *,
    state_machine_arn: str,
    name: str | None = None,
    input: str | None = None,
    trace_header: str | None = None,
    included_data: IncludedData | None = None,
) -> StartSyncExecutionOutput: ...

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)
state_machine_arn Yes The Amazon Resource Name (ARN) of the state machine to execute.
name No The name of the execution.
input No The string that contains the JSON input data for the execution, for example: "{\"first_name\" : \"Alejandro\"}" If you don't include any JSON input data, you still must include the two braces, for example: "{}" Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
trace_header No Passes the X-Ray trace header. The trace header can also be passed in the request payload. For X-Ray traces, all Amazon Web Services services use the X-Amzn-Trace-Id header from the HTTP request. Using the header is the preferred mechanism to identify a trace. StartExecution and StartSyncExecution API operations can also use traceHeader from the body of the request payload. If both sources are...
included_data No If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the API with includedData = METADATA_ONLY to get a successful response without the encrypted definition.

Output

StartSyncExecutionOutput.

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
execution_arn str Always present —
state_machine_arn str | None Always present —
name str | None Always present —
start_date str Always present —
stop_date str Always present —
status SyncExecutionStatusOutput Always present SyncExecutionStatusOutput
error str | None Always present —
cause str | None Always present —
input str | None Always present —
input_details CloudWatchEventsExecutionDataDetailsOutput | None Always present CloudWatchEventsExecutionDataDetailsOutput
output str | None Always present —
output_details CloudWatchEventsExecutionDataDetailsOutput | None Always present CloudWatchEventsExecutionDataDetailsOutput
trace_header str | None Always present —
billing_details BillingDetailsOutput | None Always present BillingDetailsOutput

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

IncludedData, StartSyncExecutionOutput

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

InvalidArnError, InvalidExecutionInputError, InvalidNameError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError, StateMachineDeletingError, StateMachineDoesNotExistError, StateMachineTypeNotSupportedError.

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

Service guide · Pinned model