Class: AWSCDK::IoT::CfnTopicRule::AssetPropertyTimestampProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

An asset property timestamp entry containing the following information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_in_seconds:, offset_in_nanos: nil) ⇒ AssetPropertyTimestampProperty

Returns a new instance of AssetPropertyTimestampProperty.

Parameters:

  • time_in_seconds (String)

    A string that contains the time in seconds since epoch.

  • offset_in_nanos (String, nil) (defaults to: nil)

    Optional.



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_nanosString? (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_secondsString (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_propertiesObject



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_jsiiObject



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