{-# 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.GlobalConfigurationOutputLockingMode
-- 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.GlobalConfigurationOutputLockingMode
  ( GlobalConfigurationOutputLockingMode
      ( ..,
        GlobalConfigurationOutputLockingMode_EPOCH_LOCKING,
        GlobalConfigurationOutputLockingMode_PIPELINE_LOCKING
      ),
  )
where

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

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

pattern GlobalConfigurationOutputLockingMode_EPOCH_LOCKING :: GlobalConfigurationOutputLockingMode
pattern $bGlobalConfigurationOutputLockingMode_EPOCH_LOCKING :: GlobalConfigurationOutputLockingMode
$mGlobalConfigurationOutputLockingMode_EPOCH_LOCKING :: forall {r}.
GlobalConfigurationOutputLockingMode
-> ((# #) -> r) -> ((# #) -> r) -> r
GlobalConfigurationOutputLockingMode_EPOCH_LOCKING = GlobalConfigurationOutputLockingMode' "EPOCH_LOCKING"

pattern GlobalConfigurationOutputLockingMode_PIPELINE_LOCKING :: GlobalConfigurationOutputLockingMode
pattern $bGlobalConfigurationOutputLockingMode_PIPELINE_LOCKING :: GlobalConfigurationOutputLockingMode
$mGlobalConfigurationOutputLockingMode_PIPELINE_LOCKING :: forall {r}.
GlobalConfigurationOutputLockingMode
-> ((# #) -> r) -> ((# #) -> r) -> r
GlobalConfigurationOutputLockingMode_PIPELINE_LOCKING = GlobalConfigurationOutputLockingMode' "PIPELINE_LOCKING"

{-# COMPLETE
  GlobalConfigurationOutputLockingMode_EPOCH_LOCKING,
  GlobalConfigurationOutputLockingMode_PIPELINE_LOCKING,
  GlobalConfigurationOutputLockingMode'
  #-}