module Stratosphere.EntityResolution.IdMappingWorkflow.IdMappingRuleBasedPropertiesProperty (
        module Exports, IdMappingRuleBasedPropertiesProperty(..),
        mkIdMappingRuleBasedPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.IdMappingWorkflow.RuleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdMappingRuleBasedPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html>
    IdMappingRuleBasedPropertiesProperty {IdMappingRuleBasedPropertiesProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-attributematchingmodel>
                                          IdMappingRuleBasedPropertiesProperty -> Value Text
attributeMatchingModel :: (Value Prelude.Text),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-recordmatchingmodel>
                                          IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: (Value Prelude.Text),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-ruledefinitiontype>
                                          IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
ruleDefinitionType :: (Prelude.Maybe (Value Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-rules>
                                          IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
rules :: (Prelude.Maybe [RuleProperty])}
  deriving stock (IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty -> Bool
(IdMappingRuleBasedPropertiesProperty
 -> IdMappingRuleBasedPropertiesProperty -> Bool)
-> (IdMappingRuleBasedPropertiesProperty
    -> IdMappingRuleBasedPropertiesProperty -> Bool)
-> Eq IdMappingRuleBasedPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty -> Bool
== :: IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty -> Bool
$c/= :: IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty -> Bool
/= :: IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty -> Bool
Prelude.Eq, Int -> IdMappingRuleBasedPropertiesProperty -> ShowS
[IdMappingRuleBasedPropertiesProperty] -> ShowS
IdMappingRuleBasedPropertiesProperty -> String
(Int -> IdMappingRuleBasedPropertiesProperty -> ShowS)
-> (IdMappingRuleBasedPropertiesProperty -> String)
-> ([IdMappingRuleBasedPropertiesProperty] -> ShowS)
-> Show IdMappingRuleBasedPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdMappingRuleBasedPropertiesProperty -> ShowS
showsPrec :: Int -> IdMappingRuleBasedPropertiesProperty -> ShowS
$cshow :: IdMappingRuleBasedPropertiesProperty -> String
show :: IdMappingRuleBasedPropertiesProperty -> String
$cshowList :: [IdMappingRuleBasedPropertiesProperty] -> ShowS
showList :: [IdMappingRuleBasedPropertiesProperty] -> ShowS
Prelude.Show)
mkIdMappingRuleBasedPropertiesProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> IdMappingRuleBasedPropertiesProperty
mkIdMappingRuleBasedPropertiesProperty :: Value Text -> Value Text -> IdMappingRuleBasedPropertiesProperty
mkIdMappingRuleBasedPropertiesProperty
  Value Text
attributeMatchingModel
  Value Text
recordMatchingModel
  = IdMappingRuleBasedPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       attributeMatchingModel :: Value Text
attributeMatchingModel = Value Text
attributeMatchingModel,
       recordMatchingModel :: Value Text
recordMatchingModel = Value Text
recordMatchingModel,
       ruleDefinitionType :: Maybe (Value Text)
ruleDefinitionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, rules :: Maybe [RuleProperty]
rules = Maybe [RuleProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdMappingRuleBasedPropertiesProperty where
  toResourceProperties :: IdMappingRuleBasedPropertiesProperty -> ResourceProperties
toResourceProperties IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EntityResolution::IdMappingWorkflow.IdMappingRuleBasedProperties",
         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
"RecordMatchingModel" 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
recordMatchingModel]
                           ([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
"RuleDefinitionType" (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)
ruleDefinitionType,
                               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..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules]))}
instance JSON.ToJSON IdMappingRuleBasedPropertiesProperty where
  toJSON :: IdMappingRuleBasedPropertiesProperty -> Value
toJSON IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [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
"RecordMatchingModel" 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
recordMatchingModel]
              ([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
"RuleDefinitionType" (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)
ruleDefinitionType,
                  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..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules])))
instance Property "AttributeMatchingModel" IdMappingRuleBasedPropertiesProperty where
  type PropertyType "AttributeMatchingModel" IdMappingRuleBasedPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "AttributeMatchingModel" IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
set PropertyType
  "AttributeMatchingModel" IdMappingRuleBasedPropertiesProperty
newValue IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
    = IdMappingRuleBasedPropertiesProperty
        {attributeMatchingModel :: Value Text
attributeMatchingModel = PropertyType
  "AttributeMatchingModel" IdMappingRuleBasedPropertiesProperty
Value Text
newValue, Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
instance Property "RecordMatchingModel" IdMappingRuleBasedPropertiesProperty where
  type PropertyType "RecordMatchingModel" IdMappingRuleBasedPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "RecordMatchingModel" IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
set PropertyType
  "RecordMatchingModel" IdMappingRuleBasedPropertiesProperty
newValue IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
    = IdMappingRuleBasedPropertiesProperty
        {recordMatchingModel :: Value Text
recordMatchingModel = PropertyType
  "RecordMatchingModel" IdMappingRuleBasedPropertiesProperty
Value Text
newValue, Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
instance Property "RuleDefinitionType" IdMappingRuleBasedPropertiesProperty where
  type PropertyType "RuleDefinitionType" IdMappingRuleBasedPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "RuleDefinitionType" IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
set PropertyType
  "RuleDefinitionType" IdMappingRuleBasedPropertiesProperty
newValue IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
    = IdMappingRuleBasedPropertiesProperty
        {ruleDefinitionType :: Maybe (Value Text)
ruleDefinitionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "RuleDefinitionType" IdMappingRuleBasedPropertiesProperty
Value Text
newValue, Maybe [RuleProperty]
()
Value Text
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
rules :: Maybe [RuleProperty]
..}
instance Property "Rules" IdMappingRuleBasedPropertiesProperty where
  type PropertyType "Rules" IdMappingRuleBasedPropertiesProperty = [RuleProperty]
  set :: PropertyType "Rules" IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
-> IdMappingRuleBasedPropertiesProperty
set PropertyType "Rules" IdMappingRuleBasedPropertiesProperty
newValue IdMappingRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdMappingRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
recordMatchingModel :: IdMappingRuleBasedPropertiesProperty -> Value Text
ruleDefinitionType :: IdMappingRuleBasedPropertiesProperty -> Maybe (Value Text)
rules :: IdMappingRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
rules :: Maybe [RuleProperty]
..}
    = IdMappingRuleBasedPropertiesProperty
        {rules :: Maybe [RuleProperty]
rules = [RuleProperty] -> Maybe [RuleProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RuleProperty]
PropertyType "Rules" IdMappingRuleBasedPropertiesProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
haddock_workaround_ :: ()
attributeMatchingModel :: Value Text
recordMatchingModel :: Value Text
ruleDefinitionType :: Maybe (Value Text)
..}