# PropertyDefinitionProperty

PropertyDefinition is an object that maps strings to the property definitions in the component type.

- 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 propertyDefinitionProperty: iottwinmaker.CfnComponentType.PropertyDefinitionProperty = {
  configurations: {
    configurationsKey: 'configurations',
  },
  dataType: {
    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',
  },
  defaultValue: {
    booleanValue: false,
    doubleValue: 123,
    expression: 'expression',
    integerValue: 123,
    listValue: [dataValueProperty_],
    longValue: 123,
    mapValue: {
      mapValueKey: dataValueProperty_,
    },
    relationshipValue: relationshipValue,
    stringValue: 'stringValue',
  },
  isExternalId: false,
  isRequiredInEntity: false,
  isStoredExternally: false,
  isTimeSeries: false,
};
```

## Properties

- `configurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A mapping that specifies configuration information about the property.

- `dataType`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataTypeProperty.html) — An object that specifies the data type of a property.

- `defaultValue`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataValueProperty.html) — A boolean value that specifies whether the property ID comes from an external data store.

- `isExternalId`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A Boolean value that specifies whether the property ID comes from an external data source.

- `isRequiredInEntity`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean value that specifies whether the property is required in an entity.

- `isStoredExternally`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean value that specifies whether the property is stored externally.

- `isTimeSeries`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean value that specifies whether the property consists of time series data.
