{-# 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.GlobalConfigurationOutputTimingSource
-- 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.GlobalConfigurationOutputTimingSource
  ( GlobalConfigurationOutputTimingSource
      ( ..,
        GlobalConfigurationOutputTimingSource_INPUT_CLOCK,
        GlobalConfigurationOutputTimingSource_SYSTEM_CLOCK
      ),
  )
where

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

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

pattern GlobalConfigurationOutputTimingSource_INPUT_CLOCK :: GlobalConfigurationOutputTimingSource
pattern $bGlobalConfigurationOutputTimingSource_INPUT_CLOCK :: GlobalConfigurationOutputTimingSource
$mGlobalConfigurationOutputTimingSource_INPUT_CLOCK :: forall r.
GlobalConfigurationOutputTimingSource
-> (Void# -> r) -> (Void# -> r) -> r
GlobalConfigurationOutputTimingSource_INPUT_CLOCK = GlobalConfigurationOutputTimingSource' "INPUT_CLOCK"

pattern GlobalConfigurationOutputTimingSource_SYSTEM_CLOCK :: GlobalConfigurationOutputTimingSource
pattern $bGlobalConfigurationOutputTimingSource_SYSTEM_CLOCK :: GlobalConfigurationOutputTimingSource
$mGlobalConfigurationOutputTimingSource_SYSTEM_CLOCK :: forall r.
GlobalConfigurationOutputTimingSource
-> (Void# -> r) -> (Void# -> r) -> r
GlobalConfigurationOutputTimingSource_SYSTEM_CLOCK = GlobalConfigurationOutputTimingSource' "SYSTEM_CLOCK"

{-# COMPLETE
  GlobalConfigurationOutputTimingSource_INPUT_CLOCK,
  GlobalConfigurationOutputTimingSource_SYSTEM_CLOCK,
  GlobalConfigurationOutputTimingSource'
  #-}