AWS::StepFunctions::StateMachineVersionRepresents a state machine [version](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-version.html) . A published version uses the latest state machine [*revision*](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-version.html) . A revision is an immutable, read-only snapshot of a state machine’s definition and configuration. You can publish up to 1000 versions for each state machine. > Before you delete a version, make sure that version's ARN isn't being referenced in any long-running workflows or application code outside of the stack.
import { CfnStateMachineVersion } from 'aws-cdk-lib/aws-stepfunctions';Or use the module namespace:
import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';
// stepfunctions.CfnStateMachineVersionConfiguration passed to the constructor as CfnStateMachineVersionProps.
stateMachineArnRequiredstringThe Amazon Resource Name (ARN) of the state machine.
descriptionOptionalstringAn optional description of the state machine version.
stateMachineRevisionIdOptionalstringIdentifier for a state machine revision, which is an immutable, read-only snapshot of a state machine’s definition and configuration. Only publish the state machine version if the current state machine's revision ID matches the specified ID. Use this option to avoid publishing a version if the state machine has changed since you last updated it. To specify the initial state machine revision, set the value as `INITIAL` .
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about AWS Step Functions on one page. HD quality, print-friendly.
Download Free Infographicaws-stepfunctionsAWS::StepFunctions::StateMachineVersion