module Stratosphere.WAFRegional.SqlInjectionMatchSet (
        module Exports, SqlInjectionMatchSet(..), mkSqlInjectionMatchSet
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFRegional.SqlInjectionMatchSet.SqlInjectionMatchTupleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SqlInjectionMatchSet
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html>
    SqlInjectionMatchSet {SqlInjectionMatchSet -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html#cfn-wafregional-sqlinjectionmatchset-name>
                          SqlInjectionMatchSet -> Value Text
name :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuples>
                          SqlInjectionMatchSet -> Maybe [SqlInjectionMatchTupleProperty]
sqlInjectionMatchTuples :: (Prelude.Maybe [SqlInjectionMatchTupleProperty])}
  deriving stock (SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool
(SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool)
-> (SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool)
-> Eq SqlInjectionMatchSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool
== :: SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool
$c/= :: SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool
/= :: SqlInjectionMatchSet -> SqlInjectionMatchSet -> Bool
Prelude.Eq, Int -> SqlInjectionMatchSet -> ShowS
[SqlInjectionMatchSet] -> ShowS
SqlInjectionMatchSet -> String
(Int -> SqlInjectionMatchSet -> ShowS)
-> (SqlInjectionMatchSet -> String)
-> ([SqlInjectionMatchSet] -> ShowS)
-> Show SqlInjectionMatchSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SqlInjectionMatchSet -> ShowS
showsPrec :: Int -> SqlInjectionMatchSet -> ShowS
$cshow :: SqlInjectionMatchSet -> String
show :: SqlInjectionMatchSet -> String
$cshowList :: [SqlInjectionMatchSet] -> ShowS
showList :: [SqlInjectionMatchSet] -> ShowS
Prelude.Show)
mkSqlInjectionMatchSet ::
  Value Prelude.Text -> SqlInjectionMatchSet
mkSqlInjectionMatchSet :: Value Text -> SqlInjectionMatchSet
mkSqlInjectionMatchSet Value Text
name
  = SqlInjectionMatchSet
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
sqlInjectionMatchTuples = Maybe [SqlInjectionMatchTupleProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SqlInjectionMatchSet where
  toResourceProperties :: SqlInjectionMatchSet -> ResourceProperties
toResourceProperties SqlInjectionMatchSet {Maybe [SqlInjectionMatchTupleProperty]
()
Value Text
haddock_workaround_ :: SqlInjectionMatchSet -> ()
name :: SqlInjectionMatchSet -> Value Text
sqlInjectionMatchTuples :: SqlInjectionMatchSet -> Maybe [SqlInjectionMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFRegional::SqlInjectionMatchSet",
         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
"Name" 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
name]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [SqlInjectionMatchTupleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SqlInjectionMatchTuples"
                                 ([SqlInjectionMatchTupleProperty] -> (Key, Value))
-> Maybe [SqlInjectionMatchTupleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SqlInjectionMatchTupleProperty]
sqlInjectionMatchTuples]))}
instance JSON.ToJSON SqlInjectionMatchSet where
  toJSON :: SqlInjectionMatchSet -> Value
toJSON SqlInjectionMatchSet {Maybe [SqlInjectionMatchTupleProperty]
()
Value Text
haddock_workaround_ :: SqlInjectionMatchSet -> ()
name :: SqlInjectionMatchSet -> Value Text
sqlInjectionMatchTuples :: SqlInjectionMatchSet -> Maybe [SqlInjectionMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
..}
    = [(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
"Name" 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
name]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [SqlInjectionMatchTupleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SqlInjectionMatchTuples"
                    ([SqlInjectionMatchTupleProperty] -> (Key, Value))
-> Maybe [SqlInjectionMatchTupleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SqlInjectionMatchTupleProperty]
sqlInjectionMatchTuples])))
instance Property "Name" SqlInjectionMatchSet where
  type PropertyType "Name" SqlInjectionMatchSet = Value Prelude.Text
  set :: PropertyType "Name" SqlInjectionMatchSet
-> SqlInjectionMatchSet -> SqlInjectionMatchSet
set PropertyType "Name" SqlInjectionMatchSet
newValue SqlInjectionMatchSet {Maybe [SqlInjectionMatchTupleProperty]
()
Value Text
haddock_workaround_ :: SqlInjectionMatchSet -> ()
name :: SqlInjectionMatchSet -> Value Text
sqlInjectionMatchTuples :: SqlInjectionMatchSet -> Maybe [SqlInjectionMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
..}
    = SqlInjectionMatchSet {name :: Value Text
name = PropertyType "Name" SqlInjectionMatchSet
Value Text
newValue, Maybe [SqlInjectionMatchTupleProperty]
()
haddock_workaround_ :: ()
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
haddock_workaround_ :: ()
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
..}
instance Property "SqlInjectionMatchTuples" SqlInjectionMatchSet where
  type PropertyType "SqlInjectionMatchTuples" SqlInjectionMatchSet = [SqlInjectionMatchTupleProperty]
  set :: PropertyType "SqlInjectionMatchTuples" SqlInjectionMatchSet
-> SqlInjectionMatchSet -> SqlInjectionMatchSet
set PropertyType "SqlInjectionMatchTuples" SqlInjectionMatchSet
newValue SqlInjectionMatchSet {Maybe [SqlInjectionMatchTupleProperty]
()
Value Text
haddock_workaround_ :: SqlInjectionMatchSet -> ()
name :: SqlInjectionMatchSet -> Value Text
sqlInjectionMatchTuples :: SqlInjectionMatchSet -> Maybe [SqlInjectionMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
..}
    = SqlInjectionMatchSet
        {sqlInjectionMatchTuples :: Maybe [SqlInjectionMatchTupleProperty]
sqlInjectionMatchTuples = [SqlInjectionMatchTupleProperty]
-> Maybe [SqlInjectionMatchTupleProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [SqlInjectionMatchTupleProperty]
PropertyType "SqlInjectionMatchTuples" SqlInjectionMatchSet
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}