Class: AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyValueProperty
- Defined in:
- io_t_events/cfn_alarm_model.rb
Overview
A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference .
You must use expressions for all parameters in AssetPropertyValue . The expressions accept literals, operators, functions, references, and substitution templates.
Examples - For literal values, the expressions must contain single quotes. For example, the value for the quality parameter can be 'GOOD' .
- For references, you must specify either variables or input values. For example, the value for the
qualityparameter can be$input.TemperatureInput.sensorData.quality.
For more information, see Expressions in the AWS IoT Events Developer Guide .
Instance Attribute Summary collapse
-
#quality ⇒ String?
readonly
The quality of the asset property value.
-
#timestamp ⇒ AWSCDK::IResolvable, ...
readonly
The timestamp associated with the asset property value.
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyVariantProperty
readonly
The value to send to an asset property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, quality: nil, timestamp: nil) ⇒ AssetPropertyValueProperty
constructor
A new instance of AssetPropertyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, quality: nil, timestamp: nil) ⇒ AssetPropertyValueProperty
Returns a new instance of AssetPropertyValueProperty.
1021 1022 1023 1024 1025 1026 1027 1028 |
# File 'io_t_events/cfn_alarm_model.rb', line 1021 def initialize(value:, quality: nil, timestamp: nil) @value = value.is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyVariantProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuQWxhcm1Nb2RlbC5Bc3NldFByb3BlcnR5VmFyaWFudFByb3BlcnR5In1dfX0=")), "value") @quality = quality Jsii::Type.check_type(@quality, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "quality") unless @quality.nil? @timestamp = .is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyTimestampProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@timestamp, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuQWxhcm1Nb2RlbC5Bc3NldFByb3BlcnR5VGltZXN0YW1wUHJvcGVydHkifV19fQ==")), "timestamp") unless @timestamp.nil? end |
Instance Attribute Details
#quality ⇒ String? (readonly)
The quality of the asset property value.
The value must be 'GOOD' , 'BAD' , or 'UNCERTAIN' .
1041 1042 1043 |
# File 'io_t_events/cfn_alarm_model.rb', line 1041 def quality @quality end |
#timestamp ⇒ AWSCDK::IResolvable, ... (readonly)
The timestamp associated with the asset property value.
The default is the current event time.
1048 1049 1050 |
# File 'io_t_events/cfn_alarm_model.rb', line 1048 def @timestamp end |
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnAlarmModel::AssetPropertyVariantProperty (readonly)
The value to send to an asset property.
1034 1035 1036 |
# File 'io_t_events/cfn_alarm_model.rb', line 1034 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1050 1051 1052 1053 1054 1055 1056 |
# File 'io_t_events/cfn_alarm_model.rb', line 1050 def self.jsii_properties { :value => "value", :quality => "quality", :timestamp => "timestamp", } end |
Instance Method Details
#to_jsii ⇒ Object
1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'io_t_events/cfn_alarm_model.rb', line 1058 def to_jsii result = {} result.merge!({ "value" => @value, "quality" => @quality, "timestamp" => @timestamp, }) result.compact end |