{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-step-functions/json-schema/aws-step-functions-create-state-machine-alias-input-schema.json",
  "title": "CreateStateMachineAliasInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-step-functions-aws-step-functions-x-amz-target-awsstepfunctions-createstat-api-openapi.yml#/components/schemas/CreateStateMachineAliasInput",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "A description for the state machine alias."
    },
    "name": {
      "type": "string",
      "description": "The name of the state machine alias. To avoid conflict with version ARNs, don't use an integer in the name of the alias."
    },
    "routingConfiguration": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingConfigurationListItem"
      },
      "description": "The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig."
    }
  },
  "required": [
    "name",
    "routingConfiguration"
  ],
  "$defs": {
    "RoutingConfigurationListItem": {
      "type": "object",
      "properties": {
        "stateMachineVersionArn": {
          "type": "string",
          "description": "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": "integer",
          "description": "The percentage of traffic you want to route to a state machine version. The sum of the weights in the routing configuration must be equal to 100."
        }
      },
      "required": [
        "stateMachineVersionArn",
        "weight"
      ]
    }
  }
}