# CanNetworkInterfaceProperty

Struct · External

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](https://docs.aws.amazon.com/iot-fleetwise/latest/APIReference/API_ListDecoderManifestNetworkInterfaces.html) in the *AWS IoT FleetWise API Reference* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 canNetworkInterfaceProperty: iotfleetwise.CfnDecoderManifest.CanNetworkInterfaceProperty = {
  canInterface: {
    name: 'name',

    // the properties below are optional
    protocolName: 'protocolName',
    protocolVersion: 'protocolVersion',
  },
  interfaceId: 'interfaceId',
  type: 'type',
};
```

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

can_network_interface_property = iotfleetwise.CfnDecoderManifest.CanNetworkInterfaceProperty(
    can_interface=iotfleetwise.CfnDecoderManifest.CanInterfaceProperty(
        name="name",

        # the properties below are optional
        protocol_name="protocolName",
        protocol_version="protocolVersion"
    ),
    interface_id="interfaceId",
    type="type"
)
```

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.*;

CanNetworkInterfaceProperty canNetworkInterfaceProperty = CanNetworkInterfaceProperty.builder()
        .canInterface(CanInterfaceProperty.builder()
                .name("name")

                // the properties below are optional
                .protocolName("protocolName")
                .protocolVersion("protocolVersion")
                .build())
        .interfaceId("interfaceId")
        .type("type")
        .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 canNetworkInterfaceProperty = new CanNetworkInterfaceProperty {
    CanInterface = new CanInterfaceProperty {
        Name = "name",

        // the properties below are optional
        ProtocolName = "protocolName",
        ProtocolVersion = "protocolVersion"
    },
    InterfaceId = "interfaceId",
    Type = "type"
};
```

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"

canNetworkInterfaceProperty := &CanNetworkInterfaceProperty{
	CanInterface: &CanInterfaceProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		ProtocolName: jsii.String("protocolName"),
		ProtocolVersion: jsii.String("protocolVersion"),
	},
	InterfaceId: jsii.String("interfaceId"),
	Type: jsii.String("type"),
}
```

## Properties

- `canInterface`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDecoderManifest.CanInterfaceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnDecoderManifest.CanInterfaceProperty.html) (required) — Information about a network interface specified by the Controller Area Network (CAN) protocol.

- `interfaceId`: string (required) — The ID of the network interface.

- `type`: string (required) — 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.
