{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-put-default-encryption-configuration-response-schema.json",
  "title": "PutDefaultEncryptionConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-configuration-api-openapi.yml#/components/schemas/PutDefaultEncryptionConfigurationResponse",
  "type": "object",
  "properties": {
    "encryptionType": {
      "type": "string",
      "enum": [
        "SITEWISE_DEFAULT_ENCRYPTION",
        "KMS_BASED_ENCRYPTION"
      ],
      "description": "The type of encryption used for the encryption configuration."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION."
    },
    "configurationStatus": {
      "$ref": "#/$defs/ConfigurationStatus"
    }
  },
  "required": [
    "encryptionType",
    "configurationStatus"
  ],
  "$defs": {
    "ConfigurationErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ConfigurationStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "UPDATE_IN_PROGRESS",
            "UPDATE_FAILED"
          ],
          "description": "The current state of the configuration."
        },
        "error": {
          "$ref": "#/$defs/ConfigurationErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    }
  }
}