CfnDecoderManifestPropsMixin
- class aws_cdk.mixins_preview.aws_iotfleetwise.mixins.CfnDecoderManifestPropsMixin(props, *, strategy=None)
Bases:
MixinCreates the decoder manifest associated with a model manifest. To create a decoder manifest, the following must be true:.
Every signal decoder has a unique name.
Each signal decoder is associated with a network interface.
Each network interface has a unique ID.
The signal decoders are specified in the model manifest.
For more information, see Decoder manifests in the AWS IoT FleetWise Developer Guide . .. epigraph:
Access to certain AWS IoT FleetWise features is currently gated. For more information, see `AWS Region and feature availability <https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html>`_ in the *AWS IoT FleetWise Developer Guide* .
- See:
- CloudformationResource:
AWS::IoTFleetWise::DecoderManifest
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins cfn_decoder_manifest_props_mixin = iotfleetwise_mixins.CfnDecoderManifestPropsMixin(iotfleetwise_mixins.CfnDecoderManifestMixinProps( default_for_unmapped_signals="defaultForUnmappedSignals", description="description", model_manifest_arn="modelManifestArn", name="name", network_interfaces=[iotfleetwise_mixins.CfnDecoderManifestPropsMixin.NetworkInterfacesItemsProperty( can_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanInterfaceProperty( name="name", protocol_name="protocolName", protocol_version="protocolVersion" ), interface_id="interfaceId", obd_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdInterfaceProperty( dtc_request_interval_seconds="dtcRequestIntervalSeconds", has_transmission_ecu="hasTransmissionEcu", name="name", obd_standard="obdStandard", pid_request_interval_seconds="pidRequestIntervalSeconds", request_message_id="requestMessageId", use_extended_ids="useExtendedIds" ), type="type" )], signal_decoders=[iotfleetwise_mixins.CfnDecoderManifestPropsMixin.SignalDecodersItemsProperty( can_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanSignalProperty( factor="factor", is_big_endian="isBigEndian", is_signed="isSigned", length="length", message_id="messageId", name="name", offset="offset", signal_value_type="signalValueType", start_bit="startBit" ), fully_qualified_name="fullyQualifiedName", interface_id="interfaceId", obd_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdSignalProperty( bit_mask_length="bitMaskLength", bit_right_shift="bitRightShift", byte_length="byteLength", is_signed="isSigned", offset="offset", pid="pid", pid_response_length="pidResponseLength", scaling="scaling", service_mode="serviceMode", signal_value_type="signalValueType", start_byte="startByte" ), type="type" )], status="status", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoTFleetWise::DecoderManifest.- Parameters:
props (
Union[CfnDecoderManifestMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['defaultForUnmappedSignals', 'description', 'modelManifestArn', 'name', 'networkInterfaces', 'signalDecoders', 'status', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CanInterfaceProperty
- class CfnDecoderManifestPropsMixin.CanInterfaceProperty(*, name=None, protocol_name=None, protocol_version=None)
Bases:
objectA single controller area network (CAN) device interface.
- Parameters:
name (
Optional[str]) – The unique name of the interface.protocol_name (
Optional[str]) – The name of the communication protocol for the interface.protocol_version (
Optional[str]) – The version of the communication protocol for the interface.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins can_interface_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanInterfaceProperty( name="name", protocol_name="protocolName", protocol_version="protocolVersion" )
Attributes
- name
The unique name of the interface.
- protocol_name
The name of the communication protocol for the interface.
- protocol_version
The version of the communication protocol for the interface.
CanNetworkInterfaceProperty
- class CfnDecoderManifestPropsMixin.CanNetworkInterfaceProperty(*, can_interface=None, interface_id=None, type=None)
Bases:
objectRepresents 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 .
- Parameters:
can_interface (
Union[IResolvable,CanInterfaceProperty,Dict[str,Any],None]) – Information about a network interface specified by the Controller Area Network (CAN) protocol.interface_id (
Optional[str]) – The ID of the network interface.type (
Optional[str]) – The network protocol for the vehicle. For example,CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins can_network_interface_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanNetworkInterfaceProperty( can_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanInterfaceProperty( name="name", protocol_name="protocolName", protocol_version="protocolVersion" ), interface_id="interfaceId", type="type" )
Attributes
- can_interface
Information about a network interface specified by the Controller Area Network (CAN) protocol.
- interface_id
The ID of the network interface.
- type
The network protocol for the vehicle.
For example,
CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
CanSignalDecoderProperty
- class CfnDecoderManifestPropsMixin.CanSignalDecoderProperty(*, can_signal=None, fully_qualified_name=None, interface_id=None, type=None)
Bases:
objectInformation about signal decoder using the Controller Area Network (CAN) protocol.
- Parameters:
can_signal (
Union[IResolvable,CanSignalProperty,Dict[str,Any],None]) – Information about a single controller area network (CAN) signal and the messages it receives and transmits.fully_qualified_name (
Optional[str]) – The fully qualified name of a signal decoder as defined in a vehicle model.interface_id (
Optional[str]) – The ID of a network interface that specifies what network protocol a vehicle follows.type (
Optional[str]) – The network protocol for the vehicle. For example,CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins can_signal_decoder_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanSignalDecoderProperty( can_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanSignalProperty( factor="factor", is_big_endian="isBigEndian", is_signed="isSigned", length="length", message_id="messageId", name="name", offset="offset", signal_value_type="signalValueType", start_bit="startBit" ), fully_qualified_name="fullyQualifiedName", interface_id="interfaceId", type="type" )
Attributes
- can_signal
Information about a single controller area network (CAN) signal and the messages it receives and transmits.
- fully_qualified_name
The fully qualified name of a signal decoder as defined in a vehicle model.
- interface_id
The ID of a network interface that specifies what network protocol a vehicle follows.
- type
The network protocol for the vehicle.
For example,
CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
CanSignalProperty
- class CfnDecoderManifestPropsMixin.CanSignalProperty(*, factor=None, is_big_endian=None, is_signed=None, length=None, message_id=None, name=None, offset=None, signal_value_type=None, start_bit=None)
Bases:
objectInformation about a single controller area network (CAN) signal and the messages it receives and transmits.
- Parameters:
factor (
Optional[str]) – A multiplier used to decode the CAN message.is_big_endian (
Optional[str]) – Whether the byte ordering of a CAN message is big-endian.is_signed (
Optional[str]) – Whether the message data is specified as a signed value.length (
Optional[str]) – How many bytes of data are in the message.message_id (
Optional[str]) – The ID of the message.name (
Optional[str]) – The name of the signal.offset (
Optional[str]) – The offset used to calculate the signal value. Combined with factor, the calculation isvalue = raw_value * factor + offset.signal_value_type (
Optional[str]) – The value type of the signal. The default value isINTEGER.start_bit (
Optional[str]) – Indicates the beginning of the CAN message.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins can_signal_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanSignalProperty( factor="factor", is_big_endian="isBigEndian", is_signed="isSigned", length="length", message_id="messageId", name="name", offset="offset", signal_value_type="signalValueType", start_bit="startBit" )
Attributes
- factor
A multiplier used to decode the CAN message.
- is_big_endian
Whether the byte ordering of a CAN message is big-endian.
- is_signed
Whether the message data is specified as a signed value.
- length
How many bytes of data are in the message.
- message_id
The ID of the message.
- name
The name of the signal.
- offset
The offset used to calculate the signal value.
Combined with factor, the calculation is
value = raw_value * factor + offset.
- signal_value_type
The value type of the signal.
The default value is
INTEGER.
- start_bit
Indicates the beginning of the CAN message.
NetworkInterfacesItemsProperty
- class CfnDecoderManifestPropsMixin.NetworkInterfacesItemsProperty(*, can_interface=None, interface_id=None, obd_interface=None, type=None)
Bases:
objectA list of information about available network interfaces.
- Parameters:
can_interface (
Union[IResolvable,CanInterfaceProperty,Dict[str,Any],None])interface_id (
Optional[str])obd_interface (
Union[IResolvable,ObdInterfaceProperty,Dict[str,Any],None])type (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins network_interfaces_items_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.NetworkInterfacesItemsProperty( can_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanInterfaceProperty( name="name", protocol_name="protocolName", protocol_version="protocolVersion" ), interface_id="interfaceId", obd_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdInterfaceProperty( dtc_request_interval_seconds="dtcRequestIntervalSeconds", has_transmission_ecu="hasTransmissionEcu", name="name", obd_standard="obdStandard", pid_request_interval_seconds="pidRequestIntervalSeconds", request_message_id="requestMessageId", use_extended_ids="useExtendedIds" ), type="type" )
Attributes
- can_interface
-
- Type:
see
- interface_id
-
- Type:
see
- obd_interface
-
- Type:
see
ObdInterfaceProperty
- class CfnDecoderManifestPropsMixin.ObdInterfaceProperty(*, dtc_request_interval_seconds=None, has_transmission_ecu=None, name=None, obd_standard=None, pid_request_interval_seconds=None, request_message_id=None, use_extended_ids=None)
Bases:
objectA network interface that specifies the On-board diagnostic (OBD) II network protocol.
- Parameters:
dtc_request_interval_seconds (
Optional[str]) – The maximum number message requests per diagnostic trouble code per second.has_transmission_ecu (
Optional[str]) – Whether the vehicle has a transmission control module (TCM).name (
Optional[str]) – The name of the interface.obd_standard (
Optional[str]) – The standard OBD II PID.pid_request_interval_seconds (
Optional[str]) – The maximum number message requests per second.request_message_id (
Optional[str]) – The ID of the message requesting vehicle data.use_extended_ids (
Optional[str]) – Whether to use extended IDs in the message.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins obd_interface_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdInterfaceProperty( dtc_request_interval_seconds="dtcRequestIntervalSeconds", has_transmission_ecu="hasTransmissionEcu", name="name", obd_standard="obdStandard", pid_request_interval_seconds="pidRequestIntervalSeconds", request_message_id="requestMessageId", use_extended_ids="useExtendedIds" )
Attributes
- dtc_request_interval_seconds
The maximum number message requests per diagnostic trouble code per second.
- has_transmission_ecu
Whether the vehicle has a transmission control module (TCM).
- name
The name of the interface.
- obd_standard
The standard OBD II PID.
- pid_request_interval_seconds
The maximum number message requests per second.
- request_message_id
The ID of the message requesting vehicle data.
- use_extended_ids
Whether to use extended IDs in the message.
ObdNetworkInterfaceProperty
- class CfnDecoderManifestPropsMixin.ObdNetworkInterfaceProperty(*, interface_id=None, obd_interface=None, type=None)
Bases:
objectInformation about a network interface specified by the On-board diagnostic (OBD) II protocol.
- Parameters:
interface_id (
Optional[str]) – The ID of the network interface.obd_interface (
Union[IResolvable,ObdInterfaceProperty,Dict[str,Any],None]) – Information about a network interface specified by the On-board diagnostic (OBD) II protocol.type (
Optional[str]) – The network protocol for the vehicle. For example,CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins obd_network_interface_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdNetworkInterfaceProperty( interface_id="interfaceId", obd_interface=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdInterfaceProperty( dtc_request_interval_seconds="dtcRequestIntervalSeconds", has_transmission_ecu="hasTransmissionEcu", name="name", obd_standard="obdStandard", pid_request_interval_seconds="pidRequestIntervalSeconds", request_message_id="requestMessageId", use_extended_ids="useExtendedIds" ), type="type" )
Attributes
- interface_id
The ID of the network interface.
- obd_interface
Information about a network interface specified by the On-board diagnostic (OBD) II protocol.
- type
The network protocol for the vehicle.
For example,
CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
ObdSignalDecoderProperty
- class CfnDecoderManifestPropsMixin.ObdSignalDecoderProperty(*, fully_qualified_name=None, interface_id=None, obd_signal=None, type=None)
Bases:
objectA list of information about signal decoders.
- Parameters:
fully_qualified_name (
Optional[str]) – The fully qualified name of a signal decoder as defined in a vehicle model.interface_id (
Optional[str]) – The ID of a network interface that specifies what network protocol a vehicle follows.obd_signal (
Union[IResolvable,ObdSignalProperty,Dict[str,Any],None]) – Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.type (
Optional[str]) – The network protocol for the vehicle. For example,CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins obd_signal_decoder_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdSignalDecoderProperty( fully_qualified_name="fullyQualifiedName", interface_id="interfaceId", obd_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdSignalProperty( bit_mask_length="bitMaskLength", bit_right_shift="bitRightShift", byte_length="byteLength", is_signed="isSigned", offset="offset", pid="pid", pid_response_length="pidResponseLength", scaling="scaling", service_mode="serviceMode", signal_value_type="signalValueType", start_byte="startByte" ), type="type" )
Attributes
- fully_qualified_name
The fully qualified name of a signal decoder as defined in a vehicle model.
- interface_id
The ID of a network interface that specifies what network protocol a vehicle follows.
- obd_signal
Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.
- type
The network protocol for the vehicle.
For example,
CAN_SIGNALspecifies a protocol that defines how data is communicated between electronic control units (ECUs).OBD_SIGNALspecifies a protocol that defines how self-diagnostic data is communicated between ECUs.
ObdSignalProperty
- class CfnDecoderManifestPropsMixin.ObdSignalProperty(*, bit_mask_length=None, bit_right_shift=None, byte_length=None, is_signed=None, offset=None, pid=None, pid_response_length=None, scaling=None, service_mode=None, signal_value_type=None, start_byte=None)
Bases:
objectInformation about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.
- Parameters:
bit_mask_length (
Optional[str]) – The number of bits to mask in a message.bit_right_shift (
Optional[str]) – The number of positions to shift bits in the message.byte_length (
Optional[str]) – The length of a message.is_signed (
Union[str,bool,IResolvable,None]) – Determines whether the message is signed (true) or not (false). If it’s signed, the message can represent both positive and negative numbers. TheisSignedparameter only applies to theINTEGERraw signal type, and it doesn’t affect theFLOATING_POINTraw signal type. The default value isfalse.offset (
Optional[str]) – The offset used to calculate the signal value. Combined with scaling, the calculation isvalue = raw_value * scaling + offset.pid (
Optional[str]) – The diagnostic code used to request data from a vehicle for this signal.pid_response_length (
Optional[str]) – The length of the requested data.scaling (
Optional[str]) – A multiplier used to decode the message.service_mode (
Optional[str]) – The mode of operation (diagnostic service) in a message.signal_value_type (
Optional[str]) – The value type of the signal. The default value isINTEGER.start_byte (
Optional[str]) – Indicates the beginning of the message.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins obd_signal_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdSignalProperty( bit_mask_length="bitMaskLength", bit_right_shift="bitRightShift", byte_length="byteLength", is_signed="isSigned", offset="offset", pid="pid", pid_response_length="pidResponseLength", scaling="scaling", service_mode="serviceMode", signal_value_type="signalValueType", start_byte="startByte" )
Attributes
- bit_mask_length
The number of bits to mask in a message.
- bit_right_shift
The number of positions to shift bits in the message.
- byte_length
The length of a message.
- is_signed
Determines whether the message is signed (
true) or not (false).If it’s signed, the message can represent both positive and negative numbers. The
isSignedparameter only applies to theINTEGERraw signal type, and it doesn’t affect theFLOATING_POINTraw signal type. The default value isfalse.
- offset
The offset used to calculate the signal value.
Combined with scaling, the calculation is
value = raw_value * scaling + offset.
- pid
The diagnostic code used to request data from a vehicle for this signal.
- pid_response_length
The length of the requested data.
- scaling
A multiplier used to decode the message.
- service_mode
The mode of operation (diagnostic service) in a message.
- signal_value_type
The value type of the signal.
The default value is
INTEGER.
- start_byte
Indicates the beginning of the message.
SignalDecodersItemsProperty
- class CfnDecoderManifestPropsMixin.SignalDecodersItemsProperty(*, can_signal=None, fully_qualified_name=None, interface_id=None, obd_signal=None, type=None)
Bases:
objectInformation about a signal decoder.
- Parameters:
can_signal (
Union[IResolvable,CanSignalProperty,Dict[str,Any],None])fully_qualified_name (
Optional[str])interface_id (
Optional[str])obd_signal (
Union[IResolvable,ObdSignalProperty,Dict[str,Any],None])type (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iotfleetwise import mixins as iotfleetwise_mixins signal_decoders_items_property = iotfleetwise_mixins.CfnDecoderManifestPropsMixin.SignalDecodersItemsProperty( can_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.CanSignalProperty( factor="factor", is_big_endian="isBigEndian", is_signed="isSigned", length="length", message_id="messageId", name="name", offset="offset", signal_value_type="signalValueType", start_bit="startBit" ), fully_qualified_name="fullyQualifiedName", interface_id="interfaceId", obd_signal=iotfleetwise_mixins.CfnDecoderManifestPropsMixin.ObdSignalProperty( bit_mask_length="bitMaskLength", bit_right_shift="bitRightShift", byte_length="byteLength", is_signed="isSigned", offset="offset", pid="pid", pid_response_length="pidResponseLength", scaling="scaling", service_mode="serviceMode", signal_value_type="signalValueType", start_byte="startByte" ), type="type" )
Attributes
- can_signal
-
- Type:
see
- fully_qualified_name
-
- Type:
see
- interface_id
-
- Type:
see
- obd_signal
-
- Type:
see