# DocumentAttributeValueProperty

The value of a document attribute.

You can only provide one value for a document attribute.

- 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_kendra as kendra } from 'aws-cdk-lib';
const documentAttributeValueProperty: kendra.CfnDataSource.DocumentAttributeValueProperty = {
  dateValue: 'dateValue',
  longValue: 123,
  stringListValue: ['stringListValue'],
  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_kendra as kendra

document_attribute_value_property = kendra.CfnDataSource.DocumentAttributeValueProperty(
    date_value="dateValue",
    long_value=123,
    string_list_value=["stringListValue"],
    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.kendra.*;

DocumentAttributeValueProperty documentAttributeValueProperty = DocumentAttributeValueProperty.builder()
        .dateValue("dateValue")
        .longValue(123)
        .stringListValue(List.of("stringListValue"))
        .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.Kendra;

var documentAttributeValueProperty = new DocumentAttributeValueProperty {
    DateValue = "dateValue",
    LongValue = 123,
    StringListValue = new [] { "stringListValue" },
    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"

documentAttributeValueProperty := &DocumentAttributeValueProperty{
	DateValue: jsii.String("dateValue"),
	LongValue: jsii.Number(123),
	StringListValue: []*string{
		jsii.String("stringListValue"),
	},
	StringValue: jsii.String("stringValue"),
}
```

## Properties

- `dateValue`: string — A date expressed as an ISO 8601 string.

  It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

- `longValue`: number — A long integer value.

- `stringListValue`: string[] — A list of strings.

  The default maximum length or number of strings is 10.

- `stringValue`: string — A string, such as "department".
