# CfnDataTableAttributeProps

Properties for defining a `CfnDataTableAttribute`.

Used as props by: [CfnDataTableAttribute](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnDataTableAttribute.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 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,
  },
};
```

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_attribute_props = connect.CfnDataTableAttributeProps(
    data_table_arn="dataTableArn",
    instance_arn="instanceArn",
    name="name",
    value_type="valueType",

    # the properties below are optional
    description="description",
    primary=False,
    validation=connect.CfnDataTableAttribute.ValidationProperty(
        enum=connect.CfnDataTableAttribute.EnumProperty(
            strict=False,
            values=["values"]
        ),
        exclusive_maximum=123,
        exclusive_minimum=123,
        maximum=123,
        max_length=123,
        max_values=123,
        minimum=123,
        min_length=123,
        min_values=123,
        multiple_of=123
    )
)
```

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

CfnDataTableAttributeProps cfnDataTableAttributeProps = CfnDataTableAttributeProps.builder()
        .dataTableArn("dataTableArn")
        .instanceArn("instanceArn")
        .name("name")
        .valueType("valueType")

        // the properties below are optional
        .description("description")
        .primary(false)
        .validation(ValidationProperty.builder()
                .enum(EnumProperty.builder()
                        .strict(false)
                        .values(List.of("values"))
                        .build())
                .exclusiveMaximum(123)
                .exclusiveMinimum(123)
                .maximum(123)
                .maxLength(123)
                .maxValues(123)
                .minimum(123)
                .minLength(123)
                .minValues(123)
                .multipleOf(123)
                .build())
        .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 cfnDataTableAttributeProps = new CfnDataTableAttributeProps {
    DataTableArn = "dataTableArn",
    InstanceArn = "instanceArn",
    Name = "name",
    ValueType = "valueType",

    // the properties below are optional
    Description = "description",
    Primary = false,
    Validation = new ValidationProperty {
        Enum = new EnumProperty {
            Strict = false,
            Values = new [] { "values" }
        },
        ExclusiveMaximum = 123,
        ExclusiveMinimum = 123,
        Maximum = 123,
        MaxLength = 123,
        MaxValues = 123,
        Minimum = 123,
        MinLength = 123,
        MinValues = 123,
        MultipleOf = 123
    }
};
```

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"

cfnDataTableAttributeProps := &CfnDataTableAttributeProps{
	DataTableArn: jsii.String("dataTableArn"),
	InstanceArn: jsii.String("instanceArn"),
	Name: jsii.String("name"),
	ValueType: jsii.String("valueType"),

	// the properties below are optional
	Description: jsii.String("description"),
	Primary: jsii.Boolean(false),
	Validation: &ValidationProperty{
		Enum: &EnumProperty{
			Strict: jsii.Boolean(false),
			Values: []*string{
				jsii.String("values"),
			},
		},
		ExclusiveMaximum: jsii.Number(123),
		ExclusiveMinimum: jsii.Number(123),
		Maximum: jsii.Number(123),
		MaxLength: jsii.Number(123),
		MaxValues: jsii.Number(123),
		Minimum: jsii.Number(123),
		MinLength: jsii.Number(123),
		MinValues: jsii.Number(123),
		MultipleOf: jsii.Number(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](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataTableAttribute.ValidationProperty](https://docs.aws.amazon.com/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.
