{
  "typeName" : "AWS::MediaLive::Input",
  "description" : "Resource Type definition for AWS::MediaLive::Input",
  "additionalProperties" : false,
  "properties" : {
    "SrtSettings" : {
      "$ref" : "#/definitions/SrtSettingsRequest"
    },
    "InputNetworkLocation" : {
      "type" : "string"
    },
    "Destinations" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/InputDestinationRequest"
      }
    },
    "Vpc" : {
      "$ref" : "#/definitions/InputVpcRequest"
    },
    "MediaConnectFlows" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/MediaConnectFlowRequest"
      }
    },
    "Sources" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/InputSourceRequest"
      }
    },
    "RoleArn" : {
      "type" : "string"
    },
    "Name" : {
      "type" : "string"
    },
    "RouterSettings" : {
      "$ref" : "#/definitions/RouterSettings"
    },
    "Type" : {
      "type" : "string"
    },
    "Smpte2110ReceiverGroupSettings" : {
      "$ref" : "#/definitions/Smpte2110ReceiverGroupSettings"
    },
    "SdiSources" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "Id" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "InputSecurityGroups" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "MulticastSettings" : {
      "$ref" : "#/definitions/MulticastSettingsCreateRequest"
    },
    "InputDevices" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/InputDeviceSettings"
      }
    },
    "Tags" : {
      "type" : "object"
    }
  },
  "definitions" : {
    "Smpte2110ReceiverGroup" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SdpSettings" : {
          "$ref" : "#/definitions/Smpte2110ReceiverGroupSdpSettings"
        }
      }
    },
    "SrtListenerDecryptionRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Algorithm" : {
          "type" : "string"
        },
        "PassphraseSecretArn" : {
          "type" : "string"
        }
      }
    },
    "SrtListenerSettingsRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "StreamId" : {
          "type" : "string"
        },
        "MinimumLatency" : {
          "type" : "integer"
        },
        "Decryption" : {
          "$ref" : "#/definitions/SrtListenerDecryptionRequest"
        }
      }
    },
    "SrtCallerDecryptionRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Algorithm" : {
          "type" : "string"
        },
        "PassphraseSecretArn" : {
          "type" : "string"
        }
      }
    },
    "MulticastSettingsCreateRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Sources" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/MulticastSourceCreateRequest"
          }
        }
      }
    },
    "SrtSettingsRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SrtCallerSources" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/SrtCallerSourceRequest"
          }
        },
        "SrtListenerSettings" : {
          "$ref" : "#/definitions/SrtListenerSettingsRequest"
        }
      }
    },
    "InputVpcRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SecurityGroupIds" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "SubnetIds" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      }
    },
    "InputRequestDestinationRoute" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Cidr" : {
          "type" : "string"
        },
        "Gateway" : {
          "type" : "string"
        }
      }
    },
    "MediaConnectFlowRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "FlowArn" : {
          "type" : "string"
        }
      }
    },
    "MulticastSourceCreateRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Url" : {
          "type" : "string"
        },
        "SourceIp" : {
          "type" : "string"
        }
      }
    },
    "RouterDestinationSettings" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "AvailabilityZoneName" : {
          "type" : "string"
        }
      }
    },
    "RouterSettings" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SecretArn" : {
          "type" : "string"
        },
        "Destinations" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/RouterDestinationSettings"
          }
        },
        "EncryptionType" : {
          "type" : "string"
        }
      }
    },
    "Smpte2110ReceiverGroupSdpSettings" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "AudioSdps" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/InputSdpLocation"
          }
        },
        "AncillarySdps" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/InputSdpLocation"
          }
        },
        "VideoSdp" : {
          "$ref" : "#/definitions/InputSdpLocation"
        }
      }
    },
    "SrtCallerSourceRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SrtListenerPort" : {
          "type" : "string"
        },
        "StreamId" : {
          "type" : "string"
        },
        "MinimumLatency" : {
          "type" : "integer"
        },
        "Decryption" : {
          "$ref" : "#/definitions/SrtCallerDecryptionRequest"
        },
        "SrtListenerAddress" : {
          "type" : "string"
        }
      }
    },
    "InputSdpLocation" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "MediaIndex" : {
          "type" : "integer"
        },
        "SdpUrl" : {
          "type" : "string"
        }
      }
    },
    "Smpte2110ReceiverGroupSettings" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Smpte2110ReceiverGroups" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Smpte2110ReceiverGroup"
          }
        }
      }
    },
    "InputSourceRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "PasswordParam" : {
          "type" : "string"
        },
        "Username" : {
          "type" : "string"
        },
        "Url" : {
          "type" : "string"
        }
      }
    },
    "InputDeviceSettings" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Id" : {
          "type" : "string"
        }
      }
    },
    "InputDestinationRequest" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "StreamName" : {
          "type" : "string"
        },
        "NetworkRoutes" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/InputRequestDestinationRoute"
          }
        },
        "StaticIpAddress" : {
          "type" : "string"
        },
        "Network" : {
          "type" : "string"
        }
      }
    }
  },
  "createOnlyProperties" : [ "/properties/Vpc", "/properties/Type", "/properties/RouterSettings", "/properties/InputNetworkLocation" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/Arn" ]
}