Skip to content
v2.278.0

CSVMappingParametersProperty Struct ​

For a SQL-based Kinesis Data Analytics application, provides additional mapping information when the record format uses delimiters, such as CSV.

For example, the following sample records use CSV format, where the records use the '\n' as the row delimiter and a comma (",") as the column delimiter:

"name1", "address1"

"name2", "address2"

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalyticsv2 as kinesisanalyticsv2 } from 'aws-cdk-lib';
const cSVMappingParametersProperty: kinesisanalyticsv2.CfnApplicationReferenceDataSource.CSVMappingParametersProperty = {
  recordColumnDelimiter: 'recordColumnDelimiter',
  recordRowDelimiter: 'recordRowDelimiter',
};
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_kinesisanalyticsv2 as kinesisanalyticsv2

c_sv_mapping_parameters_property = kinesisanalyticsv2.CfnApplicationReferenceDataSource.CSVMappingParametersProperty(
    record_column_delimiter="recordColumnDelimiter",
    record_row_delimiter="recordRowDelimiter"
)
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.kinesisanalyticsv2.*;

CSVMappingParametersProperty cSVMappingParametersProperty = CSVMappingParametersProperty.builder()
        .recordColumnDelimiter("recordColumnDelimiter")
        .recordRowDelimiter("recordRowDelimiter")
        .build();
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.KinesisAnalyticsV2;

var cSVMappingParametersProperty = new CSVMappingParametersProperty {
    RecordColumnDelimiter = "recordColumnDelimiter",
    RecordRowDelimiter = "recordRowDelimiter"
};
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"

cSVMappingParametersProperty := &CSVMappingParametersProperty{
	RecordColumnDelimiter: jsii.String("recordColumnDelimiter"),
	RecordRowDelimiter: jsii.String("recordRowDelimiter"),
}

Properties ​

recordColumnDelimiterstringrecord_column_delimiterstrrecordColumnDelimiterStringRecordColumnDelimiterstringRecordColumnDelimiter*string required #
The column delimiter.

For example, in a CSV format, a comma (",") is the typical column delimiter.

recordRowDelimiterstringrecord_row_delimiterstrrecordRowDelimiterStringRecordRowDelimiterstringRecordRowDelimiter*string required #
The row delimiter.

For example, in a CSV format, '\n' is the typical row delimiter.