module Stratosphere.CustomerProfiles.Integration.SourceFlowConfigProperty (
module Exports, SourceFlowConfigProperty(..),
mkSourceFlowConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.Integration.IncrementalPullConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.CustomerProfiles.Integration.SourceConnectorPropertiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourceFlowConfigProperty
=
SourceFlowConfigProperty {SourceFlowConfigProperty -> ()
haddock_workaround_ :: (),
SourceFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: (Prelude.Maybe (Value Prelude.Text)),
SourceFlowConfigProperty -> Value Text
connectorType :: (Value Prelude.Text),
SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
incrementalPullConfig :: (Prelude.Maybe IncrementalPullConfigProperty),
SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty}
deriving stock (SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool
(SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool)
-> (SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool)
-> Eq SourceFlowConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool
== :: SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool
$c/= :: SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool
/= :: SourceFlowConfigProperty -> SourceFlowConfigProperty -> Bool
Prelude.Eq, Int -> SourceFlowConfigProperty -> ShowS
[SourceFlowConfigProperty] -> ShowS
SourceFlowConfigProperty -> String
(Int -> SourceFlowConfigProperty -> ShowS)
-> (SourceFlowConfigProperty -> String)
-> ([SourceFlowConfigProperty] -> ShowS)
-> Show SourceFlowConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceFlowConfigProperty -> ShowS
showsPrec :: Int -> SourceFlowConfigProperty -> ShowS
$cshow :: SourceFlowConfigProperty -> String
show :: SourceFlowConfigProperty -> String
$cshowList :: [SourceFlowConfigProperty] -> ShowS
showList :: [SourceFlowConfigProperty] -> ShowS
Prelude.Show)
mkSourceFlowConfigProperty ::
Value Prelude.Text
-> SourceConnectorPropertiesProperty -> SourceFlowConfigProperty
mkSourceFlowConfigProperty :: Value Text
-> SourceConnectorPropertiesProperty -> SourceFlowConfigProperty
mkSourceFlowConfigProperty Value Text
connectorType SourceConnectorPropertiesProperty
sourceConnectorProperties
= SourceFlowConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), connectorType :: Value Text
connectorType = Value Text
connectorType,
sourceConnectorProperties :: SourceConnectorPropertiesProperty
sourceConnectorProperties = SourceConnectorPropertiesProperty
sourceConnectorProperties,
connectorProfileName :: Maybe (Value Text)
connectorProfileName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
incrementalPullConfig = Maybe IncrementalPullConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SourceFlowConfigProperty where
toResourceProperties :: SourceFlowConfigProperty -> ResourceProperties
toResourceProperties SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Integration.SourceFlowConfig",
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
"ConnectorType" 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
connectorType,
Key
"SourceConnectorProperties" Key -> SourceConnectorPropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SourceConnectorPropertiesProperty
sourceConnectorProperties]
([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
"ConnectorProfileName" (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)
connectorProfileName,
Key -> IncrementalPullConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncrementalPullConfig"
(IncrementalPullConfigProperty -> (Key, Value))
-> Maybe IncrementalPullConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IncrementalPullConfigProperty
incrementalPullConfig]))}
instance JSON.ToJSON SourceFlowConfigProperty where
toJSON :: SourceFlowConfigProperty -> Value
toJSON SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= [(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
"ConnectorType" 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
connectorType,
Key
"SourceConnectorProperties" Key -> SourceConnectorPropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SourceConnectorPropertiesProperty
sourceConnectorProperties]
([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
"ConnectorProfileName" (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)
connectorProfileName,
Key -> IncrementalPullConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncrementalPullConfig"
(IncrementalPullConfigProperty -> (Key, Value))
-> Maybe IncrementalPullConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IncrementalPullConfigProperty
incrementalPullConfig])))
instance Property "ConnectorProfileName" SourceFlowConfigProperty where
type PropertyType "ConnectorProfileName" SourceFlowConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectorProfileName" SourceFlowConfigProperty
-> SourceFlowConfigProperty -> SourceFlowConfigProperty
set PropertyType "ConnectorProfileName" SourceFlowConfigProperty
newValue SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= SourceFlowConfigProperty
{connectorProfileName :: Maybe (Value Text)
connectorProfileName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectorProfileName" SourceFlowConfigProperty
Value Text
newValue, Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
instance Property "ConnectorType" SourceFlowConfigProperty where
type PropertyType "ConnectorType" SourceFlowConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectorType" SourceFlowConfigProperty
-> SourceFlowConfigProperty -> SourceFlowConfigProperty
set PropertyType "ConnectorType" SourceFlowConfigProperty
newValue SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= SourceFlowConfigProperty {connectorType :: Value Text
connectorType = PropertyType "ConnectorType" SourceFlowConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
instance Property "IncrementalPullConfig" SourceFlowConfigProperty where
type PropertyType "IncrementalPullConfig" SourceFlowConfigProperty = IncrementalPullConfigProperty
set :: PropertyType "IncrementalPullConfig" SourceFlowConfigProperty
-> SourceFlowConfigProperty -> SourceFlowConfigProperty
set PropertyType "IncrementalPullConfig" SourceFlowConfigProperty
newValue SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= SourceFlowConfigProperty
{incrementalPullConfig :: Maybe IncrementalPullConfigProperty
incrementalPullConfig = IncrementalPullConfigProperty
-> Maybe IncrementalPullConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncrementalPullConfig" SourceFlowConfigProperty
IncrementalPullConfigProperty
newValue, Maybe (Value Text)
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
sourceConnectorProperties :: SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
instance Property "SourceConnectorProperties" SourceFlowConfigProperty where
type PropertyType "SourceConnectorProperties" SourceFlowConfigProperty = SourceConnectorPropertiesProperty
set :: PropertyType "SourceConnectorProperties" SourceFlowConfigProperty
-> SourceFlowConfigProperty -> SourceFlowConfigProperty
set PropertyType "SourceConnectorProperties" SourceFlowConfigProperty
newValue SourceFlowConfigProperty {Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
SourceConnectorPropertiesProperty
haddock_workaround_ :: SourceFlowConfigProperty -> ()
connectorProfileName :: SourceFlowConfigProperty -> Maybe (Value Text)
connectorType :: SourceFlowConfigProperty -> Value Text
incrementalPullConfig :: SourceFlowConfigProperty -> Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceFlowConfigProperty -> SourceConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
sourceConnectorProperties :: SourceConnectorPropertiesProperty
..}
= SourceFlowConfigProperty
{sourceConnectorProperties :: SourceConnectorPropertiesProperty
sourceConnectorProperties = PropertyType "SourceConnectorProperties" SourceFlowConfigProperty
SourceConnectorPropertiesProperty
newValue, Maybe (Value Text)
Maybe IncrementalPullConfigProperty
()
Value Text
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
incrementalPullConfig :: Maybe IncrementalPullConfigProperty
..}