{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-create-bridge-request-schema.json",
  "title": "CreateBridgeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-bridges-api-openapi.yml#/components/schemas/CreateBridgeRequest",
  "type": "object",
  "properties": {
    "EgressGatewayBridge": {
      "$ref": "#/$defs/AddEgressGatewayBridgeRequest"
    },
    "IngressGatewayBridge": {
      "$ref": "#/$defs/AddIngressGatewayBridgeRequest"
    },
    "Name": {
      "type": "string",
      "description": "The name of the bridge. This name can not be modified after the bridge is created."
    },
    "Outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddBridgeOutputRequest"
      },
      "description": "The outputs that you want to add to this bridge."
    },
    "PlacementArn": {
      "type": "string",
      "description": "The bridge placement Amazon Resource Number (ARN)."
    },
    "SourceFailoverConfig": {
      "$ref": "#/$defs/FailoverConfig"
    },
    "Sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddBridgeSourceRequest"
      },
      "description": "The sources that you want to add to this bridge."
    }
  },
  "required": [
    "Name",
    "PlacementArn",
    "Sources"
  ],
  "$defs": {
    "AddBridgeFlowSourceRequest": {
      "type": "object",
      "properties": {
        "FlowArn": {
          "type": "string",
          "description": "The Amazon Resource Number (ARN) of the flow to use as a source of this bridge."
        },
        "FlowVpcInterfaceAttachment": {
          "$ref": "#/$defs/VpcInterfaceAttachment"
        },
        "Name": {
          "type": "string",
          "description": "The name of the flow source. This name is used to reference the source and must be unique among sources in this bridge."
        }
      },
      "required": [
        "FlowArn",
        "Name"
      ]
    },
    "AddBridgeNetworkOutputRequest": {
      "type": "object",
      "properties": {
        "IpAddress": {
          "type": "string",
          "description": "The network output IP Address."
        },
        "Name": {
          "type": "string",
          "description": "The network output name. This name is used to reference the output and must be unique among outputs in this bridge."
        },
        "NetworkName": {
          "type": "string",
          "description": "The network output's gateway network name."
        },
        "Port": {
          "type": "integer",
          "description": "The network output port."
        },
        "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 network output protocol. Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only."
        },
        "Ttl": {
          "type": "integer",
          "description": "The network output TTL."
        }
      },
      "required": [
        "IpAddress",
        "Name",
        "NetworkName",
        "Port",
        "Protocol",
        "Ttl"
      ]
    },
    "AddBridgeNetworkSourceRequest": {
      "type": "object",
      "properties": {
        "MulticastIp": {
          "type": "string",
          "description": "The network source multicast IP."
        },
        "MulticastSourceSettings": {
          "$ref": "#/$defs/MulticastSourceSettings"
        },
        "Name": {
          "type": "string",
          "description": "The name of the network source. This name is used to reference the source and must be unique among sources in this bridge."
        },
        "NetworkName": {
          "type": "string",
          "description": "The network source's gateway network name."
        },
        "Port": {
          "type": "integer",
          "description": "The network source port."
        },
        "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 network source protocol. Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only."
        }
      },
      "required": [
        "MulticastIp",
        "Name",
        "NetworkName",
        "Port",
        "Protocol"
      ]
    },
    "AddBridgeOutputRequest": {
      "type": "object",
      "properties": {
        "NetworkOutput": {
          "$ref": "#/$defs/AddBridgeNetworkOutputRequest"
        }
      }
    },
    "AddBridgeSourceRequest": {
      "type": "object",
      "properties": {
        "FlowSource": {
          "$ref": "#/$defs/AddBridgeFlowSourceRequest"
        },
        "NetworkSource": {
          "$ref": "#/$defs/AddBridgeNetworkSourceRequest"
        }
      }
    },
    "AddEgressGatewayBridgeRequest": {
      "type": "object",
      "properties": {
        "MaxBitrate": {
          "type": "integer",
          "description": "The maximum expected bitrate (in bps) of the egress bridge."
        }
      },
      "required": [
        "MaxBitrate"
      ]
    },
    "AddIngressGatewayBridgeRequest": {
      "type": "object",
      "properties": {
        "MaxBitrate": {
          "type": "integer",
          "description": "The maximum expected bitrate (in bps) of the ingress bridge."
        },
        "MaxOutputs": {
          "type": "integer",
          "description": "The maximum number of expected outputs on the ingress bridge."
        }
      },
      "required": [
        "MaxBitrate",
        "MaxOutputs"
      ]
    },
    "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."
        }
      }
    },
    "MulticastSourceSettings": {
      "type": "object",
      "properties": {
        "MulticastSourceIp": {
          "type": "string",
          "description": "The IP address of the source for source-specific multicast (SSM)."
        }
      }
    },
    "SourcePriority": {
      "type": "object",
      "properties": {
        "PrimarySource": {
          "type": "string",
          "description": "The name of the source you choose as the primary source for this flow."
        }
      }
    },
    "VpcInterfaceAttachment": {
      "type": "object",
      "properties": {
        "VpcInterfaceName": {
          "type": "string",
          "description": "The name of the VPC interface to use for this resource."
        }
      }
    }
  }
}