You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IoTEvents::Types::AssetPropertyVariant
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoTEvents::Types::AssetPropertyVariant
- Defined in:
- (unknown)
Overview
When passing AssetPropertyVariant as input to an Aws::Client method, you can use a vanilla Hash:
{
string_value: "AssetPropertyStringValue",
integer_value: "AssetPropertyIntegerValue",
double_value: "AssetPropertyDoubleValue",
boolean_value: "AssetPropertyBooleanValue",
}
A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.
You must specify one of the following value types, depending on the dataType
of the specified asset property. For more information, see AssetProperty in the AWS IoT SiteWise API Reference.
For parameters that are string data type, you can specify the following options:
-
Use a string. For example, the
doubleValue
value can be'47.9'
. -
Use an expression. For example, the
doubleValue
value can be$input.TemperatureInput.sensorData.temperature
.For more information, see Expressions in the AWS IoT Events Developer Guide.
Returned by:
Instance Attribute Summary collapse
-
#boolean_value ⇒ String
The asset property value is a Boolean value that must be
TRUE
orFALSE
. -
#double_value ⇒ String
The asset property value is a double.
-
#integer_value ⇒ String
The asset property value is an integer.
-
#string_value ⇒ String
The asset property value is a string.
Instance Attribute Details
#boolean_value ⇒ String
The asset property value is a Boolean value that must be TRUE
or
FALSE
. You can also specify an expression. If you use an expression,
the evaluated result should be a Boolean value.
#double_value ⇒ String
The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
#integer_value ⇒ String
The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
#string_value ⇒ String
The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.