module Stratosphere.WAF.XssMatchSet (
module Exports, XssMatchSet(..), mkXssMatchSet
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAF.XssMatchSet.XssMatchTupleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data XssMatchSet
=
XssMatchSet {XssMatchSet -> ()
haddock_workaround_ :: (),
XssMatchSet -> Value Text
name :: (Value Prelude.Text),
XssMatchSet -> [XssMatchTupleProperty]
xssMatchTuples :: [XssMatchTupleProperty]}
deriving stock (XssMatchSet -> XssMatchSet -> Bool
(XssMatchSet -> XssMatchSet -> Bool)
-> (XssMatchSet -> XssMatchSet -> Bool) -> Eq XssMatchSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: XssMatchSet -> XssMatchSet -> Bool
== :: XssMatchSet -> XssMatchSet -> Bool
$c/= :: XssMatchSet -> XssMatchSet -> Bool
/= :: XssMatchSet -> XssMatchSet -> Bool
Prelude.Eq, Int -> XssMatchSet -> ShowS
[XssMatchSet] -> ShowS
XssMatchSet -> String
(Int -> XssMatchSet -> ShowS)
-> (XssMatchSet -> String)
-> ([XssMatchSet] -> ShowS)
-> Show XssMatchSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> XssMatchSet -> ShowS
showsPrec :: Int -> XssMatchSet -> ShowS
$cshow :: XssMatchSet -> String
show :: XssMatchSet -> String
$cshowList :: [XssMatchSet] -> ShowS
showList :: [XssMatchSet] -> ShowS
Prelude.Show)
mkXssMatchSet ::
Value Prelude.Text -> [XssMatchTupleProperty] -> XssMatchSet
mkXssMatchSet :: Value Text -> [XssMatchTupleProperty] -> XssMatchSet
mkXssMatchSet Value Text
name [XssMatchTupleProperty]
xssMatchTuples
= XssMatchSet
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
xssMatchTuples :: [XssMatchTupleProperty]
xssMatchTuples = [XssMatchTupleProperty]
xssMatchTuples}
instance ToResourceProperties XssMatchSet where
toResourceProperties :: XssMatchSet -> ResourceProperties
toResourceProperties XssMatchSet {[XssMatchTupleProperty]
()
Value Text
haddock_workaround_ :: XssMatchSet -> ()
name :: XssMatchSet -> Value Text
xssMatchTuples :: XssMatchSet -> [XssMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
xssMatchTuples :: [XssMatchTupleProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAF::XssMatchSet", supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [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,
Key
"XssMatchTuples" Key -> [XssMatchTupleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [XssMatchTupleProperty]
xssMatchTuples]}
instance JSON.ToJSON XssMatchSet where
toJSON :: XssMatchSet -> Value
toJSON XssMatchSet {[XssMatchTupleProperty]
()
Value Text
haddock_workaround_ :: XssMatchSet -> ()
name :: XssMatchSet -> Value Text
xssMatchTuples :: XssMatchSet -> [XssMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
xssMatchTuples :: [XssMatchTupleProperty]
..}
= [(Key, Value)] -> Value
JSON.object
[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, Key
"XssMatchTuples" Key -> [XssMatchTupleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [XssMatchTupleProperty]
xssMatchTuples]
instance Property "Name" XssMatchSet where
type PropertyType "Name" XssMatchSet = Value Prelude.Text
set :: PropertyType "Name" XssMatchSet -> XssMatchSet -> XssMatchSet
set PropertyType "Name" XssMatchSet
newValue XssMatchSet {[XssMatchTupleProperty]
()
Value Text
haddock_workaround_ :: XssMatchSet -> ()
name :: XssMatchSet -> Value Text
xssMatchTuples :: XssMatchSet -> [XssMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
xssMatchTuples :: [XssMatchTupleProperty]
..} = XssMatchSet {name :: Value Text
name = PropertyType "Name" XssMatchSet
Value Text
newValue, [XssMatchTupleProperty]
()
haddock_workaround_ :: ()
xssMatchTuples :: [XssMatchTupleProperty]
haddock_workaround_ :: ()
xssMatchTuples :: [XssMatchTupleProperty]
..}
instance Property "XssMatchTuples" XssMatchSet where
type PropertyType "XssMatchTuples" XssMatchSet = [XssMatchTupleProperty]
set :: PropertyType "XssMatchTuples" XssMatchSet
-> XssMatchSet -> XssMatchSet
set PropertyType "XssMatchTuples" XssMatchSet
newValue XssMatchSet {[XssMatchTupleProperty]
()
Value Text
haddock_workaround_ :: XssMatchSet -> ()
name :: XssMatchSet -> Value Text
xssMatchTuples :: XssMatchSet -> [XssMatchTupleProperty]
haddock_workaround_ :: ()
name :: Value Text
xssMatchTuples :: [XssMatchTupleProperty]
..}
= XssMatchSet {xssMatchTuples :: [XssMatchTupleProperty]
xssMatchTuples = [XssMatchTupleProperty]
PropertyType "XssMatchTuples" XssMatchSet
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}