Module Smaws_Client_SFN.UpdateStateMachine

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

A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.

The following are some examples of qualified and unqualified state machine ARNs:

After you update your state machine, you can set the publish parameter to true in the same action to publish a new version. This way, you can opt-in to strict versioning of your state machine.

Step Functions assigns monotonically increasing integers for state machine versions, starting at version number 1.

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

val request : Smaws_Lib.Context.t -> Types.update_state_machine_input -> (Types.update_state_machine_output, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of Types.conflict_exception | `InvalidArn of Types.invalid_arn | `InvalidDefinition of Types.invalid_definition | `InvalidEncryptionConfiguration of Types.invalid_encryption_configuration | `InvalidLoggingConfiguration of Types.invalid_logging_configuration | `InvalidTracingConfiguration of Types.invalid_tracing_configuration | `KmsAccessDeniedException of Types.kms_access_denied_exception | `KmsThrottlingException of Types.kms_throttling_exception | `MissingRequiredParameter of Types.missing_required_parameter | `ServiceQuotaExceededException of Types.service_quota_exceeded_exception | `StateMachineDeleting of Types.state_machine_deleting | `StateMachineDoesNotExist of Types.state_machine_does_not_exist | `ValidationException of Types.validation_exception ]) Stdlib.result