module Stratosphere.WAFRegional.SqlInjectionMatchSet.SqlInjectionMatchTupleProperty (
module Exports, SqlInjectionMatchTupleProperty(..),
mkSqlInjectionMatchTupleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFRegional.SqlInjectionMatchSet.FieldToMatchProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SqlInjectionMatchTupleProperty
=
SqlInjectionMatchTupleProperty {SqlInjectionMatchTupleProperty -> ()
haddock_workaround_ :: (),
SqlInjectionMatchTupleProperty -> FieldToMatchProperty
fieldToMatch :: FieldToMatchProperty,
SqlInjectionMatchTupleProperty -> Value Text
textTransformation :: (Value Prelude.Text)}
deriving stock (SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool
(SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool)
-> (SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool)
-> Eq SqlInjectionMatchTupleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool
== :: SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool
$c/= :: SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool
/= :: SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> Bool
Prelude.Eq, Int -> SqlInjectionMatchTupleProperty -> ShowS
[SqlInjectionMatchTupleProperty] -> ShowS
SqlInjectionMatchTupleProperty -> String
(Int -> SqlInjectionMatchTupleProperty -> ShowS)
-> (SqlInjectionMatchTupleProperty -> String)
-> ([SqlInjectionMatchTupleProperty] -> ShowS)
-> Show SqlInjectionMatchTupleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SqlInjectionMatchTupleProperty -> ShowS
showsPrec :: Int -> SqlInjectionMatchTupleProperty -> ShowS
$cshow :: SqlInjectionMatchTupleProperty -> String
show :: SqlInjectionMatchTupleProperty -> String
$cshowList :: [SqlInjectionMatchTupleProperty] -> ShowS
showList :: [SqlInjectionMatchTupleProperty] -> ShowS
Prelude.Show)
mkSqlInjectionMatchTupleProperty ::
FieldToMatchProperty
-> Value Prelude.Text -> SqlInjectionMatchTupleProperty
mkSqlInjectionMatchTupleProperty :: FieldToMatchProperty
-> Value Text -> SqlInjectionMatchTupleProperty
mkSqlInjectionMatchTupleProperty FieldToMatchProperty
fieldToMatch Value Text
textTransformation
= SqlInjectionMatchTupleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldToMatch :: FieldToMatchProperty
fieldToMatch = FieldToMatchProperty
fieldToMatch,
textTransformation :: Value Text
textTransformation = Value Text
textTransformation}
instance ToResourceProperties SqlInjectionMatchTupleProperty where
toResourceProperties :: SqlInjectionMatchTupleProperty -> ResourceProperties
toResourceProperties SqlInjectionMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: SqlInjectionMatchTupleProperty -> ()
fieldToMatch :: SqlInjectionMatchTupleProperty -> FieldToMatchProperty
textTransformation :: SqlInjectionMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFRegional::SqlInjectionMatchSet.SqlInjectionMatchTuple",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [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
"TextTransformation" 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
textTransformation]}
instance JSON.ToJSON SqlInjectionMatchTupleProperty where
toJSON :: SqlInjectionMatchTupleProperty -> Value
toJSON SqlInjectionMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: SqlInjectionMatchTupleProperty -> ()
fieldToMatch :: SqlInjectionMatchTupleProperty -> FieldToMatchProperty
textTransformation :: SqlInjectionMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[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
"TextTransformation" 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
textTransformation]
instance Property "FieldToMatch" SqlInjectionMatchTupleProperty where
type PropertyType "FieldToMatch" SqlInjectionMatchTupleProperty = FieldToMatchProperty
set :: PropertyType "FieldToMatch" SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> SqlInjectionMatchTupleProperty
set PropertyType "FieldToMatch" SqlInjectionMatchTupleProperty
newValue SqlInjectionMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: SqlInjectionMatchTupleProperty -> ()
fieldToMatch :: SqlInjectionMatchTupleProperty -> FieldToMatchProperty
textTransformation :: SqlInjectionMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
= SqlInjectionMatchTupleProperty {fieldToMatch :: FieldToMatchProperty
fieldToMatch = PropertyType "FieldToMatch" SqlInjectionMatchTupleProperty
FieldToMatchProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
textTransformation :: Value Text
haddock_workaround_ :: ()
textTransformation :: Value Text
..}
instance Property "TextTransformation" SqlInjectionMatchTupleProperty where
type PropertyType "TextTransformation" SqlInjectionMatchTupleProperty = Value Prelude.Text
set :: PropertyType "TextTransformation" SqlInjectionMatchTupleProperty
-> SqlInjectionMatchTupleProperty -> SqlInjectionMatchTupleProperty
set PropertyType "TextTransformation" SqlInjectionMatchTupleProperty
newValue SqlInjectionMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: SqlInjectionMatchTupleProperty -> ()
fieldToMatch :: SqlInjectionMatchTupleProperty -> FieldToMatchProperty
textTransformation :: SqlInjectionMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
= SqlInjectionMatchTupleProperty
{textTransformation :: Value Text
textTransformation = PropertyType "TextTransformation" SqlInjectionMatchTupleProperty
Value Text
newValue, ()
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
..}