Class: AWSCDK::IoTFleetWise::CfnDecoderManifest::CanSignalDecoderProperty

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

Overview

Information about signal decoder using the Controller Area Network (CAN) protocol.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(can_signal:, fully_qualified_name:, interface_id:, type:) ⇒ CanSignalDecoderProperty

Returns a new instance of CanSignalDecoderProperty.

Parameters:

  • can_signal (AWSCDK::IResolvable, AWSCDK::IoTFleetWise::CfnDecoderManifest::CanSignalProperty)

    Information about a single controller area network (CAN) signal and the messages it receives and transmits.

  • fully_qualified_name (String)

    The fully qualified name of a signal decoder as defined in a vehicle model.

  • interface_id (String)

    The ID of a network interface that specifies what network protocol a vehicle follows.

  • type (String)

    The network protocol for the vehicle.



748
749
750
751
752
753
754
755
756
757
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 748

def initialize(can_signal:, fully_qualified_name:, interface_id:, type:)
  @can_signal = can_signal.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnDecoderManifest::CanSignalProperty.new(**can_signal.transform_keys(&:to_sym)) : can_signal
  Jsii::Type.check_type(@can_signal, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuRGVjb2Rlck1hbmlmZXN0LkNhblNpZ25hbFByb3BlcnR5In1dfX0=")), "canSignal")
  @fully_qualified_name = fully_qualified_name
  Jsii::Type.check_type(@fully_qualified_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fullyQualifiedName")
  @interface_id = interface_id
  Jsii::Type.check_type(@interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "interfaceId")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#can_signalAWSCDK::IResolvable, AWSCDK::IoTFleetWise::CfnDecoderManifest::CanSignalProperty (readonly)

Information about a single controller area network (CAN) signal and the messages it receives and transmits.



763
764
765
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 763

def can_signal
  @can_signal
end

#fully_qualified_nameString (readonly)

The fully qualified name of a signal decoder as defined in a vehicle model.



768
769
770
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 768

def fully_qualified_name
  @fully_qualified_name
end

#interface_idString (readonly)

The ID of a network interface that specifies what network protocol a vehicle follows.



773
774
775
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 773

def interface_id
  @interface_id
end

#typeString (readonly)

The network protocol for the vehicle.

For example, CAN_SIGNAL specifies a protocol that defines how data is communicated between electronic control units (ECUs). OBD_SIGNAL specifies a protocol that defines how self-diagnostic data is communicated between ECUs.



780
781
782
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 780

def type
  @type
end

Class Method Details

.jsii_propertiesObject



782
783
784
785
786
787
788
789
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 782

def self.jsii_properties
  {
    :can_signal => "canSignal",
    :fully_qualified_name => "fullyQualifiedName",
    :interface_id => "interfaceId",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



791
792
793
794
795
796
797
798
799
800
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 791

def to_jsii
  result = {}
  result.merge!({
    "canSignal" => @can_signal,
    "fullyQualifiedName" => @fully_qualified_name,
    "interfaceId" => @interface_id,
    "type" => @type,
  })
  result.compact
end