{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-medialive/json-schema/amazon-medialive-describe-schedule-response-schema.json",
  "title": "DescribeScheduleResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-medialive-schedule-api-openapi.yml#/components/schemas/DescribeScheduleResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The next token; for use in pagination."
    },
    "ScheduleActions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScheduleAction"
      },
      "description": "The list of actions in the schedule."
    }
  },
  "$defs": {
    "FixedModeScheduleActionStartSettings": {
      "type": "object",
      "properties": {
        "Time": {
          "type": "string",
          "description": "Start time for the action to start in the channel. (Not the time for the action to be added to the schedule: actions are always added to the schedule immediately.) UTC format: yyyy-mm-ddThh:mm:ss.nnnZ. All the letters are digits (for example, mm might be 01) except for the two constants \"T\" for time and \"Z\" for \"UTC format\"."
        }
      },
      "required": [
        "Time"
      ]
    },
    "FollowModeScheduleActionStartSettings": {
      "type": "object",
      "properties": {
        "FollowPoint": {
          "type": "string",
          "enum": [
            "END",
            "START"
          ],
          "description": "Identifies whether this action starts relative to the start or relative to the end of the reference action."
        },
        "ReferenceActionName": {
          "type": "string",
          "description": "The action name of another action that this one refers to."
        }
      },
      "required": [
        "FollowPoint",
        "ReferenceActionName"
      ]
    },
    "HlsId3SegmentTaggingScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Tag": {
          "type": "string",
          "description": "Complete this parameter if you want to specify only the metadata, not the entire frame. MediaLive will insert the metadata in a TXXX frame. Enter the value as plain text. You can include standard MediaLive variable data such as the current segment number."
        },
        "Id3": {
          "type": "string",
          "description": "Complete this parameter if you want to specify the entire ID3 metadata. Enter a base64 string that contains one or more fully formed ID3 tags, according to the ID3 specification: http://id3.org/id3v2.4.0-structure"
        }
      }
    },
    "HlsTimedMetadataScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Id3": {
          "type": "string",
          "description": "Enter a base64 string that contains one or more fully formed ID3 tags.See the ID3 specification: http://id3.org/id3v2.4.0-structure"
        }
      },
      "required": [
        "Id3"
      ]
    },
    "Id3SegmentTaggingScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Id3": {
          "type": "string",
          "description": "Complete this parameter if you want to specify the entire ID3 metadata. Enter a base64 string that contains one or more fully formed ID3 tags, according to the ID3 specification: http://id3.org/id3v2.4.0-structure"
        },
        "Tag": {
          "type": "string",
          "description": "Complete this parameter if you want to specify only the metadata, not the entire frame. MediaLive will insert the metadata in a TXXX frame. Enter the value as plain text. You can include standard MediaLive variable data such as the current segment number."
        }
      }
    },
    "ImmediateModeScheduleActionStartSettings": {
      "type": "object",
      "properties": {}
    },
    "InputClippingSettings": {
      "type": "object",
      "properties": {
        "InputTimecodeSource": {
          "type": "string",
          "enum": [
            "ZEROBASED",
            "EMBEDDED"
          ],
          "description": "The source of the timecodes in the source being clipped."
        },
        "StartTimecode": {
          "$ref": "#/$defs/StartTimecode"
        },
        "StopTimecode": {
          "$ref": "#/$defs/StopTimecode"
        }
      },
      "required": [
        "InputTimecodeSource"
      ]
    },
    "InputLocation": {
      "type": "object",
      "properties": {
        "PasswordParam": {
          "type": "string",
          "description": "key used to extract the password from EC2 Parameter store"
        },
        "Uri": {
          "type": "string",
          "description": "Uniform Resource Identifier - This should be a path to a file accessible to the Live system (eg. a http:// URI) depending on the output type. For example, a RTMP destination should have a uri simliar to: \"rtmp://fmsserver/live\"."
        },
        "Username": {
          "type": "string",
          "description": "Documentation update needed"
        }
      },
      "required": [
        "Uri"
      ]
    },
    "InputPrepareScheduleActionSettings": {
      "type": "object",
      "properties": {
        "InputAttachmentNameReference": {
          "type": "string",
          "description": "The name of the input attachment that should be prepared by this action. If no name is provided, the action will stop the most recent prepare (if any) when activated."
        },
        "InputClippingSettings": {
          "$ref": "#/$defs/InputClippingSettings"
        },
        "UrlPath": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time you use the same dynamic input in an input switch action, you can provide a different value, in order to connect the input to a different content source."
        }
      }
    },
    "InputSwitchScheduleActionSettings": {
      "type": "object",
      "properties": {
        "InputAttachmentNameReference": {
          "type": "string",
          "description": "The name of the input attachment (not the name of the input!) to switch to. The name is specified in the channel configuration."
        },
        "InputClippingSettings": {
          "$ref": "#/$defs/InputClippingSettings"
        },
        "UrlPath": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value for the variable portion of the URL for the dynamic input, for this instance of the input. Each time you use the same dynamic input in an input switch action, you can provide a different value, in order to connect the input to a different content source."
        }
      },
      "required": [
        "InputAttachmentNameReference"
      ]
    },
    "MotionGraphicsActivateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Duration (in milliseconds) that motion graphics should render on to the video stream. Leaving out this property or setting to 0 will result in rendering continuing until a deactivate action is processed."
        },
        "PasswordParam": {
          "type": "string",
          "description": "Key used to extract the password from EC2 Parameter store"
        },
        "Url": {
          "type": "string",
          "description": "URI of the HTML5 content to be rendered into the live stream."
        },
        "Username": {
          "type": "string",
          "description": "Documentation update needed"
        }
      }
    },
    "MotionGraphicsDeactivateScheduleActionSettings": {
      "type": "object",
      "properties": {}
    },
    "PauseStateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Pipelines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PipelinePauseStateSettings"
          }
        }
      }
    },
    "PipelinePauseStateSettings": {
      "type": "object",
      "properties": {
        "PipelineId": {
          "type": "string",
          "enum": [
            "PIPELINE_0",
            "PIPELINE_1"
          ],
          "description": "Pipeline ID to pause (\"PIPELINE_0\" or \"PIPELINE_1\")."
        }
      },
      "required": [
        "PipelineId"
      ]
    },
    "ScheduleAction": {
      "type": "object",
      "properties": {
        "ActionName": {
          "type": "string",
          "description": "The name of the action, must be unique within the schedule. This name provides the main reference to an action once it is added to the schedule. A name is unique if it is no longer in the schedule. The schedule is automatically cleaned up to remove actions with a start time of more than 1 hour ago (approximately) so at that point a name can be reused."
        },
        "ScheduleActionSettings": {
          "$ref": "#/$defs/ScheduleActionSettings"
        },
        "ScheduleActionStartSettings": {
          "$ref": "#/$defs/ScheduleActionStartSettings"
        }
      },
      "required": [
        "ActionName",
        "ScheduleActionSettings",
        "ScheduleActionStartSettings"
      ]
    },
    "ScheduleActionSettings": {
      "type": "object",
      "properties": {
        "HlsId3SegmentTaggingSettings": {
          "$ref": "#/$defs/HlsId3SegmentTaggingScheduleActionSettings"
        },
        "HlsTimedMetadataSettings": {
          "$ref": "#/$defs/HlsTimedMetadataScheduleActionSettings"
        },
        "InputPrepareSettings": {
          "$ref": "#/$defs/InputPrepareScheduleActionSettings"
        },
        "InputSwitchSettings": {
          "$ref": "#/$defs/InputSwitchScheduleActionSettings"
        },
        "MotionGraphicsImageActivateSettings": {
          "$ref": "#/$defs/MotionGraphicsActivateScheduleActionSettings"
        },
        "MotionGraphicsImageDeactivateSettings": {
          "$ref": "#/$defs/MotionGraphicsDeactivateScheduleActionSettings"
        },
        "PauseStateSettings": {
          "$ref": "#/$defs/PauseStateScheduleActionSettings"
        },
        "Scte35InputSettings": {
          "$ref": "#/$defs/Scte35InputScheduleActionSettings"
        },
        "Scte35ReturnToNetworkSettings": {
          "$ref": "#/$defs/Scte35ReturnToNetworkScheduleActionSettings"
        },
        "Scte35SpliceInsertSettings": {
          "$ref": "#/$defs/Scte35SpliceInsertScheduleActionSettings"
        },
        "Scte35TimeSignalSettings": {
          "$ref": "#/$defs/Scte35TimeSignalScheduleActionSettings"
        },
        "StaticImageActivateSettings": {
          "$ref": "#/$defs/StaticImageActivateScheduleActionSettings"
        },
        "StaticImageDeactivateSettings": {
          "$ref": "#/$defs/StaticImageDeactivateScheduleActionSettings"
        },
        "StaticImageOutputActivateSettings": {
          "$ref": "#/$defs/StaticImageOutputActivateScheduleActionSettings"
        },
        "StaticImageOutputDeactivateSettings": {
          "$ref": "#/$defs/StaticImageOutputDeactivateScheduleActionSettings"
        },
        "Id3SegmentTaggingSettings": {
          "$ref": "#/$defs/Id3SegmentTaggingScheduleActionSettings"
        },
        "TimedMetadataSettings": {
          "$ref": "#/$defs/TimedMetadataScheduleActionSettings"
        }
      }
    },
    "ScheduleActionStartSettings": {
      "type": "object",
      "properties": {
        "FixedModeScheduleActionStartSettings": {
          "$ref": "#/$defs/FixedModeScheduleActionStartSettings"
        },
        "FollowModeScheduleActionStartSettings": {
          "$ref": "#/$defs/FollowModeScheduleActionStartSettings"
        },
        "ImmediateModeScheduleActionStartSettings": {
          "$ref": "#/$defs/ImmediateModeScheduleActionStartSettings"
        }
      }
    },
    "Scte35DeliveryRestrictions": {
      "type": "object",
      "properties": {
        "ArchiveAllowedFlag": {
          "type": "string",
          "enum": [
            "ARCHIVE_NOT_ALLOWED",
            "ARCHIVE_ALLOWED"
          ],
          "description": "Corresponds to SCTE-35 archive_allowed_flag."
        },
        "DeviceRestrictions": {
          "type": "string",
          "enum": [
            "NONE",
            "RESTRICT_GROUP0",
            "RESTRICT_GROUP1",
            "RESTRICT_GROUP2"
          ],
          "description": "Corresponds to SCTE-35 device_restrictions parameter."
        },
        "NoRegionalBlackoutFlag": {
          "type": "string",
          "enum": [
            "REGIONAL_BLACKOUT",
            "NO_REGIONAL_BLACKOUT"
          ],
          "description": "Corresponds to SCTE-35 no_regional_blackout_flag parameter."
        },
        "WebDeliveryAllowedFlag": {
          "type": "string",
          "enum": [
            "WEB_DELIVERY_NOT_ALLOWED",
            "WEB_DELIVERY_ALLOWED"
          ],
          "description": "Corresponds to SCTE-35 web_delivery_allowed_flag parameter."
        }
      },
      "required": [
        "ArchiveAllowedFlag",
        "DeviceRestrictions",
        "NoRegionalBlackoutFlag",
        "WebDeliveryAllowedFlag"
      ]
    },
    "Scte35Descriptor": {
      "type": "object",
      "properties": {
        "Scte35DescriptorSettings": {
          "$ref": "#/$defs/Scte35DescriptorSettings"
        }
      },
      "required": [
        "Scte35DescriptorSettings"
      ]
    },
    "Scte35DescriptorSettings": {
      "type": "object",
      "properties": {
        "SegmentationDescriptorScte35DescriptorSettings": {
          "$ref": "#/$defs/Scte35SegmentationDescriptor"
        }
      },
      "required": [
        "SegmentationDescriptorScte35DescriptorSettings"
      ]
    },
    "Scte35InputScheduleActionSettings": {
      "type": "object",
      "properties": {
        "InputAttachmentNameReference": {
          "type": "string",
          "description": "In fixed mode, enter the name of the input attachment that you want to use as a SCTE-35 input. (Don't enter the ID of the input.)\""
        },
        "Mode": {
          "type": "string",
          "enum": [
            "FIXED",
            "FOLLOW_ACTIVE"
          ],
          "description": "Whether the SCTE-35 input should be the active input or a fixed input."
        }
      },
      "required": [
        "Mode"
      ]
    },
    "Scte35ReturnToNetworkScheduleActionSettings": {
      "type": "object",
      "properties": {
        "SpliceEventId": {
          "type": "integer",
          "description": "The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35."
        }
      },
      "required": [
        "SpliceEventId"
      ]
    },
    "Scte35SegmentationDescriptor": {
      "type": "object",
      "properties": {
        "DeliveryRestrictions": {
          "$ref": "#/$defs/Scte35DeliveryRestrictions"
        },
        "SegmentNum": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segment_num. A value that is valid for the specified segmentation_type_id."
        },
        "SegmentationCancelIndicator": {
          "type": "string",
          "enum": [
            "SEGMENTATION_EVENT_NOT_CANCELED",
            "SEGMENTATION_EVENT_CANCELED"
          ],
          "description": "Corresponds to SCTE-35 segmentation_event_cancel_indicator."
        },
        "SegmentationDuration": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segmentation_duration. Optional. The duration for the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not enter a duration, the time_signal will continue until you insert a cancellation message."
        },
        "SegmentationEventId": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segmentation_event_id."
        },
        "SegmentationTypeId": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id values listed in the SCTE-35 specification. On the console, enter the ID in decimal (for example, \"52\"). In the CLI, API, or an SDK, enter the ID in hex (for example, \"0x34\") or decimal (for example, \"52\")."
        },
        "SegmentationUpid": {
          "type": "string",
          "description": "Corresponds to SCTE-35 segmentation_upid. Enter a string containing the hexadecimal representation of the characters that make up the SCTE-35 segmentation_upid value. Must contain an even number of hex characters. Do not include spaces between each hex pair. For example, the ASCII \"ADS Information\" becomes hex \"41445320496e666f726d6174696f6e."
        },
        "SegmentationUpidType": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one of the types listed in the SCTE-35 specification, converted to a decimal. For example, \"0x0C\" hex from the specification is \"12\" in decimal. In the CLI, API, or an SDK, enter one of the types listed in the SCTE-35 specification, in either hex (for example, \"0x0C\" ) or in decimal (for example, \"12\")."
        },
        "SegmentsExpected": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 segments_expected. A value that is valid for the specified segmentation_type_id."
        },
        "SubSegmentNum": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified segmentation_type_id."
        },
        "SubSegmentsExpected": {
          "type": "integer",
          "description": "Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the specified segmentation_type_id."
        }
      },
      "required": [
        "SegmentationCancelIndicator",
        "SegmentationEventId"
      ]
    },
    "Scte35SpliceInsertScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "Optional, the duration for the splice_insert, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there is an expectation that the downstream system can read the duration and cue in at that time. If you do not enter a duration, the splice_insert will continue indefinitely and there is an expectation that you will enter a return_to_network to end the splice_insert at the appropriate time."
        },
        "SpliceEventId": {
          "type": "integer",
          "description": "The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35."
        }
      },
      "required": [
        "SpliceEventId"
      ]
    },
    "Scte35TimeSignalScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Scte35Descriptors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Scte35Descriptor"
          },
          "description": "The list of SCTE-35 descriptors accompanying the SCTE-35 time_signal."
        }
      },
      "required": [
        "Scte35Descriptors"
      ]
    },
    "StartTimecode": {
      "type": "object",
      "properties": {
        "Timecode": {
          "type": "string",
          "description": "The timecode for the frame where you want to start the clip. Optional; if not specified, the clip starts at first frame in the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF."
        }
      }
    },
    "StaticImageActivateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated."
        },
        "FadeIn": {
          "type": "integer",
          "description": "The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in)."
        },
        "FadeOut": {
          "type": "integer",
          "description": "Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out)."
        },
        "Height": {
          "type": "integer",
          "description": "The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay."
        },
        "Image": {
          "$ref": "#/$defs/InputLocation"
        },
        "ImageX": {
          "type": "integer",
          "description": "Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right."
        },
        "ImageY": {
          "type": "integer",
          "description": "Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom."
        },
        "Layer": {
          "type": "integer",
          "description": "The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0."
        },
        "Opacity": {
          "type": "integer",
          "description": "Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100."
        },
        "Width": {
          "type": "integer",
          "description": "The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay."
        }
      },
      "required": [
        "Image"
      ]
    },
    "StaticImageDeactivateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "FadeOut": {
          "type": "integer",
          "description": "The time in milliseconds for the image to fade out. Default is 0 (no fade-out)."
        },
        "Layer": {
          "type": "integer",
          "description": "The image overlay layer to deactivate, 0 to 7. Default is 0."
        }
      }
    },
    "StaticImageOutputActivateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Duration": {
          "type": "integer",
          "description": "The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated."
        },
        "FadeIn": {
          "type": "integer",
          "description": "The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in)."
        },
        "FadeOut": {
          "type": "integer",
          "description": "Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out)."
        },
        "Height": {
          "type": "integer",
          "description": "The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay."
        },
        "Image": {
          "$ref": "#/$defs/InputLocation"
        },
        "ImageX": {
          "type": "integer",
          "description": "Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right."
        },
        "ImageY": {
          "type": "integer",
          "description": "Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom."
        },
        "Layer": {
          "type": "integer",
          "description": "The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0."
        },
        "Opacity": {
          "type": "integer",
          "description": "Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100."
        },
        "OutputNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The name(s) of the output(s) the activation should apply to."
        },
        "Width": {
          "type": "integer",
          "description": "The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay."
        }
      },
      "required": [
        "Image",
        "OutputNames"
      ]
    },
    "StaticImageOutputDeactivateScheduleActionSettings": {
      "type": "object",
      "properties": {
        "FadeOut": {
          "type": "integer",
          "description": "The time in milliseconds for the image to fade out. Default is 0 (no fade-out)."
        },
        "Layer": {
          "type": "integer",
          "description": "The image overlay layer to deactivate, 0 to 7. Default is 0."
        },
        "OutputNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The name(s) of the output(s) the deactivation should apply to."
        }
      },
      "required": [
        "OutputNames"
      ]
    },
    "StopTimecode": {
      "type": "object",
      "properties": {
        "LastFrameClippingBehavior": {
          "type": "string",
          "enum": [
            "EXCLUDE_LAST_FRAME",
            "INCLUDE_LAST_FRAME"
          ],
          "description": "If you specify a StopTimecode in an input (in order to clip the file), you can specify if you want the clip to exclude (the default) or include the frame specified by the timecode."
        },
        "Timecode": {
          "type": "string",
          "description": "The timecode for the frame where you want to stop the clip. Optional; if not specified, the clip continues to the end of the file. Enter the timecode as HH:MM:SS:FF or HH:MM:SS;FF."
        }
      }
    },
    "TimedMetadataScheduleActionSettings": {
      "type": "object",
      "properties": {
        "Id3": {
          "type": "string",
          "description": "Enter a base64 string that contains one or more fully formed ID3 tags.See the ID3 specification: http://id3.org/id3v2.4.0-structure"
        }
      },
      "required": [
        "Id3"
      ]
    }
  }
}