{"record":{"id":"e1c7a67387828bac","repo":"BerriAI/litellm","slug":"bedrock-checks-must-enable-at-least-one-of-cont","errorCode":null,"errorMessage":"Bedrock 'checks' must enable at least one of: contentFilter, promptAttack, sensitiveInformation.","messagePattern":"Bedrock 'checks' must enable at least one of: contentFilter, promptAttack, sensitiveInformation\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/types/guardrails.py","lineNumber":472,"sourceCode":"\nclass BedrockChecksSensitiveInformationModel(BaseModel):\n    entities: list[BedrockChecksSensitiveInformationEntityItem]\n\n\nclass BedrockChecksConfigModel(BaseModel):\n    \"\"\"Inline `checks` config for the resource-less Bedrock InvokeGuardrailChecks API.\n\n    Include only the checks you want to run; at least one must be set.\n    \"\"\"\n\n    contentFilter: BedrockChecksContentFilterModel | None = None\n    promptAttack: BedrockChecksPromptAttackModel | None = None\n    sensitiveInformation: BedrockChecksSensitiveInformationModel | None = None\n\n    @model_validator(mode=\"after\")\n    def _require_at_least_one_check(self) -> \"BedrockChecksConfigModel\":\n        if self.contentFilter is None and self.promptAttack is None and self.sensitiveInformation is None:\n            raise ValueError(\n                \"Bedrock 'checks' must enable at least one of: contentFilter, promptAttack, sensitiveInformation.\"\n            )\n        return self\n\n\nclass BedrockGuardrailConfigModel(BaseModel):\n    \"\"\"Configuration parameters for the AWS Bedrock guardrail\"\"\"\n\n    guardrailIdentifier: str | None = Field(default=None, description=\"The ID of your guardrail on Bedrock\")\n    guardrailVersion: str | None = Field(\n        default=None,\n        description=\"The version of your Bedrock guardrail (e.g., DRAFT or version number)\",\n    )\n    disable_exception_on_block: bool | None = Field(\n        default=False,\n        description=\"If True, will not raise an exception when the guardrail is blocked. Useful for OpenWebUI where exceptions can end the chat flow.\",\n    )\n    aws_region_name: str | None = Field(default=None, description=\"AWS region where your guardrail is deployed\")","sourceCodeStart":454,"sourceCodeEnd":490,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/types/guardrails.py#L454-L490","documentation":"Pydantic model_validator on BedrockChecksConfigModel: none of contentFilter, promptAttack, or sensitiveInformation is set. The Bedrock InvokeGuardrailChecks API is resource-less, so the inline checks config must enable at least one check to have any effect.","triggerScenarios":"Thrown at litellm/types/guardrails.py:472 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable at least one check in the Bedrock guardrail config: contentFilter, promptAttack, or sensitiveInformation."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}