{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.InputType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.InputType
  ( InputType
      ( ..,
        InputType_AWS_CDI,
        InputType_INPUT_DEVICE,
        InputType_MEDIACONNECT,
        InputType_MP4_FILE,
        InputType_RTMP_PULL,
        InputType_RTMP_PUSH,
        InputType_RTP_PUSH,
        InputType_TS_FILE,
        InputType_UDP_PUSH,
        InputType_URL_PULL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The different types of inputs that AWS Elemental MediaLive supports.
newtype InputType = InputType'
  { InputType -> Text
fromInputType ::
      Data.Text
  }
  deriving stock
    ( Int -> InputType -> ShowS
[InputType] -> ShowS
InputType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputType] -> ShowS
$cshowList :: [InputType] -> ShowS
show :: InputType -> String
$cshow :: InputType -> String
showsPrec :: Int -> InputType -> ShowS
$cshowsPrec :: Int -> InputType -> ShowS
Prelude.Show,
      ReadPrec [InputType]
ReadPrec InputType
Int -> ReadS InputType
ReadS [InputType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputType]
$creadListPrec :: ReadPrec [InputType]
readPrec :: ReadPrec InputType
$creadPrec :: ReadPrec InputType
readList :: ReadS [InputType]
$creadList :: ReadS [InputType]
readsPrec :: Int -> ReadS InputType
$creadsPrec :: Int -> ReadS InputType
Prelude.Read,
      InputType -> InputType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputType -> InputType -> Bool
$c/= :: InputType -> InputType -> Bool
== :: InputType -> InputType -> Bool
$c== :: InputType -> InputType -> Bool
Prelude.Eq,
      Eq InputType
InputType -> InputType -> Bool
InputType -> InputType -> Ordering
InputType -> InputType -> InputType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: InputType -> InputType -> InputType
$cmin :: InputType -> InputType -> InputType
max :: InputType -> InputType -> InputType
$cmax :: InputType -> InputType -> InputType
>= :: InputType -> InputType -> Bool
$c>= :: InputType -> InputType -> Bool
> :: InputType -> InputType -> Bool
$c> :: InputType -> InputType -> Bool
<= :: InputType -> InputType -> Bool
$c<= :: InputType -> InputType -> Bool
< :: InputType -> InputType -> Bool
$c< :: InputType -> InputType -> Bool
compare :: InputType -> InputType -> Ordering
$ccompare :: InputType -> InputType -> Ordering
Prelude.Ord,
      forall x. Rep InputType x -> InputType
forall x. InputType -> Rep InputType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputType x -> InputType
$cfrom :: forall x. InputType -> Rep InputType x
Prelude.Generic
    )
  deriving newtype
    ( Eq InputType
Int -> InputType -> Int
InputType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputType -> Int
$chash :: InputType -> Int
hashWithSalt :: Int -> InputType -> Int
$chashWithSalt :: Int -> InputType -> Int
Prelude.Hashable,
      InputType -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputType -> ()
$crnf :: InputType -> ()
Prelude.NFData,
      Text -> Either String InputType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputType
$cfromText :: Text -> Either String InputType
Data.FromText,
      InputType -> Text
forall a. (a -> Text) -> ToText a
toText :: InputType -> Text
$ctoText :: InputType -> Text
Data.ToText,
      InputType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputType -> ByteString
$ctoBS :: InputType -> ByteString
Data.ToByteString,
      InputType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputType -> ByteStringBuilder
$cbuild :: InputType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InputType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputType -> [Header]
$ctoHeader :: HeaderName -> InputType -> [Header]
Data.ToHeader,
      InputType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputType -> QueryString
$ctoQuery :: InputType -> QueryString
Data.ToQuery,
      Value -> Parser [InputType]
Value -> Parser InputType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputType]
$cparseJSONList :: Value -> Parser [InputType]
parseJSON :: Value -> Parser InputType
$cparseJSON :: Value -> Parser InputType
Data.FromJSON,
      FromJSONKeyFunction [InputType]
FromJSONKeyFunction InputType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputType]
$cfromJSONKeyList :: FromJSONKeyFunction [InputType]
fromJSONKey :: FromJSONKeyFunction InputType
$cfromJSONKey :: FromJSONKeyFunction InputType
Data.FromJSONKey,
      [InputType] -> Encoding
[InputType] -> Value
InputType -> Encoding
InputType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputType] -> Encoding
$ctoEncodingList :: [InputType] -> Encoding
toJSONList :: [InputType] -> Value
$ctoJSONList :: [InputType] -> Value
toEncoding :: InputType -> Encoding
$ctoEncoding :: InputType -> Encoding
toJSON :: InputType -> Value
$ctoJSON :: InputType -> Value
Data.ToJSON,
      ToJSONKeyFunction [InputType]
ToJSONKeyFunction InputType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputType]
$ctoJSONKeyList :: ToJSONKeyFunction [InputType]
toJSONKey :: ToJSONKeyFunction InputType
$ctoJSONKey :: ToJSONKeyFunction InputType
Data.ToJSONKey,
      [Node] -> Either String InputType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputType
$cparseXML :: [Node] -> Either String InputType
Data.FromXML,
      InputType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputType -> XML
$ctoXML :: InputType -> XML
Data.ToXML
    )

pattern InputType_AWS_CDI :: InputType
pattern $bInputType_AWS_CDI :: InputType
$mInputType_AWS_CDI :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_AWS_CDI = InputType' "AWS_CDI"

pattern InputType_INPUT_DEVICE :: InputType
pattern $bInputType_INPUT_DEVICE :: InputType
$mInputType_INPUT_DEVICE :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_INPUT_DEVICE = InputType' "INPUT_DEVICE"

pattern InputType_MEDIACONNECT :: InputType
pattern $bInputType_MEDIACONNECT :: InputType
$mInputType_MEDIACONNECT :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_MEDIACONNECT = InputType' "MEDIACONNECT"

pattern InputType_MP4_FILE :: InputType
pattern $bInputType_MP4_FILE :: InputType
$mInputType_MP4_FILE :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_MP4_FILE = InputType' "MP4_FILE"

pattern InputType_RTMP_PULL :: InputType
pattern $bInputType_RTMP_PULL :: InputType
$mInputType_RTMP_PULL :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_RTMP_PULL = InputType' "RTMP_PULL"

pattern InputType_RTMP_PUSH :: InputType
pattern $bInputType_RTMP_PUSH :: InputType
$mInputType_RTMP_PUSH :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_RTMP_PUSH = InputType' "RTMP_PUSH"

pattern InputType_RTP_PUSH :: InputType
pattern $bInputType_RTP_PUSH :: InputType
$mInputType_RTP_PUSH :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_RTP_PUSH = InputType' "RTP_PUSH"

pattern InputType_TS_FILE :: InputType
pattern $bInputType_TS_FILE :: InputType
$mInputType_TS_FILE :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_TS_FILE = InputType' "TS_FILE"

pattern InputType_UDP_PUSH :: InputType
pattern $bInputType_UDP_PUSH :: InputType
$mInputType_UDP_PUSH :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_UDP_PUSH = InputType' "UDP_PUSH"

pattern InputType_URL_PULL :: InputType
pattern $bInputType_URL_PULL :: InputType
$mInputType_URL_PULL :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_URL_PULL = InputType' "URL_PULL"

{-# COMPLETE
  InputType_AWS_CDI,
  InputType_INPUT_DEVICE,
  InputType_MEDIACONNECT,
  InputType_MP4_FILE,
  InputType_RTMP_PULL,
  InputType_RTMP_PUSH,
  InputType_RTP_PUSH,
  InputType_TS_FILE,
  InputType_UDP_PUSH,
  InputType_URL_PULL,
  InputType'
  #-}