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