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