Class: AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
An asset property timestamp entry containing the following information.
Instance Attribute Summary collapse
-
#offset_in_nanos ⇒ String?
readonly
Optional.
-
#time_in_seconds ⇒ String
readonly
A string that contains the time in seconds since epoch.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(time_in_seconds:, offset_in_nanos: nil) ⇒ AssetPropertyTimestampProperty
constructor
A new instance of AssetPropertyTimestampProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(time_in_seconds:, offset_in_nanos: nil) ⇒ AssetPropertyTimestampProperty
Returns a new instance of AssetPropertyTimestampProperty.
820 821 822 823 824 825 |
# File 'io_t/cfn_topic_rule.rb', line 820 def initialize(time_in_seconds:, offset_in_nanos: nil) @time_in_seconds = time_in_seconds Jsii::Type.check_type(@time_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timeInSeconds") @offset_in_nanos = offset_in_nanos Jsii::Type.check_type(@offset_in_nanos, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "offsetInNanos") unless @offset_in_nanos.nil? end |
Instance Attribute Details
#offset_in_nanos ⇒ String? (readonly)
Optional.
A string that contains the nanosecond time offset. Accepts substitution templates.
840 841 842 |
# File 'io_t/cfn_topic_rule.rb', line 840 def offset_in_nanos @offset_in_nanos end |
#time_in_seconds ⇒ String (readonly)
A string that contains the time in seconds since epoch.
Accepts substitution templates.
833 834 835 |
# File 'io_t/cfn_topic_rule.rb', line 833 def time_in_seconds @time_in_seconds end |
Class Method Details
.jsii_properties ⇒ Object
842 843 844 845 846 847 |
# File 'io_t/cfn_topic_rule.rb', line 842 def self.jsii_properties { :time_in_seconds => "timeInSeconds", :offset_in_nanos => "offsetInNanos", } end |
Instance Method Details
#to_jsii ⇒ Object
849 850 851 852 853 854 855 856 |
# File 'io_t/cfn_topic_rule.rb', line 849 def to_jsii result = {} result.merge!({ "timeInSeconds" => @time_in_seconds, "offsetInNanos" => @offset_in_nanos, }) result.compact end |