{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dataplex/json-schema/google-dataplex-google-cloud-dataplex-v1-encryption-config-schema.json",
  "title": "GoogleCloudDataplexV1EncryptionConfig",
  "description": "A Resource designed to manage encryption configurations for customers to support Customer Managed Encryption Keys (CMEK).",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-dataplex-organizations-api-openapi.yml#/components/schemas/GoogleCloudDataplexV1EncryptionConfig",
  "properties": {
    "failureDetails": {
      "$ref": "#/$defs/GoogleCloudDataplexV1EncryptionConfigFailureDetails",
      "description": "Output only. Details of the failure if anything related to Cmek db fails."
    },
    "enableMetastoreEncryption": {
      "type": "boolean",
      "description": "Optional. Represent the state of CMEK opt-in for metastore."
    },
    "updateTime": {
      "description": "Output only. The time when the Encryption configuration was last updated.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "etag": {
      "description": "Etag of the EncryptionConfig. This is a strong etag.",
      "type": "string"
    },
    "createTime": {
      "description": "Output only. The time when the Encryption configuration was created.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "name": {
      "description": "Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.",
      "type": "string"
    },
    "key": {
      "description": "Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.",
      "type": "string"
    },
    "encryptionState": {
      "type": "string",
      "enum": [
        "ENCRYPTION_STATE_UNSPECIFIED",
        "ENCRYPTING",
        "COMPLETED",
        "FAILED"
      ],
      "readOnly": true,
      "description": "Output only. The state of encryption of the databases."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudDataplexV1EncryptionConfigFailureDetails": {
      "type": "object",
      "properties": {
        "errorCode": {
          "readOnly": true,
          "description": "Output only. The error code for the failure.",
          "type": "string",
          "enum": [
            "UNKNOWN",
            "INTERNAL_ERROR",
            "REQUIRE_USER_ACTION"
          ]
        },
        "errorMessage": {
          "description": "Output only. The error message will be shown to the user. Set only if the error code is REQUIRE_USER_ACTION.",
          "readOnly": true,
          "type": "string"
        }
      },
      "description": "Details of the failure if anything related to Cmek db fails."
    }
  }
}