Class: AWSCDK::IoTFleetWise::CfnVehicle::StateTemplateUpdateStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTFleetWise::CfnVehicle::StateTemplateUpdateStrategyProperty
- Defined in:
- io_t_fleet_wise/cfn_vehicle.rb
Overview
The update strategy for the state template.
Vehicles associated with the state template can stream telemetry data with either an on_change or periodic update strategy.
Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .
Instance Attribute Summary collapse
- #on_change ⇒ Object? readonly
- #periodic ⇒ AWSCDK::IResolvable, ... readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(on_change: nil, periodic: nil) ⇒ StateTemplateUpdateStrategyProperty
constructor
A new instance of StateTemplateUpdateStrategyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(on_change: nil, periodic: nil) ⇒ StateTemplateUpdateStrategyProperty
Returns a new instance of StateTemplateUpdateStrategyProperty.
698 699 700 701 702 703 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 698 def initialize(on_change: nil, periodic: nil) @on_change = on_change Jsii::Type.check_type(@on_change, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "onChange") unless @on_change.nil? @periodic = periodic.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnVehicle::PeriodicStateTemplateUpdateStrategyProperty.new(**periodic.transform_keys(&:to_sym)) : periodic Jsii::Type.check_type(@periodic, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuVmVoaWNsZS5QZXJpb2RpY1N0YXRlVGVtcGxhdGVVcGRhdGVTdHJhdGVneVByb3BlcnR5In1dfX0=")), "periodic") unless @periodic.nil? end |
Instance Attribute Details
#on_change ⇒ Object? (readonly)
707 708 709 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 707 def on_change @on_change end |
#periodic ⇒ AWSCDK::IResolvable, ... (readonly)
710 711 712 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 710 def periodic @periodic end |
Class Method Details
.jsii_properties ⇒ Object
712 713 714 715 716 717 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 712 def self.jsii_properties { :on_change => "onChange", :periodic => "periodic", } end |
Instance Method Details
#to_jsii ⇒ Object
719 720 721 722 723 724 725 726 |
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 719 def to_jsii result = {} result.merge!({ "onChange" => @on_change, "periodic" => @periodic, }) result.compact end |