module Stratosphere.WAFv2.WebACL.SingleQueryArgumentProperty (
SingleQueryArgumentProperty(..), mkSingleQueryArgumentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SingleQueryArgumentProperty
=
SingleQueryArgumentProperty {SingleQueryArgumentProperty -> ()
haddock_workaround_ :: (),
SingleQueryArgumentProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (SingleQueryArgumentProperty -> SingleQueryArgumentProperty -> Bool
(SingleQueryArgumentProperty
-> SingleQueryArgumentProperty -> Bool)
-> (SingleQueryArgumentProperty
-> SingleQueryArgumentProperty -> Bool)
-> Eq SingleQueryArgumentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SingleQueryArgumentProperty -> SingleQueryArgumentProperty -> Bool
== :: SingleQueryArgumentProperty -> SingleQueryArgumentProperty -> Bool
$c/= :: SingleQueryArgumentProperty -> SingleQueryArgumentProperty -> Bool
/= :: SingleQueryArgumentProperty -> SingleQueryArgumentProperty -> Bool
Prelude.Eq, Int -> SingleQueryArgumentProperty -> ShowS
[SingleQueryArgumentProperty] -> ShowS
SingleQueryArgumentProperty -> String
(Int -> SingleQueryArgumentProperty -> ShowS)
-> (SingleQueryArgumentProperty -> String)
-> ([SingleQueryArgumentProperty] -> ShowS)
-> Show SingleQueryArgumentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SingleQueryArgumentProperty -> ShowS
showsPrec :: Int -> SingleQueryArgumentProperty -> ShowS
$cshow :: SingleQueryArgumentProperty -> String
show :: SingleQueryArgumentProperty -> String
$cshowList :: [SingleQueryArgumentProperty] -> ShowS
showList :: [SingleQueryArgumentProperty] -> ShowS
Prelude.Show)
mkSingleQueryArgumentProperty ::
Value Prelude.Text -> SingleQueryArgumentProperty
mkSingleQueryArgumentProperty :: Value Text -> SingleQueryArgumentProperty
mkSingleQueryArgumentProperty Value Text
name
= SingleQueryArgumentProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties SingleQueryArgumentProperty where
toResourceProperties :: SingleQueryArgumentProperty -> ResourceProperties
toResourceProperties SingleQueryArgumentProperty {()
Value Text
haddock_workaround_ :: SingleQueryArgumentProperty -> ()
name :: SingleQueryArgumentProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.SingleQueryArgument",
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]}
instance JSON.ToJSON SingleQueryArgumentProperty where
toJSON :: SingleQueryArgumentProperty -> Value
toJSON SingleQueryArgumentProperty {()
Value Text
haddock_workaround_ :: SingleQueryArgumentProperty -> ()
name :: SingleQueryArgumentProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= [(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]
instance Property "Name" SingleQueryArgumentProperty where
type PropertyType "Name" SingleQueryArgumentProperty = Value Prelude.Text
set :: PropertyType "Name" SingleQueryArgumentProperty
-> SingleQueryArgumentProperty -> SingleQueryArgumentProperty
set PropertyType "Name" SingleQueryArgumentProperty
newValue SingleQueryArgumentProperty {()
Value Text
haddock_workaround_ :: SingleQueryArgumentProperty -> ()
name :: SingleQueryArgumentProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= SingleQueryArgumentProperty {name :: Value Text
name = PropertyType "Name" SingleQueryArgumentProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}