Class: AWSCDK::IoT::CfnTopicRule::TimestreamTimestampProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::TimestreamTimestampProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
The value to use for the entry's timestamp.
If blank, the time that the entry was processed is used.
Instance Attribute Summary collapse
-
#unit ⇒ String
readonly
The precision of the timestamp value that results from the expression described in
value. -
#value ⇒ String
readonly
An expression that returns a long epoch time value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unit:, value:) ⇒ TimestreamTimestampProperty
constructor
A new instance of TimestreamTimestampProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(unit:, value:) ⇒ TimestreamTimestampProperty
Returns a new instance of TimestreamTimestampProperty.
3015 3016 3017 3018 3019 3020 |
# File 'io_t/cfn_topic_rule.rb', line 3015 def initialize(unit:, value:) @unit = unit Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#unit ⇒ String (readonly)
The precision of the timestamp value that results from the expression described in value .
3026 3027 3028 |
# File 'io_t/cfn_topic_rule.rb', line 3026 def unit @unit end |
#value ⇒ String (readonly)
An expression that returns a long epoch time value.
3031 3032 3033 |
# File 'io_t/cfn_topic_rule.rb', line 3031 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
3033 3034 3035 3036 3037 3038 |
# File 'io_t/cfn_topic_rule.rb', line 3033 def self.jsii_properties { :unit => "unit", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
3040 3041 3042 3043 3044 3045 3046 3047 |
# File 'io_t/cfn_topic_rule.rb', line 3040 def to_jsii result = {} result.merge!({ "unit" => @unit, "value" => @value, }) result.compact end |