# CfnDataTableRecordProps

Properties for defining a `CfnDataTableRecord`.

Used as props by: [CfnDataTableRecord](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnDataTableRecord.html)

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnDataTableRecordProps: connect.CfnDataTableRecordProps = {
  dataTableArn: 'dataTableArn',
  dataTableRecord: {
    values: [{
      attributeId: 'attributeId',
      attributeValue: 'attributeValue',
    }],

    // the properties below are optional
    primaryValues: [{
      attributeId: 'attributeId',
      attributeValue: 'attributeValue',
    }],
  },
  instanceArn: 'instanceArn',
};
```

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_connect as connect

cfn_data_table_record_props = connect.CfnDataTableRecordProps(
    data_table_arn="dataTableArn",
    data_table_record=connect.CfnDataTableRecord.DataTableRecordProperty(
        values=[connect.CfnDataTableRecord.ValueProperty(
            attribute_id="attributeId",
            attribute_value="attributeValue"
        )],

        # the properties below are optional
        primary_values=[connect.CfnDataTableRecord.ValueProperty(
            attribute_id="attributeId",
            attribute_value="attributeValue"
        )]
    ),
    instance_arn="instanceArn"
)
```

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.connect.*;

CfnDataTableRecordProps cfnDataTableRecordProps = CfnDataTableRecordProps.builder()
        .dataTableArn("dataTableArn")
        .dataTableRecord(DataTableRecordProperty.builder()
                .values(List.of(ValueProperty.builder()
                        .attributeId("attributeId")
                        .attributeValue("attributeValue")
                        .build()))

                // the properties below are optional
                .primaryValues(List.of(ValueProperty.builder()
                        .attributeId("attributeId")
                        .attributeValue("attributeValue")
                        .build()))
                .build())
        .instanceArn("instanceArn")
        .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.Connect;

var cfnDataTableRecordProps = new CfnDataTableRecordProps {
    DataTableArn = "dataTableArn",
    DataTableRecord = new DataTableRecordProperty {
        Values = new [] { new ValueProperty {
            AttributeId = "attributeId",
            AttributeValue = "attributeValue"
        } },

        // the properties below are optional
        PrimaryValues = new [] { new ValueProperty {
            AttributeId = "attributeId",
            AttributeValue = "attributeValue"
        } }
    },
    InstanceArn = "instanceArn"
};
```

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"

cfnDataTableRecordProps := &CfnDataTableRecordProps{
	DataTableArn: jsii.String("dataTableArn"),
	DataTableRecord: &DataTableRecordProperty{
		Values: []interface{}{
			&ValueProperty{
				AttributeId: jsii.String("attributeId"),
				AttributeValue: jsii.String("attributeValue"),
			},
		},

		// the properties below are optional
		PrimaryValues: []interface{}{
			&ValueProperty{
				AttributeId: jsii.String("attributeId"),
				AttributeValue: jsii.String("attributeValue"),
			},
		},
	},
	InstanceArn: jsii.String("instanceArn"),
}
```

## Properties

- `dataTableArn`: string (required) — The Amazon Resource Name (ARN) for the data table.

  Does not include version aliases.

- `dataTableRecord`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataTableRecord.DataTableRecordProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnDataTableRecord.DataTableRecordProperty.html) (required)

- `instanceArn`: string (required) — The Amazon Resource Name (ARN) of the instance.
