v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1426173136.4 KB

Updates an existing state machine by modifying its definition, roleArn, or loggingConfiguration. 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.

If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.

A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn.

post/#X-Amz-Target=AWSStepFunctions.UpdateStateMachine

Headers

X-Amz-Target'AWSStepFunctions.UpdateStateMachine' required

Request body

stateMachineArnstring required

The Amazon Resource Name (ARN) of the state machine.

definitionstring password

The Amazon States Language definition of the state machine. See <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States Language</a>.

roleArnstring

The Amazon Resource Name (ARN) of the IAM role of the state machine.

Response

Success

updateDatestring date-time required

The date and time the state machine was updated.