PropertyDefinitionProperty Struct
PropertyDefinition is an object that maps strings to the property definitions in the component type.
| Source | |
|---|---|
| Type last changed |
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,
};
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.CfnComponentType.DataTypeProperty
# data_value_property_: iottwinmaker.CfnComponentType.DataValueProperty
# relationship_value: Any
property_definition_property = iottwinmaker.CfnComponentType.PropertyDefinitionProperty(
configurations={
"configurations_key": "configurations"
},
data_type=iottwinmaker.CfnComponentType.DataTypeProperty(
type="type",
# the properties below are optional
allowed_values=[iottwinmaker.CfnComponentType.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.CfnComponentType.RelationshipProperty(
relationship_type="relationshipType",
target_component_type_id="targetComponentTypeId"
),
unit_of_measure="unitOfMeasure"
),
default_value=iottwinmaker.CfnComponentType.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_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;
PropertyDefinitionProperty propertyDefinitionProperty = PropertyDefinitionProperty.builder()
.configurations(Map.of(
"configurationsKey", "configurations"))
.dataType(DataTypeProperty.builder()
.type("type")
// the properties below are optional
.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())
.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)
.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 propertyDefinitionProperty = new PropertyDefinitionProperty {
Configurations = new Dictionary<string, string> {
{ "configurationsKey", "configurations" }
},
DataType = new DataTypeProperty {
Type = "type",
// the properties below are optional
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"
},
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,
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{}
propertyDefinitionProperty := &PropertyDefinitionProperty{
Configurations: map[string]*string{
"configurationsKey": jsii.String("configurations"),
},
DataType: &DataTypeProperty{
Type: jsii.String("type"),
// the properties below are optional
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"),
},
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),
IsRequiredInEntity: jsii.Boolean(false),
IsStoredExternally: jsii.Boolean(false),
IsTimeSeries: jsii.Boolean(false),
}
Properties
configurationsoptionalIResolvable | { [key: string]: string }configurationsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]configurationsoptionalIResolvableConfigurationsoptionalIResolvableConfigurationsoptionalinterface{} #A mapping that specifies configuration information about the property.
dataTypeoptionalIResolvable | CfnComponentType.data_typeoptionaltyping.Union[IResolvable, DataTypeProperty]dataTypeoptionalIResolvableDataTypeoptionalIResolvableDataTypeoptionalinterface{} #An object that specifies the data type of a property.
defaultValueoptionalIResolvable | CfnComponentType.default_valueoptionaltyping.Union[IResolvable, DataValueProperty]defaultValueoptionalIResolvableDefaultValueoptionalIResolvableDefaultValueoptionalinterface{} #A boolean value that specifies whether the property ID comes from an external data store.
isExternalIdoptionalboolean | IResolvableis_external_idoptionaltyping.Union[bool, IResolvable]isExternalIdoptionalBooleanIsExternalIdoptionalboolIsExternalIdoptionalinterface{} #A Boolean value that specifies whether the property ID comes from an external data source.
isRequiredInEntityoptionalboolean | IResolvableis_required_in_entityoptionaltyping.Union[bool, IResolvable]isRequiredInEntityoptionalBooleanIsRequiredInEntityoptionalboolIsRequiredInEntityoptionalinterface{} #A boolean value that specifies whether the property is required in an entity.
isStoredExternallyoptionalboolean | IResolvableis_stored_externallyoptionaltyping.Union[bool, IResolvable]isStoredExternallyoptionalBooleanIsStoredExternallyoptionalboolIsStoredExternallyoptionalinterface{} #A boolean value that specifies whether the property is stored externally.
isTimeSeriesoptionalboolean | IResolvableis_time_seriesoptionaltyping.Union[bool, IResolvable]isTimeSeriesoptionalBooleanIsTimeSeriesoptionalboolIsTimeSeriesoptionalinterface{} #A boolean value that specifies whether the property consists of time series data.