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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#boolean_valueString

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.

Returns:

  • (String)

    The asset property value is a Boolean value that must be TRUE or FALSE.

#double_valueString

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.

Returns:

  • (String)

    The asset property value is a double.

#integer_valueString

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.

Returns:

  • (String)

    The asset property value is an integer.

#string_valueString

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.

Returns:

  • (String)

    The asset property value is a string.