{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventGatewayDecryptPolicyConfig",
  "title": "EventGatewayDecryptPolicyConfig",
  "description": "The configuration of the decrypt policy.",
  "type": "object",
  "properties": {
    "failure_mode": {
      "$ref": "#/components/schemas/EncryptionFailureMode"
    },
    "key_sources": {
      "description": "Describes how to find a symmetric key for decryption.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EventGatewayKeySource"
      },
      "minItems": 1
    },
    "part_of_record": {
      "description": "Describes the parts of a record to decrypt.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DecryptionRecordPart"
      },
      "minItems": 1
    }
  },
  "required": [
    "failure_mode",
    "key_sources",
    "part_of_record"
  ]
}