module Stratosphere.EntityResolution.MatchingWorkflow.RuleConditionPropertiesProperty (
        module Exports, RuleConditionPropertiesProperty(..),
        mkRuleConditionPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.MatchingWorkflow.RuleConditionProperty as Exports
import Stratosphere.ResourceProperties
data RuleConditionPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-ruleconditionproperties.html>
    RuleConditionPropertiesProperty {RuleConditionPropertiesProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-ruleconditionproperties.html#cfn-entityresolution-matchingworkflow-ruleconditionproperties-rules>
                                     RuleConditionPropertiesProperty -> [RuleConditionProperty]
rules :: [RuleConditionProperty]}
  deriving stock (RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty -> Bool
(RuleConditionPropertiesProperty
 -> RuleConditionPropertiesProperty -> Bool)
-> (RuleConditionPropertiesProperty
    -> RuleConditionPropertiesProperty -> Bool)
-> Eq RuleConditionPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty -> Bool
== :: RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty -> Bool
$c/= :: RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty -> Bool
/= :: RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty -> Bool
Prelude.Eq, Int -> RuleConditionPropertiesProperty -> ShowS
[RuleConditionPropertiesProperty] -> ShowS
RuleConditionPropertiesProperty -> String
(Int -> RuleConditionPropertiesProperty -> ShowS)
-> (RuleConditionPropertiesProperty -> String)
-> ([RuleConditionPropertiesProperty] -> ShowS)
-> Show RuleConditionPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuleConditionPropertiesProperty -> ShowS
showsPrec :: Int -> RuleConditionPropertiesProperty -> ShowS
$cshow :: RuleConditionPropertiesProperty -> String
show :: RuleConditionPropertiesProperty -> String
$cshowList :: [RuleConditionPropertiesProperty] -> ShowS
showList :: [RuleConditionPropertiesProperty] -> ShowS
Prelude.Show)
mkRuleConditionPropertiesProperty ::
  [RuleConditionProperty] -> RuleConditionPropertiesProperty
mkRuleConditionPropertiesProperty :: [RuleConditionProperty] -> RuleConditionPropertiesProperty
mkRuleConditionPropertiesProperty [RuleConditionProperty]
rules
  = RuleConditionPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), rules :: [RuleConditionProperty]
rules = [RuleConditionProperty]
rules}
instance ToResourceProperties RuleConditionPropertiesProperty where
  toResourceProperties :: RuleConditionPropertiesProperty -> ResourceProperties
toResourceProperties RuleConditionPropertiesProperty {[RuleConditionProperty]
()
haddock_workaround_ :: RuleConditionPropertiesProperty -> ()
rules :: RuleConditionPropertiesProperty -> [RuleConditionProperty]
haddock_workaround_ :: ()
rules :: [RuleConditionProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EntityResolution::MatchingWorkflow.RuleConditionProperties",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Rules" Key -> [RuleConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleConditionProperty]
rules]}
instance JSON.ToJSON RuleConditionPropertiesProperty where
  toJSON :: RuleConditionPropertiesProperty -> Value
toJSON RuleConditionPropertiesProperty {[RuleConditionProperty]
()
haddock_workaround_ :: RuleConditionPropertiesProperty -> ()
rules :: RuleConditionPropertiesProperty -> [RuleConditionProperty]
haddock_workaround_ :: ()
rules :: [RuleConditionProperty]
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Rules" Key -> [RuleConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [RuleConditionProperty]
rules]
instance Property "Rules" RuleConditionPropertiesProperty where
  type PropertyType "Rules" RuleConditionPropertiesProperty = [RuleConditionProperty]
  set :: PropertyType "Rules" RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty
-> RuleConditionPropertiesProperty
set PropertyType "Rules" RuleConditionPropertiesProperty
newValue RuleConditionPropertiesProperty {[RuleConditionProperty]
()
haddock_workaround_ :: RuleConditionPropertiesProperty -> ()
rules :: RuleConditionPropertiesProperty -> [RuleConditionProperty]
haddock_workaround_ :: ()
rules :: [RuleConditionProperty]
..}
    = RuleConditionPropertiesProperty {rules :: [RuleConditionProperty]
rules = [RuleConditionProperty]
PropertyType "Rules" RuleConditionPropertiesProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}