AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Connect::DataTableAttribute

CfnDataTableAttribute

Represents an attribute (column) in a data table. Attributes define the schema and validation rules for values that can be stored in the table. They specify the data type, constraints, and whether the attribute is used as a primary key for record identification.

Import

import { CfnDataTableAttribute } from 'aws-cdk-lib/aws-connect';

Or use the module namespace:

import * as connect from 'aws-cdk-lib/aws-connect';
// connect.CfnDataTableAttribute

Properties

Configuration passed to the constructor as CfnDataTableAttributeProps.

dataTableArnOptional
string

The Amazon Resource Name (ARN) of the data table that contains this attribute.

descriptionOptional
string

An optional description explaining the purpose and usage of this attribute.

instanceArnOptional
string

The Amazon Resource Name (ARN) of the instance.

nameOptional
string

The human-readable name of the attribute. Must be unique within the data table and conform to Connect naming standards.

primaryOptional
boolean | IResolvable

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.

validationOptional
IResolvable | ValidationProperty

The validation rules applied to values of this attribute. Based on JSON Schema Draft 2020-12 with additional Connect-specific validations for data integrity.

valueTypeOptional
string

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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter