{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-create-flow-request-schema.json",
  "title": "CreateFlowRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-flows-api-openapi.yml#/components/schemas/CreateFlowRequest",
  "type": "object",
  "properties": {
    "AvailabilityZone": {
      "type": "string",
      "description": "The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current Amazon Web Services Region."
    },
    "Entitlements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GrantEntitlementRequest"
      },
      "description": "The entitlements that you want to grant on a flow."
    },
    "MediaStreams": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddMediaStreamRequest"
      },
      "description": "The media streams that you want to add to the flow. You can associate these media streams with sources and outputs on the flow."
    },
    "Name": {
      "type": "string",
      "description": "The name of the flow."
    },
    "Outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddOutputRequest"
      },
      "description": "The outputs that you want to add to this flow."
    },
    "Source": {
      "$ref": "#/$defs/SetSourceRequest"
    },
    "SourceFailoverConfig": {
      "$ref": "#/$defs/FailoverConfig"
    },
    "Sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SetSourceRequest"
      },
      "description": "The sources that are assigned to the flow."
    },
    "VpcInterfaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VpcInterfaceRequest"
      },
      "description": "The VPC interfaces you want on the flow."
    },
    "Maintenance": {
      "$ref": "#/$defs/AddMaintenance"
    },
    "SourceMonitoringConfig": {
      "$ref": "#/$defs/MonitoringConfig"
    },
    "FlowSize": {
      "type": "string",
      "enum": [
        "MEDIUM",
        "LARGE",
        "LARGE_4X"
      ],
      "description": "Determines the processing capacity and feature set of the flow. Set this optional parameter to LARGE if you want to enable NDI sources or outputs on the flow."
    },
    "NdiConfig": {
      "$ref": "#/$defs/NdiConfig"
    },
    "EncodingConfig": {
      "$ref": "#/$defs/EncodingConfig"
    },
    "FlowTags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The key-value pairs that can be used to tag and organize the flow."
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "AddMaintenance": {
      "type": "object",
      "properties": {
        "MaintenanceDay": {
          "type": "string",
          "enum": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday",
            "Sunday"
          ],
          "description": "A day of a week when the maintenance will happen."
        },
        "MaintenanceStartHour": {
          "type": "string",
          "description": "UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00."
        }
      },
      "required": [
        "MaintenanceDay",
        "MaintenanceStartHour"
      ]
    },
    "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"
      ]
    },
    "AddOutputRequest": {
      "type": "object",
      "properties": {
        "CidrAllowList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16."
        },
        "Description": {
          "type": "string",
          "description": "A description of the output. This description appears only on the Audit Manager console and will not be seen by the end user."
        },
        "Destination": {
          "type": "string",
          "description": "The IP address from which video will be sent to output destinations."
        },
        "Encryption": {
          "$ref": "#/$defs/Encryption"
        },
        "MaxLatency": {
          "type": "integer",
          "description": "The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams."
        },
        "MediaStreamOutputConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MediaStreamOutputConfigurationRequest"
          },
          "description": "The media streams that are associated with the output, and the parameters for those associations."
        },
        "MinLatency": {
          "type": "integer",
          "description": "The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency."
        },
        "Name": {
          "type": "string",
          "description": "The name of the output. This value must be unique within the current flow."
        },
        "Port": {
          "type": "integer",
          "description": "The port to use when content is distributed to this output."
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "zixi-push",
            "rtp-fec",
            "rtp",
            "zixi-pull",
            "rist",
            "st2110-jpegxs",
            "cdi",
            "srt-listener",
            "srt-caller",
            "fujitsu-qos",
            "udp",
            "ndi-speed-hq"
          ],
          "description": "The protocol to use for the output. Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only."
        },
        "RemoteId": {
          "type": "string",
          "description": "The remote ID for the Zixi-pull output stream."
        },
        "SenderControlPort": {
          "type": "integer",
          "description": "The port that the flow uses to send outbound requests to initiate connection with the sender."
        },
        "SmoothingLatency": {
          "type": "integer",
          "description": "The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams."
        },
        "VpcInterfaceAttachment": {
          "$ref": "#/$defs/VpcInterfaceAttachment"
        },
        "OutputStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "An indication of whether the new output should be enabled or disabled as soon as it is created. If you don't specify the outputStatus field in your request, MediaConnect sets it to ENABLED."
        },
        "NdiSpeedHqQuality": {
          "type": "integer",
          "description": "A quality setting for the NDI Speed HQ encoder."
        },
        "NdiProgramName": {
          "type": "string",
          "description": "A suffix for the name of the NDI® sender that the flow creates. If a custom name isn't specified, MediaConnect uses the output name."
        },
        "OutputTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The key-value pairs that can be used to tag and organize the output."
        },
        "RouterIntegrationState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether to enable or disable router integration when creating a new flow output."
        },
        "RouterIntegrationTransitEncryption": {
          "$ref": "#/$defs/FlowTransitEncryption"
        },
        "NdiOutputTimecodeSource": {
          "type": "string",
          "enum": [
            "EMBEDDED_TIMECODE",
            "UTC_SYSTEM_TIME"
          ],
          "description": "Controls how MediaConnect generates timecodes for NDI output frames. If you don't specify this field, MediaConnect uses EMBEDDED_TIMECODE. EMBEDDED_TIMECODE (default) - Preserves timecodes from the input transport stream. The timecodes must be embedded in the video stream as SEI timing messages. If no embedded timecode is detected, MediaConnect uses the UTC system time instead. UTC_SYSTEM_TIME - Generates timecodes based on the system clock time when each frame is sent."
        },
        "NdiAudioReferenceLevel": {
          "type": "integer",
          "description": "The audio reference level of the NDI receiver, in decibels relative to full scale (dBFS). Common values are -20 (NDI and SMPTE) and -18 (EBU). If you don't specify this field, MediaConnect uses -20."
        }
      }
    },
    "AudioMonitoringSetting": {
      "type": "object",
      "properties": {
        "SilentAudio": {
          "$ref": "#/$defs/SilentAudio"
        }
      }
    },
    "AutomaticEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {}
    },
    "BlackFrames": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether the BlackFrames metric is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "Specifies the number of consecutive seconds of black frames that triggers an event or alert."
        }
      }
    },
    "DestinationConfigurationRequest": {
      "type": "object",
      "properties": {
        "DestinationIp": {
          "type": "string",
          "description": "The IP address where you want MediaConnect to send contents of the media stream."
        },
        "DestinationPort": {
          "type": "integer",
          "description": "The port that you want MediaConnect to use when it distributes the media stream to the output."
        },
        "Interface": {
          "$ref": "#/$defs/InterfaceRequest"
        }
      },
      "required": [
        "DestinationIp",
        "DestinationPort",
        "Interface"
      ]
    },
    "EncodingConfig": {
      "type": "object",
      "properties": {
        "EncodingProfile": {
          "type": "string",
          "enum": [
            "DISTRIBUTION_H264_DEFAULT",
            "CONTRIBUTION_H264_DEFAULT"
          ],
          "description": "The encoding profile to use when transcoding the NDI source content to a transport stream. You can change this value while the flow is running."
        },
        "VideoMaxBitrate": {
          "type": "integer",
          "description": "The maximum video bitrate to use when transcoding the NDI source to a transport stream. This parameter enables you to override the default video bitrate within the encoding profile's supported range. The supported range is 10,000,000 - 50,000,000 bits per second (bps). If you don't specify a value, MediaConnect uses the default value of 20,000,000 bps."
        }
      }
    },
    "EncodingParametersRequest": {
      "type": "object",
      "properties": {
        "CompressionFactor": {
          "type": "number",
          "description": "A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are floating point numbers in the range of 3.0 to 10.0, inclusive."
        },
        "EncoderProfile": {
          "type": "string",
          "enum": [
            "main",
            "high"
          ],
          "description": "A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, if at least one source on the flow uses the CDI protocol."
        }
      },
      "required": [
        "CompressionFactor",
        "EncoderProfile"
      ]
    },
    "Encryption": {
      "type": "object",
      "properties": {
        "Algorithm": {
          "type": "string",
          "enum": [
            "aes128",
            "aes192",
            "aes256"
          ],
          "description": "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256)."
        },
        "ConstantInitializationVector": {
          "type": "string",
          "description": "A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption."
        },
        "DeviceId": {
          "type": "string",
          "description": "The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption."
        },
        "KeyType": {
          "type": "string",
          "enum": [
            "speke",
            "static-key",
            "srt-password"
          ],
          "description": "The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key)."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption."
        },
        "ResourceId": {
          "type": "string",
          "description": "An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption."
        },
        "RoleArn": {
          "type": "string",
          "description": "The ARN of the role that you created during setup (when you set up MediaConnect as a trusted entity)."
        },
        "SecretArn": {
          "type": "string",
          "description": "The ARN of the secret that you created in Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption."
        },
        "Url": {
          "type": "string",
          "description": "The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption."
        }
      },
      "required": [
        "RoleArn"
      ]
    },
    "FailoverConfig": {
      "type": "object",
      "properties": {
        "FailoverMode": {
          "type": "string",
          "enum": [
            "MERGE",
            "FAILOVER"
          ],
          "description": "The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams."
        },
        "RecoveryWindow": {
          "type": "integer",
          "description": "Search window time to look for dash-7 packets."
        },
        "SourcePriority": {
          "$ref": "#/$defs/SourcePriority"
        },
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources."
        }
      }
    },
    "FlowTransitEncryption": {
      "type": "object",
      "properties": {
        "EncryptionKeyType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of encryption key to use for flow transit encryption."
        },
        "EncryptionKeyConfiguration": {
          "$ref": "#/$defs/FlowTransitEncryptionKeyConfiguration"
        }
      },
      "required": [
        "EncryptionKeyConfiguration"
      ]
    },
    "FlowTransitEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {
        "SecretsManager": {
          "$ref": "#/$defs/SecretsManagerEncryptionKeyConfiguration"
        },
        "Automatic": {
          "$ref": "#/$defs/AutomaticEncryptionKeyConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "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."
        }
      }
    },
    "FrozenFrames": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether the FrozenFrames metric is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "Specifies the number of consecutive seconds of a static image that triggers an event or alert."
        }
      }
    },
    "GrantEntitlementRequest": {
      "type": "object",
      "properties": {
        "DataTransferSubscriberFeePercent": {
          "type": "integer",
          "description": "Percentage from 0-100 of the data transfer cost to be billed to the subscriber."
        },
        "Description": {
          "type": "string",
          "description": "A description of the entitlement. This description appears only on the MediaConnect console and will not be seen by the subscriber or end user."
        },
        "Encryption": {
          "$ref": "#/$defs/Encryption"
        },
        "EntitlementStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED."
        },
        "Name": {
          "type": "string",
          "description": "The name of the entitlement. This value must be unique within the current flow."
        },
        "Subscribers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source."
        },
        "EntitlementTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The key-value pairs that can be used to tag and organize the entitlement."
        }
      },
      "required": [
        "Subscribers"
      ]
    },
    "InputConfigurationRequest": {
      "type": "object",
      "properties": {
        "InputPort": {
          "type": "integer",
          "description": "The port that you want the flow to listen on for an incoming media stream."
        },
        "Interface": {
          "$ref": "#/$defs/InterfaceRequest"
        }
      },
      "required": [
        "InputPort",
        "Interface"
      ]
    },
    "InterfaceRequest": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the VPC interface."
        }
      },
      "required": [
        "Name"
      ]
    },
    "MediaStreamAttributesRequest": {
      "type": "object",
      "properties": {
        "Fmtp": {
          "$ref": "#/$defs/FmtpRequest"
        },
        "Lang": {
          "type": "string",
          "description": "The audio language, in a format that is recognized by the receiver."
        }
      }
    },
    "MediaStreamOutputConfigurationRequest": {
      "type": "object",
      "properties": {
        "DestinationConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DestinationConfigurationRequest"
          },
          "description": "The media streams that you want to associate with the output."
        },
        "EncodingName": {
          "type": "string",
          "enum": [
            "jxsv",
            "raw",
            "smpte291",
            "pcm"
          ],
          "description": "The format that will be used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv."
        },
        "EncodingParameters": {
          "$ref": "#/$defs/EncodingParametersRequest"
        },
        "MediaStreamName": {
          "type": "string",
          "description": "The name of the media stream that is associated with the output."
        }
      },
      "required": [
        "EncodingName",
        "MediaStreamName"
      ]
    },
    "MediaStreamSourceConfigurationRequest": {
      "type": "object",
      "properties": {
        "EncodingName": {
          "type": "string",
          "enum": [
            "jxsv",
            "raw",
            "smpte291",
            "pcm"
          ],
          "description": "The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv."
        },
        "InputConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputConfigurationRequest"
          },
          "description": "The media streams that you want to associate with the source."
        },
        "MediaStreamName": {
          "type": "string",
          "description": "The name of the media stream."
        }
      },
      "required": [
        "EncodingName",
        "MediaStreamName"
      ]
    },
    "MonitoringConfig": {
      "type": "object",
      "properties": {
        "ThumbnailState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether thumbnails are enabled or disabled."
        },
        "AudioMonitoringSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AudioMonitoringSetting"
          },
          "description": "Contains the settings for audio stream metrics monitoring."
        },
        "ContentQualityAnalysisState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether content quality analysis is enabled or disabled."
        },
        "VideoMonitoringSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VideoMonitoringSetting"
          },
          "description": "Contains the settings for video stream metrics monitoring."
        }
      }
    },
    "NdiConfig": {
      "type": "object",
      "properties": {
        "NdiState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "A setting that controls whether NDI® sources or outputs can be used in the flow. The default value is DISABLED. This value must be set as ENABLED for your flow to support NDI sources or outputs."
        },
        "MachineName": {
          "type": "string",
          "description": "A prefix for the names of the NDI sources that the flow creates. If a custom name isn't specified, MediaConnect generates a unique 12-character ID as the prefix."
        },
        "NdiDiscoveryServers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NdiDiscoveryServerConfig"
          },
          "description": "A list of up to three NDI discovery server configurations. While not required by the API, this configuration is necessary for NDI functionality to work properly."
        }
      }
    },
    "NdiDiscoveryServerConfig": {
      "type": "object",
      "properties": {
        "DiscoveryServerAddress": {
          "type": "string",
          "description": "The unique network address of the NDI discovery server."
        },
        "DiscoveryServerPort": {
          "type": "integer",
          "description": "The port for the NDI discovery server. Defaults to 5959 if a custom port isn't specified."
        },
        "VpcInterfaceAdapter": {
          "type": "string",
          "description": "The identifier for the Virtual Private Cloud (VPC) network interface used by the flow."
        }
      },
      "required": [
        "DiscoveryServerAddress",
        "VpcInterfaceAdapter"
      ]
    },
    "NdiSourceSettings": {
      "type": "object",
      "properties": {
        "SourceName": {
          "type": "string",
          "description": "The exact name of an existing NDI sender that's registered with your discovery server. If included, the format of this name must be MACHINENAME (ProgramName)."
        },
        "AudioReferenceLevel": {
          "type": "integer",
          "description": "The audio reference level of the NDI sender, in decibels relative to full scale (dBFS). Common values are -20 (NDI and SMPTE) and -18 (EBU). If you don't specify this field, MediaConnect uses -20."
        }
      }
    },
    "SecretsManagerEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "The ARN of the Secrets Manager secret used for transit encryption."
        },
        "RoleArn": {
          "type": "string",
          "description": "The ARN of the IAM role assumed by MediaConnect to access the Secrets Manager secret."
        }
      },
      "required": [
        "SecretArn",
        "RoleArn"
      ]
    },
    "SetGatewayBridgeSourceRequest": {
      "type": "object",
      "properties": {
        "BridgeArn": {
          "type": "string",
          "description": "The ARN of the bridge feeding this flow."
        },
        "VpcInterfaceAttachment": {
          "$ref": "#/$defs/VpcInterfaceAttachment"
        }
      },
      "required": [
        "BridgeArn"
      ]
    },
    "SetSourceRequest": {
      "type": "object",
      "properties": {
        "Decryption": {
          "$ref": "#/$defs/Encryption"
        },
        "Description": {
          "type": "string",
          "description": "A description for the source. This value is not used or seen outside of the current MediaConnect account."
        },
        "EntitlementArn": {
          "type": "string",
          "description": "The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow."
        },
        "IngestPort": {
          "type": "integer",
          "description": "The port that the flow will be listening on for incoming content."
        },
        "MaxBitrate": {
          "type": "integer",
          "description": "The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams."
        },
        "MaxLatency": {
          "type": "integer",
          "description": "The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams."
        },
        "MaxSyncBuffer": {
          "type": "integer",
          "description": "The size of the buffer (in milliseconds) to use to sync incoming source data."
        },
        "MediaStreamSourceConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MediaStreamSourceConfigurationRequest"
          },
          "description": "The media streams that are associated with the source, and the parameters for those associations."
        },
        "MinLatency": {
          "type": "integer",
          "description": "The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency."
        },
        "Name": {
          "type": "string",
          "description": "The name of the source."
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "zixi-push",
            "rtp-fec",
            "rtp",
            "zixi-pull",
            "rist",
            "st2110-jpegxs",
            "cdi",
            "srt-listener",
            "srt-caller",
            "fujitsu-qos",
            "udp",
            "ndi-speed-hq"
          ],
          "description": "The protocol that is used by the source. Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only."
        },
        "SenderControlPort": {
          "type": "integer",
          "description": "The port that the flow uses to send outbound requests to initiate connection with the sender."
        },
        "SenderIpAddress": {
          "type": "string",
          "description": "The IP address that the flow communicates with to initiate connection with the sender."
        },
        "SourceListenerAddress": {
          "type": "string",
          "description": "Source IP or domain name for SRT-caller protocol."
        },
        "SourceListenerPort": {
          "type": "integer",
          "description": "Source port for SRT-caller protocol."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams."
        },
        "VpcInterfaceName": {
          "type": "string",
          "description": "The name of the VPC interface to use for this source."
        },
        "WhitelistCidr": {
          "type": "string",
          "description": "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16."
        },
        "GatewayBridgeSource": {
          "$ref": "#/$defs/SetGatewayBridgeSourceRequest"
        },
        "NdiSourceSettings": {
          "$ref": "#/$defs/NdiSourceSettings"
        },
        "SourceTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The key-value pairs that can be used to tag and organize the source."
        },
        "RouterIntegrationState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether to enable or disable router integration when setting a flow source."
        },
        "RouterIntegrationTransitDecryption": {
          "$ref": "#/$defs/FlowTransitEncryption"
        }
      }
    },
    "SilentAudio": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether the SilentAudio metric is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "Specifies the number of consecutive seconds of silence that triggers an event or alert."
        }
      }
    },
    "SourcePriority": {
      "type": "object",
      "properties": {
        "PrimarySource": {
          "type": "string",
          "description": "The name of the source you choose as the primary source for this flow."
        }
      }
    },
    "VideoMonitoringSetting": {
      "type": "object",
      "properties": {
        "BlackFrames": {
          "$ref": "#/$defs/BlackFrames"
        },
        "FrozenFrames": {
          "$ref": "#/$defs/FrozenFrames"
        }
      }
    },
    "VpcInterfaceAttachment": {
      "type": "object",
      "properties": {
        "VpcInterfaceName": {
          "type": "string",
          "description": "The name of the VPC interface to use for this resource."
        }
      }
    },
    "VpcInterfaceRequest": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name for the VPC interface. This name must be unique within the flow."
        },
        "NetworkInterfaceType": {
          "type": "string",
          "enum": [
            "ena",
            "efa"
          ],
          "description": "The type of network interface."
        },
        "RoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service."
        },
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A virtual firewall to control inbound and outbound traffic."
        },
        "SubnetId": {
          "type": "string",
          "description": "The subnet IDs that you want to use for your VPC interface. A range of IP addresses in your VPC. When you create your VPC, you specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC CIDR block. The subnets that you use across all VPC interfaces on the flow must be in the same Availability Zone as the flow."
        },
        "VpcInterfaceTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The key-value pairs that can be used to tag and organize the VPC network interface."
        }
      },
      "required": [
        "Name",
        "RoleArn",
        "SecurityGroupIds",
        "SubnetId"
      ]
    }
  }
}