# CfnStateMachineVersionProps

Properties for defining a `CfnStateMachineVersion`.

Extends: CfnStateMachineVersionProps
Used as props by: CfnStateMachineVersion

- Source: Generated code
- Type last changed: v2.86.0 · 29 Jun 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
const cfnStateMachineVersionProps: stepfunctions.CfnStateMachineVersionProps = {
  stateMachineArn: 'stateMachineArn',

  // the properties below are optional
  description: 'description',
  stateMachineRevisionId: 'stateMachineRevisionId',
};
```

## Properties

- `description`: string — An optional description of the state machine version.

- `stateMachineArn`: string (required) — The Amazon Resource Name (ARN) of the state machine.

- `stateMachineRevisionId`: 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` .
