Class: AWSCDK::IoTFleetWise::CfnVehicle::TimePeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTFleetWise::CfnVehicle::TimePeriodProperty
- Defined in:
- io_t_fleet_wise/cfn_vehicle.rb
Overview
The length of time between state template updates.
Instance Attribute Summary collapse
-
#unit ⇒ String
readonly
A unit of time.
-
#value ⇒ Numeric
readonly
A number of time units.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unit:, value:) ⇒ TimePeriodProperty
constructor
A new instance of TimePeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(unit:, value:) ⇒ TimePeriodProperty
Returns a new instance of TimePeriodProperty.
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
#unit ⇒ String (readonly)
A unit of time.
748 749 750 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 748 def unit @unit end |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |