{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-interactive-video-service/json-schema/amazon-interactive-video-service-update-channel-request-schema.json",
  "title": "UpdateChannelRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-interactive-video-service-updatechannel-api-openapi.yml#/components/schemas/UpdateChannelRequest",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "ARN of the channel to be updated."
    },
    "name": {
      "type": "string",
      "description": "Channel name."
    },
    "latencyMode": {
      "type": "string",
      "description": "Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers."
    },
    "type": {
      "type": "string",
      "enum": [
        "BASIC",
        "STANDARD",
        "ADVANCED_SD",
        "ADVANCED_HD"
      ],
      "description": "Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types."
    },
    "authorized": {
      "type": "boolean",
      "description": "Whether the channel is private (enabled for playback authorization)."
    },
    "recordingConfigurationArn": {
      "type": "string",
      "description": "Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. If this is set to an empty string, recording is disabled."
    },
    "insecureIngest": {
      "type": "boolean",
      "description": "Whether the channel allows insecure RTMP and SRT ingest. Default: false."
    },
    "preset": {
      "type": "string",
      "enum": [
        "HIGHER_BANDWIDTH_DELIVERY",
        "CONSTRAINED_BANDWIDTH_DELIVERY"
      ],
      "description": "Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), preset is the empty string (\"\")."
    },
    "playbackRestrictionPolicyArn": {
      "type": "string",
      "description": "Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. If this is set to an empty string, playback restriction policy is disabled."
    },
    "multitrackInputConfiguration": {
      "$ref": "#/$defs/MultitrackInputConfiguration"
    },
    "containerFormat": {
      "type": "string",
      "description": "Indicates which content-packaging format is used (MPEG-TS or fMP4). If multitrackInputConfiguration is specified and enabled is true, then containerFormat is required and must be set to FRAGMENTED_MP4. Otherwise, containerFormat may be set to TS or FRAGMENTED_MP4. Default: TS."
    },
    "adConfigurationArn": {
      "type": "string",
      "description": "ARN of the ad configuration associated with the channel."
    },
    "failoverSlateConfigurationArn": {
      "type": "string",
      "description": "Failover-slate-configuration ARN. A valid ARN value here both specifies the ARN and enables failover slate. If this is set to an empty string, failover slate configuration is disabled."
    }
  },
  "required": [
    "arn"
  ],
  "$defs": {
    "MultitrackInputConfiguration": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether multitrack input is enabled. Can be set to true only if channel type is STANDARD. Setting enabled to true with any other channel type will cause an exception. If true, then policy, maximumResolution, and containerFormat are required, and containerFormat must be set to FRAGMENTED_MP4. Default: false."
        },
        "policy": {
          "type": "string",
          "enum": [
            "ALLOW",
            "REQUIRE"
          ],
          "description": "Indicates whether multitrack input is allowed or required. Required if enabled is true."
        },
        "maximumResolution": {
          "type": "string",
          "enum": [
            "SD",
            "HD",
            "FULL_HD"
          ],
          "description": "Maximum resolution for multitrack input. Required if enabled is true."
        }
      }
    }
  }
}