aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataTypeProperty

interface DataTypeProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTTwinMaker.CfnComponentType.DataTypeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiottwinmaker#CfnComponentType_DataTypeProperty
Javasoftware.amazon.awscdk.services.iottwinmaker.CfnComponentType.DataTypeProperty
Pythonaws_cdk.aws_iottwinmaker.CfnComponentType.DataTypeProperty
TypeScript aws-cdk-lib » aws_iottwinmaker » CfnComponentType » DataTypeProperty

An object that specifies the data type of a property.

Example

// 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: {
    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',
  },
  relationship: {
    relationshipType: 'relationshipType',
    targetComponentTypeId: 'targetComponentTypeId',
  },
  unitOfMeasure: 'unitOfMeasure',
};

Properties

NameTypeDescription
typestringThe underlying type of the data type.
allowedValues?IResolvable | IResolvable | DataValueProperty[]The allowed values for this data type.
nestedType?IResolvable | DataTypePropertyThe nested type in the data type.
relationship?IResolvable | RelationshipPropertyA relationship that associates a component with another component.
unitOfMeasure?stringThe unit of measure used in this data type.

type

Type: string

The underlying type of the data type.

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


allowedValues?

Type: IResolvable | IResolvable | DataValueProperty[] (optional)

The allowed values for this data type.


nestedType?

Type: IResolvable | DataTypeProperty (optional)

The nested type in the data type.


relationship?

Type: IResolvable | RelationshipProperty (optional)

A relationship that associates a component with another component.


unitOfMeasure?

Type: string (optional)

The unit of measure used in this data type.