Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . stepfunctions ]



Updates an existing state machine by modifying its definition and/or roleArn . Running executions will continue to use the previous definition and roleArn .


All start-execution calls within a few seconds will use the updated definition and roleArn . Executions started immediately after calling update-state-machine may use the previous state machine definition and roleArn . You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


--state-machine-arn <value>
[--definition <value>]
[--role-arn <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--state-machine-arn (string)

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

--definition (string)

The Amazon States Language definition of the state machine.

--role-arn (string)

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

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


updateDate -> (timestamp)

The date and time the state machine was updated.