module Stratosphere.WAFv2.RuleGroup.SqliMatchStatementProperty (
module Exports, SqliMatchStatementProperty(..),
mkSqliMatchStatementProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.FieldToMatchProperty as Exports
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.TextTransformationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SqliMatchStatementProperty
=
SqliMatchStatementProperty {SqliMatchStatementProperty -> ()
haddock_workaround_ :: (),
SqliMatchStatementProperty -> FieldToMatchProperty
fieldToMatch :: FieldToMatchProperty,
SqliMatchStatementProperty -> Maybe (Value Text)
sensitivityLevel :: (Prelude.Maybe (Value Prelude.Text)),
SqliMatchStatementProperty -> [TextTransformationProperty]
textTransformations :: [TextTransformationProperty]}
deriving stock (SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool
(SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool)
-> (SqliMatchStatementProperty
-> SqliMatchStatementProperty -> Bool)
-> Eq SqliMatchStatementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool
== :: SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool
$c/= :: SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool
/= :: SqliMatchStatementProperty -> SqliMatchStatementProperty -> Bool
Prelude.Eq, Int -> SqliMatchStatementProperty -> ShowS
[SqliMatchStatementProperty] -> ShowS
SqliMatchStatementProperty -> String
(Int -> SqliMatchStatementProperty -> ShowS)
-> (SqliMatchStatementProperty -> String)
-> ([SqliMatchStatementProperty] -> ShowS)
-> Show SqliMatchStatementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SqliMatchStatementProperty -> ShowS
showsPrec :: Int -> SqliMatchStatementProperty -> ShowS
$cshow :: SqliMatchStatementProperty -> String
show :: SqliMatchStatementProperty -> String
$cshowList :: [SqliMatchStatementProperty] -> ShowS
showList :: [SqliMatchStatementProperty] -> ShowS
Prelude.Show)
mkSqliMatchStatementProperty ::
FieldToMatchProperty
-> [TextTransformationProperty] -> SqliMatchStatementProperty
mkSqliMatchStatementProperty :: FieldToMatchProperty
-> [TextTransformationProperty] -> SqliMatchStatementProperty
mkSqliMatchStatementProperty FieldToMatchProperty
fieldToMatch [TextTransformationProperty]
textTransformations
= SqliMatchStatementProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldToMatch :: FieldToMatchProperty
fieldToMatch = FieldToMatchProperty
fieldToMatch,
textTransformations :: [TextTransformationProperty]
textTransformations = [TextTransformationProperty]
textTransformations,
sensitivityLevel :: Maybe (Value Text)
sensitivityLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SqliMatchStatementProperty where
toResourceProperties :: SqliMatchStatementProperty -> ResourceProperties
toResourceProperties SqliMatchStatementProperty {[TextTransformationProperty]
Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: SqliMatchStatementProperty -> ()
fieldToMatch :: SqliMatchStatementProperty -> FieldToMatchProperty
sensitivityLevel :: SqliMatchStatementProperty -> Maybe (Value Text)
textTransformations :: SqliMatchStatementProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::RuleGroup.SqliMatchStatement",
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
"FieldToMatch" Key -> FieldToMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FieldToMatchProperty
fieldToMatch,
Key
"TextTransformations" Key -> [TextTransformationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TextTransformationProperty]
textTransformations]
([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
"SensitivityLevel" (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)
sensitivityLevel]))}
instance JSON.ToJSON SqliMatchStatementProperty where
toJSON :: SqliMatchStatementProperty -> Value
toJSON SqliMatchStatementProperty {[TextTransformationProperty]
Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: SqliMatchStatementProperty -> ()
fieldToMatch :: SqliMatchStatementProperty -> FieldToMatchProperty
sensitivityLevel :: SqliMatchStatementProperty -> Maybe (Value Text)
textTransformations :: SqliMatchStatementProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
= [(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
"FieldToMatch" Key -> FieldToMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FieldToMatchProperty
fieldToMatch,
Key
"TextTransformations" Key -> [TextTransformationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TextTransformationProperty]
textTransformations]
([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
"SensitivityLevel" (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)
sensitivityLevel])))
instance Property "FieldToMatch" SqliMatchStatementProperty where
type PropertyType "FieldToMatch" SqliMatchStatementProperty = FieldToMatchProperty
set :: PropertyType "FieldToMatch" SqliMatchStatementProperty
-> SqliMatchStatementProperty -> SqliMatchStatementProperty
set PropertyType "FieldToMatch" SqliMatchStatementProperty
newValue SqliMatchStatementProperty {[TextTransformationProperty]
Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: SqliMatchStatementProperty -> ()
fieldToMatch :: SqliMatchStatementProperty -> FieldToMatchProperty
sensitivityLevel :: SqliMatchStatementProperty -> Maybe (Value Text)
textTransformations :: SqliMatchStatementProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
= SqliMatchStatementProperty {fieldToMatch :: FieldToMatchProperty
fieldToMatch = PropertyType "FieldToMatch" SqliMatchStatementProperty
FieldToMatchProperty
newValue, [TextTransformationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
haddock_workaround_ :: ()
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
instance Property "SensitivityLevel" SqliMatchStatementProperty where
type PropertyType "SensitivityLevel" SqliMatchStatementProperty = Value Prelude.Text
set :: PropertyType "SensitivityLevel" SqliMatchStatementProperty
-> SqliMatchStatementProperty -> SqliMatchStatementProperty
set PropertyType "SensitivityLevel" SqliMatchStatementProperty
newValue SqliMatchStatementProperty {[TextTransformationProperty]
Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: SqliMatchStatementProperty -> ()
fieldToMatch :: SqliMatchStatementProperty -> FieldToMatchProperty
sensitivityLevel :: SqliMatchStatementProperty -> Maybe (Value Text)
textTransformations :: SqliMatchStatementProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
= SqliMatchStatementProperty
{sensitivityLevel :: Maybe (Value Text)
sensitivityLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SensitivityLevel" SqliMatchStatementProperty
Value Text
newValue, [TextTransformationProperty]
()
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformations :: [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformations :: [TextTransformationProperty]
..}
instance Property "TextTransformations" SqliMatchStatementProperty where
type PropertyType "TextTransformations" SqliMatchStatementProperty = [TextTransformationProperty]
set :: PropertyType "TextTransformations" SqliMatchStatementProperty
-> SqliMatchStatementProperty -> SqliMatchStatementProperty
set PropertyType "TextTransformations" SqliMatchStatementProperty
newValue SqliMatchStatementProperty {[TextTransformationProperty]
Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: SqliMatchStatementProperty -> ()
fieldToMatch :: SqliMatchStatementProperty -> FieldToMatchProperty
sensitivityLevel :: SqliMatchStatementProperty -> Maybe (Value Text)
textTransformations :: SqliMatchStatementProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
textTransformations :: [TextTransformationProperty]
..}
= SqliMatchStatementProperty {textTransformations :: [TextTransformationProperty]
textTransformations = [TextTransformationProperty]
PropertyType "TextTransformations" SqliMatchStatementProperty
newValue, Maybe (Value Text)
()
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
sensitivityLevel :: Maybe (Value Text)
..}