{-# 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.InputSourceType
-- 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.InputSourceType
  ( InputSourceType
      ( ..,
        InputSourceType_DYNAMIC,
        InputSourceType_STATIC
      ),
  )
where

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

-- | There are two types of input sources, static and dynamic. If an input
-- source is dynamic you can change the source url of the input dynamically
-- using an input switch action. Currently, two input types support a
-- dynamic url at this time, MP4_FILE and TS_FILE. By default all input
-- sources are static.
newtype InputSourceType = InputSourceType'
  { InputSourceType -> Text
fromInputSourceType ::
      Core.Text
  }
  deriving stock
    ( Int -> InputSourceType -> ShowS
[InputSourceType] -> ShowS
InputSourceType -> String
(Int -> InputSourceType -> ShowS)
-> (InputSourceType -> String)
-> ([InputSourceType] -> ShowS)
-> Show InputSourceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputSourceType] -> ShowS
$cshowList :: [InputSourceType] -> ShowS
show :: InputSourceType -> String
$cshow :: InputSourceType -> String
showsPrec :: Int -> InputSourceType -> ShowS
$cshowsPrec :: Int -> InputSourceType -> ShowS
Prelude.Show,
      ReadPrec [InputSourceType]
ReadPrec InputSourceType
Int -> ReadS InputSourceType
ReadS [InputSourceType]
(Int -> ReadS InputSourceType)
-> ReadS [InputSourceType]
-> ReadPrec InputSourceType
-> ReadPrec [InputSourceType]
-> Read InputSourceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputSourceType]
$creadListPrec :: ReadPrec [InputSourceType]
readPrec :: ReadPrec InputSourceType
$creadPrec :: ReadPrec InputSourceType
readList :: ReadS [InputSourceType]
$creadList :: ReadS [InputSourceType]
readsPrec :: Int -> ReadS InputSourceType
$creadsPrec :: Int -> ReadS InputSourceType
Prelude.Read,
      InputSourceType -> InputSourceType -> Bool
(InputSourceType -> InputSourceType -> Bool)
-> (InputSourceType -> InputSourceType -> Bool)
-> Eq InputSourceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputSourceType -> InputSourceType -> Bool
$c/= :: InputSourceType -> InputSourceType -> Bool
== :: InputSourceType -> InputSourceType -> Bool
$c== :: InputSourceType -> InputSourceType -> Bool
Prelude.Eq,
      Eq InputSourceType
Eq InputSourceType
-> (InputSourceType -> InputSourceType -> Ordering)
-> (InputSourceType -> InputSourceType -> Bool)
-> (InputSourceType -> InputSourceType -> Bool)
-> (InputSourceType -> InputSourceType -> Bool)
-> (InputSourceType -> InputSourceType -> Bool)
-> (InputSourceType -> InputSourceType -> InputSourceType)
-> (InputSourceType -> InputSourceType -> InputSourceType)
-> Ord InputSourceType
InputSourceType -> InputSourceType -> Bool
InputSourceType -> InputSourceType -> Ordering
InputSourceType -> InputSourceType -> InputSourceType
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 :: InputSourceType -> InputSourceType -> InputSourceType
$cmin :: InputSourceType -> InputSourceType -> InputSourceType
max :: InputSourceType -> InputSourceType -> InputSourceType
$cmax :: InputSourceType -> InputSourceType -> InputSourceType
>= :: InputSourceType -> InputSourceType -> Bool
$c>= :: InputSourceType -> InputSourceType -> Bool
> :: InputSourceType -> InputSourceType -> Bool
$c> :: InputSourceType -> InputSourceType -> Bool
<= :: InputSourceType -> InputSourceType -> Bool
$c<= :: InputSourceType -> InputSourceType -> Bool
< :: InputSourceType -> InputSourceType -> Bool
$c< :: InputSourceType -> InputSourceType -> Bool
compare :: InputSourceType -> InputSourceType -> Ordering
$ccompare :: InputSourceType -> InputSourceType -> Ordering
$cp1Ord :: Eq InputSourceType
Prelude.Ord,
      (forall x. InputSourceType -> Rep InputSourceType x)
-> (forall x. Rep InputSourceType x -> InputSourceType)
-> Generic InputSourceType
forall x. Rep InputSourceType x -> InputSourceType
forall x. InputSourceType -> Rep InputSourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputSourceType x -> InputSourceType
$cfrom :: forall x. InputSourceType -> Rep InputSourceType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> InputSourceType -> Int
InputSourceType -> Int
(Int -> InputSourceType -> Int)
-> (InputSourceType -> Int) -> Hashable InputSourceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputSourceType -> Int
$chash :: InputSourceType -> Int
hashWithSalt :: Int -> InputSourceType -> Int
$chashWithSalt :: Int -> InputSourceType -> Int
Prelude.Hashable,
      InputSourceType -> ()
(InputSourceType -> ()) -> NFData InputSourceType
forall a. (a -> ()) -> NFData a
rnf :: InputSourceType -> ()
$crnf :: InputSourceType -> ()
Prelude.NFData,
      Text -> Either String InputSourceType
(Text -> Either String InputSourceType) -> FromText InputSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputSourceType
$cfromText :: Text -> Either String InputSourceType
Core.FromText,
      InputSourceType -> Text
(InputSourceType -> Text) -> ToText InputSourceType
forall a. (a -> Text) -> ToText a
toText :: InputSourceType -> Text
$ctoText :: InputSourceType -> Text
Core.ToText,
      InputSourceType -> ByteString
(InputSourceType -> ByteString) -> ToByteString InputSourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputSourceType -> ByteString
$ctoBS :: InputSourceType -> ByteString
Core.ToByteString,
      InputSourceType -> ByteStringBuilder
(InputSourceType -> ByteStringBuilder) -> ToLog InputSourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputSourceType -> ByteStringBuilder
$cbuild :: InputSourceType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputSourceType -> [Header]
(HeaderName -> InputSourceType -> [Header])
-> ToHeader InputSourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputSourceType -> [Header]
$ctoHeader :: HeaderName -> InputSourceType -> [Header]
Core.ToHeader,
      InputSourceType -> QueryString
(InputSourceType -> QueryString) -> ToQuery InputSourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputSourceType -> QueryString
$ctoQuery :: InputSourceType -> QueryString
Core.ToQuery,
      Value -> Parser [InputSourceType]
Value -> Parser InputSourceType
(Value -> Parser InputSourceType)
-> (Value -> Parser [InputSourceType]) -> FromJSON InputSourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputSourceType]
$cparseJSONList :: Value -> Parser [InputSourceType]
parseJSON :: Value -> Parser InputSourceType
$cparseJSON :: Value -> Parser InputSourceType
Core.FromJSON,
      FromJSONKeyFunction [InputSourceType]
FromJSONKeyFunction InputSourceType
FromJSONKeyFunction InputSourceType
-> FromJSONKeyFunction [InputSourceType]
-> FromJSONKey InputSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [InputSourceType]
fromJSONKey :: FromJSONKeyFunction InputSourceType
$cfromJSONKey :: FromJSONKeyFunction InputSourceType
Core.FromJSONKey,
      [InputSourceType] -> Encoding
[InputSourceType] -> Value
InputSourceType -> Encoding
InputSourceType -> Value
(InputSourceType -> Value)
-> (InputSourceType -> Encoding)
-> ([InputSourceType] -> Value)
-> ([InputSourceType] -> Encoding)
-> ToJSON InputSourceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputSourceType] -> Encoding
$ctoEncodingList :: [InputSourceType] -> Encoding
toJSONList :: [InputSourceType] -> Value
$ctoJSONList :: [InputSourceType] -> Value
toEncoding :: InputSourceType -> Encoding
$ctoEncoding :: InputSourceType -> Encoding
toJSON :: InputSourceType -> Value
$ctoJSON :: InputSourceType -> Value
Core.ToJSON,
      ToJSONKeyFunction [InputSourceType]
ToJSONKeyFunction InputSourceType
ToJSONKeyFunction InputSourceType
-> ToJSONKeyFunction [InputSourceType] -> ToJSONKey InputSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [InputSourceType]
toJSONKey :: ToJSONKeyFunction InputSourceType
$ctoJSONKey :: ToJSONKeyFunction InputSourceType
Core.ToJSONKey,
      [Node] -> Either String InputSourceType
([Node] -> Either String InputSourceType)
-> FromXML InputSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputSourceType
$cparseXML :: [Node] -> Either String InputSourceType
Core.FromXML,
      InputSourceType -> XML
(InputSourceType -> XML) -> ToXML InputSourceType
forall a. (a -> XML) -> ToXML a
toXML :: InputSourceType -> XML
$ctoXML :: InputSourceType -> XML
Core.ToXML
    )

pattern InputSourceType_DYNAMIC :: InputSourceType
pattern $bInputSourceType_DYNAMIC :: InputSourceType
$mInputSourceType_DYNAMIC :: forall r. InputSourceType -> (Void# -> r) -> (Void# -> r) -> r
InputSourceType_DYNAMIC = InputSourceType' "DYNAMIC"

pattern InputSourceType_STATIC :: InputSourceType
pattern $bInputSourceType_STATIC :: InputSourceType
$mInputSourceType_STATIC :: forall r. InputSourceType -> (Void# -> r) -> (Void# -> r) -> r
InputSourceType_STATIC = InputSourceType' "STATIC"

{-# COMPLETE
  InputSourceType_DYNAMIC,
  InputSourceType_STATIC,
  InputSourceType'
  #-}