{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-flow-media-stream-request-schema.json",
  "title": "UpdateFlowMediaStreamRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-mediastreams-api-openapi.yml#/components/schemas/UpdateFlowMediaStreamRequest",
  "type": "object",
  "properties": {
    "Attributes": {
      "$ref": "#/$defs/MediaStreamAttributesRequest"
    },
    "ClockRate": {
      "type": "integer",
      "description": "The sample rate for the stream. This value in measured in kHz."
    },
    "Description": {
      "type": "string",
      "description": "A description that can help you quickly identify what your media stream is used for."
    },
    "FlowArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the flow that is associated with the media stream that you updated."
    },
    "MediaStreamName": {
      "type": "string",
      "description": "The media stream that you updated."
    },
    "MediaStreamType": {
      "type": "string",
      "enum": [
        "video",
        "audio",
        "ancillary-data"
      ],
      "description": "The type of media stream."
    },
    "VideoFormat": {
      "type": "string",
      "description": "The resolution of the video."
    }
  },
  "required": [
    "FlowArn",
    "MediaStreamName"
  ],
  "$defs": {
    "FmtpRequest": {
      "type": "object",
      "properties": {
        "ChannelOrder": {
          "type": "string",
          "description": "The format of the audio channel."
        },
        "Colorimetry": {
          "type": "string",
          "enum": [
            "BT601",
            "BT709",
            "BT2020",
            "BT2100",
            "ST2065-1",
            "ST2065-3",
            "XYZ"
          ],
          "description": "The format that is used for the representation of color."
        },
        "ExactFramerate": {
          "type": "string",
          "description": "The frame rate for the video stream, in frames/second. For example: 60000/1001. If you specify a whole number, MediaConnect uses a ratio of N/1. For example, if you specify 60, MediaConnect uses 60/1 as the exactFramerate."
        },
        "Par": {
          "type": "string",
          "description": "The pixel aspect ratio (PAR) of the video."
        },
        "Range": {
          "type": "string",
          "enum": [
            "NARROW",
            "FULL",
            "FULLPROTECT"
          ],
          "description": "The encoding range of the video."
        },
        "ScanMode": {
          "type": "string",
          "enum": [
            "progressive",
            "interlace",
            "progressive-segmented-frame"
          ],
          "description": "The type of compression that was used to smooth the video’s appearance."
        },
        "Tcs": {
          "type": "string",
          "enum": [
            "SDR",
            "PQ",
            "HLG",
            "LINEAR",
            "BT2100LINPQ",
            "BT2100LINHLG",
            "ST2065-1",
            "ST428-1",
            "DENSITY"
          ],
          "description": "The transfer characteristic system (TCS) that is used in the video."
        }
      }
    },
    "MediaStreamAttributesRequest": {
      "type": "object",
      "properties": {
        "Fmtp": {
          "$ref": "#/$defs/FmtpRequest"
        },
        "Lang": {
          "type": "string",
          "description": "The audio language, in a format that is recognized by the receiver."
        }
      }
    }
  }
}