{-# 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.WafOverrideActionType
( WafOverrideActionType
( ..,
WafOverrideActionType_COUNT,
WafOverrideActionType_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WafOverrideActionType = WafOverrideActionType'
{ WafOverrideActionType -> Text
fromWafOverrideActionType ::
Core.Text
}
deriving stock
( Int -> WafOverrideActionType -> ShowS
[WafOverrideActionType] -> ShowS
WafOverrideActionType -> String
(Int -> WafOverrideActionType -> ShowS)
-> (WafOverrideActionType -> String)
-> ([WafOverrideActionType] -> ShowS)
-> Show WafOverrideActionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WafOverrideActionType] -> ShowS
$cshowList :: [WafOverrideActionType] -> ShowS
show :: WafOverrideActionType -> String
$cshow :: WafOverrideActionType -> String
showsPrec :: Int -> WafOverrideActionType -> ShowS
$cshowsPrec :: Int -> WafOverrideActionType -> ShowS
Prelude.Show,
ReadPrec [WafOverrideActionType]
ReadPrec WafOverrideActionType
Int -> ReadS WafOverrideActionType
ReadS [WafOverrideActionType]
(Int -> ReadS WafOverrideActionType)
-> ReadS [WafOverrideActionType]
-> ReadPrec WafOverrideActionType
-> ReadPrec [WafOverrideActionType]
-> Read WafOverrideActionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WafOverrideActionType]
$creadListPrec :: ReadPrec [WafOverrideActionType]
readPrec :: ReadPrec WafOverrideActionType
$creadPrec :: ReadPrec WafOverrideActionType
readList :: ReadS [WafOverrideActionType]
$creadList :: ReadS [WafOverrideActionType]
readsPrec :: Int -> ReadS WafOverrideActionType
$creadsPrec :: Int -> ReadS WafOverrideActionType
Prelude.Read,
WafOverrideActionType -> WafOverrideActionType -> Bool
(WafOverrideActionType -> WafOverrideActionType -> Bool)
-> (WafOverrideActionType -> WafOverrideActionType -> Bool)
-> Eq WafOverrideActionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c/= :: WafOverrideActionType -> WafOverrideActionType -> Bool
== :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c== :: WafOverrideActionType -> WafOverrideActionType -> Bool
Prelude.Eq,
Eq WafOverrideActionType
Eq WafOverrideActionType
-> (WafOverrideActionType -> WafOverrideActionType -> Ordering)
-> (WafOverrideActionType -> WafOverrideActionType -> Bool)
-> (WafOverrideActionType -> WafOverrideActionType -> Bool)
-> (WafOverrideActionType -> WafOverrideActionType -> Bool)
-> (WafOverrideActionType -> WafOverrideActionType -> Bool)
-> (WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType)
-> (WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType)
-> Ord WafOverrideActionType
WafOverrideActionType -> WafOverrideActionType -> Bool
WafOverrideActionType -> WafOverrideActionType -> Ordering
WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType
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 :: WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType
$cmin :: WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType
max :: WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType
$cmax :: WafOverrideActionType
-> WafOverrideActionType -> WafOverrideActionType
>= :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c>= :: WafOverrideActionType -> WafOverrideActionType -> Bool
> :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c> :: WafOverrideActionType -> WafOverrideActionType -> Bool
<= :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c<= :: WafOverrideActionType -> WafOverrideActionType -> Bool
< :: WafOverrideActionType -> WafOverrideActionType -> Bool
$c< :: WafOverrideActionType -> WafOverrideActionType -> Bool
compare :: WafOverrideActionType -> WafOverrideActionType -> Ordering
$ccompare :: WafOverrideActionType -> WafOverrideActionType -> Ordering
$cp1Ord :: Eq WafOverrideActionType
Prelude.Ord,
(forall x. WafOverrideActionType -> Rep WafOverrideActionType x)
-> (forall x. Rep WafOverrideActionType x -> WafOverrideActionType)
-> Generic WafOverrideActionType
forall x. Rep WafOverrideActionType x -> WafOverrideActionType
forall x. WafOverrideActionType -> Rep WafOverrideActionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WafOverrideActionType x -> WafOverrideActionType
$cfrom :: forall x. WafOverrideActionType -> Rep WafOverrideActionType x
Prelude.Generic
)
deriving newtype
( Int -> WafOverrideActionType -> Int
WafOverrideActionType -> Int
(Int -> WafOverrideActionType -> Int)
-> (WafOverrideActionType -> Int) -> Hashable WafOverrideActionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WafOverrideActionType -> Int
$chash :: WafOverrideActionType -> Int
hashWithSalt :: Int -> WafOverrideActionType -> Int
$chashWithSalt :: Int -> WafOverrideActionType -> Int
Prelude.Hashable,
WafOverrideActionType -> ()
(WafOverrideActionType -> ()) -> NFData WafOverrideActionType
forall a. (a -> ()) -> NFData a
rnf :: WafOverrideActionType -> ()
$crnf :: WafOverrideActionType -> ()
Prelude.NFData,
Text -> Either String WafOverrideActionType
(Text -> Either String WafOverrideActionType)
-> FromText WafOverrideActionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WafOverrideActionType
$cfromText :: Text -> Either String WafOverrideActionType
Core.FromText,
WafOverrideActionType -> Text
(WafOverrideActionType -> Text) -> ToText WafOverrideActionType
forall a. (a -> Text) -> ToText a
toText :: WafOverrideActionType -> Text
$ctoText :: WafOverrideActionType -> Text
Core.ToText,
WafOverrideActionType -> ByteString
(WafOverrideActionType -> ByteString)
-> ToByteString WafOverrideActionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: WafOverrideActionType -> ByteString
$ctoBS :: WafOverrideActionType -> ByteString
Core.ToByteString,
WafOverrideActionType -> ByteStringBuilder
(WafOverrideActionType -> ByteStringBuilder)
-> ToLog WafOverrideActionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WafOverrideActionType -> ByteStringBuilder
$cbuild :: WafOverrideActionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> WafOverrideActionType -> [Header]
(HeaderName -> WafOverrideActionType -> [Header])
-> ToHeader WafOverrideActionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WafOverrideActionType -> [Header]
$ctoHeader :: HeaderName -> WafOverrideActionType -> [Header]
Core.ToHeader,
WafOverrideActionType -> QueryString
(WafOverrideActionType -> QueryString)
-> ToQuery WafOverrideActionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WafOverrideActionType -> QueryString
$ctoQuery :: WafOverrideActionType -> QueryString
Core.ToQuery,
Value -> Parser [WafOverrideActionType]
Value -> Parser WafOverrideActionType
(Value -> Parser WafOverrideActionType)
-> (Value -> Parser [WafOverrideActionType])
-> FromJSON WafOverrideActionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WafOverrideActionType]
$cparseJSONList :: Value -> Parser [WafOverrideActionType]
parseJSON :: Value -> Parser WafOverrideActionType
$cparseJSON :: Value -> Parser WafOverrideActionType
Core.FromJSON,
FromJSONKeyFunction [WafOverrideActionType]
FromJSONKeyFunction WafOverrideActionType
FromJSONKeyFunction WafOverrideActionType
-> FromJSONKeyFunction [WafOverrideActionType]
-> FromJSONKey WafOverrideActionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WafOverrideActionType]
$cfromJSONKeyList :: FromJSONKeyFunction [WafOverrideActionType]
fromJSONKey :: FromJSONKeyFunction WafOverrideActionType
$cfromJSONKey :: FromJSONKeyFunction WafOverrideActionType
Core.FromJSONKey,
[WafOverrideActionType] -> Encoding
[WafOverrideActionType] -> Value
WafOverrideActionType -> Encoding
WafOverrideActionType -> Value
(WafOverrideActionType -> Value)
-> (WafOverrideActionType -> Encoding)
-> ([WafOverrideActionType] -> Value)
-> ([WafOverrideActionType] -> Encoding)
-> ToJSON WafOverrideActionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WafOverrideActionType] -> Encoding
$ctoEncodingList :: [WafOverrideActionType] -> Encoding
toJSONList :: [WafOverrideActionType] -> Value
$ctoJSONList :: [WafOverrideActionType] -> Value
toEncoding :: WafOverrideActionType -> Encoding
$ctoEncoding :: WafOverrideActionType -> Encoding
toJSON :: WafOverrideActionType -> Value
$ctoJSON :: WafOverrideActionType -> Value
Core.ToJSON,
ToJSONKeyFunction [WafOverrideActionType]
ToJSONKeyFunction WafOverrideActionType
ToJSONKeyFunction WafOverrideActionType
-> ToJSONKeyFunction [WafOverrideActionType]
-> ToJSONKey WafOverrideActionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WafOverrideActionType]
$ctoJSONKeyList :: ToJSONKeyFunction [WafOverrideActionType]
toJSONKey :: ToJSONKeyFunction WafOverrideActionType
$ctoJSONKey :: ToJSONKeyFunction WafOverrideActionType
Core.ToJSONKey,
[Node] -> Either String WafOverrideActionType
([Node] -> Either String WafOverrideActionType)
-> FromXML WafOverrideActionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WafOverrideActionType
$cparseXML :: [Node] -> Either String WafOverrideActionType
Core.FromXML,
WafOverrideActionType -> XML
(WafOverrideActionType -> XML) -> ToXML WafOverrideActionType
forall a. (a -> XML) -> ToXML a
toXML :: WafOverrideActionType -> XML
$ctoXML :: WafOverrideActionType -> XML
Core.ToXML
)
pattern WafOverrideActionType_COUNT :: WafOverrideActionType
pattern $bWafOverrideActionType_COUNT :: WafOverrideActionType
$mWafOverrideActionType_COUNT :: forall r.
WafOverrideActionType -> (Void# -> r) -> (Void# -> r) -> r
WafOverrideActionType_COUNT = WafOverrideActionType' "COUNT"
pattern WafOverrideActionType_NONE :: WafOverrideActionType
pattern $bWafOverrideActionType_NONE :: WafOverrideActionType
$mWafOverrideActionType_NONE :: forall r.
WafOverrideActionType -> (Void# -> r) -> (Void# -> r) -> r
WafOverrideActionType_NONE = WafOverrideActionType' "NONE"
{-# COMPLETE
WafOverrideActionType_COUNT,
WafOverrideActionType_NONE,
WafOverrideActionType'
#-}