DataTypeProperty Struct
An object that specifies the data type of a property.
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
allowedValuesoptionalIResolvable | IResolvable | CfnComponentType.DataValueProperty[]allowed_valuesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataValueProperty]]]allowedValuesoptionalIResolvableAllowedValuesoptionalIResolvableAllowedValuesoptionalinterface{}#The allowed values for this data type.
nestedTypeoptionalIResolvable | CfnComponentType.DataTypePropertynested_typeoptionaltyping.Union[IResolvable, DataTypeProperty]nestedTypeoptionalIResolvableNestedTypeoptionalIResolvableNestedTypeoptionalinterface{}#The nested type in the data type.
relationshipoptionalIResolvable | CfnComponentType.RelationshipPropertyrelationshipoptionaltyping.Union[IResolvable, RelationshipProperty]relationshipoptionalIResolvableRelationshipoptionalIResolvableRelationshipoptionalinterface{}#A relationship that associates a component with another component.
The underlying type of the data type.
Valid Values: RELATIONSHIP | STRING | LONG | BOOLEAN | INTEGER | DOUBLE | LIST | MAP
unitOfMeasureoptionalstringunit_of_measureoptionalstrunitOfMeasureoptionalStringUnitOfMeasureoptionalstringUnitOfMeasureoptional*string#The unit of measure used in this data type.