{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediatailor/json-schema/amazon-mediatailor-configure-logs-for-playback-configuration-request-schema.json",
  "title": "ConfigureLogsForPlaybackConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediatailor-configure-logs-api-openapi.yml#/components/schemas/ConfigureLogsForPlaybackConfigurationRequest",
  "type": "object",
  "properties": {
    "PercentEnabled": {
      "type": "integer",
      "description": "The percentage of session logs that MediaTailor sends to your CloudWatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode. Valid values: 0 - 100"
    },
    "PlaybackConfigurationName": {
      "type": "string",
      "description": "The name of the playback configuration."
    },
    "EnabledLoggingStrategies": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "VENDED_LOGS",
          "LEGACY_CLOUDWATCH"
        ]
      },
      "description": "The method used for collecting logs from AWS Elemental MediaTailor. To configure MediaTailor to send logs directly to Amazon CloudWatch Logs, choose LEGACY_CLOUDWATCH. To configure MediaTailor to send logs to CloudWatch, which then vends the logs to your destination of choice, choose VENDED_LOGS. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream. To use vended logs, you must configure the delivery destination in Amazon CloudWatch, as described in Enable logging from AWS services, Logging that requires additional permissions [V2]."
    },
    "AdsInteractionLog": {
      "$ref": "#/$defs/AdsInteractionLog"
    },
    "ManifestServiceInteractionLog": {
      "$ref": "#/$defs/ManifestServiceInteractionLog"
    }
  },
  "required": [
    "PercentEnabled",
    "PlaybackConfigurationName"
  ],
  "$defs": {
    "AdsInteractionLog": {
      "type": "object",
      "properties": {
        "PublishOptInEventTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "RAW_ADS_RESPONSE",
              "RAW_ADS_REQUEST",
              "RAW_BID_REQUEST",
              "RAW_BID_RESPONSE",
              "PRE_ADS_REQUEST_HOOK_SUMMARY",
              "PRE_ADS_REQUEST_FUNCTION_COMPLETED",
              "POST_ADS_RESPONSE_HOOK_SUMMARY",
              "POST_ADS_RESPONSE_FUNCTION_COMPLETED",
              "PRE_MANIFEST_INSERTION_HOOK_SUMMARY",
              "PRE_MANIFEST_INSERTION_FUNCTION_COMPLETED"
            ]
          },
          "description": "Indicates that MediaTailor will emit the selected events in the logs for playback sessions that are initialized with this configuration. These events are not emitted by default and must be explicitly opted in. For descriptions of each event type, see MediaTailor ADS logs description and event types in Elemental MediaTailor User Guide."
        },
        "ExcludeEventTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AD_MARKER_FOUND",
              "NON_AD_MARKER_FOUND",
              "MAKING_ADS_REQUEST",
              "MODIFIED_TARGET_URL",
              "VAST_REDIRECT",
              "EMPTY_VAST_RESPONSE",
              "EMPTY_VMAP_RESPONSE",
              "VAST_RESPONSE",
              "REDIRECTED_VAST_RESPONSE",
              "FILLED_AVAIL",
              "FILLED_OVERLAY_AVAIL",
              "BEACON_FIRED",
              "WARNING_NO_ADVERTISEMENTS",
              "WARNING_VPAID_AD_DROPPED",
              "WARNING_URL_VARIABLE_SUBSTITUTION_FAILED",
              "ERROR_UNKNOWN",
              "ERROR_UNKNOWN_HOST",
              "ERROR_DISALLOWED_HOST",
              "ERROR_ADS_IO",
              "ERROR_ADS_TIMEOUT",
              "ERROR_ADS_RESPONSE_PARSE",
              "ERROR_ADS_RESPONSE_UNKNOWN_ROOT_ELEMENT",
              "ERROR_ADS_INVALID_RESPONSE",
              "ERROR_VAST_REDIRECT_EMPTY_RESPONSE",
              "ERROR_VAST_REDIRECT_MULTIPLE_VAST",
              "ERROR_VAST_REDIRECT_FAILED",
              "ERROR_VAST_MISSING_MEDIAFILES",
              "ERROR_VAST_MISSING_CREATIVES",
              "ERROR_VAST_MISSING_OVERLAYS",
              "ERROR_VAST_MISSING_IMPRESSION",
              "ERROR_VAST_INVALID_VAST_AD_TAG_URI",
              "ERROR_VAST_MULTIPLE_TRACKING_EVENTS",
              "ERROR_VAST_MULTIPLE_LINEAR",
              "ERROR_VAST_INVALID_MEDIA_FILE",
              "ERROR_FIRING_BEACON_FAILED",
              "ERROR_PERSONALIZATION_DISABLED",
              "VOD_TIME_BASED_AVAIL_PLAN_VAST_RESPONSE_FOR_OFFSET",
              "VOD_TIME_BASED_AVAIL_PLAN_SUCCESS",
              "VOD_TIME_BASED_AVAIL_PLAN_WARNING_NO_ADVERTISEMENTS",
              "INTERSTITIAL_VOD_SUCCESS",
              "INTERSTITIAL_VOD_FAILURE",
              "PRE_ADS_REQUEST_HOOK_ERROR",
              "PRE_ADS_REQUEST_FUNCTION_ERROR",
              "BEACON_RECEIVED",
              "POST_ADS_RESPONSE_HOOK_ERROR",
              "POST_ADS_RESPONSE_FUNCTION_ERROR",
              "PRE_MANIFEST_INSERTION_HOOK_ERROR",
              "PRE_MANIFEST_INSERTION_FUNCTION_ERROR"
            ]
          },
          "description": "Indicates that MediaTailor won't emit the selected events in the logs for playback sessions that are initialized with this configuration."
        }
      }
    },
    "ManifestServiceInteractionLog": {
      "type": "object",
      "properties": {
        "PublishOptInEventTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "PRE_SESSION_INIT_HOOK_SUMMARY",
              "PRE_SESSION_INIT_FUNCTION_COMPLETED"
            ]
          },
          "description": "Indicates that MediaTailor will emit the selected events in the logs for playback sessions that are initialized with this configuration. These events are not emitted by default and must be explicitly opted in."
        },
        "ExcludeEventTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GENERATED_MANIFEST",
              "ORIGIN_MANIFEST",
              "SESSION_INITIALIZED",
              "TRACKING_RESPONSE",
              "CONFIG_SYNTAX_ERROR",
              "CONFIG_SECURITY_ERROR",
              "UNKNOWN_HOST",
              "TIMEOUT_ERROR",
              "CONNECTION_ERROR",
              "IO_ERROR",
              "UNKNOWN_ERROR",
              "HOST_DISALLOWED",
              "PARSING_ERROR",
              "MANIFEST_ERROR",
              "NO_MASTER_OR_MEDIA_PLAYLIST",
              "NO_MASTER_PLAYLIST",
              "NO_MEDIA_PLAYLIST",
              "INCOMPATIBLE_HLS_VERSION",
              "SCTE35_PARSING_ERROR",
              "INVALID_SINGLE_PERIOD_DASH_MANIFEST",
              "UNSUPPORTED_SINGLE_PERIOD_DASH_MANIFEST",
              "LAST_PERIOD_MISSING_AUDIO",
              "LAST_PERIOD_MISSING_AUDIO_WARNING",
              "ERROR_ORIGIN_PREFIX_INTERPOLATION",
              "ERROR_ADS_INTERPOLATION",
              "ERROR_LIVE_PRE_ROLL_ADS_INTERPOLATION",
              "ERROR_CDN_AD_SEGMENT_INTERPOLATION",
              "ERROR_CDN_CONTENT_SEGMENT_INTERPOLATION",
              "ERROR_SLATE_AD_URL_INTERPOLATION",
              "ERROR_PROFILE_NAME_INTERPOLATION",
              "ERROR_BUMPER_START_INTERPOLATION",
              "ERROR_BUMPER_END_INTERPOLATION",
              "PRE_SESSION_INIT_HOOK_ERROR",
              "PRE_SESSION_INIT_FUNCTION_ERROR"
            ]
          },
          "description": "Indicates that MediaTailor won't emit the selected events in the logs for playback sessions that are initialized with this configuration."
        }
      }
    }
  }
}