Skip to content
v2.273.0

CsvProperty Struct ​

The options for imported source files in CSV format.

The values are Delimiter and HeaderList.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const csvProperty: dynamodb.CfnTable.CsvProperty = {
  delimiter: 'delimiter',
  headerList: ['headerList'],
};

Properties ​

delimiterstringdelimiterstrdelimiterStringDelimiterstringDelimiter*string#
The delimiter used for separating items in the CSV file being imported.
headerListstring[]header_listtyping.List[str]headerListList<String>HeaderListstring[]HeaderList*[]*string#
List of the headers used to specify a common header for all source CSV files being imported.

If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.