module Stratosphere.IoT.TopicRule.TimestreamTimestampProperty (
        TimestreamTimestampProperty(..), mkTimestreamTimestampProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TimestreamTimestampProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-timestreamtimestamp.html>
    TimestreamTimestampProperty {TimestreamTimestampProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-timestreamtimestamp.html#cfn-iot-topicrule-timestreamtimestamp-unit>
                                 TimestreamTimestampProperty -> Value Text
unit :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-timestreamtimestamp.html#cfn-iot-topicrule-timestreamtimestamp-value>
                                 TimestreamTimestampProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (TimestreamTimestampProperty -> TimestreamTimestampProperty -> Bool
(TimestreamTimestampProperty
 -> TimestreamTimestampProperty -> Bool)
-> (TimestreamTimestampProperty
    -> TimestreamTimestampProperty -> Bool)
-> Eq TimestreamTimestampProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TimestreamTimestampProperty -> TimestreamTimestampProperty -> Bool
== :: TimestreamTimestampProperty -> TimestreamTimestampProperty -> Bool
$c/= :: TimestreamTimestampProperty -> TimestreamTimestampProperty -> Bool
/= :: TimestreamTimestampProperty -> TimestreamTimestampProperty -> Bool
Prelude.Eq, Int -> TimestreamTimestampProperty -> ShowS
[TimestreamTimestampProperty] -> ShowS
TimestreamTimestampProperty -> String
(Int -> TimestreamTimestampProperty -> ShowS)
-> (TimestreamTimestampProperty -> String)
-> ([TimestreamTimestampProperty] -> ShowS)
-> Show TimestreamTimestampProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TimestreamTimestampProperty -> ShowS
showsPrec :: Int -> TimestreamTimestampProperty -> ShowS
$cshow :: TimestreamTimestampProperty -> String
show :: TimestreamTimestampProperty -> String
$cshowList :: [TimestreamTimestampProperty] -> ShowS
showList :: [TimestreamTimestampProperty] -> ShowS
Prelude.Show)
mkTimestreamTimestampProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> TimestreamTimestampProperty
mkTimestreamTimestampProperty :: Value Text -> Value Text -> TimestreamTimestampProperty
mkTimestreamTimestampProperty Value Text
unit Value Text
value
  = TimestreamTimestampProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), unit :: Value Text
unit = Value Text
unit, value :: Value Text
value = Value Text
value}
instance ToResourceProperties TimestreamTimestampProperty where
  toResourceProperties :: TimestreamTimestampProperty -> ResourceProperties
toResourceProperties TimestreamTimestampProperty {()
Value Text
haddock_workaround_ :: TimestreamTimestampProperty -> ()
unit :: TimestreamTimestampProperty -> Value Text
value :: TimestreamTimestampProperty -> Value Text
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::TopicRule.TimestreamTimestamp",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Unit" 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
unit, Key
"Value" 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
value]}
instance JSON.ToJSON TimestreamTimestampProperty where
  toJSON :: TimestreamTimestampProperty -> Value
toJSON TimestreamTimestampProperty {()
Value Text
haddock_workaround_ :: TimestreamTimestampProperty -> ()
unit :: TimestreamTimestampProperty -> Value Text
value :: TimestreamTimestampProperty -> Value Text
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Unit" 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
unit, Key
"Value" 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
value]
instance Property "Unit" TimestreamTimestampProperty where
  type PropertyType "Unit" TimestreamTimestampProperty = Value Prelude.Text
  set :: PropertyType "Unit" TimestreamTimestampProperty
-> TimestreamTimestampProperty -> TimestreamTimestampProperty
set PropertyType "Unit" TimestreamTimestampProperty
newValue TimestreamTimestampProperty {()
Value Text
haddock_workaround_ :: TimestreamTimestampProperty -> ()
unit :: TimestreamTimestampProperty -> Value Text
value :: TimestreamTimestampProperty -> Value Text
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Text
..}
    = TimestreamTimestampProperty {unit :: Value Text
unit = PropertyType "Unit" TimestreamTimestampProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" TimestreamTimestampProperty where
  type PropertyType "Value" TimestreamTimestampProperty = Value Prelude.Text
  set :: PropertyType "Value" TimestreamTimestampProperty
-> TimestreamTimestampProperty -> TimestreamTimestampProperty
set PropertyType "Value" TimestreamTimestampProperty
newValue TimestreamTimestampProperty {()
Value Text
haddock_workaround_ :: TimestreamTimestampProperty -> ()
unit :: TimestreamTimestampProperty -> Value Text
value :: TimestreamTimestampProperty -> Value Text
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Text
..}
    = TimestreamTimestampProperty {value :: Value Text
value = PropertyType "Value" TimestreamTimestampProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
unit :: Value Text
haddock_workaround_ :: ()
unit :: Value Text
..}