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

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> InputSourceType -> ShowS
[InputSourceType] -> ShowS
InputSourceType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq InputSourceType
Int -> InputSourceType -> Int
InputSourceType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputSourceType -> ()
$crnf :: InputSourceType -> ()
Prelude.NFData,
      Text -> Either String InputSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputSourceType
$cfromText :: Text -> Either String InputSourceType
Data.FromText,
      InputSourceType -> Text
forall a. (a -> Text) -> ToText a
toText :: InputSourceType -> Text
$ctoText :: InputSourceType -> Text
Data.ToText,
      InputSourceType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputSourceType -> ByteString
$ctoBS :: InputSourceType -> ByteString
Data.ToByteString,
      InputSourceType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputSourceType -> ByteStringBuilder
$cbuild :: InputSourceType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InputSourceType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputSourceType -> [Header]
$ctoHeader :: HeaderName -> InputSourceType -> [Header]
Data.ToHeader,
      InputSourceType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputSourceType -> QueryString
$ctoQuery :: InputSourceType -> QueryString
Data.ToQuery,
      Value -> Parser [InputSourceType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [InputSourceType]
FromJSONKeyFunction InputSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [InputSourceType]
fromJSONKey :: FromJSONKeyFunction InputSourceType
$cfromJSONKey :: FromJSONKeyFunction InputSourceType
Data.FromJSONKey,
      [InputSourceType] -> Encoding
[InputSourceType] -> Value
InputSourceType -> Encoding
InputSourceType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [InputSourceType]
ToJSONKeyFunction InputSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [InputSourceType]
toJSONKey :: ToJSONKeyFunction InputSourceType
$ctoJSONKey :: ToJSONKeyFunction InputSourceType
Data.ToJSONKey,
      [Node] -> Either String InputSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputSourceType
$cparseXML :: [Node] -> Either String InputSourceType
Data.FromXML,
      InputSourceType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputSourceType -> XML
$ctoXML :: InputSourceType -> XML
Data.ToXML
    )

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

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

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