module Stratosphere.WAFv2.RuleGroup.RateLimitQueryArgumentProperty (
        module Exports, RateLimitQueryArgumentProperty(..),
        mkRateLimitQueryArgumentProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.TextTransformationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RateLimitQueryArgumentProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html>
    RateLimitQueryArgumentProperty {RateLimitQueryArgumentProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html#cfn-wafv2-rulegroup-ratelimitqueryargument-name>
                                    RateLimitQueryArgumentProperty -> Value Text
name :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html#cfn-wafv2-rulegroup-ratelimitqueryargument-texttransformations>
                                    RateLimitQueryArgumentProperty -> [TextTransformationProperty]
textTransformations :: [TextTransformationProperty]}
  deriving stock (RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> Bool
(RateLimitQueryArgumentProperty
 -> RateLimitQueryArgumentProperty -> Bool)
-> (RateLimitQueryArgumentProperty
    -> RateLimitQueryArgumentProperty -> Bool)
-> Eq RateLimitQueryArgumentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> Bool
== :: RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> Bool
$c/= :: RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> Bool
/= :: RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> Bool
Prelude.Eq, Int -> RateLimitQueryArgumentProperty -> ShowS
[RateLimitQueryArgumentProperty] -> ShowS
RateLimitQueryArgumentProperty -> String
(Int -> RateLimitQueryArgumentProperty -> ShowS)
-> (RateLimitQueryArgumentProperty -> String)
-> ([RateLimitQueryArgumentProperty] -> ShowS)
-> Show RateLimitQueryArgumentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RateLimitQueryArgumentProperty -> ShowS
showsPrec :: Int -> RateLimitQueryArgumentProperty -> ShowS
$cshow :: RateLimitQueryArgumentProperty -> String
show :: RateLimitQueryArgumentProperty -> String
$cshowList :: [RateLimitQueryArgumentProperty] -> ShowS
showList :: [RateLimitQueryArgumentProperty] -> ShowS
Prelude.Show)
mkRateLimitQueryArgumentProperty ::
  Value Prelude.Text
  -> [TextTransformationProperty] -> RateLimitQueryArgumentProperty
mkRateLimitQueryArgumentProperty :: Value Text
-> [TextTransformationProperty] -> RateLimitQueryArgumentProperty
mkRateLimitQueryArgumentProperty Value Text
name [TextTransformationProperty]
textTransformations
  = RateLimitQueryArgumentProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       textTransformations :: [TextTransformationProperty]
textTransformations = [TextTransformationProperty]
textTransformations}
instance ToResourceProperties RateLimitQueryArgumentProperty where
  toResourceProperties :: RateLimitQueryArgumentProperty -> ResourceProperties
toResourceProperties RateLimitQueryArgumentProperty {[TextTransformationProperty]
()
Value Text
haddock_workaround_ :: RateLimitQueryArgumentProperty -> ()
name :: RateLimitQueryArgumentProperty -> Value Text
textTransformations :: RateLimitQueryArgumentProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
name :: Value Text
textTransformations :: [TextTransformationProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFv2::RuleGroup.RateLimitQueryArgument",
         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
"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]}
instance JSON.ToJSON RateLimitQueryArgumentProperty where
  toJSON :: RateLimitQueryArgumentProperty -> Value
toJSON RateLimitQueryArgumentProperty {[TextTransformationProperty]
()
Value Text
haddock_workaround_ :: RateLimitQueryArgumentProperty -> ()
name :: RateLimitQueryArgumentProperty -> Value Text
textTransformations :: RateLimitQueryArgumentProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
name :: Value Text
textTransformations :: [TextTransformationProperty]
..}
    = [(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
"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]
instance Property "Name" RateLimitQueryArgumentProperty where
  type PropertyType "Name" RateLimitQueryArgumentProperty = Value Prelude.Text
  set :: PropertyType "Name" RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> RateLimitQueryArgumentProperty
set PropertyType "Name" RateLimitQueryArgumentProperty
newValue RateLimitQueryArgumentProperty {[TextTransformationProperty]
()
Value Text
haddock_workaround_ :: RateLimitQueryArgumentProperty -> ()
name :: RateLimitQueryArgumentProperty -> Value Text
textTransformations :: RateLimitQueryArgumentProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
name :: Value Text
textTransformations :: [TextTransformationProperty]
..}
    = RateLimitQueryArgumentProperty {name :: Value Text
name = PropertyType "Name" RateLimitQueryArgumentProperty
Value Text
newValue, [TextTransformationProperty]
()
haddock_workaround_ :: ()
textTransformations :: [TextTransformationProperty]
haddock_workaround_ :: ()
textTransformations :: [TextTransformationProperty]
..}
instance Property "TextTransformations" RateLimitQueryArgumentProperty where
  type PropertyType "TextTransformations" RateLimitQueryArgumentProperty = [TextTransformationProperty]
  set :: PropertyType "TextTransformations" RateLimitQueryArgumentProperty
-> RateLimitQueryArgumentProperty -> RateLimitQueryArgumentProperty
set PropertyType "TextTransformations" RateLimitQueryArgumentProperty
newValue RateLimitQueryArgumentProperty {[TextTransformationProperty]
()
Value Text
haddock_workaround_ :: RateLimitQueryArgumentProperty -> ()
name :: RateLimitQueryArgumentProperty -> Value Text
textTransformations :: RateLimitQueryArgumentProperty -> [TextTransformationProperty]
haddock_workaround_ :: ()
name :: Value Text
textTransformations :: [TextTransformationProperty]
..}
    = RateLimitQueryArgumentProperty
        {textTransformations :: [TextTransformationProperty]
textTransformations = [TextTransformationProperty]
PropertyType "TextTransformations" RateLimitQueryArgumentProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}