{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

-- | The different types of inputs that AWS Elemental MediaLive supports.
newtype InputType = InputType'
  { InputType -> Text
fromInputType ::
      Core.Text
  }
  deriving stock
    ( Int -> InputType -> ShowS
[InputType] -> ShowS
InputType -> String
(Int -> InputType -> ShowS)
-> (InputType -> String)
-> ([InputType] -> ShowS)
-> Show InputType
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]
(Int -> ReadS InputType)
-> ReadS [InputType]
-> ReadPrec InputType
-> ReadPrec [InputType]
-> Read 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
(InputType -> InputType -> Bool)
-> (InputType -> InputType -> Bool) -> Eq InputType
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
Eq InputType
-> (InputType -> InputType -> Ordering)
-> (InputType -> InputType -> Bool)
-> (InputType -> InputType -> Bool)
-> (InputType -> InputType -> Bool)
-> (InputType -> InputType -> Bool)
-> (InputType -> InputType -> InputType)
-> (InputType -> InputType -> InputType)
-> Ord 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
$cp1Ord :: Eq InputType
Prelude.Ord,
      (forall x. InputType -> Rep InputType x)
-> (forall x. Rep InputType x -> InputType) -> Generic InputType
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
    ( Int -> InputType -> Int
InputType -> Int
(Int -> InputType -> Int)
-> (InputType -> Int) -> Hashable InputType
forall 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 -> ()
(InputType -> ()) -> NFData InputType
forall a. (a -> ()) -> NFData a
rnf :: InputType -> ()
$crnf :: InputType -> ()
Prelude.NFData,
      Text -> Either String InputType
(Text -> Either String InputType) -> FromText InputType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputType
$cfromText :: Text -> Either String InputType
Core.FromText,
      InputType -> Text
(InputType -> Text) -> ToText InputType
forall a. (a -> Text) -> ToText a
toText :: InputType -> Text
$ctoText :: InputType -> Text
Core.ToText,
      InputType -> ByteString
(InputType -> ByteString) -> ToByteString InputType
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputType -> ByteString
$ctoBS :: InputType -> ByteString
Core.ToByteString,
      InputType -> ByteStringBuilder
(InputType -> ByteStringBuilder) -> ToLog InputType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputType -> ByteStringBuilder
$cbuild :: InputType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputType -> [Header]
(HeaderName -> InputType -> [Header]) -> ToHeader InputType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputType -> [Header]
$ctoHeader :: HeaderName -> InputType -> [Header]
Core.ToHeader,
      InputType -> QueryString
(InputType -> QueryString) -> ToQuery InputType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputType -> QueryString
$ctoQuery :: InputType -> QueryString
Core.ToQuery,
      Value -> Parser [InputType]
Value -> Parser InputType
(Value -> Parser InputType)
-> (Value -> Parser [InputType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InputType]
FromJSONKeyFunction InputType
FromJSONKeyFunction InputType
-> FromJSONKeyFunction [InputType] -> FromJSONKey InputType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputType]
$cfromJSONKeyList :: FromJSONKeyFunction [InputType]
fromJSONKey :: FromJSONKeyFunction InputType
$cfromJSONKey :: FromJSONKeyFunction InputType
Core.FromJSONKey,
      [InputType] -> Encoding
[InputType] -> Value
InputType -> Encoding
InputType -> Value
(InputType -> Value)
-> (InputType -> Encoding)
-> ([InputType] -> Value)
-> ([InputType] -> Encoding)
-> ToJSON InputType
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
Core.ToJSON,
      ToJSONKeyFunction [InputType]
ToJSONKeyFunction InputType
ToJSONKeyFunction InputType
-> ToJSONKeyFunction [InputType] -> ToJSONKey InputType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputType]
$ctoJSONKeyList :: ToJSONKeyFunction [InputType]
toJSONKey :: ToJSONKeyFunction InputType
$ctoJSONKey :: ToJSONKeyFunction InputType
Core.ToJSONKey,
      [Node] -> Either String InputType
([Node] -> Either String InputType) -> FromXML InputType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputType
$cparseXML :: [Node] -> Either String InputType
Core.FromXML,
      InputType -> XML
(InputType -> XML) -> ToXML InputType
forall a. (a -> XML) -> ToXML a
toXML :: InputType -> XML
$ctoXML :: InputType -> XML
Core.ToXML
    )

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

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

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

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

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

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

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

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

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

pattern InputType_URL_PULL :: InputType
pattern $bInputType_URL_PULL :: InputType
$mInputType_URL_PULL :: forall r. InputType -> (Void# -> r) -> (Void# -> 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'
  #-}