module Stratosphere.WAF.XssMatchSet.XssMatchTupleProperty (
        module Exports, XssMatchTupleProperty(..), mkXssMatchTupleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAF.XssMatchSet.FieldToMatchProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data XssMatchTupleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html>
    XssMatchTupleProperty {XssMatchTupleProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html#cfn-waf-xssmatchset-xssmatchtuple-fieldtomatch>
                           XssMatchTupleProperty -> FieldToMatchProperty
fieldToMatch :: FieldToMatchProperty,
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html#cfn-waf-xssmatchset-xssmatchtuple-texttransformation>
                           XssMatchTupleProperty -> Value Text
textTransformation :: (Value Prelude.Text)}
  deriving stock (XssMatchTupleProperty -> XssMatchTupleProperty -> Bool
(XssMatchTupleProperty -> XssMatchTupleProperty -> Bool)
-> (XssMatchTupleProperty -> XssMatchTupleProperty -> Bool)
-> Eq XssMatchTupleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: XssMatchTupleProperty -> XssMatchTupleProperty -> Bool
== :: XssMatchTupleProperty -> XssMatchTupleProperty -> Bool
$c/= :: XssMatchTupleProperty -> XssMatchTupleProperty -> Bool
/= :: XssMatchTupleProperty -> XssMatchTupleProperty -> Bool
Prelude.Eq, Int -> XssMatchTupleProperty -> ShowS
[XssMatchTupleProperty] -> ShowS
XssMatchTupleProperty -> String
(Int -> XssMatchTupleProperty -> ShowS)
-> (XssMatchTupleProperty -> String)
-> ([XssMatchTupleProperty] -> ShowS)
-> Show XssMatchTupleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> XssMatchTupleProperty -> ShowS
showsPrec :: Int -> XssMatchTupleProperty -> ShowS
$cshow :: XssMatchTupleProperty -> String
show :: XssMatchTupleProperty -> String
$cshowList :: [XssMatchTupleProperty] -> ShowS
showList :: [XssMatchTupleProperty] -> ShowS
Prelude.Show)
mkXssMatchTupleProperty ::
  FieldToMatchProperty -> Value Prelude.Text -> XssMatchTupleProperty
mkXssMatchTupleProperty :: FieldToMatchProperty -> Value Text -> XssMatchTupleProperty
mkXssMatchTupleProperty FieldToMatchProperty
fieldToMatch Value Text
textTransformation
  = XssMatchTupleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldToMatch :: FieldToMatchProperty
fieldToMatch = FieldToMatchProperty
fieldToMatch,
       textTransformation :: Value Text
textTransformation = Value Text
textTransformation}
instance ToResourceProperties XssMatchTupleProperty where
  toResourceProperties :: XssMatchTupleProperty -> ResourceProperties
toResourceProperties XssMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: XssMatchTupleProperty -> ()
fieldToMatch :: XssMatchTupleProperty -> FieldToMatchProperty
textTransformation :: XssMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAF::XssMatchSet.XssMatchTuple",
         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 XssMatchTupleProperty where
  toJSON :: XssMatchTupleProperty -> Value
toJSON XssMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: XssMatchTupleProperty -> ()
fieldToMatch :: XssMatchTupleProperty -> FieldToMatchProperty
textTransformation :: XssMatchTupleProperty -> 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" XssMatchTupleProperty where
  type PropertyType "FieldToMatch" XssMatchTupleProperty = FieldToMatchProperty
  set :: PropertyType "FieldToMatch" XssMatchTupleProperty
-> XssMatchTupleProperty -> XssMatchTupleProperty
set PropertyType "FieldToMatch" XssMatchTupleProperty
newValue XssMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: XssMatchTupleProperty -> ()
fieldToMatch :: XssMatchTupleProperty -> FieldToMatchProperty
textTransformation :: XssMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
    = XssMatchTupleProperty {fieldToMatch :: FieldToMatchProperty
fieldToMatch = PropertyType "FieldToMatch" XssMatchTupleProperty
FieldToMatchProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
textTransformation :: Value Text
haddock_workaround_ :: ()
textTransformation :: Value Text
..}
instance Property "TextTransformation" XssMatchTupleProperty where
  type PropertyType "TextTransformation" XssMatchTupleProperty = Value Prelude.Text
  set :: PropertyType "TextTransformation" XssMatchTupleProperty
-> XssMatchTupleProperty -> XssMatchTupleProperty
set PropertyType "TextTransformation" XssMatchTupleProperty
newValue XssMatchTupleProperty {()
Value Text
FieldToMatchProperty
haddock_workaround_ :: XssMatchTupleProperty -> ()
fieldToMatch :: XssMatchTupleProperty -> FieldToMatchProperty
textTransformation :: XssMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
textTransformation :: Value Text
..}
    = XssMatchTupleProperty {textTransformation :: Value Text
textTransformation = PropertyType "TextTransformation" XssMatchTupleProperty
Value Text
newValue, ()
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
..}