{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediapackage/json-schema/amazon-mediapackage-mediapackagev2-update-channel-request-schema.json",
  "title": "Mediapackagev2UpdateChannelRequest",
  "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/Mediapackagev2UpdateChannelRequest",
  "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."
    },
    "ETag": {
      "type": "string",
      "description": "The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's current entity tag, the update request will be rejected."
    },
    "Description": {
      "type": "string",
      "description": "Any descriptive information that you want to add to the channel for future identification purposes."
    },
    "InputSwitchConfiguration": {
      "$ref": "#/$defs/InputSwitchConfiguration"
    },
    "OutputHeaderConfiguration": {
      "$ref": "#/$defs/OutputHeaderConfiguration"
    },
    "MultiviewConfiguration": {
      "$ref": "#/$defs/MultiviewConfiguration"
    }
  },
  "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."
        }
      }
    }
  }
}