module Stratosphere.NetworkFirewall.FirewallPolicy.StatefulRuleGroupReferenceProperty (
module Exports, StatefulRuleGroupReferenceProperty(..),
mkStatefulRuleGroupReferenceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.NetworkFirewall.FirewallPolicy.StatefulRuleGroupOverrideProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatefulRuleGroupReferenceProperty
=
StatefulRuleGroupReferenceProperty {StatefulRuleGroupReferenceProperty -> ()
haddock_workaround_ :: (),
StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
deepThreatInspection :: (Prelude.Maybe (Value Prelude.Bool)),
StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
override :: (Prelude.Maybe StatefulRuleGroupOverrideProperty),
StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
priority :: (Prelude.Maybe (Value Prelude.Integer)),
StatefulRuleGroupReferenceProperty -> Value Text
resourceArn :: (Value Prelude.Text)}
deriving stock (StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool
(StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool)
-> (StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool)
-> Eq StatefulRuleGroupReferenceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool
== :: StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool
$c/= :: StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool
/= :: StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty -> Bool
Prelude.Eq, Int -> StatefulRuleGroupReferenceProperty -> ShowS
[StatefulRuleGroupReferenceProperty] -> ShowS
StatefulRuleGroupReferenceProperty -> String
(Int -> StatefulRuleGroupReferenceProperty -> ShowS)
-> (StatefulRuleGroupReferenceProperty -> String)
-> ([StatefulRuleGroupReferenceProperty] -> ShowS)
-> Show StatefulRuleGroupReferenceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StatefulRuleGroupReferenceProperty -> ShowS
showsPrec :: Int -> StatefulRuleGroupReferenceProperty -> ShowS
$cshow :: StatefulRuleGroupReferenceProperty -> String
show :: StatefulRuleGroupReferenceProperty -> String
$cshowList :: [StatefulRuleGroupReferenceProperty] -> ShowS
showList :: [StatefulRuleGroupReferenceProperty] -> ShowS
Prelude.Show)
mkStatefulRuleGroupReferenceProperty ::
Value Prelude.Text -> StatefulRuleGroupReferenceProperty
mkStatefulRuleGroupReferenceProperty :: Value Text -> StatefulRuleGroupReferenceProperty
mkStatefulRuleGroupReferenceProperty Value Text
resourceArn
= StatefulRuleGroupReferenceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceArn :: Value Text
resourceArn = Value Text
resourceArn,
deepThreatInspection :: Maybe (Value Bool)
deepThreatInspection = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, override :: Maybe StatefulRuleGroupOverrideProperty
override = Maybe StatefulRuleGroupOverrideProperty
forall a. Maybe a
Prelude.Nothing,
priority :: Maybe (Value Integer)
priority = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StatefulRuleGroupReferenceProperty where
toResourceProperties :: StatefulRuleGroupReferenceProperty -> ResourceProperties
toResourceProperties StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkFirewall::FirewallPolicy.StatefulRuleGroupReference",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ResourceArn" 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..= Value Text
resourceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeepThreatInspection" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
deepThreatInspection,
Key -> StatefulRuleGroupOverrideProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Override" (StatefulRuleGroupOverrideProperty -> (Key, Value))
-> Maybe StatefulRuleGroupOverrideProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatefulRuleGroupOverrideProperty
override,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority]))}
instance JSON.ToJSON StatefulRuleGroupReferenceProperty where
toJSON :: StatefulRuleGroupReferenceProperty -> Value
toJSON StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ResourceArn" 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..= Value Text
resourceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeepThreatInspection" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
deepThreatInspection,
Key -> StatefulRuleGroupOverrideProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Override" (StatefulRuleGroupOverrideProperty -> (Key, Value))
-> Maybe StatefulRuleGroupOverrideProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatefulRuleGroupOverrideProperty
override,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority])))
instance Property "DeepThreatInspection" StatefulRuleGroupReferenceProperty where
type PropertyType "DeepThreatInspection" StatefulRuleGroupReferenceProperty = Value Prelude.Bool
set :: PropertyType
"DeepThreatInspection" StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
set PropertyType
"DeepThreatInspection" StatefulRuleGroupReferenceProperty
newValue StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= StatefulRuleGroupReferenceProperty
{deepThreatInspection :: Maybe (Value Bool)
deepThreatInspection = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DeepThreatInspection" StatefulRuleGroupReferenceProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: ()
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
haddock_workaround_ :: ()
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
instance Property "Override" StatefulRuleGroupReferenceProperty where
type PropertyType "Override" StatefulRuleGroupReferenceProperty = StatefulRuleGroupOverrideProperty
set :: PropertyType "Override" StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
set PropertyType "Override" StatefulRuleGroupReferenceProperty
newValue StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= StatefulRuleGroupReferenceProperty
{override :: Maybe StatefulRuleGroupOverrideProperty
override = StatefulRuleGroupOverrideProperty
-> Maybe StatefulRuleGroupOverrideProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Override" StatefulRuleGroupReferenceProperty
StatefulRuleGroupOverrideProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
priority :: Maybe (Value Integer)
resourceArn :: Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
instance Property "Priority" StatefulRuleGroupReferenceProperty where
type PropertyType "Priority" StatefulRuleGroupReferenceProperty = Value Prelude.Integer
set :: PropertyType "Priority" StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
set PropertyType "Priority" StatefulRuleGroupReferenceProperty
newValue StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= StatefulRuleGroupReferenceProperty
{priority :: Maybe (Value Integer)
priority = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Priority" StatefulRuleGroupReferenceProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
resourceArn :: Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
resourceArn :: Value Text
..}
instance Property "ResourceArn" StatefulRuleGroupReferenceProperty where
type PropertyType "ResourceArn" StatefulRuleGroupReferenceProperty = Value Prelude.Text
set :: PropertyType "ResourceArn" StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
-> StatefulRuleGroupReferenceProperty
set PropertyType "ResourceArn" StatefulRuleGroupReferenceProperty
newValue StatefulRuleGroupReferenceProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
Value Text
haddock_workaround_ :: StatefulRuleGroupReferenceProperty -> ()
deepThreatInspection :: StatefulRuleGroupReferenceProperty -> Maybe (Value Bool)
override :: StatefulRuleGroupReferenceProperty
-> Maybe StatefulRuleGroupOverrideProperty
priority :: StatefulRuleGroupReferenceProperty -> Maybe (Value Integer)
resourceArn :: StatefulRuleGroupReferenceProperty -> Value Text
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
resourceArn :: Value Text
..}
= StatefulRuleGroupReferenceProperty {resourceArn :: Value Text
resourceArn = PropertyType "ResourceArn" StatefulRuleGroupReferenceProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe StatefulRuleGroupOverrideProperty
()
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
haddock_workaround_ :: ()
deepThreatInspection :: Maybe (Value Bool)
override :: Maybe StatefulRuleGroupOverrideProperty
priority :: Maybe (Value Integer)
..}