content: 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 {errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
                                            object :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkMarketoDestinationPropertiesProperty ::
    Value Prelude.Text -> MarketoDestinationPropertiesProperty
  mkMarketoDestinationPropertiesProperty object
    = MarketoDestinationPropertiesProperty
        {object = object, errorHandlingConfig = Prelude.Nothing}
  instance ToResourceProperties MarketoDestinationPropertiesProperty where
    toResourceProperties MarketoDestinationPropertiesProperty {..}
      = ResourceProperties
          {awsType = "AWS::AppFlow::Flow.MarketoDestinationProperties",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Object" JSON..= object]
                             (Prelude.catMaybes
                                [(JSON..=) "ErrorHandlingConfig"
                                   Prelude.<$> errorHandlingConfig]))}
  instance JSON.ToJSON MarketoDestinationPropertiesProperty where
    toJSON MarketoDestinationPropertiesProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Object" JSON..= object]
                (Prelude.catMaybes
                   [(JSON..=) "ErrorHandlingConfig"
                      Prelude.<$> errorHandlingConfig])))
  instance Property "ErrorHandlingConfig" MarketoDestinationPropertiesProperty where
    type PropertyType "ErrorHandlingConfig" MarketoDestinationPropertiesProperty = ErrorHandlingConfigProperty
    set newValue MarketoDestinationPropertiesProperty {..}
      = MarketoDestinationPropertiesProperty
          {errorHandlingConfig = Prelude.pure newValue, ..}
  instance Property "Object" MarketoDestinationPropertiesProperty where
    type PropertyType "Object" MarketoDestinationPropertiesProperty = Value Prelude.Text
    set newValue MarketoDestinationPropertiesProperty {..}
      = MarketoDestinationPropertiesProperty {object = newValue, ..}