AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::StepFunctions::StateMachineVersion

CfnStateMachineVersion

Represents 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

import { CfnStateMachineVersion } from 'aws-cdk-lib/aws-stepfunctions';

Or use the module namespace:

import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';
// stepfunctions.CfnStateMachineVersion

Properties

Configuration passed to the constructor as CfnStateMachineVersionProps.

stateMachineArnRequired
string

The Amazon Resource Name (ARN) of the state machine.

descriptionOptional
string

An optional description of the state machine version.

stateMachineRevisionIdOptional
string

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the AWS Step Functions Cheat Sheet

Everything you need to know about AWS Step Functions on one page. HD quality, print-friendly.

Download Free Infographic