module Stratosphere.CustomerProfiles.Domain.MatchingRuleProperty (
MatchingRuleProperty(..), mkMatchingRuleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MatchingRuleProperty
=
MatchingRuleProperty {MatchingRuleProperty -> ()
haddock_workaround_ :: (),
MatchingRuleProperty -> ValueList Text
rule :: (ValueList Prelude.Text)}
deriving stock (MatchingRuleProperty -> MatchingRuleProperty -> Bool
(MatchingRuleProperty -> MatchingRuleProperty -> Bool)
-> (MatchingRuleProperty -> MatchingRuleProperty -> Bool)
-> Eq MatchingRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MatchingRuleProperty -> MatchingRuleProperty -> Bool
== :: MatchingRuleProperty -> MatchingRuleProperty -> Bool
$c/= :: MatchingRuleProperty -> MatchingRuleProperty -> Bool
/= :: MatchingRuleProperty -> MatchingRuleProperty -> Bool
Prelude.Eq, Int -> MatchingRuleProperty -> ShowS
[MatchingRuleProperty] -> ShowS
MatchingRuleProperty -> String
(Int -> MatchingRuleProperty -> ShowS)
-> (MatchingRuleProperty -> String)
-> ([MatchingRuleProperty] -> ShowS)
-> Show MatchingRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MatchingRuleProperty -> ShowS
showsPrec :: Int -> MatchingRuleProperty -> ShowS
$cshow :: MatchingRuleProperty -> String
show :: MatchingRuleProperty -> String
$cshowList :: [MatchingRuleProperty] -> ShowS
showList :: [MatchingRuleProperty] -> ShowS
Prelude.Show)
mkMatchingRuleProperty ::
ValueList Prelude.Text -> MatchingRuleProperty
mkMatchingRuleProperty :: ValueList Text -> MatchingRuleProperty
mkMatchingRuleProperty ValueList Text
rule
= MatchingRuleProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), rule :: ValueList Text
rule = ValueList Text
rule}
instance ToResourceProperties MatchingRuleProperty where
toResourceProperties :: MatchingRuleProperty -> ResourceProperties
toResourceProperties MatchingRuleProperty {()
ValueList Text
haddock_workaround_ :: MatchingRuleProperty -> ()
rule :: MatchingRuleProperty -> ValueList Text
haddock_workaround_ :: ()
rule :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Domain.MatchingRule",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Rule" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
rule]}
instance JSON.ToJSON MatchingRuleProperty where
toJSON :: MatchingRuleProperty -> Value
toJSON MatchingRuleProperty {()
ValueList Text
haddock_workaround_ :: MatchingRuleProperty -> ()
rule :: MatchingRuleProperty -> ValueList Text
haddock_workaround_ :: ()
rule :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Rule" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
rule]
instance Property "Rule" MatchingRuleProperty where
type PropertyType "Rule" MatchingRuleProperty = ValueList Prelude.Text
set :: PropertyType "Rule" MatchingRuleProperty
-> MatchingRuleProperty -> MatchingRuleProperty
set PropertyType "Rule" MatchingRuleProperty
newValue MatchingRuleProperty {()
ValueList Text
haddock_workaround_ :: MatchingRuleProperty -> ()
rule :: MatchingRuleProperty -> ValueList Text
haddock_workaround_ :: ()
rule :: ValueList Text
..}
= MatchingRuleProperty {rule :: ValueList Text
rule = PropertyType "Rule" MatchingRuleProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}