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"
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalytics as kinesisanalytics } from 'aws-cdk-lib';
const cSVMappingParametersProperty: kinesisanalytics.CfnApplicationReferenceDataSourceV2.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_kinesisanalytics as kinesisanalytics
c_sv_mapping_parameters_property = kinesisanalytics.CfnApplicationReferenceDataSourceV2.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.kinesisanalytics.*;
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.KinesisAnalytics;
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.