module Stratosphere.IoTAnalytics.Dataset.ScheduleProperty (
        ScheduleProperty(..), mkScheduleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScheduleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-schedule.html>
    ScheduleProperty {ScheduleProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-schedule.html#cfn-iotanalytics-dataset-schedule-scheduleexpression>
                      ScheduleProperty -> Value Text
scheduleExpression :: (Value Prelude.Text)}
  deriving stock (ScheduleProperty -> ScheduleProperty -> Bool
(ScheduleProperty -> ScheduleProperty -> Bool)
-> (ScheduleProperty -> ScheduleProperty -> Bool)
-> Eq ScheduleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScheduleProperty -> ScheduleProperty -> Bool
== :: ScheduleProperty -> ScheduleProperty -> Bool
$c/= :: ScheduleProperty -> ScheduleProperty -> Bool
/= :: ScheduleProperty -> ScheduleProperty -> Bool
Prelude.Eq, Int -> ScheduleProperty -> ShowS
[ScheduleProperty] -> ShowS
ScheduleProperty -> String
(Int -> ScheduleProperty -> ShowS)
-> (ScheduleProperty -> String)
-> ([ScheduleProperty] -> ShowS)
-> Show ScheduleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScheduleProperty -> ShowS
showsPrec :: Int -> ScheduleProperty -> ShowS
$cshow :: ScheduleProperty -> String
show :: ScheduleProperty -> String
$cshowList :: [ScheduleProperty] -> ShowS
showList :: [ScheduleProperty] -> ShowS
Prelude.Show)
mkScheduleProperty :: Value Prelude.Text -> ScheduleProperty
mkScheduleProperty :: Value Text -> ScheduleProperty
mkScheduleProperty Value Text
scheduleExpression
  = ScheduleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), scheduleExpression :: Value Text
scheduleExpression = Value Text
scheduleExpression}
instance ToResourceProperties ScheduleProperty where
  toResourceProperties :: ScheduleProperty -> ResourceProperties
toResourceProperties ScheduleProperty {()
Value Text
haddock_workaround_ :: ScheduleProperty -> ()
scheduleExpression :: ScheduleProperty -> Value Text
haddock_workaround_ :: ()
scheduleExpression :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.Schedule",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ScheduleExpression" 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
scheduleExpression]}
instance JSON.ToJSON ScheduleProperty where
  toJSON :: ScheduleProperty -> Value
toJSON ScheduleProperty {()
Value Text
haddock_workaround_ :: ScheduleProperty -> ()
scheduleExpression :: ScheduleProperty -> Value Text
haddock_workaround_ :: ()
scheduleExpression :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ScheduleExpression" 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
scheduleExpression]
instance Property "ScheduleExpression" ScheduleProperty where
  type PropertyType "ScheduleExpression" ScheduleProperty = Value Prelude.Text
  set :: PropertyType "ScheduleExpression" ScheduleProperty
-> ScheduleProperty -> ScheduleProperty
set PropertyType "ScheduleExpression" ScheduleProperty
newValue ScheduleProperty {()
Value Text
haddock_workaround_ :: ScheduleProperty -> ()
scheduleExpression :: ScheduleProperty -> Value Text
haddock_workaround_ :: ()
scheduleExpression :: Value Text
..}
    = ScheduleProperty {scheduleExpression :: Value Text
scheduleExpression = PropertyType "ScheduleExpression" ScheduleProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}