Class: AWSCDK::IoTFleetWise::CfnDecoderManifest::CanNetworkInterfaceProperty

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

Overview

Represents a node and its specifications in an in-vehicle communication network.

All signal decoders must be associated with a network node.

To return this information about all the network interfaces specified in a decoder manifest, use the ListDecoderManifestNetworkInterfaces in the AWS IoT FleetWise API Reference .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(can_interface:, interface_id:, type:) ⇒ CanNetworkInterfaceProperty

Returns a new instance of CanNetworkInterfaceProperty.

Parameters:



692
693
694
695
696
697
698
699
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 692

def initialize(can_interface:, interface_id:, type:)
  @can_interface = can_interface.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty.new(**can_interface.transform_keys(&:to_sym)) : can_interface
  Jsii::Type.check_type(@can_interface, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuRGVjb2Rlck1hbmlmZXN0LkNhbkludGVyZmFjZVByb3BlcnR5In1dfX0=")), "canInterface")
  @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_interfaceAWSCDK::IResolvable, AWSCDK::IoTFleetWise::CfnDecoderManifest::CanInterfaceProperty (readonly)

Information about a network interface specified by the Controller Area Network (CAN) protocol.



705
706
707
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 705

def can_interface
  @can_interface
end

#interface_idString (readonly)

The ID of the network interface.



710
711
712
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 710

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.



717
718
719
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 717

def type
  @type
end

Class Method Details

.jsii_propertiesObject



719
720
721
722
723
724
725
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 719

def self.jsii_properties
  {
    :can_interface => "canInterface",
    :interface_id => "interfaceId",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



727
728
729
730
731
732
733
734
735
# File 'io_t_fleet_wise/cfn_decoder_manifest.rb', line 727

def to_jsii
  result = {}
  result.merge!({
    "canInterface" => @can_interface,
    "interfaceId" => @interface_id,
    "type" => @type,
  })
  result.compact
end