{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-flow-output-request-schema.json",
  "title": "UpdateFlowOutputRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-outputs-api-openapi.yml#/components/schemas/UpdateFlowOutputRequest",
  "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 MediaConnect console and will not be seen by the end user."
    },
    "Destination": {
      "type": "string",
      "description": "The IP address where you want to send the output."
    },
    "Encryption": {
      "$ref": "#/$defs/UpdateEncryption"
    },
    "FlowArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the flow that is associated with the output that you want to update."
    },
    "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."
    },
    "OutputArn": {
      "type": "string",
      "description": "The ARN of the output that you want to update."
    },
    "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 stream."
    },
    "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."
    },
    "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 output should transmit data or not. If you don't specify the outputStatus field in your request, MediaConnect leaves the value unchanged."
    },
    "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."
    },
    "NdiSpeedHqQuality": {
      "type": "integer",
      "description": "A quality setting for the NDI Speed HQ encoder."
    },
    "RouterIntegrationState": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Indicates whether to enable or disable router integration for this 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 leaves the value unchanged. EMBEDDED_TIMECODE - 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 leaves the value unchanged."
    }
  },
  "required": [
    "FlowArn",
    "OutputArn"
  ],
  "$defs": {
    "AutomaticEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {}
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "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."
    },
    "InterfaceRequest": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the VPC interface."
        }
      },
      "required": [
        "Name"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "UpdateEncryption": {
      "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."
        }
      }
    },
    "VpcInterfaceAttachment": {
      "type": "object",
      "properties": {
        "VpcInterfaceName": {
          "type": "string",
          "description": "The name of the VPC interface to use for this resource."
        }
      }
    }
  }
}