module Stratosphere.WAFRegional.Rule.PredicateProperty (
PredicateProperty(..), mkPredicateProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredicateProperty
=
PredicateProperty {PredicateProperty -> ()
haddock_workaround_ :: (),
PredicateProperty -> Value Text
dataId :: (Value Prelude.Text),
PredicateProperty -> Value Bool
negated :: (Value Prelude.Bool),
PredicateProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (PredicateProperty -> PredicateProperty -> Bool
(PredicateProperty -> PredicateProperty -> Bool)
-> (PredicateProperty -> PredicateProperty -> Bool)
-> Eq PredicateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredicateProperty -> PredicateProperty -> Bool
== :: PredicateProperty -> PredicateProperty -> Bool
$c/= :: PredicateProperty -> PredicateProperty -> Bool
/= :: PredicateProperty -> PredicateProperty -> Bool
Prelude.Eq, Int -> PredicateProperty -> ShowS
[PredicateProperty] -> ShowS
PredicateProperty -> String
(Int -> PredicateProperty -> ShowS)
-> (PredicateProperty -> String)
-> ([PredicateProperty] -> ShowS)
-> Show PredicateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredicateProperty -> ShowS
showsPrec :: Int -> PredicateProperty -> ShowS
$cshow :: PredicateProperty -> String
show :: PredicateProperty -> String
$cshowList :: [PredicateProperty] -> ShowS
showList :: [PredicateProperty] -> ShowS
Prelude.Show)
mkPredicateProperty ::
Value Prelude.Text
-> Value Prelude.Bool -> Value Prelude.Text -> PredicateProperty
mkPredicateProperty :: Value Text -> Value Bool -> Value Text -> PredicateProperty
mkPredicateProperty Value Text
dataId Value Bool
negated Value Text
type'
= PredicateProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dataId :: Value Text
dataId = Value Text
dataId, negated :: Value Bool
negated = Value Bool
negated,
type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties PredicateProperty where
toResourceProperties :: PredicateProperty -> ResourceProperties
toResourceProperties PredicateProperty {()
Value Bool
Value Text
haddock_workaround_ :: PredicateProperty -> ()
dataId :: PredicateProperty -> Value Text
negated :: PredicateProperty -> Value Bool
type' :: PredicateProperty -> Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFRegional::Rule.Predicate",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DataId" 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
dataId, Key
"Negated" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
negated,
Key
"Type" 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
type']}
instance JSON.ToJSON PredicateProperty where
toJSON :: PredicateProperty -> Value
toJSON PredicateProperty {()
Value Bool
Value Text
haddock_workaround_ :: PredicateProperty -> ()
dataId :: PredicateProperty -> Value Text
negated :: PredicateProperty -> Value Bool
type' :: PredicateProperty -> Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"DataId" 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
dataId, Key
"Negated" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
negated,
Key
"Type" 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
type']
instance Property "DataId" PredicateProperty where
type PropertyType "DataId" PredicateProperty = Value Prelude.Text
set :: PropertyType "DataId" PredicateProperty
-> PredicateProperty -> PredicateProperty
set PropertyType "DataId" PredicateProperty
newValue PredicateProperty {()
Value Bool
Value Text
haddock_workaround_ :: PredicateProperty -> ()
dataId :: PredicateProperty -> Value Text
negated :: PredicateProperty -> Value Bool
type' :: PredicateProperty -> Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
type' :: Value Text
..}
= PredicateProperty {dataId :: Value Text
dataId = PropertyType "DataId" PredicateProperty
Value Text
newValue, ()
Value Bool
Value Text
haddock_workaround_ :: ()
negated :: Value Bool
type' :: Value Text
haddock_workaround_ :: ()
negated :: Value Bool
type' :: Value Text
..}
instance Property "Negated" PredicateProperty where
type PropertyType "Negated" PredicateProperty = Value Prelude.Bool
set :: PropertyType "Negated" PredicateProperty
-> PredicateProperty -> PredicateProperty
set PropertyType "Negated" PredicateProperty
newValue PredicateProperty {()
Value Bool
Value Text
haddock_workaround_ :: PredicateProperty -> ()
dataId :: PredicateProperty -> Value Text
negated :: PredicateProperty -> Value Bool
type' :: PredicateProperty -> Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
type' :: Value Text
..}
= PredicateProperty {negated :: Value Bool
negated = PropertyType "Negated" PredicateProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
dataId :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
dataId :: Value Text
type' :: Value Text
..}
instance Property "Type" PredicateProperty where
type PropertyType "Type" PredicateProperty = Value Prelude.Text
set :: PropertyType "Type" PredicateProperty
-> PredicateProperty -> PredicateProperty
set PropertyType "Type" PredicateProperty
newValue PredicateProperty {()
Value Bool
Value Text
haddock_workaround_ :: PredicateProperty -> ()
dataId :: PredicateProperty -> Value Text
negated :: PredicateProperty -> Value Bool
type' :: PredicateProperty -> Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
type' :: Value Text
..}
= PredicateProperty {type' :: Value Text
type' = PropertyType "Type" PredicateProperty
Value Text
newValue, ()
Value Bool
Value Text
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
haddock_workaround_ :: ()
dataId :: Value Text
negated :: Value Bool
..}