# StateMachineReference

A reference to a StateMachine resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 interfaces_stepfunctions } from 'aws-cdk-lib/interfaces';
const stateMachineReference: interfaces_stepfunctions.StateMachineReference = {
  stateMachineArn: 'stateMachineArn',
};
```

Python:

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

state_machine_reference = interfaces_stepfunctions.StateMachineReference(
    state_machine_arn="stateMachineArn"
)
```

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.interfaces.stepfunctions.*;

StateMachineReference stateMachineReference = StateMachineReference.builder()
        .stateMachineArn("stateMachineArn")
        .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.Interfaces.StepFunctions;

var stateMachineReference = new StateMachineReference {
    StateMachineArn = "stateMachineArn"
};
```

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"

stateMachineReference := &StateMachineReference{
	StateMachineArn: jsii.String("stateMachineArn"),
}
```

## Properties

- `stateMachineArn`: string (required) — The Arn of the StateMachine resource.
