Class: AWSCDK::IoT::CfnTopicRule::TimestreamTimestampProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ TimestreamTimestampProperty

Returns a new instance of TimestreamTimestampProperty.

Parameters:

  • unit (String)

    The precision of the timestamp value that results from the expression described in value .

  • value (String)

    An expression that returns a long epoch time value.



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

#unitString (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

#valueString (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_propertiesObject



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_jsiiObject



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