{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-router-output-request-schema.json",
  "title": "UpdateRouterOutputRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-routeroutput-api-openapi.yml#/components/schemas/UpdateRouterOutputRequest",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the router output that you want to update."
    },
    "Name": {
      "type": "string",
      "description": "The updated name for the router output."
    },
    "Configuration": {
      "$ref": "#/$defs/RouterOutputConfiguration"
    },
    "MaximumBitrate": {
      "type": "integer",
      "description": "The updated maximum bitrate for the router output."
    },
    "RoutingScope": {
      "type": "string",
      "enum": [
        "REGIONAL",
        "GLOBAL"
      ],
      "description": "Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region."
    },
    "Tier": {
      "type": "string",
      "enum": [
        "OUTPUT_100",
        "OUTPUT_50",
        "OUTPUT_20",
        "OUTPUT_500",
        "OUTPUT_250"
      ],
      "description": "The updated tier level for the router output. The tier sets the maximum bitrate, in Mbps, for the router output. Valid values include the following: OUTPUT_20 – 20 Mbps OUTPUT_50 – 50 Mbps OUTPUT_100 – 100 Mbps OUTPUT_250 – 250 Mbps OUTPUT_500 – 500 Mbps The 250 Mbps and 500 Mbps tiers are high-bitrate tiers that support TR-07 (JPEG XS) workflows."
    },
    "MaintenanceConfiguration": {
      "$ref": "#/$defs/MaintenanceConfiguration"
    },
    "FabricConfiguration": {
      "$ref": "#/$defs/FabricConfiguration"
    }
  },
  "required": [
    "Arn"
  ],
  "$defs": {
    "AutomaticEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {}
    },
    "AutomaticEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {}
    },
    "DefaultMaintenanceConfiguration": {
      "type": "object",
      "properties": {}
    },
    "EndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "SecretsManager": {
          "$ref": "#/$defs/SecretsManagerEndpointEncryptionConfiguration"
        },
        "Automatic": {
          "$ref": "#/$defs/AutomaticEndpointEncryptionConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "EndpointEncryptionSecretConfiguration": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "The ARN of the Secrets Manager secret that holds the key or passphrase. The secret must be encrypted with a customer managed Amazon Web Services KMS key that is enabled and symmetric; it cannot use the Amazon Web Services managed key aws/secretsmanager. The secret must be in the same Amazon Web Services account and Region as the endpoint."
        }
      },
      "required": [
        "SecretArn"
      ]
    },
    "FabricConfiguration": {
      "type": "object",
      "properties": {
        "RecoveryLatencyMode": {
          "type": "string",
          "enum": [
            "BALANCED",
            "LOW_LATENCY"
          ],
          "description": "The recovery latency mode for the router fabric connection. Valid values include the following: BALANCED (default) – Optimizes for stream quality. LOW_LATENCY – Reduces latency at the potential cost of stream quality under adverse network conditions."
        }
      },
      "required": [
        "RecoveryLatencyMode"
      ]
    },
    "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."
    },
    "MaintenanceConfiguration": {
      "type": "object",
      "properties": {
        "PreferredDayTime": {
          "$ref": "#/$defs/PreferredDayTimeMaintenanceConfiguration"
        },
        "Default": {
          "$ref": "#/$defs/DefaultMaintenanceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "MediaConnectFlowRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "FlowArn": {
          "type": "string",
          "description": "The ARN of the flow to connect to this router output."
        },
        "FlowSourceArn": {
          "type": "string",
          "description": "The ARN of the flow source to connect to this router output."
        },
        "DestinationTransitEncryption": {
          "$ref": "#/$defs/FlowTransitEncryption"
        }
      },
      "required": [
        "DestinationTransitEncryption"
      ]
    },
    "MediaLiveInputRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "MediaLiveInputArn": {
          "type": "string",
          "description": "The ARN of the MediaLive input to connect to this router output."
        },
        "MediaLivePipelineId": {
          "type": "string",
          "enum": [
            "PIPELINE_0",
            "PIPELINE_1"
          ],
          "description": "The index of the MediaLive pipeline to connect to this router output."
        },
        "DestinationTransitEncryption": {
          "$ref": "#/$defs/MediaLiveTransitEncryption"
        }
      },
      "required": [
        "DestinationTransitEncryption"
      ]
    },
    "MediaLiveTransitEncryption": {
      "type": "object",
      "properties": {
        "EncryptionKeyType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of encryption key to use for MediaLive transit encryption."
        },
        "EncryptionKeyConfiguration": {
          "$ref": "#/$defs/MediaLiveTransitEncryptionKeyConfiguration"
        }
      },
      "required": [
        "EncryptionKeyConfiguration"
      ]
    },
    "MediaLiveTransitEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {
        "SecretsManager": {
          "$ref": "#/$defs/SecretsManagerEncryptionKeyConfiguration"
        },
        "Automatic": {
          "$ref": "#/$defs/AutomaticEncryptionKeyConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "PreferredDayTimeMaintenanceConfiguration": {
      "type": "object",
      "properties": {
        "Day": {
          "type": "string",
          "enum": [
            "MONDAY",
            "TUESDAY",
            "WEDNESDAY",
            "THURSDAY",
            "FRIDAY",
            "SATURDAY",
            "SUNDAY"
          ],
          "description": "The preferred day for maintenance operations."
        },
        "Time": {
          "type": "string",
          "description": "The preferred time for maintenance operations."
        }
      },
      "required": [
        "Day",
        "Time"
      ]
    },
    "PublicTlsEncryptionConfiguration": {
      "type": "object",
      "properties": {}
    },
    "RistRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The destination IP address for the RIST protocol in the router output configuration."
        },
        "DestinationPort": {
          "type": "integer",
          "description": "The destination port number for the RIST protocol in the router output configuration."
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationPort"
      ]
    },
    "RouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "Standard": {
          "$ref": "#/$defs/StandardRouterOutputConfiguration"
        },
        "MediaConnectFlow": {
          "$ref": "#/$defs/MediaConnectFlowRouterOutputConfiguration"
        },
        "MediaLiveInput": {
          "$ref": "#/$defs/MediaLiveInputRouterOutputConfiguration"
        },
        "SourceEndpoint": {
          "$ref": "#/$defs/SourceEndpointRouterOutputConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RouterOutputProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rist": {
          "$ref": "#/$defs/RistRouterOutputConfiguration"
        },
        "SrtListener": {
          "$ref": "#/$defs/SrtListenerRouterOutputConfiguration"
        },
        "RtmpPush": {
          "$ref": "#/$defs/RtmpPushRouterOutputConfiguration"
        },
        "SrtCaller": {
          "$ref": "#/$defs/SrtCallerRouterOutputConfiguration"
        },
        "Rtp": {
          "$ref": "#/$defs/RtpRouterOutputConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RtmpPushRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The IP address or hostname of the destination RTMP server that the router output pushes the stream to. Provide only the server address; specify the application and stream names separately."
        },
        "DestinationPort": {
          "type": "integer",
          "description": "The TCP port on the destination RTMP server. For RTMP, valid values range from 1024 to 65535. For RTMPS (RTMP over TLS), valid values are 443 or 1024 to 65535. RTMP typically uses port 1935, and RTMPS typically uses port 443."
        },
        "ApplicationName": {
          "type": "string",
          "description": "The name of the RTMP application on the destination server. Together with the stream name, the application name forms the RTMP URL path, in the pattern rtmp://destinationAddress/applicationName/streamName."
        },
        "StreamName": {
          "type": "string",
          "description": "The name of the RTMP stream that the output publishes to the destination application. The stream name forms the final segment of the RTMP URL path."
        },
        "TlsEncryption": {
          "$ref": "#/$defs/TlsEncryption"
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationPort",
        "ApplicationName",
        "StreamName"
      ]
    },
    "RtpRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The destination IP address for the RTP protocol in the router output configuration."
        },
        "DestinationPort": {
          "type": "integer",
          "description": "The destination port number for the RTP protocol in the router output configuration."
        },
        "ForwardErrorCorrection": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The state of forward error correction for the RTP protocol in the router output configuration."
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationPort"
      ]
    },
    "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"
      ]
    },
    "SecretsManagerEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "EncryptionSecretType": {
          "type": "string",
          "enum": [
            "AES_128_KEY",
            "AES_192_KEY",
            "AES_256_KEY",
            "SRT_PASSPHRASE"
          ],
          "description": "The type of secret used to encrypt the connection. Valid values include the following: AES_128_KEY – A 128-bit AES encryption key. AES_192_KEY – A 192-bit AES encryption key. AES_256_KEY – A 256-bit AES encryption key. SRT_PASSPHRASE – An SRT passphrase."
        },
        "EncryptionSecret": {
          "$ref": "#/$defs/EndpointEncryptionSecretConfiguration"
        }
      },
      "required": [
        "EncryptionSecret"
      ]
    },
    "SourceEndpointRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "EndpointLifecycleManagement": {
          "type": "string",
          "enum": [
            "MANAGED",
            "UNMANAGED"
          ],
          "description": "The entity that manages the lifecycle of the associated source endpoint. Valid values include the following: MANAGED – MediaConnect manages the lifecycle of the associated source endpoint. UNMANAGED – You manage the lifecycle of the associated source endpoint."
        },
        "DestinationTransitEncryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of transit encryption applied to the destination content that this router output sends. Valid values include the following: SECRETS_MANAGER – The encryption key or passphrase is stored in Secrets Manager. AUTOMATIC – MediaConnect determines the encryption key when the endpoint connects."
        },
        "DestinationTransitEncryption": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        }
      },
      "required": [
        "EndpointLifecycleManagement",
        "DestinationTransitEncryption"
      ]
    },
    "SrtCallerRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "DestinationAddress": {
          "type": "string",
          "description": "The destination IP address for the SRT protocol in caller mode."
        },
        "DestinationPort": {
          "type": "integer",
          "description": "The destination port number for the SRT protocol in caller mode."
        },
        "MinimumLatencyMilliseconds": {
          "type": "integer",
          "description": "The minimum latency in milliseconds for the SRT protocol in caller mode."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID for the SRT protocol in caller mode."
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/SrtEncryptionConfiguration"
        }
      },
      "required": [
        "DestinationAddress",
        "DestinationPort",
        "MinimumLatencyMilliseconds"
      ]
    },
    "SrtEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "EncryptionKey": {
          "$ref": "#/$defs/SecretsManagerEncryptionKeyConfiguration"
        }
      },
      "required": [
        "EncryptionKey"
      ]
    },
    "SrtListenerRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "Port": {
          "type": "integer",
          "description": "The port number for the SRT protocol in listener mode."
        },
        "MinimumLatencyMilliseconds": {
          "type": "integer",
          "description": "The minimum latency in milliseconds for the SRT protocol in listener mode."
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/SrtEncryptionConfiguration"
        }
      },
      "required": [
        "Port",
        "MinimumLatencyMilliseconds"
      ]
    },
    "StandardRouterOutputConfiguration": {
      "type": "object",
      "properties": {
        "NetworkInterfaceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the network interface associated with the standard router output."
        },
        "ProtocolConfiguration": {
          "$ref": "#/$defs/RouterOutputProtocolConfiguration"
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "RTP",
            "RIST",
            "SRT_CALLER",
            "SRT_LISTENER",
            "RTMP_PUSH"
          ],
          "description": "The protocol used by the standard router output."
        }
      },
      "required": [
        "NetworkInterfaceArn",
        "ProtocolConfiguration"
      ]
    },
    "TlsEncryption": {
      "type": "object",
      "properties": {
        "EncryptionType": {
          "type": "string",
          "enum": [
            "PUBLIC"
          ],
          "description": "The type of TLS encryption to use for the connection."
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/TlsEncryptionConfiguration"
        }
      },
      "required": [
        "EncryptionConfiguration"
      ]
    },
    "TlsEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "Public": {
          "$ref": "#/$defs/PublicTlsEncryptionConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}