{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-prompt-router-request-schema.json",
  "title": "CreatePromptRouterRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-prompt-routers-api-openapi.yml#/components/schemas/CreatePromptRouterRequest",
  "type": "object",
  "properties": {
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you."
    },
    "promptRouterName": {
      "type": "string",
      "description": "The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region."
    },
    "models": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PromptRouterTargetModel"
      },
      "description": "A list of foundation models that the prompt router can route requests to. At least one model must be specified."
    },
    "description": {
      "type": "string",
      "description": "An optional description of the prompt router to help identify its purpose."
    },
    "routingCriteria": {
      "$ref": "#/$defs/RoutingCriteria"
    },
    "fallbackModel": {
      "$ref": "#/$defs/PromptRouterTargetModel"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources."
    }
  },
  "required": [
    "promptRouterName",
    "models",
    "routingCriteria",
    "fallbackModel"
  ],
  "$defs": {
    "PromptRouterTargetModel": {
      "type": "object",
      "properties": {
        "modelArn": {
          "type": "string",
          "description": "The target model's ARN."
        }
      },
      "required": [
        "modelArn"
      ]
    },
    "RoutingCriteria": {
      "type": "object",
      "properties": {
        "responseQualityDifference": {
          "type": "number",
          "description": "The criteria's response quality difference."
        }
      },
      "required": [
        "responseQualityDifference"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Key for the tag."
        },
        "value": {
          "type": "string",
          "description": "Value for the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}