{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-delivery-response-schema.json",
  "title": "CreateDeliveryResponse",
  "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/CreateDeliveryResponse",
  "type": "object",
  "properties": {
    "delivery": {
      "$ref": "#/$defs/Delivery"
    }
  },
  "$defs": {
    "Delivery": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID that identifies this delivery in your account."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that uniquely identifies this delivery."
        },
        "deliverySourceName": {
          "type": "string",
          "description": "The name of the delivery source that is associated with this delivery."
        },
        "deliveryDestinationArn": {
          "type": "string",
          "description": "The ARN of the delivery destination that is associated with this delivery."
        },
        "deliveryDestinationType": {
          "type": "string",
          "enum": [
            "S3",
            "CWL",
            "FH",
            "XRAY"
          ],
          "description": "Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, Firehose, or X-Ray."
        },
        "recordFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The record fields used in this delivery."
        },
        "fieldDelimiter": {
          "type": "string",
          "description": "The field delimiter that is used 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": "The tags that have been assigned to this delivery."
        }
      }
    },
    "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."
        }
      }
    }
  }
}