module Stratosphere.IoTSiteWise.AssetModel.ExpressionVariableProperty (
        module Exports, ExpressionVariableProperty(..),
        mkExpressionVariableProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTSiteWise.AssetModel.VariableValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExpressionVariableProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-expressionvariable.html>
    ExpressionVariableProperty {ExpressionVariableProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-expressionvariable.html#cfn-iotsitewise-assetmodel-expressionvariable-name>
                                ExpressionVariableProperty -> Value Text
name :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-assetmodel-expressionvariable.html#cfn-iotsitewise-assetmodel-expressionvariable-value>
                                ExpressionVariableProperty -> VariableValueProperty
value :: VariableValueProperty}
  deriving stock (ExpressionVariableProperty -> ExpressionVariableProperty -> Bool
(ExpressionVariableProperty -> ExpressionVariableProperty -> Bool)
-> (ExpressionVariableProperty
    -> ExpressionVariableProperty -> Bool)
-> Eq ExpressionVariableProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExpressionVariableProperty -> ExpressionVariableProperty -> Bool
== :: ExpressionVariableProperty -> ExpressionVariableProperty -> Bool
$c/= :: ExpressionVariableProperty -> ExpressionVariableProperty -> Bool
/= :: ExpressionVariableProperty -> ExpressionVariableProperty -> Bool
Prelude.Eq, Int -> ExpressionVariableProperty -> ShowS
[ExpressionVariableProperty] -> ShowS
ExpressionVariableProperty -> String
(Int -> ExpressionVariableProperty -> ShowS)
-> (ExpressionVariableProperty -> String)
-> ([ExpressionVariableProperty] -> ShowS)
-> Show ExpressionVariableProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExpressionVariableProperty -> ShowS
showsPrec :: Int -> ExpressionVariableProperty -> ShowS
$cshow :: ExpressionVariableProperty -> String
show :: ExpressionVariableProperty -> String
$cshowList :: [ExpressionVariableProperty] -> ShowS
showList :: [ExpressionVariableProperty] -> ShowS
Prelude.Show)
mkExpressionVariableProperty ::
  Value Prelude.Text
  -> VariableValueProperty -> ExpressionVariableProperty
mkExpressionVariableProperty :: Value Text -> VariableValueProperty -> ExpressionVariableProperty
mkExpressionVariableProperty Value Text
name VariableValueProperty
value
  = ExpressionVariableProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, value :: VariableValueProperty
value = VariableValueProperty
value}
instance ToResourceProperties ExpressionVariableProperty where
  toResourceProperties :: ExpressionVariableProperty -> ResourceProperties
toResourceProperties ExpressionVariableProperty {()
Value Text
VariableValueProperty
haddock_workaround_ :: ExpressionVariableProperty -> ()
name :: ExpressionVariableProperty -> Value Text
value :: ExpressionVariableProperty -> VariableValueProperty
haddock_workaround_ :: ()
name :: Value Text
value :: VariableValueProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTSiteWise::AssetModel.ExpressionVariable",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Name" 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
name, Key
"Value" Key -> VariableValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VariableValueProperty
value]}
instance JSON.ToJSON ExpressionVariableProperty where
  toJSON :: ExpressionVariableProperty -> Value
toJSON ExpressionVariableProperty {()
Value Text
VariableValueProperty
haddock_workaround_ :: ExpressionVariableProperty -> ()
name :: ExpressionVariableProperty -> Value Text
value :: ExpressionVariableProperty -> VariableValueProperty
haddock_workaround_ :: ()
name :: Value Text
value :: VariableValueProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name, Key
"Value" Key -> VariableValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VariableValueProperty
value]
instance Property "Name" ExpressionVariableProperty where
  type PropertyType "Name" ExpressionVariableProperty = Value Prelude.Text
  set :: PropertyType "Name" ExpressionVariableProperty
-> ExpressionVariableProperty -> ExpressionVariableProperty
set PropertyType "Name" ExpressionVariableProperty
newValue ExpressionVariableProperty {()
Value Text
VariableValueProperty
haddock_workaround_ :: ExpressionVariableProperty -> ()
name :: ExpressionVariableProperty -> Value Text
value :: ExpressionVariableProperty -> VariableValueProperty
haddock_workaround_ :: ()
name :: Value Text
value :: VariableValueProperty
..}
    = ExpressionVariableProperty {name :: Value Text
name = PropertyType "Name" ExpressionVariableProperty
Value Text
newValue, ()
VariableValueProperty
haddock_workaround_ :: ()
value :: VariableValueProperty
haddock_workaround_ :: ()
value :: VariableValueProperty
..}
instance Property "Value" ExpressionVariableProperty where
  type PropertyType "Value" ExpressionVariableProperty = VariableValueProperty
  set :: PropertyType "Value" ExpressionVariableProperty
-> ExpressionVariableProperty -> ExpressionVariableProperty
set PropertyType "Value" ExpressionVariableProperty
newValue ExpressionVariableProperty {()
Value Text
VariableValueProperty
haddock_workaround_ :: ExpressionVariableProperty -> ()
name :: ExpressionVariableProperty -> Value Text
value :: ExpressionVariableProperty -> VariableValueProperty
haddock_workaround_ :: ()
name :: Value Text
value :: VariableValueProperty
..}
    = ExpressionVariableProperty {value :: VariableValueProperty
value = PropertyType "Value" ExpressionVariableProperty
VariableValueProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}