module Stratosphere.NetworkFirewall.FirewallPolicy.StatefulRuleGroupOverrideProperty (
        StatefulRuleGroupOverrideProperty(..),
        mkStatefulRuleGroupOverrideProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatefulRuleGroupOverrideProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulrulegroupoverride.html>
    StatefulRuleGroupOverrideProperty {StatefulRuleGroupOverrideProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulrulegroupoverride.html#cfn-networkfirewall-firewallpolicy-statefulrulegroupoverride-action>
                                       StatefulRuleGroupOverrideProperty -> Maybe (Value Text)
action :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty -> Bool
(StatefulRuleGroupOverrideProperty
 -> StatefulRuleGroupOverrideProperty -> Bool)
-> (StatefulRuleGroupOverrideProperty
    -> StatefulRuleGroupOverrideProperty -> Bool)
-> Eq StatefulRuleGroupOverrideProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty -> Bool
== :: StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty -> Bool
$c/= :: StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty -> Bool
/= :: StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty -> Bool
Prelude.Eq, Int -> StatefulRuleGroupOverrideProperty -> ShowS
[StatefulRuleGroupOverrideProperty] -> ShowS
StatefulRuleGroupOverrideProperty -> String
(Int -> StatefulRuleGroupOverrideProperty -> ShowS)
-> (StatefulRuleGroupOverrideProperty -> String)
-> ([StatefulRuleGroupOverrideProperty] -> ShowS)
-> Show StatefulRuleGroupOverrideProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StatefulRuleGroupOverrideProperty -> ShowS
showsPrec :: Int -> StatefulRuleGroupOverrideProperty -> ShowS
$cshow :: StatefulRuleGroupOverrideProperty -> String
show :: StatefulRuleGroupOverrideProperty -> String
$cshowList :: [StatefulRuleGroupOverrideProperty] -> ShowS
showList :: [StatefulRuleGroupOverrideProperty] -> ShowS
Prelude.Show)
mkStatefulRuleGroupOverrideProperty ::
  StatefulRuleGroupOverrideProperty
mkStatefulRuleGroupOverrideProperty :: StatefulRuleGroupOverrideProperty
mkStatefulRuleGroupOverrideProperty
  = StatefulRuleGroupOverrideProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Maybe (Value Text)
action = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StatefulRuleGroupOverrideProperty where
  toResourceProperties :: StatefulRuleGroupOverrideProperty -> ResourceProperties
toResourceProperties StatefulRuleGroupOverrideProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleGroupOverrideProperty -> ()
action :: StatefulRuleGroupOverrideProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
action :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkFirewall::FirewallPolicy.StatefulRuleGroupOverride",
         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
"Action" (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)
action])}
instance JSON.ToJSON StatefulRuleGroupOverrideProperty where
  toJSON :: StatefulRuleGroupOverrideProperty -> Value
toJSON StatefulRuleGroupOverrideProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleGroupOverrideProperty -> ()
action :: StatefulRuleGroupOverrideProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
action :: 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
"Action" (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)
action]))
instance Property "Action" StatefulRuleGroupOverrideProperty where
  type PropertyType "Action" StatefulRuleGroupOverrideProperty = Value Prelude.Text
  set :: PropertyType "Action" StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty
-> StatefulRuleGroupOverrideProperty
set PropertyType "Action" StatefulRuleGroupOverrideProperty
newValue StatefulRuleGroupOverrideProperty {Maybe (Value Text)
()
haddock_workaround_ :: StatefulRuleGroupOverrideProperty -> ()
action :: StatefulRuleGroupOverrideProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
action :: Maybe (Value Text)
..}
    = StatefulRuleGroupOverrideProperty
        {action :: Maybe (Value Text)
action = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Action" StatefulRuleGroupOverrideProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}