# RoutingConfigurationVersionProperty

The state machine version to which you want to route the execution traffic.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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 routingConfigurationVersionProperty: stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty = {
  stateMachineVersionArn: 'stateMachineVersionArn',
  weight: 123,
};
```

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

routing_configuration_version_property = stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty(
    state_machine_version_arn="stateMachineVersionArn",
    weight=123
)
```

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

RoutingConfigurationVersionProperty routingConfigurationVersionProperty = RoutingConfigurationVersionProperty.builder()
        .stateMachineVersionArn("stateMachineVersionArn")
        .weight(123)
        .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 routingConfigurationVersionProperty = new RoutingConfigurationVersionProperty {
    StateMachineVersionArn = "stateMachineVersionArn",
    Weight = 123
};
```

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"

routingConfigurationVersionProperty := &RoutingConfigurationVersionProperty{
	StateMachineVersionArn: jsii.String("stateMachineVersionArn"),
	Weight: jsii.Number(123),
}
```

## Properties

- `stateMachineVersionArn`: string (required) — The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.

  If you specify the ARN of a second version, it must belong to the same state machine as the first version.

- `weight`: number (required) — The percentage of traffic you want to route to the state machine version.

  The sum of the weights in the routing configuration must be equal to 100.
