{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-put-enforced-guardrail-configuration-request-schema.json",
  "title": "PutEnforcedGuardrailConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-enforcedguardrailsconfiguration-api-openapi.yml#/components/schemas/PutEnforcedGuardrailConfigurationRequest",
  "type": "object",
  "properties": {
    "configId": {
      "type": "string",
      "description": "Unique ID for the account enforced configuration."
    },
    "guardrailInferenceConfig": {
      "$ref": "#/$defs/AccountEnforcedGuardrailInferenceInputConfiguration"
    }
  },
  "required": [
    "guardrailInferenceConfig"
  ],
  "$defs": {
    "AccountEnforcedGuardrailInferenceInputConfiguration": {
      "type": "object",
      "properties": {
        "guardrailIdentifier": {
          "type": "string",
          "description": "Identifier for the guardrail, could be the ID or the ARN."
        },
        "guardrailVersion": {
          "type": "string",
          "description": "Numerical guardrail version."
        },
        "selectiveContentGuarding": {
          "$ref": "#/$defs/SelectiveContentGuarding"
        },
        "modelEnforcement": {
          "$ref": "#/$defs/ModelEnforcement"
        }
      },
      "required": [
        "guardrailIdentifier",
        "guardrailVersion"
      ]
    },
    "ModelEnforcement": {
      "type": "object",
      "properties": {
        "includedModels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Models to enforce the guardrail on."
        },
        "excludedModels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Models to exclude from enforcement of the guardrail."
        }
      },
      "required": [
        "includedModels",
        "excludedModels"
      ]
    },
    "SelectiveContentGuarding": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string",
          "enum": [
            "SELECTIVE",
            "COMPREHENSIVE"
          ],
          "description": "Selective guarding mode for system prompts.\""
        },
        "messages": {
          "type": "string",
          "enum": [
            "SELECTIVE",
            "COMPREHENSIVE"
          ],
          "description": "Selective guarding mode for user messages."
        }
      }
    }
  }
}