Module Smaws_Client_SFN.PublishStateMachineVersion

val request : Smaws_Lib.Context.t -> publish_state_machine_version_input -> (publish_state_machine_version_output, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of conflict_exception | `InvalidArn of invalid_arn | `ServiceQuotaExceededException of service_quota_exceeded_exception | `StateMachineDeleting of state_machine_deleting | `StateMachineDoesNotExist of state_machine_does_not_exist | `ValidationException of validation_exception ]) Stdlib.result

Creates a version from the current revision of a state machine. Use versions to create immutable snapshots of your state machine. You can start executions from versions either directly or with an alias. To create an alias, use CreateStateMachineAlias.

You can publish up to 1000 versions for each state machine. You must manually delete unused versions using the DeleteStateMachineVersion API action.

PublishStateMachineVersion is an idempotent API. It doesn't create a duplicate state machine version if it already exists for the current revision. Step Functions bases PublishStateMachineVersion's idempotency check on the stateMachineArn, name, and revisionId parameters. Requests with the same parameters return a successful idempotent response. If you don't specify a revisionId, Step Functions checks for a previously published version of the state machine's current revision.

Related operations:

  • DeleteStateMachineVersion
  • ListStateMachineVersions