module Stratosphere.EntityResolution.MatchingWorkflow.InputSourceProperty (
        InputSourceProperty(..), mkInputSourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputSourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-inputsource.html>
    InputSourceProperty {InputSourceProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-inputsource.html#cfn-entityresolution-matchingworkflow-inputsource-applynormalization>
                         InputSourceProperty -> Maybe (Value Bool)
applyNormalization :: (Prelude.Maybe (Value Prelude.Bool)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-inputsource.html#cfn-entityresolution-matchingworkflow-inputsource-inputsourcearn>
                         InputSourceProperty -> Value Text
inputSourceARN :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-inputsource.html#cfn-entityresolution-matchingworkflow-inputsource-schemaarn>
                         InputSourceProperty -> Value Text
schemaArn :: (Value Prelude.Text)}
  deriving stock (InputSourceProperty -> InputSourceProperty -> Bool
(InputSourceProperty -> InputSourceProperty -> Bool)
-> (InputSourceProperty -> InputSourceProperty -> Bool)
-> Eq InputSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputSourceProperty -> InputSourceProperty -> Bool
== :: InputSourceProperty -> InputSourceProperty -> Bool
$c/= :: InputSourceProperty -> InputSourceProperty -> Bool
/= :: InputSourceProperty -> InputSourceProperty -> Bool
Prelude.Eq, Int -> InputSourceProperty -> ShowS
[InputSourceProperty] -> ShowS
InputSourceProperty -> String
(Int -> InputSourceProperty -> ShowS)
-> (InputSourceProperty -> String)
-> ([InputSourceProperty] -> ShowS)
-> Show InputSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputSourceProperty -> ShowS
showsPrec :: Int -> InputSourceProperty -> ShowS
$cshow :: InputSourceProperty -> String
show :: InputSourceProperty -> String
$cshowList :: [InputSourceProperty] -> ShowS
showList :: [InputSourceProperty] -> ShowS
Prelude.Show)
mkInputSourceProperty ::
  Value Prelude.Text -> Value Prelude.Text -> InputSourceProperty
mkInputSourceProperty :: Value Text -> Value Text -> InputSourceProperty
mkInputSourceProperty Value Text
inputSourceARN Value Text
schemaArn
  = InputSourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputSourceARN :: Value Text
inputSourceARN = Value Text
inputSourceARN,
       schemaArn :: Value Text
schemaArn = Value Text
schemaArn, applyNormalization :: Maybe (Value Bool)
applyNormalization = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputSourceProperty where
  toResourceProperties :: InputSourceProperty -> ResourceProperties
toResourceProperties InputSourceProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: InputSourceProperty -> ()
applyNormalization :: InputSourceProperty -> Maybe (Value Bool)
inputSourceARN :: InputSourceProperty -> Value Text
schemaArn :: InputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EntityResolution::MatchingWorkflow.InputSource",
         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
"InputSourceARN" 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
inputSourceARN,
                            Key
"SchemaArn" 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
schemaArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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..=) Key
"ApplyNormalization" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
applyNormalization]))}
instance JSON.ToJSON InputSourceProperty where
  toJSON :: InputSourceProperty -> Value
toJSON InputSourceProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: InputSourceProperty -> ()
applyNormalization :: InputSourceProperty -> Maybe (Value Bool)
inputSourceARN :: InputSourceProperty -> Value Text
schemaArn :: InputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
    = [(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
"InputSourceARN" 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
inputSourceARN,
               Key
"SchemaArn" 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
schemaArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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..=) Key
"ApplyNormalization" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
applyNormalization])))
instance Property "ApplyNormalization" InputSourceProperty where
  type PropertyType "ApplyNormalization" InputSourceProperty = Value Prelude.Bool
  set :: PropertyType "ApplyNormalization" InputSourceProperty
-> InputSourceProperty -> InputSourceProperty
set PropertyType "ApplyNormalization" InputSourceProperty
newValue InputSourceProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: InputSourceProperty -> ()
applyNormalization :: InputSourceProperty -> Maybe (Value Bool)
inputSourceARN :: InputSourceProperty -> Value Text
schemaArn :: InputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
    = InputSourceProperty
        {applyNormalization :: Maybe (Value Bool)
applyNormalization = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplyNormalization" InputSourceProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
inputSourceARN :: Value Text
schemaArn :: Value Text
haddock_workaround_ :: ()
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
instance Property "InputSourceARN" InputSourceProperty where
  type PropertyType "InputSourceARN" InputSourceProperty = Value Prelude.Text
  set :: PropertyType "InputSourceARN" InputSourceProperty
-> InputSourceProperty -> InputSourceProperty
set PropertyType "InputSourceARN" InputSourceProperty
newValue InputSourceProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: InputSourceProperty -> ()
applyNormalization :: InputSourceProperty -> Maybe (Value Bool)
inputSourceARN :: InputSourceProperty -> Value Text
schemaArn :: InputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
    = InputSourceProperty {inputSourceARN :: Value Text
inputSourceARN = PropertyType "InputSourceARN" InputSourceProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
schemaArn :: Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
schemaArn :: Value Text
..}
instance Property "SchemaArn" InputSourceProperty where
  type PropertyType "SchemaArn" InputSourceProperty = Value Prelude.Text
  set :: PropertyType "SchemaArn" InputSourceProperty
-> InputSourceProperty -> InputSourceProperty
set PropertyType "SchemaArn" InputSourceProperty
newValue InputSourceProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: InputSourceProperty -> ()
applyNormalization :: InputSourceProperty -> Maybe (Value Bool)
inputSourceARN :: InputSourceProperty -> Value Text
schemaArn :: InputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
schemaArn :: Value Text
..}
    = InputSourceProperty {schemaArn :: Value Text
schemaArn = PropertyType "SchemaArn" InputSourceProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
inputSourceARN :: Value Text
..}