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

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

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

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

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

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