Skip to content
v2.276.0

StateMachineReference Struct ​

A reference to a StateMachine resource.

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

stateMachineArnstringstate_machine_arnstrstateMachineArnStringStateMachineArnstringStateMachineArn*stringrequired#
The Arn of the StateMachine resource.