{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-realtime-log-config-request-schema.json",
  "title": "UpdateRealtimeLogConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-realtime-log-config-api-openapi.yml#/components/schemas/UpdateRealtimeLogConfigRequest",
  "type": "object",
  "properties": {
    "EndPoints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EndPoint"
      },
      "description": "Contains information about the Amazon Kinesis data stream where you are sending real-time log data."
    },
    "Fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of fields to include in each real-time log record. For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide."
    },
    "Name": {
      "type": "string",
      "description": "The name for this real-time log configuration."
    },
    "ARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) for this real-time log configuration."
    },
    "SamplingRate": {
      "type": "integer",
      "description": "The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive."
    }
  },
  "$defs": {
    "EndPoint": {
      "type": "object",
      "properties": {
        "StreamType": {
          "type": "string",
          "description": "The type of data stream where you are sending real-time log data. The only valid value is Kinesis."
        },
        "KinesisStreamConfig": {
          "$ref": "#/$defs/KinesisStreamConfig"
        }
      },
      "required": [
        "StreamType"
      ]
    },
    "KinesisStreamConfig": {
      "type": "object",
      "properties": {
        "RoleARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream. For more information the IAM role, see Real-time log configuration IAM role in the Amazon CloudFront Developer Guide."
        },
        "StreamARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data."
        }
      },
      "required": [
        "RoleARN",
        "StreamARN"
      ]
    }
  }
}