packages feed

stratosphere-appflow-1.0.0: gen/Stratosphere/AppFlow/Flow/IncrementalPullConfigProperty.hs

module Stratosphere.AppFlow.Flow.IncrementalPullConfigProperty (
        IncrementalPullConfigProperty(..), mkIncrementalPullConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IncrementalPullConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-incrementalpullconfig.html>
    IncrementalPullConfigProperty {haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-incrementalpullconfig.html#cfn-appflow-flow-incrementalpullconfig-datetimetypefieldname>
                                   datetimeTypeFieldName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkIncrementalPullConfigProperty :: IncrementalPullConfigProperty
mkIncrementalPullConfigProperty
  = IncrementalPullConfigProperty
      {haddock_workaround_ = (), datetimeTypeFieldName = Prelude.Nothing}
instance ToResourceProperties IncrementalPullConfigProperty where
  toResourceProperties IncrementalPullConfigProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppFlow::Flow.IncrementalPullConfig",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "DatetimeTypeFieldName"
                              Prelude.<$> datetimeTypeFieldName])}
instance JSON.ToJSON IncrementalPullConfigProperty where
  toJSON IncrementalPullConfigProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "DatetimeTypeFieldName"
                 Prelude.<$> datetimeTypeFieldName]))
instance Property "DatetimeTypeFieldName" IncrementalPullConfigProperty where
  type PropertyType "DatetimeTypeFieldName" IncrementalPullConfigProperty = Value Prelude.Text
  set newValue IncrementalPullConfigProperty {..}
    = IncrementalPullConfigProperty
        {datetimeTypeFieldName = Prelude.pure newValue, ..}