{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-bridge-request-schema.json",
  "title": "UpdateBridgeRequest",
  "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/UpdateBridgeRequest",
  "type": "object",
  "properties": {
    "BridgeArn": {
      "type": "string",
      "description": "TheAmazon Resource Name (ARN) of the bridge that you want to update."
    },
    "EgressGatewayBridge": {
      "$ref": "#/$defs/UpdateEgressGatewayBridgeRequest"
    },
    "IngressGatewayBridge": {
      "$ref": "#/$defs/UpdateIngressGatewayBridgeRequest"
    },
    "SourceFailoverConfig": {
      "$ref": "#/$defs/UpdateFailoverConfig"
    }
  },
  "required": [
    "BridgeArn"
  ],
  "$defs": {
    "SourcePriority": {
      "type": "object",
      "properties": {
        "PrimarySource": {
          "type": "string",
          "description": "The name of the source you choose as the primary source for this flow."
        }
      }
    },
    "UpdateEgressGatewayBridgeRequest": {
      "type": "object",
      "properties": {
        "MaxBitrate": {
          "type": "integer",
          "description": "The maximum expected bitrate (in bps)."
        }
      }
    },
    "UpdateFailoverConfig": {
      "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": "Recovery 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."
        }
      }
    },
    "UpdateIngressGatewayBridgeRequest": {
      "type": "object",
      "properties": {
        "MaxBitrate": {
          "type": "integer",
          "description": "The maximum expected bitrate (in bps)."
        },
        "MaxOutputs": {
          "type": "integer",
          "description": "The maximum number of expected outputs."
        }
      }
    }
  }
}