{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-put-delivery-destination-request-schema.json",
  "title": "PutDeliveryDestinationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-delivery-destination-api-openapi.yml#/components/schemas/PutDeliveryDestinationRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A name for this delivery destination. This name must be unique for all delivery destinations in your account."
    },
    "outputFormat": {
      "type": "string",
      "enum": [
        "json",
        "plain",
        "w3c",
        "raw",
        "parquet"
      ],
      "description": "The format for the logs that this delivery destination will receive."
    },
    "deliveryDestinationConfiguration": {
      "$ref": "#/$defs/DeliveryDestinationConfiguration"
    },
    "deliveryDestinationType": {
      "type": "string",
      "enum": [
        "S3",
        "CWL",
        "FH",
        "XRAY"
      ],
      "description": "The type of delivery destination. This parameter specifies the target service where log data will be delivered. Valid values include: S3 - Amazon S3 for long-term storage and analytics CWL - CloudWatch Logs for centralized log management FH - Amazon Kinesis Data Firehose for real-time data streaming XRAY - Amazon Web Services X-Ray for distributed tracing and application monitoring The delivery destination type determines the format and configuration options available for log delivery."
    },
    "roleArn": {
      "type": "string",
      "description": "The ARN of an IAM role in your account that CloudWatch Logs assumes to deliver to this delivery destination. The trust policy of the role must allow CloudWatch Logs to assume it. This parameter is supported only for X-Ray trace delivery destinations."
    },
    "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": [
    "name"
  ],
  "$defs": {
    "DeliveryDestinationConfiguration": {
      "type": "object",
      "properties": {
        "destinationResourceArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose."
        }
      },
      "required": [
        "destinationResourceArn"
      ]
    }
  }
}