Skip to content

StepFunctionsClient.update_state_machine

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): Updates an existing state machine by modifying its definition , roleArn , loggingConfiguration , or EncryptionConfiguration . Running executions will continue to use the previous definition and roleArn . You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error. A qualified state machine ARN refers to a Distributed Map state defined within a...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from rboto_sfn.types import (
    EncryptionConfiguration,
    LoggingConfiguration,
    TracingConfiguration,
    UpdateStateMachineOutput,
)

Signature

async def update_state_machine(
    *,
    state_machine_arn: str,
    definition: str | None = None,
    role_arn: str | None = None,
    logging_configuration: LoggingConfiguration | None = None,
    tracing_configuration: TracingConfiguration | None = None,
    publish: bool | None = None,
    version_description: str | None = None,
    encryption_configuration: EncryptionConfiguration | None = None,
) -> UpdateStateMachineOutput: ...

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.
definition No The Amazon States Language definition of the state machine. See Amazon States Language .
role_arn No The Amazon Resource Name (ARN) of the IAM role of the state machine.
logging_configuration No Use the LoggingConfiguration data type to set CloudWatch Logs options.
tracing_configuration No Selects whether X-Ray tracing is enabled.
publish No Specifies whether the state machine version is published. The default is false . To publish a version after updating the state machine, set publish to true .
version_description No An optional description of the state machine version to publish. You can only specify the versionDescription parameter if you've set publish to true .
encryption_configuration No Settings to configure server-side encryption.

Output

UpdateStateMachineOutput.

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
update_date str Always present —
revision_id str | None Always present —
state_machine_version_arn 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.

EncryptionConfiguration, LoggingConfiguration, TracingConfiguration, UpdateStateMachineOutput

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:

ConflictError, InvalidArnError, InvalidDefinitionError, InvalidEncryptionConfigurationError, InvalidLoggingConfigurationError, InvalidTracingConfigurationError, KmsAccessDeniedError, KmsThrottlingError, MissingRequiredParameterError, ServiceQuotaExceededError, StateMachineDeletingError, StateMachineDoesNotExistError, ValidationError.

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

Service guide · Pinned model