ReferenceSchemaProperty Struct
For a SQL-based Kinesis Data Analytics application, describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
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 referenceSchemaProperty: kinesisanalyticsv2.CfnApplicationReferenceDataSource.ReferenceSchemaProperty = {
recordColumns: [{
name: 'name',
sqlType: 'sqlType',
// the properties below are optional
mapping: 'mapping',
}],
recordFormat: {
recordFormatType: 'recordFormatType',
// the properties below are optional
mappingParameters: {
csvMappingParameters: {
recordColumnDelimiter: 'recordColumnDelimiter',
recordRowDelimiter: 'recordRowDelimiter',
},
jsonMappingParameters: {
recordRowPath: 'recordRowPath',
},
},
},
// the properties below are optional
recordEncoding: 'recordEncoding',
};
Properties
recordColumnsIResolvable | IResolvable | CfnApplicationReferenceDataSource.RecordColumnProperty[]record_columnstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RecordColumnProperty]]]recordColumnsIResolvableRecordColumnsIResolvableRecordColumnsinterface{}required#A list of `RecordColumn` objects.
recordEncodingoptionalstringrecord_encodingoptionalstrrecordEncodingoptionalStringRecordEncodingoptionalstringRecordEncodingoptional*string#Specifies the encoding of the records in the streaming source.
For example, UTF-8.
recordFormatIResolvable | CfnApplicationReferenceDataSource.RecordFormatPropertyrecord_formattyping.Union[IResolvable, RecordFormatProperty]recordFormatIResolvableRecordFormatIResolvableRecordFormatinterface{}required#Specifies the format of the records on the streaming source.