{-# 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.RtmpOutputCertificateMode
-- 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.RtmpOutputCertificateMode
  ( RtmpOutputCertificateMode
      ( ..,
        RtmpOutputCertificateMode_SELF_SIGNED,
        RtmpOutputCertificateMode_VERIFY_AUTHENTICITY
      ),
  )
where

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

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

pattern RtmpOutputCertificateMode_SELF_SIGNED :: RtmpOutputCertificateMode
pattern $bRtmpOutputCertificateMode_SELF_SIGNED :: RtmpOutputCertificateMode
$mRtmpOutputCertificateMode_SELF_SIGNED :: forall {r}.
RtmpOutputCertificateMode -> ((# #) -> r) -> ((# #) -> r) -> r
RtmpOutputCertificateMode_SELF_SIGNED = RtmpOutputCertificateMode' "SELF_SIGNED"

pattern RtmpOutputCertificateMode_VERIFY_AUTHENTICITY :: RtmpOutputCertificateMode
pattern $bRtmpOutputCertificateMode_VERIFY_AUTHENTICITY :: RtmpOutputCertificateMode
$mRtmpOutputCertificateMode_VERIFY_AUTHENTICITY :: forall {r}.
RtmpOutputCertificateMode -> ((# #) -> r) -> ((# #) -> r) -> r
RtmpOutputCertificateMode_VERIFY_AUTHENTICITY = RtmpOutputCertificateMode' "VERIFY_AUTHENTICITY"

{-# COMPLETE
  RtmpOutputCertificateMode_SELF_SIGNED,
  RtmpOutputCertificateMode_VERIFY_AUTHENTICITY,
  RtmpOutputCertificateMode'
  #-}