{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediapackage/json-schema/amazon-mediapackage-create-packaging-configuration-response-schema.json",
  "title": "CreatePackagingConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediapackage-packaging-configurations-api-openapi.yml#/components/schemas/CreatePackagingConfigurationResponse",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The ARN of the PackagingConfiguration."
    },
    "CmafPackage": {
      "$ref": "#/$defs/MediapackageVodCmafPackage"
    },
    "CreatedAt": {
      "type": "string",
      "description": "The time the PackagingConfiguration was created."
    },
    "DashPackage": {
      "$ref": "#/$defs/MediapackageVodDashPackage"
    },
    "HlsPackage": {
      "$ref": "#/$defs/MediapackageVodHlsPackage"
    },
    "Id": {
      "type": "string",
      "description": "The ID of the PackagingConfiguration."
    },
    "MssPackage": {
      "$ref": "#/$defs/MediapackageVodMssPackage"
    },
    "PackagingGroupId": {
      "type": "string",
      "description": "The ID of a PackagingGroup."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "DashManifest": {
      "type": "object",
      "properties": {
        "ManifestLayout": {
          "type": "string",
          "enum": [
            "FULL",
            "COMPACT"
          ],
          "description": "Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level."
        },
        "ManifestName": {
          "type": "string",
          "description": "An optional string to include in the name of the manifest."
        },
        "MinBufferTimeSeconds": {
          "type": "integer",
          "description": "Minimum duration (in seconds) that a player will buffer media before starting the presentation."
        },
        "Profile": {
          "type": "string",
          "enum": [
            "NONE",
            "HBBTV_1_5"
          ],
          "description": "The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to \"HBBTV_1_5\", HbbTV 1.5 compliant output is enabled."
        },
        "ScteMarkersSource": {
          "type": "string",
          "enum": [
            "SEGMENTS",
            "MANIFEST"
          ],
          "description": "The source of scte markers used. When set to SEGMENTS, the scte markers are sourced from the segments of the ingested content. When set to MANIFEST, the scte markers are sourced from the manifest of the ingested content."
        },
        "StreamSelection": {
          "$ref": "#/$defs/StreamSelection"
        }
      }
    },
    "EncryptionContractConfiguration": {
      "type": "object",
      "properties": {
        "PresetSpeke20Audio": {
          "type": "string",
          "enum": [
            "PRESET-AUDIO-1",
            "PRESET-AUDIO-2",
            "PRESET-AUDIO-3",
            "SHARED",
            "UNENCRYPTED"
          ],
          "description": "A collection of audio encryption presets."
        },
        "PresetSpeke20Video": {
          "type": "string",
          "enum": [
            "PRESET-VIDEO-1",
            "PRESET-VIDEO-2",
            "PRESET-VIDEO-3",
            "PRESET-VIDEO-4",
            "PRESET-VIDEO-5",
            "PRESET-VIDEO-6",
            "PRESET-VIDEO-7",
            "PRESET-VIDEO-8",
            "SHARED",
            "UNENCRYPTED"
          ],
          "description": "A collection of video encryption presets."
        }
      },
      "required": [
        "PresetSpeke20Audio",
        "PresetSpeke20Video"
      ]
    },
    "MediapackageVodCmafEncryption": {
      "type": "object",
      "properties": {
        "ConstantInitializationVector": {
          "type": "string",
          "description": "An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV)."
        },
        "SpekeKeyProvider": {
          "$ref": "#/$defs/MediapackageVodSpekeKeyProvider"
        }
      },
      "required": [
        "SpekeKeyProvider"
      ]
    },
    "MediapackageVodCmafPackage": {
      "type": "object",
      "properties": {
        "Encryption": {
          "$ref": "#/$defs/MediapackageVodCmafEncryption"
        },
        "HlsManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MediapackageVodHlsManifest"
          },
          "description": "A list of HLS manifest configurations."
        },
        "IncludeEncoderConfigurationInSegments": {
          "type": "boolean",
          "description": "When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback."
        },
        "SegmentDurationSeconds": {
          "type": "integer",
          "description": "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration."
        }
      },
      "required": [
        "HlsManifests"
      ]
    },
    "MediapackageVodDashEncryption": {
      "type": "object",
      "properties": {
        "SpekeKeyProvider": {
          "$ref": "#/$defs/MediapackageVodSpekeKeyProvider"
        }
      },
      "required": [
        "SpekeKeyProvider"
      ]
    },
    "MediapackageVodDashPackage": {
      "type": "object",
      "properties": {
        "DashManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DashManifest"
          },
          "description": "A list of DASH manifest configurations."
        },
        "Encryption": {
          "$ref": "#/$defs/MediapackageVodDashEncryption"
        },
        "IncludeEncoderConfigurationInSegments": {
          "type": "boolean",
          "description": "When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback."
        },
        "IncludeIframeOnlyStream": {
          "type": "boolean",
          "description": "When enabled, an I-Frame only stream will be included in the output."
        },
        "PeriodTriggers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ADS"
            ]
          },
          "description": "A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains \"ADS\", new periods will be created where the Asset contains SCTE-35 ad markers."
        },
        "SegmentDurationSeconds": {
          "type": "integer",
          "description": "Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration."
        },
        "SegmentTemplateFormat": {
          "type": "string",
          "enum": [
            "NUMBER_WITH_TIMELINE",
            "TIME_WITH_TIMELINE",
            "NUMBER_WITH_DURATION"
          ],
          "description": "Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs."
        }
      },
      "required": [
        "DashManifests"
      ]
    },
    "MediapackageVodHlsEncryption": {
      "type": "object",
      "properties": {
        "ConstantInitializationVector": {
          "type": "string",
          "description": "A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated."
        },
        "EncryptionMethod": {
          "type": "string",
          "enum": [
            "AES_128",
            "SAMPLE_AES"
          ],
          "description": "The encryption method to use."
        },
        "SpekeKeyProvider": {
          "$ref": "#/$defs/MediapackageVodSpekeKeyProvider"
        }
      },
      "required": [
        "SpekeKeyProvider"
      ]
    },
    "MediapackageVodHlsManifest": {
      "type": "object",
      "properties": {
        "AdMarkers": {
          "type": "string",
          "enum": [
            "NONE",
            "SCTE35_ENHANCED",
            "PASSTHROUGH"
          ],
          "description": "This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source."
        },
        "IncludeIframeOnlyStream": {
          "type": "boolean",
          "description": "When enabled, an I-Frame only stream will be included in the output."
        },
        "ManifestName": {
          "type": "string",
          "description": "An optional string to include in the name of the manifest."
        },
        "ProgramDateTimeIntervalSeconds": {
          "type": "integer",
          "description": "The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output."
        },
        "RepeatExtXKey": {
          "type": "boolean",
          "description": "When enabled, the EXT-X-KEY tag will be repeated in output manifests."
        },
        "StreamSelection": {
          "$ref": "#/$defs/StreamSelection"
        }
      }
    },
    "MediapackageVodHlsPackage": {
      "type": "object",
      "properties": {
        "Encryption": {
          "$ref": "#/$defs/MediapackageVodHlsEncryption"
        },
        "HlsManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MediapackageVodHlsManifest"
          },
          "description": "A list of HLS manifest configurations."
        },
        "IncludeDvbSubtitles": {
          "type": "boolean",
          "description": "When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output."
        },
        "SegmentDurationSeconds": {
          "type": "integer",
          "description": "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration."
        },
        "UseAudioRenditionGroup": {
          "type": "boolean",
          "description": "When enabled, audio streams will be placed in rendition groups in the output."
        }
      },
      "required": [
        "HlsManifests"
      ]
    },
    "MediapackageVodMssPackage": {
      "type": "object",
      "properties": {
        "Encryption": {
          "$ref": "#/$defs/MssEncryption"
        },
        "MssManifests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MssManifest"
          },
          "description": "A list of MSS manifest configurations."
        },
        "SegmentDurationSeconds": {
          "type": "integer",
          "description": "The duration (in seconds) of each segment."
        }
      },
      "required": [
        "MssManifests"
      ]
    },
    "MediapackageVodSpekeKeyProvider": {
      "type": "object",
      "properties": {
        "EncryptionContractConfiguration": {
          "$ref": "#/$defs/EncryptionContractConfiguration"
        },
        "RoleArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service."
        },
        "SystemIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The system IDs to include in key requests."
        },
        "Url": {
          "type": "string",
          "description": "The URL of the external key provider service."
        }
      },
      "required": [
        "RoleArn",
        "SystemIds",
        "Url"
      ]
    },
    "MssEncryption": {
      "type": "object",
      "properties": {
        "SpekeKeyProvider": {
          "$ref": "#/$defs/SpekeKeyProvider"
        }
      },
      "required": [
        "SpekeKeyProvider"
      ]
    },
    "MssManifest": {
      "type": "object",
      "properties": {
        "ManifestName": {
          "type": "string",
          "description": "An optional string to include in the name of the manifest."
        },
        "StreamSelection": {
          "$ref": "#/$defs/StreamSelection"
        }
      }
    },
    "SpekeKeyProvider": {
      "type": "object",
      "properties": {
        "CertificateArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service."
        },
        "EncryptionContractConfiguration": {
          "$ref": "#/$defs/EncryptionContractConfiguration"
        },
        "ResourceId": {
          "type": "string",
          "description": "The resource ID to include in key requests."
        },
        "RoleArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service."
        },
        "SystemIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The system IDs to include in key requests."
        },
        "Url": {
          "type": "string",
          "description": "The URL of the external key provider service."
        }
      },
      "required": [
        "ResourceId",
        "RoleArn",
        "SystemIds",
        "Url"
      ]
    },
    "StreamSelection": {
      "type": "object",
      "properties": {
        "MaxVideoBitsPerSecond": {
          "type": "integer",
          "description": "The maximum video bitrate (bps) to include in output."
        },
        "MinVideoBitsPerSecond": {
          "type": "integer",
          "description": "The minimum video bitrate (bps) to include in output."
        },
        "StreamOrder": {
          "type": "string",
          "enum": [
            "ORIGINAL",
            "VIDEO_BITRATE_ASCENDING",
            "VIDEO_BITRATE_DESCENDING"
          ],
          "description": "A directive that determines the order of streams in the output."
        }
      }
    }
  }
}