Class: AWSCDK::IoTFleetWise::CfnVehicle::StateTemplateUpdateStrategyProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(on_change: nil, periodic: nil) ⇒ StateTemplateUpdateStrategyProperty

Returns a new instance of StateTemplateUpdateStrategyProperty.

Parameters:



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_changeObject? (readonly)



707
708
709
# File 'io_t_fleet_wise/cfn_vehicle.rb', line 707

def on_change
  @on_change
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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