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