Class: Aws::IoTEvents::Types::AssetPropertyVariant

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb

Overview

Note:

When making an API call, you may pass AssetPropertyVariant data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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)


381
382
383
384
385
386
387
388
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 381

class AssetPropertyVariant < Struct.new(
  :string_value,
  :integer_value,
  :double_value,
  :boolean_value)
  SENSITIVE = []
  include Aws::Structure
end

#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)


381
382
383
384
385
386
387
388
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 381

class AssetPropertyVariant < Struct.new(
  :string_value,
  :integer_value,
  :double_value,
  :boolean_value)
  SENSITIVE = []
  include Aws::Structure
end

#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)


381
382
383
384
385
386
387
388
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 381

class AssetPropertyVariant < Struct.new(
  :string_value,
  :integer_value,
  :double_value,
  :boolean_value)
  SENSITIVE = []
  include Aws::Structure
end

#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)


381
382
383
384
385
386
387
388
# File 'gems/aws-sdk-iotevents/lib/aws-sdk-iotevents/types.rb', line 381

class AssetPropertyVariant < Struct.new(
  :string_value,
  :integer_value,
  :double_value,
  :boolean_value)
  SENSITIVE = []
  include Aws::Structure
end