DataValueProperty Struct
An object that specifies a value for a property.
| 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 dataValueProperty_: iottwinmaker.CfnComponentType.DataValueProperty;
declare const relationshipValue: any;
const dataValueProperty: iottwinmaker.CfnComponentType.DataValueProperty = {
booleanValue: false,
doubleValue: 123,
expression: 'expression',
integerValue: 123,
listValue: [dataValueProperty_],
longValue: 123,
mapValue: {
mapValueKey: dataValueProperty_,
},
relationshipValue: relationshipValue,
stringValue: 'stringValue',
};
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_value_property_: iottwinmaker.CfnComponentType.DataValueProperty
# relationship_value: Any
data_value_property = 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"
)
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.*;
DataValueProperty dataValueProperty_;
Object relationshipValue;
DataValueProperty dataValueProperty = 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();
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;
DataValueProperty dataValueProperty_;
var relationshipValue;
var dataValueProperty = 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"
};
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 dataValueProperty_ DataValueProperty
var relationshipValue interface{}
dataValueProperty := &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"),
}
Properties
booleanValueoptionalboolean | IResolvableboolean_valueoptionaltyping.Union[bool, IResolvable]booleanValueoptionalBooleanBooleanValueoptionalboolBooleanValueoptionalinterface{} #A boolean value.
doubleValueoptionalnumberdouble_valueoptionalint | floatdoubleValueoptionalNumberDoubleValueoptionaldoubleDoubleValueoptional*float64 #A double value.
expressionoptionalstringexpressionoptionalstrexpressionoptionalStringExpressionoptionalstringExpressionoptional*string #An expression that produces the value.
integerValueoptionalnumberinteger_valueoptionalint | floatintegerValueoptionalNumberIntegerValueoptionaldoubleIntegerValueoptional*float64 #An integer value.
listValueoptionalIResolvable | IResolvable | CfnComponentType.list_valueoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataValueProperty]]]listValueoptionalIResolvableListValueoptionalIResolvableListValueoptionalinterface{} #A list of multiple values.
longValueoptionalnumberlong_valueoptionalint | floatlongValueoptionalNumberLongValueoptionaldoubleLongValueoptional*float64 #A long value.
mapValueoptionalIResolvable | { [key: string]: IResolvable | CfnComponentType.map_valueoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, DataValueProperty]]]mapValueoptionalIResolvableMapValueoptionalIResolvableMapValueoptionalinterface{} #An object that maps strings to multiple `DataValue` objects.
relationshipValueoptionalanyrelationship_valueoptionalAnyrelationshipValueoptionalObjectRelationshipValueoptionalobjectRelationshipValueoptionalinterface{} #A value that relates a component to another component.
stringValueoptionalstringstring_valueoptionalstrstringValueoptionalStringStringValueoptionalstringStringValueoptional*string #A string value.