This template publishes a version for the latest revision of a state machine. It uses the StateMachineRevisionId property to detect changes in the state machine and make a replacement update to the AWS::StepFunctions::StateMachineVersion resource.

CloudFormation Template