module Stratosphere.AppFlow.Flow.SalesforceDestinationPropertiesProperty (
module Exports, SalesforceDestinationPropertiesProperty(..),
mkSalesforceDestinationPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SalesforceDestinationPropertiesProperty
=
SalesforceDestinationPropertiesProperty {SalesforceDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
dataTransferApi :: (Prelude.Maybe (Value Prelude.Text)),
SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
idFieldNames :: (Prelude.Maybe (ValueList Prelude.Text)),
SalesforceDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text),
SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
writeOperationType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool
(SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool)
-> (SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool)
-> Eq SalesforceDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool
== :: SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool
$c/= :: SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool
/= :: SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> SalesforceDestinationPropertiesProperty -> ShowS
[SalesforceDestinationPropertiesProperty] -> ShowS
SalesforceDestinationPropertiesProperty -> String
(Int -> SalesforceDestinationPropertiesProperty -> ShowS)
-> (SalesforceDestinationPropertiesProperty -> String)
-> ([SalesforceDestinationPropertiesProperty] -> ShowS)
-> Show SalesforceDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SalesforceDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> SalesforceDestinationPropertiesProperty -> ShowS
$cshow :: SalesforceDestinationPropertiesProperty -> String
show :: SalesforceDestinationPropertiesProperty -> String
$cshowList :: [SalesforceDestinationPropertiesProperty] -> ShowS
showList :: [SalesforceDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkSalesforceDestinationPropertiesProperty ::
Value Prelude.Text -> SalesforceDestinationPropertiesProperty
mkSalesforceDestinationPropertiesProperty :: Value Text -> SalesforceDestinationPropertiesProperty
mkSalesforceDestinationPropertiesProperty Value Text
object
= SalesforceDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
dataTransferApi :: Maybe (Value Text)
dataTransferApi = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = Maybe ErrorHandlingConfigProperty
forall a. Maybe a
Prelude.Nothing,
idFieldNames :: Maybe (ValueList Text)
idFieldNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
writeOperationType :: Maybe (Value Text)
writeOperationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SalesforceDestinationPropertiesProperty where
toResourceProperties :: SalesforceDestinationPropertiesProperty -> ResourceProperties
toResourceProperties SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.SalesforceDestinationProperties",
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
"Object" 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
object]
([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
"DataTransferApi" (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)
dataTransferApi,
Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig,
Key -> ValueList 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
"IdFieldNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
idFieldNames,
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
"WriteOperationType" (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)
writeOperationType]))}
instance JSON.ToJSON SalesforceDestinationPropertiesProperty where
toJSON :: SalesforceDestinationPropertiesProperty -> Value
toJSON SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (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
"Object" 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
object]
([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
"DataTransferApi" (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)
dataTransferApi,
Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig,
Key -> ValueList 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
"IdFieldNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
idFieldNames,
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
"WriteOperationType" (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)
writeOperationType])))
instance Property "DataTransferApi" SalesforceDestinationPropertiesProperty where
type PropertyType "DataTransferApi" SalesforceDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType
"DataTransferApi" SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
set PropertyType
"DataTransferApi" SalesforceDestinationPropertiesProperty
newValue SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= SalesforceDestinationPropertiesProperty
{dataTransferApi :: Maybe (Value Text)
dataTransferApi = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DataTransferApi" SalesforceDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
instance Property "ErrorHandlingConfig" SalesforceDestinationPropertiesProperty where
type PropertyType "ErrorHandlingConfig" SalesforceDestinationPropertiesProperty = ErrorHandlingConfigProperty
set :: PropertyType
"ErrorHandlingConfig" SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
set PropertyType
"ErrorHandlingConfig" SalesforceDestinationPropertiesProperty
newValue SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= SalesforceDestinationPropertiesProperty
{errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ErrorHandlingConfig" SalesforceDestinationPropertiesProperty
ErrorHandlingConfigProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
instance Property "IdFieldNames" SalesforceDestinationPropertiesProperty where
type PropertyType "IdFieldNames" SalesforceDestinationPropertiesProperty = ValueList Prelude.Text
set :: PropertyType "IdFieldNames" SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
set PropertyType "IdFieldNames" SalesforceDestinationPropertiesProperty
newValue SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= SalesforceDestinationPropertiesProperty
{idFieldNames :: Maybe (ValueList Text)
idFieldNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IdFieldNames" SalesforceDestinationPropertiesProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
instance Property "Object" SalesforceDestinationPropertiesProperty where
type PropertyType "Object" SalesforceDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "Object" SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
set PropertyType "Object" SalesforceDestinationPropertiesProperty
newValue SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= SalesforceDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" SalesforceDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
writeOperationType :: Maybe (Value Text)
..}
instance Property "WriteOperationType" SalesforceDestinationPropertiesProperty where
type PropertyType "WriteOperationType" SalesforceDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType
"WriteOperationType" SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
-> SalesforceDestinationPropertiesProperty
set PropertyType
"WriteOperationType" SalesforceDestinationPropertiesProperty
newValue SalesforceDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: SalesforceDestinationPropertiesProperty -> ()
dataTransferApi :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
errorHandlingConfig :: SalesforceDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: SalesforceDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: SalesforceDestinationPropertiesProperty -> Value Text
writeOperationType :: SalesforceDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
= SalesforceDestinationPropertiesProperty
{writeOperationType :: Maybe (Value Text)
writeOperationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"WriteOperationType" SalesforceDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
haddock_workaround_ :: ()
dataTransferApi :: Maybe (Value Text)
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
..}