module Stratosphere.WAFv2.WebACL.AWSManagedRulesBotControlRuleSetProperty (
AWSManagedRulesBotControlRuleSetProperty(..),
mkAWSManagedRulesBotControlRuleSetProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AWSManagedRulesBotControlRuleSetProperty
=
AWSManagedRulesBotControlRuleSetProperty {AWSManagedRulesBotControlRuleSetProperty -> ()
haddock_workaround_ :: (),
AWSManagedRulesBotControlRuleSetProperty -> Maybe (Value Bool)
enableMachineLearning :: (Prelude.Maybe (Value Prelude.Bool)),
AWSManagedRulesBotControlRuleSetProperty -> Value Text
inspectionLevel :: (Value Prelude.Text)}
deriving stock (AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool
(AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool)
-> (AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool)
-> Eq AWSManagedRulesBotControlRuleSetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool
== :: AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool
$c/= :: AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool
/= :: AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty -> Bool
Prelude.Eq, Int -> AWSManagedRulesBotControlRuleSetProperty -> ShowS
[AWSManagedRulesBotControlRuleSetProperty] -> ShowS
AWSManagedRulesBotControlRuleSetProperty -> String
(Int -> AWSManagedRulesBotControlRuleSetProperty -> ShowS)
-> (AWSManagedRulesBotControlRuleSetProperty -> String)
-> ([AWSManagedRulesBotControlRuleSetProperty] -> ShowS)
-> Show AWSManagedRulesBotControlRuleSetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AWSManagedRulesBotControlRuleSetProperty -> ShowS
showsPrec :: Int -> AWSManagedRulesBotControlRuleSetProperty -> ShowS
$cshow :: AWSManagedRulesBotControlRuleSetProperty -> String
show :: AWSManagedRulesBotControlRuleSetProperty -> String
$cshowList :: [AWSManagedRulesBotControlRuleSetProperty] -> ShowS
showList :: [AWSManagedRulesBotControlRuleSetProperty] -> ShowS
Prelude.Show)
mkAWSManagedRulesBotControlRuleSetProperty ::
Value Prelude.Text -> AWSManagedRulesBotControlRuleSetProperty
mkAWSManagedRulesBotControlRuleSetProperty :: Value Text -> AWSManagedRulesBotControlRuleSetProperty
mkAWSManagedRulesBotControlRuleSetProperty Value Text
inspectionLevel
= AWSManagedRulesBotControlRuleSetProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), inspectionLevel :: Value Text
inspectionLevel = Value Text
inspectionLevel,
enableMachineLearning :: Maybe (Value Bool)
enableMachineLearning = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AWSManagedRulesBotControlRuleSetProperty where
toResourceProperties :: AWSManagedRulesBotControlRuleSetProperty -> ResourceProperties
toResourceProperties AWSManagedRulesBotControlRuleSetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AWSManagedRulesBotControlRuleSetProperty -> ()
enableMachineLearning :: AWSManagedRulesBotControlRuleSetProperty -> Maybe (Value Bool)
inspectionLevel :: AWSManagedRulesBotControlRuleSetProperty -> Value Text
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
inspectionLevel :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.AWSManagedRulesBotControlRuleSet",
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
"InspectionLevel" 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
inspectionLevel]
([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
"EnableMachineLearning"
(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)
enableMachineLearning]))}
instance JSON.ToJSON AWSManagedRulesBotControlRuleSetProperty where
toJSON :: AWSManagedRulesBotControlRuleSetProperty -> Value
toJSON AWSManagedRulesBotControlRuleSetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AWSManagedRulesBotControlRuleSetProperty -> ()
enableMachineLearning :: AWSManagedRulesBotControlRuleSetProperty -> Maybe (Value Bool)
inspectionLevel :: AWSManagedRulesBotControlRuleSetProperty -> Value Text
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
inspectionLevel :: 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
"InspectionLevel" 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
inspectionLevel]
([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
"EnableMachineLearning"
(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)
enableMachineLearning])))
instance Property "EnableMachineLearning" AWSManagedRulesBotControlRuleSetProperty where
type PropertyType "EnableMachineLearning" AWSManagedRulesBotControlRuleSetProperty = Value Prelude.Bool
set :: PropertyType
"EnableMachineLearning" AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty
set PropertyType
"EnableMachineLearning" AWSManagedRulesBotControlRuleSetProperty
newValue AWSManagedRulesBotControlRuleSetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AWSManagedRulesBotControlRuleSetProperty -> ()
enableMachineLearning :: AWSManagedRulesBotControlRuleSetProperty -> Maybe (Value Bool)
inspectionLevel :: AWSManagedRulesBotControlRuleSetProperty -> Value Text
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
inspectionLevel :: Value Text
..}
= AWSManagedRulesBotControlRuleSetProperty
{enableMachineLearning :: Maybe (Value Bool)
enableMachineLearning = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EnableMachineLearning" AWSManagedRulesBotControlRuleSetProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
inspectionLevel :: Value Text
haddock_workaround_ :: ()
inspectionLevel :: Value Text
..}
instance Property "InspectionLevel" AWSManagedRulesBotControlRuleSetProperty where
type PropertyType "InspectionLevel" AWSManagedRulesBotControlRuleSetProperty = Value Prelude.Text
set :: PropertyType
"InspectionLevel" AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty
-> AWSManagedRulesBotControlRuleSetProperty
set PropertyType
"InspectionLevel" AWSManagedRulesBotControlRuleSetProperty
newValue AWSManagedRulesBotControlRuleSetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AWSManagedRulesBotControlRuleSetProperty -> ()
enableMachineLearning :: AWSManagedRulesBotControlRuleSetProperty -> Maybe (Value Bool)
inspectionLevel :: AWSManagedRulesBotControlRuleSetProperty -> Value Text
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
inspectionLevel :: Value Text
..}
= AWSManagedRulesBotControlRuleSetProperty
{inspectionLevel :: Value Text
inspectionLevel = PropertyType
"InspectionLevel" AWSManagedRulesBotControlRuleSetProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
haddock_workaround_ :: ()
enableMachineLearning :: Maybe (Value Bool)
..}