---
title: "EventGatewayDecryptPolicyConfig"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-event-gateways-1/versions/f4366232-3186-4be9-93bd-be3e4b16fb19/schemas/EventGatewayDecryptPolicyConfig"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-event-gateways-1/versions/f4366232-3186-4be9-93bd-be3e4b16fb19.md

# EventGatewayDecryptPolicyConfig

The configuration of the decrypt policy.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Control Planes Configuration for Event Gateways
  version: 1.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    EncryptionFailureMode:
      description: >
        Describes how to handle failing encryption or decryption.

        Use `error` if the record should be rejected if encryption or decryption
        fails.

        Use `passthrough` to ignore encryption or decryption failure and
        continue proxying the record.
      type: string
      enum:
        - error
        - passthrough
    EventGatewayKeySource:
      description: >
        A key source that describes how to find a symmetric key for encryption
        or decryption.

        It can be an AWS KMS key source that uses a KMS to find a symmetric key,

        or a static key source that uses a static symmetric key provided as
        secrets.
      discriminator:
        propertyName: type
        mapping:
          aws: "#/components/schemas/EventGatewayAWSKeySource"
          static: "#/components/schemas/EventGatewayStaticKeySource"
      oneOf:
        - $ref: "#/components/schemas/EventGatewayAWSKeySource"
        - $ref: "#/components/schemas/EventGatewayStaticKeySource"
    DecryptionRecordPart:
      description: |
        * key - decrypt the record key
        * value - decrypt the record value
      type: string
      enum:
        - key
        - value
    EventGatewayAWSKeySource:
      description: |
        A key source that uses an AWS KMS to find a symmetric key. Load KMS credentials from the environment.

        See [aws docs](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credproviders.html#credproviders-default-credentials-provider-chain)
        for more information about how credential retrieval.
      type: object
      properties:
        type:
          type: string
          enum:
            - aws
          x-terraform-transform-const: true
      additionalProperties: false
      required:
        - type
    EventGatewayStaticKeySource:
      description: |
        A key source that uses static symmetric keys.
      type: object
      properties:
        type:
          type: string
          enum:
            - static
          x-terraform-transform-const: true
      additionalProperties: false
      required:
        - type
    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
```
