module Stratosphere.AppFlow.Flow.DestinationFlowConfigProperty (
module Exports, DestinationFlowConfigProperty(..),
mkDestinationFlowConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.DestinationConnectorPropertiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DestinationFlowConfigProperty
=
DestinationFlowConfigProperty {DestinationFlowConfigProperty -> ()
haddock_workaround_ :: (),
DestinationFlowConfigProperty -> Maybe (Value Text)
apiVersion :: (Prelude.Maybe (Value Prelude.Text)),
DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: (Prelude.Maybe (Value Prelude.Text)),
DestinationFlowConfigProperty -> Value Text
connectorType :: (Value Prelude.Text),
DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
destinationConnectorProperties :: DestinationConnectorPropertiesProperty}
deriving stock (DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool
(DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool)
-> (DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool)
-> Eq DestinationFlowConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool
== :: DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool
$c/= :: DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool
/= :: DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> Bool
Prelude.Eq, Int -> DestinationFlowConfigProperty -> ShowS
[DestinationFlowConfigProperty] -> ShowS
DestinationFlowConfigProperty -> String
(Int -> DestinationFlowConfigProperty -> ShowS)
-> (DestinationFlowConfigProperty -> String)
-> ([DestinationFlowConfigProperty] -> ShowS)
-> Show DestinationFlowConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DestinationFlowConfigProperty -> ShowS
showsPrec :: Int -> DestinationFlowConfigProperty -> ShowS
$cshow :: DestinationFlowConfigProperty -> String
show :: DestinationFlowConfigProperty -> String
$cshowList :: [DestinationFlowConfigProperty] -> ShowS
showList :: [DestinationFlowConfigProperty] -> ShowS
Prelude.Show)
mkDestinationFlowConfigProperty ::
Value Prelude.Text
-> DestinationConnectorPropertiesProperty
-> DestinationFlowConfigProperty
mkDestinationFlowConfigProperty :: Value Text
-> DestinationConnectorPropertiesProperty
-> DestinationFlowConfigProperty
mkDestinationFlowConfigProperty
Value Text
connectorType
DestinationConnectorPropertiesProperty
destinationConnectorProperties
= DestinationFlowConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), connectorType :: Value Text
connectorType = Value Text
connectorType,
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
destinationConnectorProperties = DestinationConnectorPropertiesProperty
destinationConnectorProperties,
apiVersion :: Maybe (Value Text)
apiVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
connectorProfileName :: Maybe (Value Text)
connectorProfileName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DestinationFlowConfigProperty where
toResourceProperties :: DestinationFlowConfigProperty -> ResourceProperties
toResourceProperties DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.DestinationFlowConfig",
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
"DestinationConnectorProperties"
Key -> DestinationConnectorPropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationConnectorPropertiesProperty
destinationConnectorProperties]
([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
"ApiVersion" (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)
apiVersion,
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]))}
instance JSON.ToJSON DestinationFlowConfigProperty where
toJSON :: DestinationFlowConfigProperty -> Value
toJSON DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= [(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
"DestinationConnectorProperties"
Key -> DestinationConnectorPropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationConnectorPropertiesProperty
destinationConnectorProperties]
([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
"ApiVersion" (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)
apiVersion,
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])))
instance Property "ApiVersion" DestinationFlowConfigProperty where
type PropertyType "ApiVersion" DestinationFlowConfigProperty = Value Prelude.Text
set :: PropertyType "ApiVersion" DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> DestinationFlowConfigProperty
set PropertyType "ApiVersion" DestinationFlowConfigProperty
newValue DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= DestinationFlowConfigProperty
{apiVersion :: Maybe (Value Text)
apiVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApiVersion" DestinationFlowConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
instance Property "ConnectorProfileName" DestinationFlowConfigProperty where
type PropertyType "ConnectorProfileName" DestinationFlowConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectorProfileName" DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> DestinationFlowConfigProperty
set PropertyType "ConnectorProfileName" DestinationFlowConfigProperty
newValue DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= DestinationFlowConfigProperty
{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" DestinationFlowConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
instance Property "ConnectorType" DestinationFlowConfigProperty where
type PropertyType "ConnectorType" DestinationFlowConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectorType" DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> DestinationFlowConfigProperty
set PropertyType "ConnectorType" DestinationFlowConfigProperty
newValue DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= DestinationFlowConfigProperty {connectorType :: Value Text
connectorType = PropertyType "ConnectorType" DestinationFlowConfigProperty
Value Text
newValue, Maybe (Value Text)
()
DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
instance Property "DestinationConnectorProperties" DestinationFlowConfigProperty where
type PropertyType "DestinationConnectorProperties" DestinationFlowConfigProperty = DestinationConnectorPropertiesProperty
set :: PropertyType
"DestinationConnectorProperties" DestinationFlowConfigProperty
-> DestinationFlowConfigProperty -> DestinationFlowConfigProperty
set PropertyType
"DestinationConnectorProperties" DestinationFlowConfigProperty
newValue DestinationFlowConfigProperty {Maybe (Value Text)
()
Value Text
DestinationConnectorPropertiesProperty
haddock_workaround_ :: DestinationFlowConfigProperty -> ()
apiVersion :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorProfileName :: DestinationFlowConfigProperty -> Maybe (Value Text)
connectorType :: DestinationFlowConfigProperty -> Value Text
destinationConnectorProperties :: DestinationFlowConfigProperty
-> DestinationConnectorPropertiesProperty
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
destinationConnectorProperties :: DestinationConnectorPropertiesProperty
..}
= DestinationFlowConfigProperty
{destinationConnectorProperties :: DestinationConnectorPropertiesProperty
destinationConnectorProperties = PropertyType
"DestinationConnectorProperties" DestinationFlowConfigProperty
DestinationConnectorPropertiesProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
haddock_workaround_ :: ()
apiVersion :: Maybe (Value Text)
connectorProfileName :: Maybe (Value Text)
connectorType :: Value Text
..}