module Stratosphere.AppFlow.Flow.MarketoDestinationPropertiesProperty (
module Exports, MarketoDestinationPropertiesProperty(..),
mkMarketoDestinationPropertiesProperty
) 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 MarketoDestinationPropertiesProperty
=
MarketoDestinationPropertiesProperty {MarketoDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
MarketoDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
MarketoDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
deriving stock (MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool
(MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool)
-> (MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool)
-> Eq MarketoDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool
== :: MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool
$c/= :: MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool
/= :: MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> MarketoDestinationPropertiesProperty -> ShowS
[MarketoDestinationPropertiesProperty] -> ShowS
MarketoDestinationPropertiesProperty -> String
(Int -> MarketoDestinationPropertiesProperty -> ShowS)
-> (MarketoDestinationPropertiesProperty -> String)
-> ([MarketoDestinationPropertiesProperty] -> ShowS)
-> Show MarketoDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MarketoDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> MarketoDestinationPropertiesProperty -> ShowS
$cshow :: MarketoDestinationPropertiesProperty -> String
show :: MarketoDestinationPropertiesProperty -> String
$cshowList :: [MarketoDestinationPropertiesProperty] -> ShowS
showList :: [MarketoDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkMarketoDestinationPropertiesProperty ::
Value Prelude.Text -> MarketoDestinationPropertiesProperty
mkMarketoDestinationPropertiesProperty :: Value Text -> MarketoDestinationPropertiesProperty
mkMarketoDestinationPropertiesProperty Value Text
object
= MarketoDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = Maybe ErrorHandlingConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MarketoDestinationPropertiesProperty where
toResourceProperties :: MarketoDestinationPropertiesProperty -> ResourceProperties
toResourceProperties MarketoDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: MarketoDestinationPropertiesProperty -> ()
errorHandlingConfig :: MarketoDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: MarketoDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.MarketoDestinationProperties",
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 -> 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]))}
instance JSON.ToJSON MarketoDestinationPropertiesProperty where
toJSON :: MarketoDestinationPropertiesProperty -> Value
toJSON MarketoDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: MarketoDestinationPropertiesProperty -> ()
errorHandlingConfig :: MarketoDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: MarketoDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: 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 -> 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])))
instance Property "ErrorHandlingConfig" MarketoDestinationPropertiesProperty where
type PropertyType "ErrorHandlingConfig" MarketoDestinationPropertiesProperty = ErrorHandlingConfigProperty
set :: PropertyType
"ErrorHandlingConfig" MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty
set PropertyType
"ErrorHandlingConfig" MarketoDestinationPropertiesProperty
newValue MarketoDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: MarketoDestinationPropertiesProperty -> ()
errorHandlingConfig :: MarketoDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: MarketoDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= MarketoDestinationPropertiesProperty
{errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ErrorHandlingConfig" MarketoDestinationPropertiesProperty
ErrorHandlingConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
object :: Value Text
haddock_workaround_ :: ()
object :: Value Text
..}
instance Property "Object" MarketoDestinationPropertiesProperty where
type PropertyType "Object" MarketoDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "Object" MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty
-> MarketoDestinationPropertiesProperty
set PropertyType "Object" MarketoDestinationPropertiesProperty
newValue MarketoDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: MarketoDestinationPropertiesProperty -> ()
errorHandlingConfig :: MarketoDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: MarketoDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= MarketoDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" MarketoDestinationPropertiesProperty
Value Text
newValue, Maybe ErrorHandlingConfigProperty
()
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
..}