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