AWS::Connect::DataTableAttributeRepresents 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 { CfnDataTableAttribute } from 'aws-cdk-lib/aws-connect';Or use the module namespace:
import * as connect from 'aws-cdk-lib/aws-connect';
// connect.CfnDataTableAttributeConfiguration passed to the constructor as CfnDataTableAttributeProps.
dataTableArnOptionalstringThe Amazon Resource Name (ARN) of the data table that contains this attribute.
descriptionOptionalstringAn optional description explaining the purpose and usage of this attribute.
instanceArnOptionalstringThe Amazon Resource Name (ARN) of the instance.
nameOptionalstringThe human-readable name of the attribute. Must be unique within the data table and conform to Connect naming standards.
primaryOptionalboolean | IResolvableBoolean indicating whether this attribute is used as a primary key for record identification. Primary attributes must have unique value combinations and cannot contain expressions.
validationOptionalIResolvable | ValidationPropertyThe validation rules applied to values of this attribute. Based on JSON Schema Draft 2020-12 with additional Connect-specific validations for data integrity.
valueTypeOptionalstringThe 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.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-connectAWS::Connect::DataTableAttribute