# DataTypeProperty

An object that specifies the data type of a property.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iottwinmaker as iottwinmaker } from 'aws-cdk-lib';

declare const dataTypeProperty_: iottwinmaker.CfnComponentType.DataTypeProperty;
declare const dataValueProperty_: iottwinmaker.CfnComponentType.DataValueProperty;
declare const relationshipValue: any;
const dataTypeProperty: iottwinmaker.CfnComponentType.DataTypeProperty = {
  type: 'type',

  // the properties below are optional
  allowedValues: [{
    booleanValue: false,
    doubleValue: 123,
    expression: 'expression',
    integerValue: 123,
    listValue: [dataValueProperty_],
    longValue: 123,
    mapValue: {
      mapValueKey: dataValueProperty_,
    },
    relationshipValue: relationshipValue,
    stringValue: 'stringValue',
  }],
  nestedType: dataTypeProperty_,
  relationship: {
    relationshipType: 'relationshipType',
    targetComponentTypeId: 'targetComponentTypeId',
  },
  unitOfMeasure: 'unitOfMeasure',
};
```

## Properties

- `allowedValues`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataValueProperty.html)[] — The allowed values for this data type.

- `nestedType`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataTypeProperty.html) — The nested type in the data type.

- `relationship`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.RelationshipProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.RelationshipProperty.html) — A relationship that associates a component with another component.

- `type`: string (required) — The underlying type of the data type.

  Valid Values: `RELATIONSHIP | STRING | LONG | BOOLEAN | INTEGER | DOUBLE | LIST | MAP`

- `unitOfMeasure`: string — The unit of measure used in this data type.
