{-# 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.Prelude as Prelude
newtype MatchFieldType = MatchFieldType'
{ MatchFieldType -> Text
fromMatchFieldType ::
Core.Text
}
deriving stock
( Int -> MatchFieldType -> ShowS
[MatchFieldType] -> ShowS
MatchFieldType -> String
(Int -> MatchFieldType -> ShowS)
-> (MatchFieldType -> String)
-> ([MatchFieldType] -> ShowS)
-> Show MatchFieldType
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]
(Int -> ReadS MatchFieldType)
-> ReadS [MatchFieldType]
-> ReadPrec MatchFieldType
-> ReadPrec [MatchFieldType]
-> Read 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
(MatchFieldType -> MatchFieldType -> Bool)
-> (MatchFieldType -> MatchFieldType -> Bool) -> Eq MatchFieldType
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
Eq MatchFieldType
-> (MatchFieldType -> MatchFieldType -> Ordering)
-> (MatchFieldType -> MatchFieldType -> Bool)
-> (MatchFieldType -> MatchFieldType -> Bool)
-> (MatchFieldType -> MatchFieldType -> Bool)
-> (MatchFieldType -> MatchFieldType -> Bool)
-> (MatchFieldType -> MatchFieldType -> MatchFieldType)
-> (MatchFieldType -> MatchFieldType -> MatchFieldType)
-> Ord 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
$cp1Ord :: Eq MatchFieldType
Prelude.Ord,
(forall x. MatchFieldType -> Rep MatchFieldType x)
-> (forall x. Rep MatchFieldType x -> MatchFieldType)
-> Generic MatchFieldType
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
( Int -> MatchFieldType -> Int
MatchFieldType -> Int
(Int -> MatchFieldType -> Int)
-> (MatchFieldType -> Int) -> Hashable MatchFieldType
forall 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 -> ()
(MatchFieldType -> ()) -> NFData MatchFieldType
forall a. (a -> ()) -> NFData a
rnf :: MatchFieldType -> ()
$crnf :: MatchFieldType -> ()
Prelude.NFData,
Text -> Either String MatchFieldType
(Text -> Either String MatchFieldType) -> FromText MatchFieldType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MatchFieldType
$cfromText :: Text -> Either String MatchFieldType
Core.FromText,
MatchFieldType -> Text
(MatchFieldType -> Text) -> ToText MatchFieldType
forall a. (a -> Text) -> ToText a
toText :: MatchFieldType -> Text
$ctoText :: MatchFieldType -> Text
Core.ToText,
MatchFieldType -> ByteString
(MatchFieldType -> ByteString) -> ToByteString MatchFieldType
forall a. (a -> ByteString) -> ToByteString a
toBS :: MatchFieldType -> ByteString
$ctoBS :: MatchFieldType -> ByteString
Core.ToByteString,
MatchFieldType -> ByteStringBuilder
(MatchFieldType -> ByteStringBuilder) -> ToLog MatchFieldType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MatchFieldType -> ByteStringBuilder
$cbuild :: MatchFieldType -> ByteStringBuilder
Core.ToLog,
HeaderName -> MatchFieldType -> [Header]
(HeaderName -> MatchFieldType -> [Header])
-> ToHeader MatchFieldType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MatchFieldType -> [Header]
$ctoHeader :: HeaderName -> MatchFieldType -> [Header]
Core.ToHeader,
MatchFieldType -> QueryString
(MatchFieldType -> QueryString) -> ToQuery MatchFieldType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MatchFieldType -> QueryString
$ctoQuery :: MatchFieldType -> QueryString
Core.ToQuery,
Value -> Parser [MatchFieldType]
Value -> Parser MatchFieldType
(Value -> Parser MatchFieldType)
-> (Value -> Parser [MatchFieldType]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [MatchFieldType]
FromJSONKeyFunction MatchFieldType
FromJSONKeyFunction MatchFieldType
-> FromJSONKeyFunction [MatchFieldType]
-> FromJSONKey MatchFieldType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MatchFieldType]
$cfromJSONKeyList :: FromJSONKeyFunction [MatchFieldType]
fromJSONKey :: FromJSONKeyFunction MatchFieldType
$cfromJSONKey :: FromJSONKeyFunction MatchFieldType
Core.FromJSONKey,
[MatchFieldType] -> Encoding
[MatchFieldType] -> Value
MatchFieldType -> Encoding
MatchFieldType -> Value
(MatchFieldType -> Value)
-> (MatchFieldType -> Encoding)
-> ([MatchFieldType] -> Value)
-> ([MatchFieldType] -> Encoding)
-> ToJSON MatchFieldType
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
Core.ToJSON,
ToJSONKeyFunction [MatchFieldType]
ToJSONKeyFunction MatchFieldType
ToJSONKeyFunction MatchFieldType
-> ToJSONKeyFunction [MatchFieldType] -> ToJSONKey MatchFieldType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MatchFieldType]
$ctoJSONKeyList :: ToJSONKeyFunction [MatchFieldType]
toJSONKey :: ToJSONKeyFunction MatchFieldType
$ctoJSONKey :: ToJSONKeyFunction MatchFieldType
Core.ToJSONKey,
[Node] -> Either String MatchFieldType
([Node] -> Either String MatchFieldType) -> FromXML MatchFieldType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MatchFieldType
$cparseXML :: [Node] -> Either String MatchFieldType
Core.FromXML,
MatchFieldType -> XML
(MatchFieldType -> XML) -> ToXML MatchFieldType
forall a. (a -> XML) -> ToXML a
toXML :: MatchFieldType -> XML
$ctoXML :: MatchFieldType -> XML
Core.ToXML
)
pattern MatchFieldType_ALL_QUERY_ARGS :: MatchFieldType
pattern $bMatchFieldType_ALL_QUERY_ARGS :: MatchFieldType
$mMatchFieldType_ALL_QUERY_ARGS :: forall r. MatchFieldType -> (Void# -> r) -> (Void# -> r) -> r
MatchFieldType_ALL_QUERY_ARGS = MatchFieldType' "ALL_QUERY_ARGS"
pattern MatchFieldType_BODY :: MatchFieldType
pattern $bMatchFieldType_BODY :: MatchFieldType
$mMatchFieldType_BODY :: forall r. MatchFieldType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
MatchFieldType_METHOD = MatchFieldType' "METHOD"
pattern MatchFieldType_QUERY_STRING :: MatchFieldType
pattern $bMatchFieldType_QUERY_STRING :: MatchFieldType
$mMatchFieldType_QUERY_STRING :: forall r. MatchFieldType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
MatchFieldType_SINGLE_QUERY_ARG = MatchFieldType' "SINGLE_QUERY_ARG"
pattern MatchFieldType_URI :: MatchFieldType
pattern $bMatchFieldType_URI :: MatchFieldType
$mMatchFieldType_URI :: forall r. MatchFieldType -> (Void# -> r) -> (Void# -> 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'
#-}