{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediapackage/json-schema/amazon-mediapackage-mediapackagev2-create-channel-request-schema.json",
  "title": "Mediapackagev2CreateChannelRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediapackage-channels-api-openapi.yml#/components/schemas/Mediapackagev2CreateChannelRequest",
  "type": "object",
  "properties": {
    "ChannelGroupName": {
      "type": "string",
      "description": "The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region."
    },
    "ChannelName": {
      "type": "string",
      "description": "The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group. You can't change the name after you create the channel."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive token that you provide to ensure the idempotency of the request."
    },
    "InputType": {
      "type": "string",
      "enum": [
        "HLS",
        "CMAF",
        "MULTIVIEW"
      ],
      "description": "The input type is an immutable field. It defines whether the channel allows CMAF ingest, HLS ingest, or server-side multiview output. Multiview channels receive no ingest of their own. If unprovided, the value defaults to HLS. The allowed values are: HLS - The HLS streaming specification (which defines M3U8 manifests and TS segments). CMAF - The DASH-IF CMAF Ingest specification (which defines CMAF segments with optional DASH manifests). MULTIVIEW – Server-side multiview. The channel receives no ingest of its own. Instead, it composites video from the source channels in its MultiviewConfigurat"
    },
    "Description": {
      "type": "string",
      "description": "Enter any descriptive text that helps you to identify the channel."
    },
    "InputSwitchConfiguration": {
      "$ref": "#/$defs/InputSwitchConfiguration"
    },
    "OutputHeaderConfiguration": {
      "$ref": "#/$defs/OutputHeaderConfiguration"
    },
    "MultiviewConfiguration": {
      "$ref": "#/$defs/MultiviewConfiguration"
    },
    "OutputLockingMode": {
      "type": "string",
      "enum": [
        "EPOCH_LOCKED",
        "NON_EPOCH_LOCKED"
      ],
      "description": "The output locking mode for the channel. This setting is only valid when InputType is CMAF. This value is immutable after channel creation. If you don't specify a value, the default is EPOCH_LOCKED. The allowed values are: EPOCH_LOCKED - The channel uses epoch-locked behavior with deterministic sequence numbering and fixed segment boundaries aligned to epoch time. This mode supports cross-region synchronization and failover. NON_EPOCH_LOCKED - The channel uses non-epoch-locked behavior with duration-based segment combining and monotonically increasing sequence numbers starting from 0. This mod"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A comma-separated list of tag key:value pairs that you define. For example: \"Key1\": \"Value1\", \"Key2\": \"Value2\""
    }
  },
  "required": [
    "ChannelGroupName",
    "ChannelName"
  ],
  "$defs": {
    "InputSwitchConfiguration": {
      "type": "object",
      "properties": {
        "MQCSInputSwitching": {
          "type": "boolean",
          "description": "When true, AWS Elemental MediaPackage performs input switching based on the MQCS. Default is false. This setting is valid only when InputType is CMAF."
        },
        "PreferredInput": {
          "type": "integer",
          "description": "For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. Select 1 to prefer the first ingest endpoint, or 2 to prefer the second ingest endpoint. If you don't specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal."
        }
      }
    },
    "MultiviewConfiguration": {
      "type": "object",
      "properties": {
        "AvailableSources": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The channels that players can use as tiles in this multiview channel's output. Each source channel must be in the same channel group as the multiview channel, and must have an InputType of CMAF. Only the channels that you list here are available as tiles."
        },
        "AvailableLayouts": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "LAYOUT_2EH",
              "LAYOUT_2PL",
              "LAYOUT_3EL",
              "LAYOUT_3PL",
              "LAYOUT_4E",
              "LAYOUT_4PL"
            ]
          },
          "description": "The tile layouts that players can request from this multiview channel's origin endpoints. Only the layouts that you list here are available. Each layout must appear at most once."
        }
      },
      "required": [
        "AvailableSources",
        "AvailableLayouts"
      ]
    },
    "OutputHeaderConfiguration": {
      "type": "object",
      "properties": {
        "PublishMQCS": {
          "type": "boolean",
          "description": "When true, AWS Elemental MediaPackage includes the MQCS in responses to the CDN. This setting is valid only when InputType is CMAF."
        }
      }
    }
  }
}