# CfnStateMachineVersionProps

Properties for defining a `CfnStateMachineVersion`.

Used as props by: [CfnStateMachineVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.CfnStateMachineVersion.html)

- Source: Generated at build time
- Type last changed: v2.86.0 · 29 Jun 2023

## Example

TypeScript:

```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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions

cfn_state_machine_version_props = stepfunctions.CfnStateMachineVersionProps(
    state_machine_arn="stateMachineArn",

    # the properties below are optional
    description="description",
    state_machine_revision_id="stateMachineRevisionId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;

CfnStateMachineVersionProps cfnStateMachineVersionProps = CfnStateMachineVersionProps.builder()
        .stateMachineArn("stateMachineArn")

        // the properties below are optional
        .description("description")
        .stateMachineRevisionId("stateMachineRevisionId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;

var cfnStateMachineVersionProps = new CfnStateMachineVersionProps {
    StateMachineArn = "stateMachineArn",

    // the properties below are optional
    Description = "description",
    StateMachineRevisionId = "stateMachineRevisionId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStateMachineVersionProps := &CfnStateMachineVersionProps{
	StateMachineArn: jsii.String("stateMachineArn"),

	// the properties below are optional
	Description: jsii.String("description"),
	StateMachineRevisionId: jsii.String("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` .
