Class: AWSCDK::IoT::CfnTopicRule::AssetPropertyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::AssetPropertyValueProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
An asset property value entry containing the following information.
Instance Attribute Summary collapse
-
#quality ⇒ String?
readonly
Optional.
-
#timestamp ⇒ AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty
readonly
The asset property value timestamp.
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty
readonly
The value of the asset property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(timestamp:, value:, quality: nil) ⇒ AssetPropertyValueProperty
constructor
A new instance of AssetPropertyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(timestamp:, value:, quality: nil) ⇒ AssetPropertyValueProperty
Returns a new instance of AssetPropertyValueProperty.
868 869 870 871 872 873 874 875 |
# File 'io_t/cfn_topic_rule.rb', line 868 def initialize(timestamp:, value:, quality: nil) @timestamp = .is_a?(Hash) ? ::AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@timestamp, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVG9waWNSdWxlLkFzc2V0UHJvcGVydHlUaW1lc3RhbXBQcm9wZXJ0eSJ9XX19")), "timestamp") @value = value.is_a?(Hash) ? ::AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVG9waWNSdWxlLkFzc2V0UHJvcGVydHlWYXJpYW50UHJvcGVydHkifV19fQ==")), "value") @quality = quality Jsii::Type.check_type(@quality, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "quality") unless @quality.nil? end |
Instance Attribute Details
#quality ⇒ String? (readonly)
Optional.
A string that describes the quality of the value. Accepts substitution templates. Must be GOOD , BAD , or UNCERTAIN .
893 894 895 |
# File 'io_t/cfn_topic_rule.rb', line 893 def quality @quality end |
#timestamp ⇒ AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty (readonly)
The asset property value timestamp.
881 882 883 |
# File 'io_t/cfn_topic_rule.rb', line 881 def @timestamp end |
#value ⇒ AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyVariantProperty (readonly)
The value of the asset property.
886 887 888 |
# File 'io_t/cfn_topic_rule.rb', line 886 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
895 896 897 898 899 900 901 |
# File 'io_t/cfn_topic_rule.rb', line 895 def self.jsii_properties { :timestamp => "timestamp", :value => "value", :quality => "quality", } end |
Instance Method Details
#to_jsii ⇒ Object
903 904 905 906 907 908 909 910 911 |
# File 'io_t/cfn_topic_rule.rb', line 903 def to_jsii result = {} result.merge!({ "timestamp" => @timestamp, "value" => @value, "quality" => @quality, }) result.compact end |