module Stratosphere.IoTEvents.DetectorModel.ClearTimerProperty (
ClearTimerProperty(..), mkClearTimerProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClearTimerProperty
=
ClearTimerProperty {ClearTimerProperty -> ()
haddock_workaround_ :: (),
ClearTimerProperty -> Value Text
timerName :: (Value Prelude.Text)}
deriving stock (ClearTimerProperty -> ClearTimerProperty -> Bool
(ClearTimerProperty -> ClearTimerProperty -> Bool)
-> (ClearTimerProperty -> ClearTimerProperty -> Bool)
-> Eq ClearTimerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearTimerProperty -> ClearTimerProperty -> Bool
== :: ClearTimerProperty -> ClearTimerProperty -> Bool
$c/= :: ClearTimerProperty -> ClearTimerProperty -> Bool
/= :: ClearTimerProperty -> ClearTimerProperty -> Bool
Prelude.Eq, Int -> ClearTimerProperty -> ShowS
[ClearTimerProperty] -> ShowS
ClearTimerProperty -> String
(Int -> ClearTimerProperty -> ShowS)
-> (ClearTimerProperty -> String)
-> ([ClearTimerProperty] -> ShowS)
-> Show ClearTimerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearTimerProperty -> ShowS
showsPrec :: Int -> ClearTimerProperty -> ShowS
$cshow :: ClearTimerProperty -> String
show :: ClearTimerProperty -> String
$cshowList :: [ClearTimerProperty] -> ShowS
showList :: [ClearTimerProperty] -> ShowS
Prelude.Show)
mkClearTimerProperty :: Value Prelude.Text -> ClearTimerProperty
mkClearTimerProperty :: Value Text -> ClearTimerProperty
mkClearTimerProperty Value Text
timerName
= ClearTimerProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), timerName :: Value Text
timerName = Value Text
timerName}
instance ToResourceProperties ClearTimerProperty where
toResourceProperties :: ClearTimerProperty -> ResourceProperties
toResourceProperties ClearTimerProperty {()
Value Text
haddock_workaround_ :: ClearTimerProperty -> ()
timerName :: ClearTimerProperty -> Value Text
haddock_workaround_ :: ()
timerName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTEvents::DetectorModel.ClearTimer",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"TimerName" 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
timerName]}
instance JSON.ToJSON ClearTimerProperty where
toJSON :: ClearTimerProperty -> Value
toJSON ClearTimerProperty {()
Value Text
haddock_workaround_ :: ClearTimerProperty -> ()
timerName :: ClearTimerProperty -> Value Text
haddock_workaround_ :: ()
timerName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"TimerName" 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
timerName]
instance Property "TimerName" ClearTimerProperty where
type PropertyType "TimerName" ClearTimerProperty = Value Prelude.Text
set :: PropertyType "TimerName" ClearTimerProperty
-> ClearTimerProperty -> ClearTimerProperty
set PropertyType "TimerName" ClearTimerProperty
newValue ClearTimerProperty {()
Value Text
haddock_workaround_ :: ClearTimerProperty -> ()
timerName :: ClearTimerProperty -> Value Text
haddock_workaround_ :: ()
timerName :: Value Text
..}
= ClearTimerProperty {timerName :: Value Text
timerName = PropertyType "TimerName" ClearTimerProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}