Skip to content
v2.278.0

DefinitionProperty Struct ​

The entity definition.

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.CfnEntity.DataTypeProperty;
declare const dataValueProperty_: iottwinmaker.CfnEntity.DataValueProperty;
declare const relationshipValue: any;
const definitionProperty: iottwinmaker.CfnEntity.DefinitionProperty = {
  configuration: {
    configurationKey: 'configuration',
  },
  dataType: {
    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',
    },
    type: 'type',
    unitOfMeasure: 'unitOfMeasure',
  },
  defaultValue: {
    booleanValue: false,
    doubleValue: 123,
    expression: 'expression',
    integerValue: 123,
    listValue: [dataValueProperty_],
    longValue: 123,
    mapValue: {
      mapValueKey: dataValueProperty_,
    },
    relationshipValue: relationshipValue,
    stringValue: 'stringValue',
  },
  isExternalId: false,
  isFinal: false,
  isImported: false,
  isInherited: false,
  isRequiredInEntity: false,
  isStoredExternally: false,
  isTimeSeries: false,
};
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_iottwinmaker as iottwinmaker

# data_type_property_: iottwinmaker.CfnEntity.DataTypeProperty
# data_value_property_: iottwinmaker.CfnEntity.DataValueProperty
# relationship_value: Any

definition_property = iottwinmaker.CfnEntity.DefinitionProperty(
    configuration={
        "configuration_key": "configuration"
    },
    data_type=iottwinmaker.CfnEntity.DataTypeProperty(
        allowed_values=[iottwinmaker.CfnEntity.DataValueProperty(
            boolean_value=False,
            double_value=123,
            expression="expression",
            integer_value=123,
            list_value=[data_value_property_],
            long_value=123,
            map_value={
                "map_value_key": data_value_property_
            },
            relationship_value=relationship_value,
            string_value="stringValue"
        )],
        nested_type=data_type_property_,
        relationship=iottwinmaker.CfnEntity.RelationshipProperty(
            relationship_type="relationshipType",
            target_component_type_id="targetComponentTypeId"
        ),
        type="type",
        unit_of_measure="unitOfMeasure"
    ),
    default_value=iottwinmaker.CfnEntity.DataValueProperty(
        boolean_value=False,
        double_value=123,
        expression="expression",
        integer_value=123,
        list_value=[data_value_property_],
        long_value=123,
        map_value={
            "map_value_key": data_value_property_
        },
        relationship_value=relationship_value,
        string_value="stringValue"
    ),
    is_external_id=False,
    is_final=False,
    is_imported=False,
    is_inherited=False,
    is_required_in_entity=False,
    is_stored_externally=False,
    is_time_series=False
)
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.iottwinmaker.*;

DataTypeProperty dataTypeProperty_;
DataValueProperty dataValueProperty_;
Object relationshipValue;

DefinitionProperty definitionProperty = DefinitionProperty.builder()
        .configuration(Map.of(
                "configurationKey", "configuration"))
        .dataType(DataTypeProperty.builder()
                .allowedValues(List.of(DataValueProperty.builder()
                        .booleanValue(false)
                        .doubleValue(123)
                        .expression("expression")
                        .integerValue(123)
                        .listValue(List.of(dataValueProperty_))
                        .longValue(123)
                        .mapValue(Map.of(
                                "mapValueKey", dataValueProperty_))
                        .relationshipValue(relationshipValue)
                        .stringValue("stringValue")
                        .build()))
                .nestedType(dataTypeProperty_)
                .relationship(RelationshipProperty.builder()
                        .relationshipType("relationshipType")
                        .targetComponentTypeId("targetComponentTypeId")
                        .build())
                .type("type")
                .unitOfMeasure("unitOfMeasure")
                .build())
        .defaultValue(DataValueProperty.builder()
                .booleanValue(false)
                .doubleValue(123)
                .expression("expression")
                .integerValue(123)
                .listValue(List.of(dataValueProperty_))
                .longValue(123)
                .mapValue(Map.of(
                        "mapValueKey", dataValueProperty_))
                .relationshipValue(relationshipValue)
                .stringValue("stringValue")
                .build())
        .isExternalId(false)
        .isFinal(false)
        .isImported(false)
        .isInherited(false)
        .isRequiredInEntity(false)
        .isStoredExternally(false)
        .isTimeSeries(false)
        .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.IoTTwinMaker;

DataTypeProperty dataTypeProperty_;
DataValueProperty dataValueProperty_;
var relationshipValue;

var definitionProperty = new DefinitionProperty {
    Configuration = new Dictionary<string, string> {
        { "configurationKey", "configuration" }
    },
    DataType = new DataTypeProperty {
        AllowedValues = new [] { new DataValueProperty {
            BooleanValue = false,
            DoubleValue = 123,
            Expression = "expression",
            IntegerValue = 123,
            ListValue = new [] { dataValueProperty_ },
            LongValue = 123,
            MapValue = new Dictionary<string, object> {
                { "mapValueKey", dataValueProperty_ }
            },
            RelationshipValue = relationshipValue,
            StringValue = "stringValue"
        } },
        NestedType = dataTypeProperty_,
        Relationship = new RelationshipProperty {
            RelationshipType = "relationshipType",
            TargetComponentTypeId = "targetComponentTypeId"
        },
        Type = "type",
        UnitOfMeasure = "unitOfMeasure"
    },
    DefaultValue = new DataValueProperty {
        BooleanValue = false,
        DoubleValue = 123,
        Expression = "expression",
        IntegerValue = 123,
        ListValue = new [] { dataValueProperty_ },
        LongValue = 123,
        MapValue = new Dictionary<string, object> {
            { "mapValueKey", dataValueProperty_ }
        },
        RelationshipValue = relationshipValue,
        StringValue = "stringValue"
    },
    IsExternalId = false,
    IsFinal = false,
    IsImported = false,
    IsInherited = false,
    IsRequiredInEntity = false,
    IsStoredExternally = false,
    IsTimeSeries = false
};
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"

var dataTypeProperty_ DataTypeProperty
var dataValueProperty_ DataValueProperty
var relationshipValue interface{}

definitionProperty := &DefinitionProperty{
	Configuration: map[string]*string{
		"configurationKey": jsii.String("configuration"),
	},
	DataType: &DataTypeProperty{
		AllowedValues: []interface{}{
			&DataValueProperty{
				BooleanValue: jsii.Boolean(false),
				DoubleValue: jsii.Number(123),
				Expression: jsii.String("expression"),
				IntegerValue: jsii.Number(123),
				ListValue: []interface{}{
					dataValueProperty_,
				},
				LongValue: jsii.Number(123),
				MapValue: map[string]interface{}{
					"mapValueKey": dataValueProperty_,
				},
				RelationshipValue: relationshipValue,
				StringValue: jsii.String("stringValue"),
			},
		},
		NestedType: dataTypeProperty_,
		Relationship: &RelationshipProperty{
			RelationshipType: jsii.String("relationshipType"),
			TargetComponentTypeId: jsii.String("targetComponentTypeId"),
		},
		Type: jsii.String("type"),
		UnitOfMeasure: jsii.String("unitOfMeasure"),
	},
	DefaultValue: &DataValueProperty{
		BooleanValue: jsii.Boolean(false),
		DoubleValue: jsii.Number(123),
		Expression: jsii.String("expression"),
		IntegerValue: jsii.Number(123),
		ListValue: []interface{}{
			dataValueProperty_,
		},
		LongValue: jsii.Number(123),
		MapValue: map[string]interface{}{
			"mapValueKey": dataValueProperty_,
		},
		RelationshipValue: relationshipValue,
		StringValue: jsii.String("stringValue"),
	},
	IsExternalId: jsii.Boolean(false),
	IsFinal: jsii.Boolean(false),
	IsImported: jsii.Boolean(false),
	IsInherited: jsii.Boolean(false),
	IsRequiredInEntity: jsii.Boolean(false),
	IsStoredExternally: jsii.Boolean(false),
	IsTimeSeries: jsii.Boolean(false),
}

Properties ​

configurationoptionalIResolvable | { [key: string]: string }configurationoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]configurationoptionalIResolvableConfigurationoptionalIResolvableConfigurationoptionalinterface{} #
The configuration.
dataTypeoptionalIResolvable | CfnEntity.DataTypePropertydata_typeoptionaltyping.Union[IResolvable, DataTypeProperty]dataTypeoptionalIResolvableDataTypeoptionalIResolvableDataTypeoptionalinterface{} #
The data type.
defaultValueoptionalIResolvable | CfnEntity.DataValuePropertydefault_valueoptionaltyping.Union[IResolvable, DataValueProperty]defaultValueoptionalIResolvableDefaultValueoptionalIResolvableDefaultValueoptionalinterface{} #
The default value.
isExternalIdoptionalboolean | IResolvableis_external_idoptionaltyping.Union[bool, IResolvable]isExternalIdoptionalBooleanIsExternalIdoptionalboolIsExternalIdoptionalinterface{} #
Displays if the entity has a external Id.
isFinaloptionalboolean | IResolvableis_finaloptionaltyping.Union[bool, IResolvable]isFinaloptionalBooleanIsFinaloptionalboolIsFinaloptionalinterface{} #
Displays if the entity is final.
isImportedoptionalboolean | IResolvableis_importedoptionaltyping.Union[bool, IResolvable]isImportedoptionalBooleanIsImportedoptionalboolIsImportedoptionalinterface{} #
Displays if the entity is imported.
isInheritedoptionalboolean | IResolvableis_inheritedoptionaltyping.Union[bool, IResolvable]isInheritedoptionalBooleanIsInheritedoptionalboolIsInheritedoptionalinterface{} #
Displays if the entity is inherited.
isRequiredInEntityoptionalboolean | IResolvableis_required_in_entityoptionaltyping.Union[bool, IResolvable]isRequiredInEntityoptionalBooleanIsRequiredInEntityoptionalboolIsRequiredInEntityoptionalinterface{} #
Displays if the entity is a required entity.
isStoredExternallyoptionalboolean | IResolvableis_stored_externallyoptionaltyping.Union[bool, IResolvable]isStoredExternallyoptionalBooleanIsStoredExternallyoptionalboolIsStoredExternallyoptionalinterface{} #
Displays if the entity is tored externally.
isTimeSeriesoptionalboolean | IResolvableis_time_seriesoptionaltyping.Union[bool, IResolvable]isTimeSeriesoptionalBooleanIsTimeSeriesoptionalboolIsTimeSeriesoptionalinterface{} #
Displays if the entity.