module Stratosphere.EntityResolution.IdMappingWorkflow.ProviderPropertiesProperty (
        module Exports, ProviderPropertiesProperty(..),
        mkProviderPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.IdMappingWorkflow.IntermediateSourceConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProviderPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-providerproperties.html>
    ProviderPropertiesProperty {ProviderPropertiesProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-providerproperties.html#cfn-entityresolution-idmappingworkflow-providerproperties-intermediatesourceconfiguration>
                                ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
intermediateSourceConfiguration :: (Prelude.Maybe IntermediateSourceConfigurationProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-providerproperties.html#cfn-entityresolution-idmappingworkflow-providerproperties-providerconfiguration>
                                ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerConfiguration :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-providerproperties.html#cfn-entityresolution-idmappingworkflow-providerproperties-providerservicearn>
                                ProviderPropertiesProperty -> Value Text
providerServiceArn :: (Value Prelude.Text)}
  deriving stock (ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool
(ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool)
-> (ProviderPropertiesProperty
    -> ProviderPropertiesProperty -> Bool)
-> Eq ProviderPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool
== :: ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool
$c/= :: ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool
/= :: ProviderPropertiesProperty -> ProviderPropertiesProperty -> Bool
Prelude.Eq, Int -> ProviderPropertiesProperty -> ShowS
[ProviderPropertiesProperty] -> ShowS
ProviderPropertiesProperty -> String
(Int -> ProviderPropertiesProperty -> ShowS)
-> (ProviderPropertiesProperty -> String)
-> ([ProviderPropertiesProperty] -> ShowS)
-> Show ProviderPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProviderPropertiesProperty -> ShowS
showsPrec :: Int -> ProviderPropertiesProperty -> ShowS
$cshow :: ProviderPropertiesProperty -> String
show :: ProviderPropertiesProperty -> String
$cshowList :: [ProviderPropertiesProperty] -> ShowS
showList :: [ProviderPropertiesProperty] -> ShowS
Prelude.Show)
mkProviderPropertiesProperty ::
  Value Prelude.Text -> ProviderPropertiesProperty
mkProviderPropertiesProperty :: Value Text -> ProviderPropertiesProperty
mkProviderPropertiesProperty Value Text
providerServiceArn
  = ProviderPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), providerServiceArn :: Value Text
providerServiceArn = Value Text
providerServiceArn,
       intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
intermediateSourceConfiguration = Maybe IntermediateSourceConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       providerConfiguration :: Maybe (Map Text (Value Text))
providerConfiguration = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProviderPropertiesProperty where
  toResourceProperties :: ProviderPropertiesProperty -> ResourceProperties
toResourceProperties ProviderPropertiesProperty {Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ProviderPropertiesProperty -> ()
intermediateSourceConfiguration :: ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerServiceArn :: ProviderPropertiesProperty -> Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EntityResolution::IdMappingWorkflow.ProviderProperties",
         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
"ProviderServiceArn" 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
providerServiceArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> IntermediateSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IntermediateSourceConfiguration"
                                 (IntermediateSourceConfigurationProperty -> (Key, Value))
-> Maybe IntermediateSourceConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IntermediateSourceConfigurationProperty
intermediateSourceConfiguration,
                               Key -> Map Text (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
"ProviderConfiguration"
                                 (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
providerConfiguration]))}
instance JSON.ToJSON ProviderPropertiesProperty where
  toJSON :: ProviderPropertiesProperty -> Value
toJSON ProviderPropertiesProperty {Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ProviderPropertiesProperty -> ()
intermediateSourceConfiguration :: ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerServiceArn :: ProviderPropertiesProperty -> Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: 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
"ProviderServiceArn" 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
providerServiceArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> IntermediateSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IntermediateSourceConfiguration"
                    (IntermediateSourceConfigurationProperty -> (Key, Value))
-> Maybe IntermediateSourceConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IntermediateSourceConfigurationProperty
intermediateSourceConfiguration,
                  Key -> Map Text (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
"ProviderConfiguration"
                    (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
providerConfiguration])))
instance Property "IntermediateSourceConfiguration" ProviderPropertiesProperty where
  type PropertyType "IntermediateSourceConfiguration" ProviderPropertiesProperty = IntermediateSourceConfigurationProperty
  set :: PropertyType
  "IntermediateSourceConfiguration" ProviderPropertiesProperty
-> ProviderPropertiesProperty -> ProviderPropertiesProperty
set PropertyType
  "IntermediateSourceConfiguration" ProviderPropertiesProperty
newValue ProviderPropertiesProperty {Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ProviderPropertiesProperty -> ()
intermediateSourceConfiguration :: ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerServiceArn :: ProviderPropertiesProperty -> Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
..}
    = ProviderPropertiesProperty
        {intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
intermediateSourceConfiguration = IntermediateSourceConfigurationProperty
-> Maybe IntermediateSourceConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IntermediateSourceConfiguration" ProviderPropertiesProperty
IntermediateSourceConfigurationProperty
newValue, Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
haddock_workaround_ :: ()
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
..}
instance Property "ProviderConfiguration" ProviderPropertiesProperty where
  type PropertyType "ProviderConfiguration" ProviderPropertiesProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "ProviderConfiguration" ProviderPropertiesProperty
-> ProviderPropertiesProperty -> ProviderPropertiesProperty
set PropertyType "ProviderConfiguration" ProviderPropertiesProperty
newValue ProviderPropertiesProperty {Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ProviderPropertiesProperty -> ()
intermediateSourceConfiguration :: ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerServiceArn :: ProviderPropertiesProperty -> Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
..}
    = ProviderPropertiesProperty
        {providerConfiguration :: Maybe (Map Text (Value Text))
providerConfiguration = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "ProviderConfiguration" ProviderPropertiesProperty
newValue, Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerServiceArn :: Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerServiceArn :: Value Text
..}
instance Property "ProviderServiceArn" ProviderPropertiesProperty where
  type PropertyType "ProviderServiceArn" ProviderPropertiesProperty = Value Prelude.Text
  set :: PropertyType "ProviderServiceArn" ProviderPropertiesProperty
-> ProviderPropertiesProperty -> ProviderPropertiesProperty
set PropertyType "ProviderServiceArn" ProviderPropertiesProperty
newValue ProviderPropertiesProperty {Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ProviderPropertiesProperty -> ()
intermediateSourceConfiguration :: ProviderPropertiesProperty
-> Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: ProviderPropertiesProperty -> Maybe (Map Text (Value Text))
providerServiceArn :: ProviderPropertiesProperty -> Value Text
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
providerServiceArn :: Value Text
..}
    = ProviderPropertiesProperty {providerServiceArn :: Value Text
providerServiceArn = PropertyType "ProviderServiceArn" ProviderPropertiesProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe IntermediateSourceConfigurationProperty
()
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
intermediateSourceConfiguration :: Maybe IntermediateSourceConfigurationProperty
providerConfiguration :: Maybe (Map Text (Value Text))
..}