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