module Stratosphere.NetworkFirewall.RuleGroup.StatefulRuleOptionsProperty (
        StatefulRuleOptionsProperty(..), mkStatefulRuleOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatefulRuleOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulruleoptions.html>
    StatefulRuleOptionsProperty {StatefulRuleOptionsProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulruleoptions.html#cfn-networkfirewall-rulegroup-statefulruleoptions-ruleorder>
                                 StatefulRuleOptionsProperty -> Maybe (Value Text)
ruleOrder :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty -> Bool
(StatefulRuleOptionsProperty
 -> StatefulRuleOptionsProperty -> Bool)
-> (StatefulRuleOptionsProperty
    -> StatefulRuleOptionsProperty -> Bool)
-> Eq StatefulRuleOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty -> Bool
== :: StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty -> Bool
$c/= :: StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty -> Bool
/= :: StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty -> Bool
Prelude.Eq, Int -> StatefulRuleOptionsProperty -> ShowS
[StatefulRuleOptionsProperty] -> ShowS
StatefulRuleOptionsProperty -> String
(Int -> StatefulRuleOptionsProperty -> ShowS)
-> (StatefulRuleOptionsProperty -> String)
-> ([StatefulRuleOptionsProperty] -> ShowS)
-> Show StatefulRuleOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StatefulRuleOptionsProperty -> ShowS
showsPrec :: Int -> StatefulRuleOptionsProperty -> ShowS
$cshow :: StatefulRuleOptionsProperty -> String
show :: StatefulRuleOptionsProperty -> String
$cshowList :: [StatefulRuleOptionsProperty] -> ShowS
showList :: [StatefulRuleOptionsProperty] -> ShowS
Prelude.Show)
mkStatefulRuleOptionsProperty :: StatefulRuleOptionsProperty
mkStatefulRuleOptionsProperty :: StatefulRuleOptionsProperty
mkStatefulRuleOptionsProperty
  = StatefulRuleOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ruleOrder :: Maybe (Value Text)
ruleOrder = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StatefulRuleOptionsProperty where
  toResourceProperties :: StatefulRuleOptionsProperty -> ResourceProperties
toResourceProperties StatefulRuleOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleOptionsProperty -> ()
ruleOrder :: StatefulRuleOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleOrder :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkFirewall::RuleGroup.StatefulRuleOptions",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RuleOrder" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
ruleOrder])}
instance JSON.ToJSON StatefulRuleOptionsProperty where
  toJSON :: StatefulRuleOptionsProperty -> Value
toJSON StatefulRuleOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleOptionsProperty -> ()
ruleOrder :: StatefulRuleOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleOrder :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RuleOrder" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
ruleOrder]))
instance Property "RuleOrder" StatefulRuleOptionsProperty where
  type PropertyType "RuleOrder" StatefulRuleOptionsProperty = Value Prelude.Text
  set :: PropertyType "RuleOrder" StatefulRuleOptionsProperty
-> StatefulRuleOptionsProperty -> StatefulRuleOptionsProperty
set PropertyType "RuleOrder" StatefulRuleOptionsProperty
newValue StatefulRuleOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleOptionsProperty -> ()
ruleOrder :: StatefulRuleOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleOrder :: Maybe (Value Text)
..}
    = StatefulRuleOptionsProperty
        {ruleOrder :: Maybe (Value Text)
ruleOrder = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuleOrder" StatefulRuleOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}