{-# 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.HlsEncryptionType
-- 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.HlsEncryptionType
  ( HlsEncryptionType
      ( ..,
        HlsEncryptionType_AES128,
        HlsEncryptionType_SAMPLE_AES
      ),
  )
where

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

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

pattern HlsEncryptionType_AES128 :: HlsEncryptionType
pattern $bHlsEncryptionType_AES128 :: HlsEncryptionType
$mHlsEncryptionType_AES128 :: forall {r}. HlsEncryptionType -> ((# #) -> r) -> ((# #) -> r) -> r
HlsEncryptionType_AES128 = HlsEncryptionType' "AES128"

pattern HlsEncryptionType_SAMPLE_AES :: HlsEncryptionType
pattern $bHlsEncryptionType_SAMPLE_AES :: HlsEncryptionType
$mHlsEncryptionType_SAMPLE_AES :: forall {r}. HlsEncryptionType -> ((# #) -> r) -> ((# #) -> r) -> r
HlsEncryptionType_SAMPLE_AES = HlsEncryptionType' "SAMPLE_AES"

{-# COMPLETE
  HlsEncryptionType_AES128,
  HlsEncryptionType_SAMPLE_AES,
  HlsEncryptionType'
  #-}