{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-update-automated-reasoning-policy-request-schema.json",
  "title": "UpdateAutomatedReasoningPolicyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-automated-reasoning-policies-api-openapi.yml#/components/schemas/UpdateAutomatedReasoningPolicyRequest",
  "type": "object",
  "properties": {
    "policyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Automated Reasoning policy to update. This must be the ARN of a draft policy."
    },
    "policyDefinition": {
      "$ref": "#/$defs/AutomatedReasoningPolicyDefinition"
    },
    "name": {
      "type": "string",
      "description": "The updated name for the Automated Reasoning policy."
    },
    "description": {
      "type": "string",
      "description": "The updated description for the Automated Reasoning policy."
    }
  },
  "required": [
    "policyArn",
    "policyDefinition"
  ],
  "$defs": {
    "AutomatedReasoningPolicyDefinition": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "description": "The version of the policy definition format."
        },
        "types": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutomatedReasoningPolicyDefinitionType"
          },
          "description": "The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types."
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutomatedReasoningPolicyDefinitionRule"
          },
          "description": "The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable."
        },
        "variables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutomatedReasoningPolicyDefinitionVariable"
          },
          "description": "The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation."
        }
      }
    },
    "AutomatedReasoningPolicyDefinitionRule": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the rule within the policy."
        },
        "expression": {
          "type": "string",
          "description": "The formal logic expression of the rule."
        },
        "alternateExpression": {
          "type": "string",
          "description": "The human-readable form of the rule expression, often in natural language or simplified notation."
        }
      },
      "required": [
        "id",
        "expression"
      ]
    },
    "AutomatedReasoningPolicyDefinitionType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the custom type."
        },
        "description": {
          "type": "string",
          "description": "The description of what the custom type represents."
        },
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AutomatedReasoningPolicyDefinitionTypeValue"
          },
          "description": "The possible values for this enum-based type, each with its own description."
        }
      },
      "required": [
        "name",
        "values"
      ]
    },
    "AutomatedReasoningPolicyDefinitionTypeValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The actual value or identifier for this type value."
        },
        "description": {
          "type": "string",
          "description": "A human-readable description explaining what this type value represents and when it should be used."
        }
      },
      "required": [
        "value"
      ]
    },
    "AutomatedReasoningPolicyDefinitionVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the variable. Use descriptive names that clearly indicate the concept being represented."
        },
        "type": {
          "type": "string",
          "description": "The data type of the variable. Valid types include bool, int, real, enum, and custom types that you can provide."
        },
        "description": {
          "type": "string",
          "description": "The description of the variable that explains what it represents and how users might refer to it. Clear and comprehensive descriptions are essential for accurate natural language translation."
        }
      },
      "required": [
        "name",
        "type",
        "description"
      ]
    }
  }
}