{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-bedrock-agent-put-resource-policy-request-schema.json",
  "title": "BedrockAgentPutResourcePolicyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-resource-policy-api-openapi.yml#/components/schemas/BedrockAgentPutResourcePolicyRequest",
  "type": "object",
  "properties": {
    "resourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to."
    },
    "policy": {
      "type": "string",
      "description": "The JSON-formatted resource policy to associate with the knowledge base."
    },
    "expectedRevisionId": {
      "type": "string",
      "description": "The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the revisionId from the most recent GetResourcePolicy or PutResourcePolicy response."
    }
  },
  "required": [
    "resourceArn",
    "policy"
  ]
}