aws-cdk-lib.aws_stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty

interface RoutingConfigurationVersionProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#CfnStateMachineAlias_RoutingConfigurationVersionProperty
Javasoftware.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty
Pythonaws_cdk.aws_stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty
TypeScript aws-cdk-lib » aws_stepfunctions » CfnStateMachineAlias » RoutingConfigurationVersionProperty

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

Example

// 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,
};

Properties

NameTypeDescription
stateMachineVersionArnstringThe Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
weightnumberThe percentage of traffic you want to route to the state machine version.

stateMachineVersionArn

Type: string

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

Type: number

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.