{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.AuthenticationScheme
( AuthenticationScheme
( ..,
AuthenticationScheme_AKAMAI,
AuthenticationScheme_COMMON
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AuthenticationScheme = AuthenticationScheme'
{ AuthenticationScheme -> Text
fromAuthenticationScheme ::
Core.Text
}
deriving stock
( Int -> AuthenticationScheme -> ShowS
[AuthenticationScheme] -> ShowS
AuthenticationScheme -> String
(Int -> AuthenticationScheme -> ShowS)
-> (AuthenticationScheme -> String)
-> ([AuthenticationScheme] -> ShowS)
-> Show AuthenticationScheme
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthenticationScheme] -> ShowS
$cshowList :: [AuthenticationScheme] -> ShowS
show :: AuthenticationScheme -> String
$cshow :: AuthenticationScheme -> String
showsPrec :: Int -> AuthenticationScheme -> ShowS
$cshowsPrec :: Int -> AuthenticationScheme -> ShowS
Prelude.Show,
ReadPrec [AuthenticationScheme]
ReadPrec AuthenticationScheme
Int -> ReadS AuthenticationScheme
ReadS [AuthenticationScheme]
(Int -> ReadS AuthenticationScheme)
-> ReadS [AuthenticationScheme]
-> ReadPrec AuthenticationScheme
-> ReadPrec [AuthenticationScheme]
-> Read AuthenticationScheme
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthenticationScheme]
$creadListPrec :: ReadPrec [AuthenticationScheme]
readPrec :: ReadPrec AuthenticationScheme
$creadPrec :: ReadPrec AuthenticationScheme
readList :: ReadS [AuthenticationScheme]
$creadList :: ReadS [AuthenticationScheme]
readsPrec :: Int -> ReadS AuthenticationScheme
$creadsPrec :: Int -> ReadS AuthenticationScheme
Prelude.Read,
AuthenticationScheme -> AuthenticationScheme -> Bool
(AuthenticationScheme -> AuthenticationScheme -> Bool)
-> (AuthenticationScheme -> AuthenticationScheme -> Bool)
-> Eq AuthenticationScheme
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c/= :: AuthenticationScheme -> AuthenticationScheme -> Bool
== :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c== :: AuthenticationScheme -> AuthenticationScheme -> Bool
Prelude.Eq,
Eq AuthenticationScheme
Eq AuthenticationScheme
-> (AuthenticationScheme -> AuthenticationScheme -> Ordering)
-> (AuthenticationScheme -> AuthenticationScheme -> Bool)
-> (AuthenticationScheme -> AuthenticationScheme -> Bool)
-> (AuthenticationScheme -> AuthenticationScheme -> Bool)
-> (AuthenticationScheme -> AuthenticationScheme -> Bool)
-> (AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme)
-> (AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme)
-> Ord AuthenticationScheme
AuthenticationScheme -> AuthenticationScheme -> Bool
AuthenticationScheme -> AuthenticationScheme -> Ordering
AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme
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 :: AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme
$cmin :: AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme
max :: AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme
$cmax :: AuthenticationScheme
-> AuthenticationScheme -> AuthenticationScheme
>= :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c>= :: AuthenticationScheme -> AuthenticationScheme -> Bool
> :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c> :: AuthenticationScheme -> AuthenticationScheme -> Bool
<= :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c<= :: AuthenticationScheme -> AuthenticationScheme -> Bool
< :: AuthenticationScheme -> AuthenticationScheme -> Bool
$c< :: AuthenticationScheme -> AuthenticationScheme -> Bool
compare :: AuthenticationScheme -> AuthenticationScheme -> Ordering
$ccompare :: AuthenticationScheme -> AuthenticationScheme -> Ordering
$cp1Ord :: Eq AuthenticationScheme
Prelude.Ord,
(forall x. AuthenticationScheme -> Rep AuthenticationScheme x)
-> (forall x. Rep AuthenticationScheme x -> AuthenticationScheme)
-> Generic AuthenticationScheme
forall x. Rep AuthenticationScheme x -> AuthenticationScheme
forall x. AuthenticationScheme -> Rep AuthenticationScheme x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuthenticationScheme x -> AuthenticationScheme
$cfrom :: forall x. AuthenticationScheme -> Rep AuthenticationScheme x
Prelude.Generic
)
deriving newtype
( Int -> AuthenticationScheme -> Int
AuthenticationScheme -> Int
(Int -> AuthenticationScheme -> Int)
-> (AuthenticationScheme -> Int) -> Hashable AuthenticationScheme
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AuthenticationScheme -> Int
$chash :: AuthenticationScheme -> Int
hashWithSalt :: Int -> AuthenticationScheme -> Int
$chashWithSalt :: Int -> AuthenticationScheme -> Int
Prelude.Hashable,
AuthenticationScheme -> ()
(AuthenticationScheme -> ()) -> NFData AuthenticationScheme
forall a. (a -> ()) -> NFData a
rnf :: AuthenticationScheme -> ()
$crnf :: AuthenticationScheme -> ()
Prelude.NFData,
Text -> Either String AuthenticationScheme
(Text -> Either String AuthenticationScheme)
-> FromText AuthenticationScheme
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AuthenticationScheme
$cfromText :: Text -> Either String AuthenticationScheme
Core.FromText,
AuthenticationScheme -> Text
(AuthenticationScheme -> Text) -> ToText AuthenticationScheme
forall a. (a -> Text) -> ToText a
toText :: AuthenticationScheme -> Text
$ctoText :: AuthenticationScheme -> Text
Core.ToText,
AuthenticationScheme -> ByteString
(AuthenticationScheme -> ByteString)
-> ToByteString AuthenticationScheme
forall a. (a -> ByteString) -> ToByteString a
toBS :: AuthenticationScheme -> ByteString
$ctoBS :: AuthenticationScheme -> ByteString
Core.ToByteString,
AuthenticationScheme -> ByteStringBuilder
(AuthenticationScheme -> ByteStringBuilder)
-> ToLog AuthenticationScheme
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AuthenticationScheme -> ByteStringBuilder
$cbuild :: AuthenticationScheme -> ByteStringBuilder
Core.ToLog,
HeaderName -> AuthenticationScheme -> [Header]
(HeaderName -> AuthenticationScheme -> [Header])
-> ToHeader AuthenticationScheme
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AuthenticationScheme -> [Header]
$ctoHeader :: HeaderName -> AuthenticationScheme -> [Header]
Core.ToHeader,
AuthenticationScheme -> QueryString
(AuthenticationScheme -> QueryString)
-> ToQuery AuthenticationScheme
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AuthenticationScheme -> QueryString
$ctoQuery :: AuthenticationScheme -> QueryString
Core.ToQuery,
Value -> Parser [AuthenticationScheme]
Value -> Parser AuthenticationScheme
(Value -> Parser AuthenticationScheme)
-> (Value -> Parser [AuthenticationScheme])
-> FromJSON AuthenticationScheme
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AuthenticationScheme]
$cparseJSONList :: Value -> Parser [AuthenticationScheme]
parseJSON :: Value -> Parser AuthenticationScheme
$cparseJSON :: Value -> Parser AuthenticationScheme
Core.FromJSON,
FromJSONKeyFunction [AuthenticationScheme]
FromJSONKeyFunction AuthenticationScheme
FromJSONKeyFunction AuthenticationScheme
-> FromJSONKeyFunction [AuthenticationScheme]
-> FromJSONKey AuthenticationScheme
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AuthenticationScheme]
$cfromJSONKeyList :: FromJSONKeyFunction [AuthenticationScheme]
fromJSONKey :: FromJSONKeyFunction AuthenticationScheme
$cfromJSONKey :: FromJSONKeyFunction AuthenticationScheme
Core.FromJSONKey,
[AuthenticationScheme] -> Encoding
[AuthenticationScheme] -> Value
AuthenticationScheme -> Encoding
AuthenticationScheme -> Value
(AuthenticationScheme -> Value)
-> (AuthenticationScheme -> Encoding)
-> ([AuthenticationScheme] -> Value)
-> ([AuthenticationScheme] -> Encoding)
-> ToJSON AuthenticationScheme
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AuthenticationScheme] -> Encoding
$ctoEncodingList :: [AuthenticationScheme] -> Encoding
toJSONList :: [AuthenticationScheme] -> Value
$ctoJSONList :: [AuthenticationScheme] -> Value
toEncoding :: AuthenticationScheme -> Encoding
$ctoEncoding :: AuthenticationScheme -> Encoding
toJSON :: AuthenticationScheme -> Value
$ctoJSON :: AuthenticationScheme -> Value
Core.ToJSON,
ToJSONKeyFunction [AuthenticationScheme]
ToJSONKeyFunction AuthenticationScheme
ToJSONKeyFunction AuthenticationScheme
-> ToJSONKeyFunction [AuthenticationScheme]
-> ToJSONKey AuthenticationScheme
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AuthenticationScheme]
$ctoJSONKeyList :: ToJSONKeyFunction [AuthenticationScheme]
toJSONKey :: ToJSONKeyFunction AuthenticationScheme
$ctoJSONKey :: ToJSONKeyFunction AuthenticationScheme
Core.ToJSONKey,
[Node] -> Either String AuthenticationScheme
([Node] -> Either String AuthenticationScheme)
-> FromXML AuthenticationScheme
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AuthenticationScheme
$cparseXML :: [Node] -> Either String AuthenticationScheme
Core.FromXML,
AuthenticationScheme -> XML
(AuthenticationScheme -> XML) -> ToXML AuthenticationScheme
forall a. (a -> XML) -> ToXML a
toXML :: AuthenticationScheme -> XML
$ctoXML :: AuthenticationScheme -> XML
Core.ToXML
)
pattern AuthenticationScheme_AKAMAI :: AuthenticationScheme
pattern $bAuthenticationScheme_AKAMAI :: AuthenticationScheme
$mAuthenticationScheme_AKAMAI :: forall r. AuthenticationScheme -> (Void# -> r) -> (Void# -> r) -> r
AuthenticationScheme_AKAMAI = AuthenticationScheme' "AKAMAI"
pattern AuthenticationScheme_COMMON :: AuthenticationScheme
pattern $bAuthenticationScheme_COMMON :: AuthenticationScheme
$mAuthenticationScheme_COMMON :: forall r. AuthenticationScheme -> (Void# -> r) -> (Void# -> r) -> r
AuthenticationScheme_COMMON = AuthenticationScheme' "COMMON"
{-# COMPLETE
AuthenticationScheme_AKAMAI,
AuthenticationScheme_COMMON,
AuthenticationScheme'
#-}