module Stratosphere.EntityResolution.MatchingWorkflow.RuleBasedPropertiesProperty (
module Exports, RuleBasedPropertiesProperty(..),
mkRuleBasedPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.MatchingWorkflow.RuleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuleBasedPropertiesProperty
=
RuleBasedPropertiesProperty {RuleBasedPropertiesProperty -> ()
haddock_workaround_ :: (),
RuleBasedPropertiesProperty -> Value Text
attributeMatchingModel :: (Value Prelude.Text),
RuleBasedPropertiesProperty -> Maybe (Value Text)
matchPurpose :: (Prelude.Maybe (Value Prelude.Text)),
RuleBasedPropertiesProperty -> [RuleProperty]
rules :: [RuleProperty]}
deriving stock (RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty -> Bool
(RuleBasedPropertiesProperty
-> RuleBasedPropertiesProperty -> Bool)
-> (RuleBasedPropertiesProperty
-> RuleBasedPropertiesProperty -> Bool)
-> Eq RuleBasedPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty -> Bool
== :: RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty -> Bool
$c/= :: RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty -> Bool
/= :: RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty -> Bool
Prelude.Eq, Int -> RuleBasedPropertiesProperty -> ShowS
[RuleBasedPropertiesProperty] -> ShowS
RuleBasedPropertiesProperty -> String
(Int -> RuleBasedPropertiesProperty -> ShowS)
-> (RuleBasedPropertiesProperty -> String)
-> ([RuleBasedPropertiesProperty] -> ShowS)
-> Show RuleBasedPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuleBasedPropertiesProperty -> ShowS
showsPrec :: Int -> RuleBasedPropertiesProperty -> ShowS
$cshow :: RuleBasedPropertiesProperty -> String
show :: RuleBasedPropertiesProperty -> String
$cshowList :: [RuleBasedPropertiesProperty] -> ShowS
showList :: [RuleBasedPropertiesProperty] -> ShowS
Prelude.Show)
mkRuleBasedPropertiesProperty ::
Value Prelude.Text -> [RuleProperty] -> RuleBasedPropertiesProperty
mkRuleBasedPropertiesProperty :: Value Text -> [RuleProperty] -> RuleBasedPropertiesProperty
mkRuleBasedPropertiesProperty Value Text
attributeMatchingModel [RuleProperty]
rules
= RuleBasedPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
attributeMatchingModel :: Value Text
attributeMatchingModel = Value Text
attributeMatchingModel, rules :: [RuleProperty]
rules = [RuleProperty]
rules,
matchPurpose :: Maybe (Value Text)
matchPurpose = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuleBasedPropertiesProperty where
toResourceProperties :: RuleBasedPropertiesProperty -> ResourceProperties
toResourceProperties RuleBasedPropertiesProperty {[RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleBasedPropertiesProperty -> ()
attributeMatchingModel :: RuleBasedPropertiesProperty -> Value Text
matchPurpose :: RuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: RuleBasedPropertiesProperty -> [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EntityResolution::MatchingWorkflow.RuleBasedProperties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AttributeMatchingModel" 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
attributeMatchingModel,
Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"MatchPurpose" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
matchPurpose]))}
instance JSON.ToJSON RuleBasedPropertiesProperty where
toJSON :: RuleBasedPropertiesProperty -> Value
toJSON RuleBasedPropertiesProperty {[RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleBasedPropertiesProperty -> ()
attributeMatchingModel :: RuleBasedPropertiesProperty -> Value Text
matchPurpose :: RuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: RuleBasedPropertiesProperty -> [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AttributeMatchingModel" 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
attributeMatchingModel,
Key
"Rules" Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleProperty]
rules]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"MatchPurpose" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
matchPurpose])))
instance Property "AttributeMatchingModel" RuleBasedPropertiesProperty where
type PropertyType "AttributeMatchingModel" RuleBasedPropertiesProperty = Value Prelude.Text
set :: PropertyType "AttributeMatchingModel" RuleBasedPropertiesProperty
-> RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty
set PropertyType "AttributeMatchingModel" RuleBasedPropertiesProperty
newValue RuleBasedPropertiesProperty {[RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleBasedPropertiesProperty -> ()
attributeMatchingModel :: RuleBasedPropertiesProperty -> Value Text
matchPurpose :: RuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: RuleBasedPropertiesProperty -> [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
= RuleBasedPropertiesProperty
{attributeMatchingModel :: Value Text
attributeMatchingModel = PropertyType "AttributeMatchingModel" RuleBasedPropertiesProperty
Value Text
newValue, [RuleProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
haddock_workaround_ :: ()
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
instance Property "MatchPurpose" RuleBasedPropertiesProperty where
type PropertyType "MatchPurpose" RuleBasedPropertiesProperty = Value Prelude.Text
set :: PropertyType "MatchPurpose" RuleBasedPropertiesProperty
-> RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty
set PropertyType "MatchPurpose" RuleBasedPropertiesProperty
newValue RuleBasedPropertiesProperty {[RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleBasedPropertiesProperty -> ()
attributeMatchingModel :: RuleBasedPropertiesProperty -> Value Text
matchPurpose :: RuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: RuleBasedPropertiesProperty -> [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
= RuleBasedPropertiesProperty
{matchPurpose :: Maybe (Value Text)
matchPurpose = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchPurpose" RuleBasedPropertiesProperty
Value Text
newValue, [RuleProperty]
()
Value Text
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
rules :: [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
rules :: [RuleProperty]
..}
instance Property "Rules" RuleBasedPropertiesProperty where
type PropertyType "Rules" RuleBasedPropertiesProperty = [RuleProperty]
set :: PropertyType "Rules" RuleBasedPropertiesProperty
-> RuleBasedPropertiesProperty -> RuleBasedPropertiesProperty
set PropertyType "Rules" RuleBasedPropertiesProperty
newValue RuleBasedPropertiesProperty {[RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuleBasedPropertiesProperty -> ()
attributeMatchingModel :: RuleBasedPropertiesProperty -> Value Text
matchPurpose :: RuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: RuleBasedPropertiesProperty -> [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
rules :: [RuleProperty]
..}
= RuleBasedPropertiesProperty {rules :: [RuleProperty]
rules = [RuleProperty]
PropertyType "Rules" RuleBasedPropertiesProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
matchPurpose :: Maybe (Value Text)
..}