# CfnDataTableAttributeProps

Properties for defining a `CfnDataTableAttribute`.

Extends: CfnDataTableAttributeProps
Used as props by: CfnDataTableAttribute

- Source: Generated code
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

```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 cfnDataTableAttributeProps: connect.CfnDataTableAttributeProps = {
  dataTableArn: 'dataTableArn',
  instanceArn: 'instanceArn',
  name: 'name',
  valueType: 'valueType',

  // the properties below are optional
  description: 'description',
  primary: false,
  validation: {
    enum: {
      strict: false,
      values: ['values'],
    },
    exclusiveMaximum: 123,
    exclusiveMinimum: 123,
    maximum: 123,
    maxLength: 123,
    maxValues: 123,
    minimum: 123,
    minLength: 123,
    minValues: 123,
    multipleOf: 123,
  },
};
```

## Properties

- `dataTableArn`: string (required) — The Amazon Resource Name (ARN) of the data table that contains this attribute.

- `description`: string — An optional description explaining the purpose and usage of this attribute.

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

- `name`: string (required) — The human-readable name of the attribute.

  Must be unique within the data table and conform to Connect naming standards.

- `primary`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Boolean indicating whether this attribute is used as a primary key for record identification.

  Primary attributes must have unique value combinations and cannot contain expressions.

- `validation`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataTableAttribute.ValidationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnDataTableAttribute.ValidationProperty.html) — The validation rules applied to values of this attribute.

  Based on JSON Schema Draft 2020-12 with additional Connect-specific validations for data integrity.

- `valueType`: string (required) — The type of value allowed for this attribute.

  Must be one of TEXT, TEXT_LIST, NUMBER, NUMBER_LIST, or BOOLEAN. Determines how values are validated and processed.
