Updates an existing state machine by modifying its definition
and/or
roleArn
. 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.
sfn_update_state_machine(stateMachineArn, definition, roleArn)
[required] The Amazon Resource Name (ARN) of the state machine.
The Amazon States Language definition of the state machine. See Amazon States Language.
The Amazon Resource Name (ARN) of the IAM role of the state machine.
svc$update_state_machine( stateMachineArn = "string", definition = "string", roleArn = "string" )
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
.