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