{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kinesis-firehose/json-schema/amazon-kinesis-firehose-start-delivery-stream-encryption-input-schema.json",
  "title": "StartDeliveryStreamEncryptionInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kinesis-firehose-operations-api-openapi.yml#/components/schemas/StartDeliveryStreamEncryptionInput",
  "type": "object",
  "properties": {
    "DeliveryStreamName": {
      "type": "string",
      "description": "The name of the Firehose stream for which you want to enable server-side encryption (SSE)."
    },
    "DeliveryStreamEncryptionConfigurationInput": {
      "$ref": "#/$defs/DeliveryStreamEncryptionConfigurationInput"
    }
  },
  "required": [
    "DeliveryStreamName"
  ],
  "$defs": {
    "DeliveryStreamEncryptionConfigurationInput": {
      "type": "object",
      "properties": {
        "KeyARN": {
          "type": "string",
          "description": "If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a service-account CMK."
        },
        "KeyType": {
          "type": "string",
          "enum": [
            "AWS_OWNED_CMK",
            "CUSTOMER_MANAGED_CMK"
          ],
          "description": "Indicates the type of customer master key (CMK) to use for encryption. The default setting is Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose manages that grant. When you invoke StartDeliveryStreamEncryption to change the CMK for a Firehose stream that is"
        }
      },
      "required": [
        "KeyType"
      ]
    }
  }
}