packages feed

stratosphere-datazone-1.0.0: gen/Stratosphere/DataZone/DataSource/ScheduleConfigurationProperty.hs

module Stratosphere.DataZone.DataSource.ScheduleConfigurationProperty (
        ScheduleConfigurationProperty(..), mkScheduleConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScheduleConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-datasource-scheduleconfiguration.html>
    ScheduleConfigurationProperty {haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-datasource-scheduleconfiguration.html#cfn-datazone-datasource-scheduleconfiguration-schedule>
                                   schedule :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-datasource-scheduleconfiguration.html#cfn-datazone-datasource-scheduleconfiguration-timezone>
                                   timezone :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkScheduleConfigurationProperty :: ScheduleConfigurationProperty
mkScheduleConfigurationProperty
  = ScheduleConfigurationProperty
      {haddock_workaround_ = (), schedule = Prelude.Nothing,
       timezone = Prelude.Nothing}
instance ToResourceProperties ScheduleConfigurationProperty where
  toResourceProperties ScheduleConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataZone::DataSource.ScheduleConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "Schedule" Prelude.<$> schedule,
                            (JSON..=) "Timezone" Prelude.<$> timezone])}
instance JSON.ToJSON ScheduleConfigurationProperty where
  toJSON ScheduleConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "Schedule" Prelude.<$> schedule,
               (JSON..=) "Timezone" Prelude.<$> timezone]))
instance Property "Schedule" ScheduleConfigurationProperty where
  type PropertyType "Schedule" ScheduleConfigurationProperty = Value Prelude.Text
  set newValue ScheduleConfigurationProperty {..}
    = ScheduleConfigurationProperty
        {schedule = Prelude.pure newValue, ..}
instance Property "Timezone" ScheduleConfigurationProperty where
  type PropertyType "Timezone" ScheduleConfigurationProperty = Value Prelude.Text
  set newValue ScheduleConfigurationProperty {..}
    = ScheduleConfigurationProperty
        {timezone = Prelude.pure newValue, ..}