{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-step-functions/json-schema/aws-step-functions-update-state-machine-alias-input-schema.json",
  "title": "UpdateStateMachineAliasInput",
  "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-updatestat-api-openapi.yml#/components/schemas/UpdateStateMachineAliasInput",
  "type": "object",
  "properties": {
    "stateMachineAliasArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the state machine alias."
    },
    "description": {
      "type": "string",
      "description": "A description of the state machine alias."
    },
    "routingConfiguration": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingConfigurationListItem"
      },
      "description": "The routing configuration of the state machine alias. An array of RoutingConfig objects that specifies up to two state machine versions that the alias starts executions for."
    }
  },
  "required": [
    "stateMachineAliasArn"
  ],
  "$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"
      ]
    }
  }
}