Class: AWSCDK::IoTFleetWise::CfnVehicle::TimePeriodProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_fleet_wise/cfn_vehicle.rb

Overview

The length of time between state template updates.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ TimePeriodProperty

Returns a new instance of TimePeriodProperty.

Parameters:

  • unit (String)

    A unit of time.

  • value (Numeric)

    A number of time units.



737
738
739
740
741
742
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 737

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("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#unitString (readonly)

A unit of time.



748
749
750
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 748

def unit
  @unit
end

#valueNumeric (readonly)

A number of time units.



753
754
755
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 753

def value
  @value
end

Class Method Details

.jsii_propertiesObject



755
756
757
758
759
760
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 755

def self.jsii_properties
  {
    :unit => "unit",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



762
763
764
765
766
767
768
769
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 762

def to_jsii
  result = {}
  result.merge!({
    "unit" => @unit,
    "value" => @value,
  })
  result.compact
end