{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-add-flow-media-streams-request-schema.json",
  "title": "AddFlowMediaStreamsRequest",
  "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/AddFlowMediaStreamsRequest",
  "type": "object",
  "properties": {
    "FlowArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the flow."
    },
    "MediaStreams": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddMediaStreamRequest"
      },
      "description": "The media streams that you want to add to the flow."
    }
  },
  "required": [
    "FlowArn",
    "MediaStreams"
  ],
  "$defs": {
    "AddMediaStreamRequest": {
      "type": "object",
      "properties": {
        "Attributes": {
          "$ref": "#/$defs/MediaStreamAttributesRequest"
        },
        "ClockRate": {
          "type": "integer",
          "description": "The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000."
        },
        "Description": {
          "type": "string",
          "description": "A description that can help you quickly identify what your media stream is used for."
        },
        "MediaStreamId": {
          "type": "integer",
          "description": "A unique identifier for the media stream."
        },
        "MediaStreamName": {
          "type": "string",
          "description": "A name that helps you distinguish one media stream from another."
        },
        "MediaStreamType": {
          "type": "string",
          "enum": [
            "video",
            "audio",
            "ancillary-data"
          ],
          "description": "The type of media stream."
        },
        "VideoFormat": {
          "type": "string",
          "description": "The resolution of the video."
        },
        "MediaStreamTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The key-value pairs that can be used to tag and organize the media stream."
        }
      },
      "required": [
        "MediaStreamId",
        "MediaStreamName",
        "MediaStreamType"
      ]
    },
    "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."
        }
      }
    }
  }
}