{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-medialive/json-schema/amazon-medialive-describe-input-response-schema.json",
  "title": "DescribeInputResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-medialive-prod-api-openapi.yml#/components/schemas/DescribeInputResponse",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Unique ARN of the input (generated, immutable)."
    },
    "AttachedChannels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of channel IDs that that input is attached to (currently an input can only be attached to one channel)."
    },
    "Destinations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InputDestination"
      },
      "description": "A list of the destinations of the input (PUSH-type)."
    },
    "Id": {
      "type": "string",
      "description": "The generated ID of the input (unique for user account, immutable)."
    },
    "InputClass": {
      "type": "string",
      "enum": [
        "STANDARD",
        "SINGLE_PIPELINE"
      ],
      "description": "STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input."
    },
    "InputDevices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InputDeviceSettings"
      },
      "description": "Settings for the input devices."
    },
    "InputPartnerIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of IDs for all Inputs which are partners of this one."
    },
    "InputSourceType": {
      "type": "string",
      "enum": [
        "STATIC",
        "DYNAMIC"
      ],
      "description": "Certain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs."
    },
    "MediaConnectFlows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaConnectFlow"
      },
      "description": "A list of MediaConnect Flows for this input."
    },
    "Name": {
      "type": "string",
      "description": "The user-assigned name (This is a mutable value)."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the role this input assumes during and after creation."
    },
    "SecurityGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of IDs for all the Input Security Groups attached to the input."
    },
    "Sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InputSource"
      },
      "description": "A list of the sources of the input (PULL-type)."
    },
    "State": {
      "type": "string",
      "enum": [
        "CREATING",
        "DETACHED",
        "ATTACHED",
        "DELETING",
        "DELETED"
      ]
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A collection of key-value pairs."
    },
    "Type": {
      "type": "string",
      "enum": [
        "UDP_PUSH",
        "RTP_PUSH",
        "RTMP_PUSH",
        "RTMP_PULL",
        "URL_PULL",
        "MP4_FILE",
        "MEDIACONNECT",
        "INPUT_DEVICE",
        "AWS_CDI",
        "TS_FILE",
        "SRT_CALLER",
        "MULTICAST",
        "SMPTE_2110_RECEIVER_GROUP",
        "SDI",
        "MEDIACONNECT_ROUTER",
        "SRT_LISTENER"
      ]
    },
    "SrtSettings": {
      "$ref": "#/$defs/SrtSettings"
    },
    "InputNetworkLocation": {
      "type": "string",
      "enum": [
        "AWS",
        "ON_PREMISES"
      ],
      "description": "The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network."
    },
    "MulticastSettings": {
      "$ref": "#/$defs/MulticastSettings"
    },
    "Smpte2110ReceiverGroupSettings": {
      "$ref": "#/$defs/Smpte2110ReceiverGroupSettings"
    },
    "SdiSources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "RouterSettings": {
      "$ref": "#/$defs/RouterInputSettings"
    }
  },
  "$defs": {
    "InputDestination": {
      "type": "object",
      "properties": {
        "Ip": {
          "type": "string",
          "description": "The system-generated static IP address of endpoint. It remains fixed for the lifetime of the input."
        },
        "Port": {
          "type": "string",
          "description": "The port number for the input."
        },
        "Url": {
          "type": "string",
          "description": "This represents the endpoint that the customer stream will be pushed to."
        },
        "Vpc": {
          "$ref": "#/$defs/InputDestinationVpc"
        },
        "Network": {
          "type": "string",
          "description": "The ID of the attached network."
        },
        "NetworkRoutes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputDestinationRoute"
          },
          "description": "If the push input has an input location of ON-PREM it's a requirement to specify what the route of the input is going to be on the customer local network."
        }
      }
    },
    "InputDestinationRoute": {
      "type": "object",
      "properties": {
        "Cidr": {
          "type": "string",
          "description": "The CIDR of the route."
        },
        "Gateway": {
          "type": "string",
          "description": "An optional gateway for the route."
        }
      }
    },
    "InputDestinationVpc": {
      "type": "object",
      "properties": {
        "AvailabilityZone": {
          "type": "string",
          "description": "The availability zone of the Input destination."
        },
        "NetworkInterfaceId": {
          "type": "string",
          "description": "The network interface ID of the Input destination in the VPC."
        }
      }
    },
    "InputDeviceSettings": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The unique ID for the device."
        }
      }
    },
    "InputSdpLocation": {
      "type": "object",
      "properties": {
        "MediaIndex": {
          "type": "integer",
          "description": "The index of the media stream in the SDP file for one SMPTE 2110 stream."
        },
        "SdpUrl": {
          "type": "string",
          "description": "The URL of the SDP file for one SMPTE 2110 stream."
        }
      }
    },
    "InputSource": {
      "type": "object",
      "properties": {
        "PasswordParam": {
          "type": "string",
          "description": "The key used to extract the password from EC2 Parameter store."
        },
        "Url": {
          "type": "string",
          "description": "This represents the customer's source URL where stream is pulled from."
        },
        "Username": {
          "type": "string",
          "description": "The username for the input source."
        }
      }
    },
    "MediaConnectFlow": {
      "type": "object",
      "properties": {
        "FlowArn": {
          "type": "string",
          "description": "The unique ARN of the MediaConnect Flow being used as a source."
        }
      }
    },
    "MulticastSettings": {
      "type": "object",
      "properties": {
        "Sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MulticastSource"
          }
        }
      }
    },
    "MulticastSource": {
      "type": "object",
      "properties": {
        "SourceIp": {
          "type": "string",
          "description": "This represents the ip address of the device sending the multicast stream."
        },
        "Url": {
          "type": "string",
          "description": "This represents the customer's source URL where multicast stream is pulled from."
        },
        "SecondarySourceIp": {
          "type": "string",
          "description": "This represents the ip address of the device sending the secondary multicast stream."
        },
        "SecondaryUrl": {
          "type": "string",
          "description": "This represents the customer's secondary source URL where the redundant multicast stream (SMPTE 2022-7) is pulled from."
        }
      },
      "required": [
        "Url"
      ]
    },
    "RouterDestination": {
      "type": "object",
      "properties": {
        "AvailabilityZoneName": {
          "type": "string",
          "description": "The Availability Zone (AZ) names of the AZs this destination is created in."
        },
        "RouterOutputArn": {
          "type": "string",
          "description": "ARN of the output from MediaConnect Router currently connected to this input."
        }
      }
    },
    "RouterInputSettings": {
      "type": "object",
      "properties": {
        "Destinations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RouterDestination"
          },
          "description": "MediaConnect Router destinations associated with the MediaLive Input."
        },
        "EncryptionType": {
          "type": "string",
          "enum": [
            "AUTOMATIC",
            "SECRETS_MANAGER"
          ]
        },
        "SecretArn": {
          "type": "string",
          "description": "ARN of the secret used to encrypt this input."
        }
      }
    },
    "Smpte2110ReceiverGroup": {
      "type": "object",
      "properties": {
        "SdpSettings": {
          "$ref": "#/$defs/Smpte2110ReceiverGroupSdpSettings"
        }
      }
    },
    "Smpte2110ReceiverGroupSdpSettings": {
      "type": "object",
      "properties": {
        "AncillarySdps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputSdpLocation"
          },
          "description": "A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one ancillary SMPTE 2110 stream. Each stream encapsulates one captions stream (out of any number you can include) or the single SCTE 35 stream that you can include."
        },
        "AudioSdps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputSdpLocation"
          },
          "description": "A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one audio SMPTE 2110 stream."
        },
        "VideoSdp": {
          "$ref": "#/$defs/InputSdpLocation"
        }
      }
    },
    "Smpte2110ReceiverGroupSettings": {
      "type": "object",
      "properties": {
        "Smpte2110ReceiverGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Smpte2110ReceiverGroup"
          }
        }
      }
    },
    "SrtCallerDecryption": {
      "type": "object",
      "properties": {
        "Algorithm": {
          "type": "string",
          "enum": [
            "AES128",
            "AES192",
            "AES256"
          ],
          "description": "The algorithm used to encrypt content."
        },
        "PassphraseSecretArn": {
          "type": "string",
          "description": "The ARN for the secret in Secrets Manager. Someone in your organization must create a secret and provide you with its ARN. The secret holds the passphrase that MediaLive uses to decrypt the source content."
        }
      }
    },
    "SrtCallerSource": {
      "type": "object",
      "properties": {
        "Decryption": {
          "$ref": "#/$defs/SrtCallerDecryption"
        },
        "MinimumLatency": {
          "type": "integer",
          "description": "The preferred latency (in milliseconds) for implementing packet loss and recovery. Packet recovery is a key feature of SRT."
        },
        "SrtListenerAddress": {
          "type": "string",
          "description": "The IP address at the upstream system (the listener) that MediaLive (the caller) connects to."
        },
        "SrtListenerPort": {
          "type": "string",
          "description": "The port at the upstream system (the listener) that MediaLive (the caller) connects to."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID, if the upstream system uses this identifier."
        }
      }
    },
    "SrtListenerDecryption": {
      "type": "object",
      "properties": {
        "Algorithm": {
          "type": "string",
          "enum": [
            "AES128",
            "AES192",
            "AES256"
          ],
          "description": "The algorithm used to decrypt content."
        },
        "PassphraseSecretArn": {
          "type": "string",
          "description": "The ARN for the secret in Secrets Manager that holds the passphrase for decryption."
        }
      },
      "required": [
        "Algorithm",
        "PassphraseSecretArn"
      ]
    },
    "SrtListenerSettings": {
      "type": "object",
      "properties": {
        "Decryption": {
          "$ref": "#/$defs/SrtListenerDecryption"
        },
        "MinimumLatency": {
          "type": "integer",
          "description": "The preferred latency (in milliseconds) for implementing packet loss and recovery. Range 120-15000."
        },
        "StreamId": {
          "type": "string",
          "description": "The stream ID, if the upstream system uses this identifier."
        }
      }
    },
    "SrtSettings": {
      "type": "object",
      "properties": {
        "SrtCallerSources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SrtCallerSource"
          }
        },
        "SrtListenerSettings": {
          "$ref": "#/$defs/SrtListenerSettings"
        }
      }
    }
  }
}