Class CfnApplicationReferenceDataSourceV2.ReferenceDataSourceProperty
For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.
Inheritance
Namespace: Amazon.CDK.AWS.KinesisAnalytics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ReferenceDataSourceProperty : Object, CfnApplicationReferenceDataSourceV2.IReferenceDataSourceProperty
Syntax (vb)
Public Class ReferenceDataSourceProperty
Inherits Object
Implements CfnApplicationReferenceDataSourceV2.IReferenceDataSourceProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 referenceDataSourceProperty = new ReferenceDataSourceProperty {
ReferenceSchema = new ReferenceSchemaProperty {
RecordColumns = new [] { new RecordColumnProperty {
Name = "name",
SqlType = "sqlType",
// the properties below are optional
Mapping = "mapping"
} },
RecordFormat = new RecordFormatProperty {
RecordFormatType = "recordFormatType",
// the properties below are optional
MappingParameters = new MappingParametersProperty {
CsvMappingParameters = new CSVMappingParametersProperty {
RecordColumnDelimiter = "recordColumnDelimiter",
RecordRowDelimiter = "recordRowDelimiter"
},
JsonMappingParameters = new JSONMappingParametersProperty {
RecordRowPath = "recordRowPath"
}
}
},
// the properties below are optional
RecordEncoding = "recordEncoding"
},
// the properties below are optional
S3ReferenceDataSource = new S3ReferenceDataSourceProperty {
BucketArn = "bucketArn",
FileKey = "fileKey"
},
TableName = "tableName"
};
Synopsis
Constructors
Reference |
Properties
Reference |
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. |
S3Reference |
Identifies the S3 bucket and object that contains the reference data. |
Table |
The name of the in-application table to create. |
Constructors
ReferenceDataSourceProperty()
public ReferenceDataSourceProperty()
Properties
ReferenceSchema
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.
public object ReferenceSchema { get; set; }
Property Value
System.
Remarks
S3ReferenceDataSource
Identifies the S3 bucket and object that contains the reference data.
public object S3ReferenceDataSource { get; set; }
Property Value
System.
Remarks
A Kinesis Data Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application.
TableName
The name of the in-application table to create.
public string TableName { get; set; }
Property Value
System.