Skip to content
v2.278.0

SensorProperty Struct ​

An input component that reports the environmental condition of a vehicle.

You can collect data about fluid levels, temperatures, vibrations, or battery voltage from sensors.

Example ​

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 sensorProperty: iotfleetwise.CfnSignalCatalog.SensorProperty = {
  dataType: 'dataType',
  fullyQualifiedName: 'fullyQualifiedName',

  // the properties below are optional
  allowedValues: ['allowedValues'],
  description: 'description',
  max: 123,
  min: 123,
  unit: 'unit',
};
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

sensor_property = iotfleetwise.CfnSignalCatalog.SensorProperty(
    data_type="dataType",
    fully_qualified_name="fullyQualifiedName",

    # the properties below are optional
    allowed_values=["allowedValues"],
    description="description",
    max=123,
    min=123,
    unit="unit"
)
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.*;

SensorProperty sensorProperty = SensorProperty.builder()
        .dataType("dataType")
        .fullyQualifiedName("fullyQualifiedName")

        // the properties below are optional
        .allowedValues(List.of("allowedValues"))
        .description("description")
        .max(123)
        .min(123)
        .unit("unit")
        .build();
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 sensorProperty = new SensorProperty {
    DataType = "dataType",
    FullyQualifiedName = "fullyQualifiedName",

    // the properties below are optional
    AllowedValues = new [] { "allowedValues" },
    Description = "description",
    Max = 123,
    Min = 123,
    Unit = "unit"
};
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"

sensorProperty := &SensorProperty{
	DataType: jsii.String("dataType"),
	FullyQualifiedName: jsii.String("fullyQualifiedName"),

	// the properties below are optional
	AllowedValues: []*string{
		jsii.String("allowedValues"),
	},
	Description: jsii.String("description"),
	Max: jsii.Number(123),
	Min: jsii.Number(123),
	Unit: jsii.String("unit"),
}

Properties ​

allowedValuesoptionalstring[]allowed_valuesoptionaltyping.List[str]allowedValuesoptionalList<String>AllowedValuesoptionalstring[]AllowedValuesoptional*[]*string #
A list of possible values a sensor can take.
dataTypestringdata_typestrdataTypeStringDataTypestringDataType*string required #
The specified data type of the sensor.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A brief description of a sensor.
fullyQualifiedNamestringfully_qualified_namestrfullyQualifiedNameStringFullyQualifiedNamestringFullyQualifiedName*string required #
The fully qualified name of the sensor.

For example, the fully qualified name of a sensor might be Vehicle.Body.Engine.Battery .

maxoptionalnumbermaxoptionalint | floatmaxoptionalNumberMaxoptionaldoubleMaxoptional*float64 #
The specified possible maximum value of the sensor.
minoptionalnumberminoptionalint | floatminoptionalNumberMinoptionaldoubleMinoptional*float64 #
The specified possible minimum value of the sensor.
unitoptionalstringunitoptionalstrunitoptionalStringUnitoptionalstringUnitoptional*string #
The scientific unit of measurement for data collected by the sensor.