{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-update-router-input-request-schema.json",
  "title": "UpdateRouterInputRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediaconnect-routerinput-api-openapi.yml#/components/schemas/UpdateRouterInputRequest",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the router input that you want to update."
    },
    "Name": {
      "type": "string",
      "description": "The updated name for the router input."
    },
    "Configuration": {
      "$ref": "#/$defs/RouterInputConfiguration"
    },
    "MaximumBitrate": {
      "type": "integer",
      "description": "The updated maximum bitrate for the router input."
    },
    "RoutingScope": {
      "type": "string",
      "enum": [
        "REGIONAL",
        "GLOBAL"
      ],
      "description": "Specifies whether the router input can be assigned to outputs in different Regions. REGIONAL (default) - can be assigned only to outputs in the same Region. GLOBAL - can be assigned to outputs in any Region."
    },
    "Tier": {
      "type": "string",
      "enum": [
        "INPUT_100",
        "INPUT_50",
        "INPUT_20",
        "INPUT_500",
        "INPUT_250"
      ],
      "description": "The updated tier level for the router input. The tier sets the maximum bitrate, in Mbps, for the router input. Valid values include the following: INPUT_20 – 20 Mbps INPUT_50 – 50 Mbps INPUT_100 – 100 Mbps INPUT_250 – 250 Mbps INPUT_500 – 500 Mbps The 250 Mbps and 500 Mbps tiers are high-bitrate tiers that support TR-07 (JPEG XS) workflows."
    },
    "TransitEncryption": {
      "$ref": "#/$defs/RouterInputTransitEncryption"
    },
    "MaintenanceConfiguration": {
      "$ref": "#/$defs/MaintenanceConfiguration"
    },
    "ContentQualityAnalysisConfiguration": {
      "$ref": "#/$defs/RouterContentQualityAnalysisConfiguration"
    }
  },
  "required": [
    "Arn"
  ],
  "$defs": {
    "AutomaticEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {}
    },
    "AutomaticEndpointEncryptionConfiguration": {
      "type": "object",
      "properties": {}
    },
    "BlackFramesConfiguration": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether black frames detection is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "The number of consecutive seconds of black frames that MediaConnect must detect before it reports an issue."
        }
      },
      "required": [
        "State",
        "ThresholdSeconds"
      ]
    },
    "ContentQualityAnalysisFeatureConfiguration": {
      "type": "object",
      "properties": {
        "BlackFrames": {
          "$ref": "#/$defs/BlackFramesConfiguration"
        },
        "FrozenFrames": {
          "$ref": "#/$defs/FrozenFramesConfiguration"
        },
        "SilentAudio": {
          "$ref": "#/$defs/SilentAudioConfiguration"
        }
      }
    },
    "DefaultMaintenanceConfiguration": {
      "type": "object",
      "properties": {}
    },
    "DestinationEndpointRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "EndpointLifecycleManagement": {
          "type": "string",
          "enum": [
            "MANAGED",
            "UNMANAGED"
          ],
          "description": "The entity that manages the lifecycle of the associated destination endpoint. Valid values include the following: MANAGED – MediaConnect manages the lifecycle of the associated destination endpoint. UNMANAGED – You manage the lifecycle of the associated destination endpoint."
        },
        "SourceTransitDecryptionType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "The type of transit decryption applied to the source content that this router input receives. Valid values include the following: SECRETS_MANAGER – The decryption key or passphrase is stored in Secrets Manager. AUTOMATIC – MediaConnect determines the decryption key when the endpoint connects."
        },
        "SourceTransitDecryption": {
          "$ref": "#/$defs/EndpointEncryptionConfiguration"
        }
      },
      "required": [
        "EndpointLifecycleManagement",
        "SourceTransitDecryption"
      ]
    },
    "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"
      ]
    },
    "FailoverRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "NetworkInterfaceArn": {
          "type": "string",
          "description": "The ARN of the network interface to use for this failover router input."
        },
        "ProtocolConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FailoverRouterInputProtocolConfiguration"
          },
          "description": "A list of exactly two protocol configurations for the failover input sources. Both must use the same protocol type."
        },
        "SourcePriorityMode": {
          "type": "string",
          "enum": [
            "NO_PRIORITY",
            "PRIMARY_SECONDARY"
          ],
          "description": "The mode for determining source priority in failover configurations."
        },
        "PrimarySourceIndex": {
          "type": "integer",
          "description": "The index (0 or 1) that specifies which source in the protocol configurations list is currently active. Used to control which of the two failover sources is currently selected. This field is ignored when sourcePriorityMode is set to NO_PRIORITY"
        }
      },
      "required": [
        "NetworkInterfaceArn",
        "ProtocolConfigurations",
        "SourcePriorityMode"
      ]
    },
    "FailoverRouterInputProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rist": {
          "$ref": "#/$defs/RistRouterInputConfiguration"
        },
        "SrtListener": {
          "$ref": "#/$defs/SrtListenerRouterInputConfiguration"
        },
        "SrtCaller": {
          "$ref": "#/$defs/SrtCallerRouterInputConfiguration"
        },
        "Rtp": {
          "$ref": "#/$defs/RtpRouterInputConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "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."
    },
    "FrozenFramesConfiguration": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether frozen frames detection is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "The number of consecutive seconds of a frozen frame that MediaConnect must detect before it reports an issue."
        }
      },
      "required": [
        "State",
        "ThresholdSeconds"
      ]
    },
    "MaintenanceConfiguration": {
      "type": "object",
      "properties": {
        "PreferredDayTime": {
          "$ref": "#/$defs/PreferredDayTimeMaintenanceConfiguration"
        },
        "Default": {
          "$ref": "#/$defs/DefaultMaintenanceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "MediaConnectFlowRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "FlowArn": {
          "type": "string",
          "description": "The ARN of the flow to connect to."
        },
        "FlowOutputArn": {
          "type": "string",
          "description": "The ARN of the flow output to connect to this router input."
        },
        "SourceTransitDecryption": {
          "$ref": "#/$defs/FlowTransitEncryption"
        }
      },
      "required": [
        "SourceTransitDecryption"
      ]
    },
    "MediaLiveChannelRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "MediaLiveChannelArn": {
          "type": "string",
          "description": "The ARN of the MediaLive channel to connect to this router input."
        },
        "MediaLivePipelineId": {
          "type": "string",
          "enum": [
            "PIPELINE_0",
            "PIPELINE_1"
          ],
          "description": "The index of the MediaLive pipeline to connect to this router input."
        },
        "MediaLiveChannelOutputName": {
          "type": "string",
          "description": "The name of the MediaLive channel output to connect to this router input."
        },
        "SourceTransitDecryption": {
          "$ref": "#/$defs/MediaLiveTransitEncryption"
        }
      },
      "required": [
        "SourceTransitDecryption"
      ]
    },
    "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."
    },
    "MergeRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "NetworkInterfaceArn": {
          "type": "string",
          "description": "The ARN of the network interface to use for this merge router input."
        },
        "ProtocolConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MergeRouterInputProtocolConfiguration"
          },
          "description": "A list of exactly two protocol configurations for the merge input sources. Both must use the same protocol type."
        },
        "MergeRecoveryWindowMilliseconds": {
          "type": "integer",
          "description": "The time window in milliseconds for merging the two input sources."
        }
      },
      "required": [
        "NetworkInterfaceArn",
        "ProtocolConfigurations",
        "MergeRecoveryWindowMilliseconds"
      ]
    },
    "MergeRouterInputProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rtp": {
          "$ref": "#/$defs/RtpRouterInputConfiguration"
        },
        "Rist": {
          "$ref": "#/$defs/RistRouterInputConfiguration"
        }
      },
      "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"
      ]
    },
    "RistRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "Port": {
          "type": "integer",
          "description": "The port number used for the RIST protocol in the router input configuration."
        },
        "RecoveryLatencyMilliseconds": {
          "type": "integer",
          "description": "The recovery latency in milliseconds for the RIST protocol in the router input configuration."
        }
      },
      "required": [
        "Port",
        "RecoveryLatencyMilliseconds"
      ]
    },
    "RouterContentQualityAnalysisConfiguration": {
      "type": "object",
      "properties": {
        "ContentLevel": {
          "$ref": "#/$defs/ContentQualityAnalysisFeatureConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RouterInputConfiguration": {
      "type": "object",
      "properties": {
        "DestinationEndpoint": {
          "$ref": "#/$defs/DestinationEndpointRouterInputConfiguration"
        },
        "Standard": {
          "$ref": "#/$defs/StandardRouterInputConfiguration"
        },
        "MediaLiveChannel": {
          "$ref": "#/$defs/MediaLiveChannelRouterInputConfiguration"
        },
        "Failover": {
          "$ref": "#/$defs/FailoverRouterInputConfiguration"
        },
        "MediaConnectFlow": {
          "$ref": "#/$defs/MediaConnectFlowRouterInputConfiguration"
        },
        "Merge": {
          "$ref": "#/$defs/MergeRouterInputConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RouterInputProtocolConfiguration": {
      "type": "object",
      "properties": {
        "Rist": {
          "$ref": "#/$defs/RistRouterInputConfiguration"
        },
        "SrtListener": {
          "$ref": "#/$defs/SrtListenerRouterInputConfiguration"
        },
        "SrtCaller": {
          "$ref": "#/$defs/SrtCallerRouterInputConfiguration"
        },
        "Rtp": {
          "$ref": "#/$defs/RtpRouterInputConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RouterInputTransitEncryption": {
      "type": "object",
      "properties": {
        "EncryptionKeyType": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER",
            "AUTOMATIC"
          ],
          "description": "Specifies the type of encryption key to use for transit encryption."
        },
        "EncryptionKeyConfiguration": {
          "$ref": "#/$defs/RouterInputTransitEncryptionKeyConfiguration"
        }
      },
      "required": [
        "EncryptionKeyConfiguration"
      ]
    },
    "RouterInputTransitEncryptionKeyConfiguration": {
      "type": "object",
      "properties": {
        "SecretsManager": {
          "$ref": "#/$defs/SecretsManagerEncryptionKeyConfiguration"
        },
        "Automatic": {
          "$ref": "#/$defs/AutomaticEncryptionKeyConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RtpRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "Port": {
          "type": "integer",
          "description": "The port number used for the RTP protocol in the router input configuration."
        },
        "ForwardErrorCorrection": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The state of forward error correction for the RTP protocol in the router input configuration."
        }
      },
      "required": [
        "Port"
      ]
    },
    "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"
      ]
    },
    "SilentAudioConfiguration": {
      "type": "object",
      "properties": {
        "State": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether silent audio detection is enabled or disabled."
        },
        "ThresholdSeconds": {
          "type": "integer",
          "description": "The number of consecutive seconds of silence that MediaConnect must detect before it reports an issue."
        }
      },
      "required": [
        "State",
        "ThresholdSeconds"
      ]
    },
    "SrtCallerRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "SourceAddress": {
          "type": "string",
          "description": "The source IP address for the SRT protocol in caller mode."
        },
        "SourcePort": {
          "type": "integer",
          "description": "The source 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."
        },
        "DecryptionConfiguration": {
          "$ref": "#/$defs/SrtDecryptionConfiguration"
        }
      },
      "required": [
        "SourceAddress",
        "SourcePort",
        "MinimumLatencyMilliseconds"
      ]
    },
    "SrtDecryptionConfiguration": {
      "type": "object",
      "properties": {
        "EncryptionKey": {
          "$ref": "#/$defs/SecretsManagerEncryptionKeyConfiguration"
        }
      },
      "required": [
        "EncryptionKey"
      ]
    },
    "SrtListenerRouterInputConfiguration": {
      "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."
        },
        "DecryptionConfiguration": {
          "$ref": "#/$defs/SrtDecryptionConfiguration"
        }
      },
      "required": [
        "Port",
        "MinimumLatencyMilliseconds"
      ]
    },
    "StandardRouterInputConfiguration": {
      "type": "object",
      "properties": {
        "NetworkInterfaceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the network interface associated with the standard router input."
        },
        "ProtocolConfiguration": {
          "$ref": "#/$defs/RouterInputProtocolConfiguration"
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "RTP",
            "RIST",
            "SRT_CALLER",
            "SRT_LISTENER"
          ],
          "description": "The protocol used by the standard router input."
        }
      },
      "required": [
        "NetworkInterfaceArn",
        "ProtocolConfiguration"
      ]
    }
  }
}