module Stratosphere.NetworkFirewall.RuleGroup.SummaryConfigurationProperty (
SummaryConfigurationProperty(..), mkSummaryConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SummaryConfigurationProperty
=
SummaryConfigurationProperty {SummaryConfigurationProperty -> ()
haddock_workaround_ :: (),
SummaryConfigurationProperty -> Maybe (ValueList Text)
ruleOptions :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool
(SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool)
-> (SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool)
-> Eq SummaryConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool
== :: SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool
$c/= :: SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool
/= :: SummaryConfigurationProperty
-> SummaryConfigurationProperty -> Bool
Prelude.Eq, Int -> SummaryConfigurationProperty -> ShowS
[SummaryConfigurationProperty] -> ShowS
SummaryConfigurationProperty -> String
(Int -> SummaryConfigurationProperty -> ShowS)
-> (SummaryConfigurationProperty -> String)
-> ([SummaryConfigurationProperty] -> ShowS)
-> Show SummaryConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SummaryConfigurationProperty -> ShowS
showsPrec :: Int -> SummaryConfigurationProperty -> ShowS
$cshow :: SummaryConfigurationProperty -> String
show :: SummaryConfigurationProperty -> String
$cshowList :: [SummaryConfigurationProperty] -> ShowS
showList :: [SummaryConfigurationProperty] -> ShowS
Prelude.Show)
mkSummaryConfigurationProperty :: SummaryConfigurationProperty
mkSummaryConfigurationProperty :: SummaryConfigurationProperty
mkSummaryConfigurationProperty
= SummaryConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), ruleOptions :: Maybe (ValueList Text)
ruleOptions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SummaryConfigurationProperty where
toResourceProperties :: SummaryConfigurationProperty -> ResourceProperties
toResourceProperties SummaryConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SummaryConfigurationProperty -> ()
ruleOptions :: SummaryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ruleOptions :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkFirewall::RuleGroup.SummaryConfiguration",
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 -> ValueList 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
"RuleOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
ruleOptions])}
instance JSON.ToJSON SummaryConfigurationProperty where
toJSON :: SummaryConfigurationProperty -> Value
toJSON SummaryConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SummaryConfigurationProperty -> ()
ruleOptions :: SummaryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ruleOptions :: Maybe (ValueList 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 -> ValueList 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
"RuleOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
ruleOptions]))
instance Property "RuleOptions" SummaryConfigurationProperty where
type PropertyType "RuleOptions" SummaryConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "RuleOptions" SummaryConfigurationProperty
-> SummaryConfigurationProperty -> SummaryConfigurationProperty
set PropertyType "RuleOptions" SummaryConfigurationProperty
newValue SummaryConfigurationProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: SummaryConfigurationProperty -> ()
ruleOptions :: SummaryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
ruleOptions :: Maybe (ValueList Text)
..}
= SummaryConfigurationProperty
{ruleOptions :: Maybe (ValueList Text)
ruleOptions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuleOptions" SummaryConfigurationProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}