{-# 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.AuthenticationScheme
-- 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.AuthenticationScheme
  ( AuthenticationScheme
      ( ..,
        AuthenticationScheme_AKAMAI,
        AuthenticationScheme_COMMON
      ),
  )
where

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

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

pattern AuthenticationScheme_AKAMAI :: AuthenticationScheme
pattern $bAuthenticationScheme_AKAMAI :: AuthenticationScheme
$mAuthenticationScheme_AKAMAI :: forall {r}.
AuthenticationScheme -> ((# #) -> r) -> ((# #) -> r) -> r
AuthenticationScheme_AKAMAI = AuthenticationScheme' "AKAMAI"

pattern AuthenticationScheme_COMMON :: AuthenticationScheme
pattern $bAuthenticationScheme_COMMON :: AuthenticationScheme
$mAuthenticationScheme_COMMON :: forall {r}.
AuthenticationScheme -> ((# #) -> r) -> ((# #) -> r) -> r
AuthenticationScheme_COMMON = AuthenticationScheme' "COMMON"

{-# COMPLETE
  AuthenticationScheme_AKAMAI,
  AuthenticationScheme_COMMON,
  AuthenticationScheme'
  #-}