module Stratosphere.EntityResolution.MatchingWorkflow.OutputSourceProperty (
        module Exports, OutputSourceProperty(..), mkOutputSourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.MatchingWorkflow.OutputAttributeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputSourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-outputsource.html>
    OutputSourceProperty {OutputSourceProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-outputsource.html#cfn-entityresolution-matchingworkflow-outputsource-applynormalization>
                          OutputSourceProperty -> Maybe (Value Bool)
applyNormalization :: (Prelude.Maybe (Value Prelude.Bool)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-outputsource.html#cfn-entityresolution-matchingworkflow-outputsource-kmsarn>
                          OutputSourceProperty -> Maybe (Value Text)
kMSArn :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-outputsource.html#cfn-entityresolution-matchingworkflow-outputsource-output>
                          OutputSourceProperty -> [OutputAttributeProperty]
output :: [OutputAttributeProperty],
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-outputsource.html#cfn-entityresolution-matchingworkflow-outputsource-outputs3path>
                          OutputSourceProperty -> Value Text
outputS3Path :: (Value Prelude.Text)}
  deriving stock (OutputSourceProperty -> OutputSourceProperty -> Bool
(OutputSourceProperty -> OutputSourceProperty -> Bool)
-> (OutputSourceProperty -> OutputSourceProperty -> Bool)
-> Eq OutputSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputSourceProperty -> OutputSourceProperty -> Bool
== :: OutputSourceProperty -> OutputSourceProperty -> Bool
$c/= :: OutputSourceProperty -> OutputSourceProperty -> Bool
/= :: OutputSourceProperty -> OutputSourceProperty -> Bool
Prelude.Eq, Int -> OutputSourceProperty -> ShowS
[OutputSourceProperty] -> ShowS
OutputSourceProperty -> String
(Int -> OutputSourceProperty -> ShowS)
-> (OutputSourceProperty -> String)
-> ([OutputSourceProperty] -> ShowS)
-> Show OutputSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputSourceProperty -> ShowS
showsPrec :: Int -> OutputSourceProperty -> ShowS
$cshow :: OutputSourceProperty -> String
show :: OutputSourceProperty -> String
$cshowList :: [OutputSourceProperty] -> ShowS
showList :: [OutputSourceProperty] -> ShowS
Prelude.Show)
mkOutputSourceProperty ::
  [OutputAttributeProperty]
  -> Value Prelude.Text -> OutputSourceProperty
mkOutputSourceProperty :: [OutputAttributeProperty] -> Value Text -> OutputSourceProperty
mkOutputSourceProperty [OutputAttributeProperty]
output Value Text
outputS3Path
  = OutputSourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), output :: [OutputAttributeProperty]
output = [OutputAttributeProperty]
output,
       outputS3Path :: Value Text
outputS3Path = Value Text
outputS3Path, applyNormalization :: Maybe (Value Bool)
applyNormalization = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       kMSArn :: Maybe (Value Text)
kMSArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputSourceProperty where
  toResourceProperties :: OutputSourceProperty -> ResourceProperties
toResourceProperties OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EntityResolution::MatchingWorkflow.OutputSource",
         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
"Output" Key -> [OutputAttributeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [OutputAttributeProperty]
output, Key
"OutputS3Path" 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
outputS3Path]
                           ([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,
                               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
"KMSArn" (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)
kMSArn]))}
instance JSON.ToJSON OutputSourceProperty where
  toJSON :: OutputSourceProperty -> Value
toJSON OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: 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
"Output" Key -> [OutputAttributeProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [OutputAttributeProperty]
output, Key
"OutputS3Path" 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
outputS3Path]
              ([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,
                  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
"KMSArn" (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)
kMSArn])))
instance Property "ApplyNormalization" OutputSourceProperty where
  type PropertyType "ApplyNormalization" OutputSourceProperty = Value Prelude.Bool
  set :: PropertyType "ApplyNormalization" OutputSourceProperty
-> OutputSourceProperty -> OutputSourceProperty
set PropertyType "ApplyNormalization" OutputSourceProperty
newValue OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
    = OutputSourceProperty
        {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" OutputSourceProperty
Value Bool
newValue, [OutputAttributeProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
haddock_workaround_ :: ()
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
instance Property "KMSArn" OutputSourceProperty where
  type PropertyType "KMSArn" OutputSourceProperty = Value Prelude.Text
  set :: PropertyType "KMSArn" OutputSourceProperty
-> OutputSourceProperty -> OutputSourceProperty
set PropertyType "KMSArn" OutputSourceProperty
newValue OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
    = OutputSourceProperty {kMSArn :: Maybe (Value Text)
kMSArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KMSArn" OutputSourceProperty
Value Text
newValue, [OutputAttributeProperty]
Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
instance Property "Output" OutputSourceProperty where
  type PropertyType "Output" OutputSourceProperty = [OutputAttributeProperty]
  set :: PropertyType "Output" OutputSourceProperty
-> OutputSourceProperty -> OutputSourceProperty
set PropertyType "Output" OutputSourceProperty
newValue OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
    = OutputSourceProperty {output :: [OutputAttributeProperty]
output = [OutputAttributeProperty]
PropertyType "Output" OutputSourceProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
outputS3Path :: Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
outputS3Path :: Value Text
..}
instance Property "OutputS3Path" OutputSourceProperty where
  type PropertyType "OutputS3Path" OutputSourceProperty = Value Prelude.Text
  set :: PropertyType "OutputS3Path" OutputSourceProperty
-> OutputSourceProperty -> OutputSourceProperty
set PropertyType "OutputS3Path" OutputSourceProperty
newValue OutputSourceProperty {[OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputSourceProperty -> ()
applyNormalization :: OutputSourceProperty -> Maybe (Value Bool)
kMSArn :: OutputSourceProperty -> Maybe (Value Text)
output :: OutputSourceProperty -> [OutputAttributeProperty]
outputS3Path :: OutputSourceProperty -> Value Text
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
outputS3Path :: Value Text
..}
    = OutputSourceProperty {outputS3Path :: Value Text
outputS3Path = PropertyType "OutputS3Path" OutputSourceProperty
Value Text
newValue, [OutputAttributeProperty]
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
haddock_workaround_ :: ()
applyNormalization :: Maybe (Value Bool)
kMSArn :: Maybe (Value Text)
output :: [OutputAttributeProperty]
..}