packages feed

stratosphere-customerprofiles-1.0.0: gen/Stratosphere/CustomerProfiles/Integration/TriggerPropertiesProperty.hs

module Stratosphere.CustomerProfiles.Integration.TriggerPropertiesProperty (
        module Exports, TriggerPropertiesProperty(..),
        mkTriggerPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.Integration.ScheduledTriggerPropertiesProperty as Exports
import Stratosphere.ResourceProperties
data TriggerPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-triggerproperties.html>
    TriggerPropertiesProperty {haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-triggerproperties.html#cfn-customerprofiles-integration-triggerproperties-scheduled>
                               scheduled :: (Prelude.Maybe ScheduledTriggerPropertiesProperty)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkTriggerPropertiesProperty :: TriggerPropertiesProperty
mkTriggerPropertiesProperty
  = TriggerPropertiesProperty
      {haddock_workaround_ = (), scheduled = Prelude.Nothing}
instance ToResourceProperties TriggerPropertiesProperty where
  toResourceProperties TriggerPropertiesProperty {..}
    = ResourceProperties
        {awsType = "AWS::CustomerProfiles::Integration.TriggerProperties",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes [(JSON..=) "Scheduled" Prelude.<$> scheduled])}
instance JSON.ToJSON TriggerPropertiesProperty where
  toJSON TriggerPropertiesProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes [(JSON..=) "Scheduled" Prelude.<$> scheduled]))
instance Property "Scheduled" TriggerPropertiesProperty where
  type PropertyType "Scheduled" TriggerPropertiesProperty = ScheduledTriggerPropertiesProperty
  set newValue TriggerPropertiesProperty {..}
    = TriggerPropertiesProperty {scheduled = Prelude.pure newValue, ..}