{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-delivery-request-schema.json",
  "title": "CreateDeliveryRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-delivery-api-openapi.yml#/components/schemas/CreateDeliveryRequest",
  "type": "object",
  "properties": {
    "deliverySourceName": {
      "type": "string",
      "description": "The name of the delivery source to use for this delivery."
    },
    "deliveryDestinationArn": {
      "type": "string",
      "description": "The ARN of the delivery destination to use for this delivery."
    },
    "recordFields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of record fields to be delivered to the destination, in order. If the delivery's log source has mandatory fields, they must be included in this list."
    },
    "fieldDelimiter": {
      "type": "string",
      "description": "The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format."
    },
    "s3DeliveryConfiguration": {
      "$ref": "#/$defs/S3DeliveryConfiguration"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources"
    }
  },
  "required": [
    "deliverySourceName",
    "deliveryDestinationArn"
  ],
  "$defs": {
    "S3DeliveryConfiguration": {
      "type": "object",
      "properties": {
        "suffixPath": {
          "type": "string",
          "description": "This string allows re-configuring the S3 object prefix to contain either static or variable sections. The valid variables to use in the suffix path vary by log type. To find the values supported for the suffix path for each log type, use the DescribeConfigurationTemplates operation and check the allowedSuffixPathFields field in the response. For more information about how the destination prefix, suffix path, and Hive-compatible setting determine the Amazon S3 object key, see Amazon S3 object key for V2 deliveries."
        },
        "enableHiveCompatiblePath": {
          "type": "boolean",
          "description": "This parameter causes the S3 objects that contain delivered logs to use a prefix structure that allows for integration with Apache Hive."
        }
      }
    }
  }
}