# ObdSignalProperty

Struct · External

Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const obdSignalProperty: iotfleetwise.CfnDecoderManifest.ObdSignalProperty = {
  byteLength: 'byteLength',
  offset: 'offset',
  pid: 'pid',
  pidResponseLength: 'pidResponseLength',
  scaling: 'scaling',
  serviceMode: 'serviceMode',
  startByte: 'startByte',

  // the properties below are optional
  bitMaskLength: 'bitMaskLength',
  bitRightShift: 'bitRightShift',
  isSigned: 'isSigned',
  signalValueType: 'signalValueType',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotfleetwise as iotfleetwise

obd_signal_property = iotfleetwise.CfnDecoderManifest.ObdSignalProperty(
    byte_length="byteLength",
    offset="offset",
    pid="pid",
    pid_response_length="pidResponseLength",
    scaling="scaling",
    service_mode="serviceMode",
    start_byte="startByte",

    # the properties below are optional
    bit_mask_length="bitMaskLength",
    bit_right_shift="bitRightShift",
    is_signed="isSigned",
    signal_value_type="signalValueType"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotfleetwise.*;

ObdSignalProperty obdSignalProperty = ObdSignalProperty.builder()
        .byteLength("byteLength")
        .offset("offset")
        .pid("pid")
        .pidResponseLength("pidResponseLength")
        .scaling("scaling")
        .serviceMode("serviceMode")
        .startByte("startByte")

        // the properties below are optional
        .bitMaskLength("bitMaskLength")
        .bitRightShift("bitRightShift")
        .isSigned("isSigned")
        .signalValueType("signalValueType")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTFleetWise;

var obdSignalProperty = new ObdSignalProperty {
    ByteLength = "byteLength",
    Offset = "offset",
    Pid = "pid",
    PidResponseLength = "pidResponseLength",
    Scaling = "scaling",
    ServiceMode = "serviceMode",
    StartByte = "startByte",

    // the properties below are optional
    BitMaskLength = "bitMaskLength",
    BitRightShift = "bitRightShift",
    IsSigned = "isSigned",
    SignalValueType = "signalValueType"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

obdSignalProperty := &ObdSignalProperty{
	ByteLength: jsii.String("byteLength"),
	Offset: jsii.String("offset"),
	Pid: jsii.String("pid"),
	PidResponseLength: jsii.String("pidResponseLength"),
	Scaling: jsii.String("scaling"),
	ServiceMode: jsii.String("serviceMode"),
	StartByte: jsii.String("startByte"),

	// the properties below are optional
	BitMaskLength: jsii.String("bitMaskLength"),
	BitRightShift: jsii.String("bitRightShift"),
	IsSigned: jsii.String("isSigned"),
	SignalValueType: jsii.String("signalValueType"),
}
```

## Properties

- `bitMaskLength`: string — The number of bits to mask in a message.

- `bitRightShift`: string — The number of positions to shift bits in the message.

- `byteLength`: string (required) — The length of a message.

- `isSigned`: string | boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Determines whether the message is signed ( `true` ) or not ( `false` ).

  If it's signed, the message can represent both positive and negative numbers. The `isSigned` parameter only applies to the `INTEGER` raw signal type, and it doesn't affect the `FLOATING_POINT` raw signal type. The default value is `false` .

- `offset`: string (required) — The offset used to calculate the signal value.

  Combined with scaling, the calculation is `value = raw_value * scaling + offset` .

- `pid`: string (required) — The diagnostic code used to request data from a vehicle for this signal.

- `pidResponseLength`: string (required) — The length of the requested data.

- `scaling`: string (required) — A multiplier used to decode the message.

- `serviceMode`: string (required) — The mode of operation (diagnostic service) in a message.

- `signalValueType`: string — The value type of the signal.

  The default value is `INTEGER` .

- `startByte`: string (required) — Indicates the beginning of the message.
