# DataValueProperty

An object that specifies a value for a property.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `booleanValue`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean value.

- `doubleValue`: number — A double value.

- `expression`: string — An expression that produces the value.

- `integerValue`: number — An integer value.

- `listValue`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataValueProperty.html)[] — A list of multiple values.

- `longValue`: number — A long value.

- `mapValue`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.DataValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.DataValueProperty.html) } — An object that maps strings to multiple `DataValue` objects.

- `relationshipValue`: any — A value that relates a component to another component.

- `stringValue`: string — A string value.
