Class CfnApplication.InputProperty
When you configure the application input for a SQL-based Kinesis Data Analytics application, you specify the streaming source, the in-application stream name that is created, and the mapping between the two.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.KinesisAnalyticsV2
Assembly: Amazon.CDK.AWS.KinesisAnalyticsV2.dll
Syntax (csharp)
public class InputProperty : Object, CfnApplication.IInputProperty
Syntax (vb)
Public Class InputProperty
Inherits Object
Implements CfnApplication.IInputProperty
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.KinesisAnalyticsV2;
var inputProperty = new InputProperty {
InputSchema = new InputSchemaProperty {
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"
},
NamePrefix = "namePrefix",
// the properties below are optional
InputParallelism = new InputParallelismProperty {
Count = 123
},
InputProcessingConfiguration = new InputProcessingConfigurationProperty {
InputLambdaProcessor = new InputLambdaProcessorProperty {
ResourceArn = "resourceArn"
}
},
KinesisFirehoseInput = new KinesisFirehoseInputProperty {
ResourceArn = "resourceArn"
},
KinesisStreamsInput = new KinesisStreamsInputProperty {
ResourceArn = "resourceArn"
}
};
Synopsis
Constructors
InputProperty() |
Properties
InputParallelism | Describes the number of in-application streams to create. |
InputProcessingConfiguration | The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor . |
InputSchema | Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. |
KinesisFirehoseInput | If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. |
KinesisStreamsInput | If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). |
NamePrefix | The name prefix to use when creating an in-application stream. |
Constructors
InputProperty()
public InputProperty()
Properties
InputParallelism
Describes the number of in-application streams to create.
public object InputParallelism { get; set; }
Property Value
System.Object
Remarks
InputProcessingConfiguration
The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor .
public object InputProcessingConfiguration { get; set; }
Property Value
System.Object
Remarks
InputSchema
Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
public object InputSchema { get; set; }
Property Value
System.Object
Remarks
Also used to describe the format of the reference data source.
KinesisFirehoseInput
If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.
public object KinesisFirehoseInput { get; set; }
Property Value
System.Object
Remarks
KinesisStreamsInput
If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).
public object KinesisStreamsInput { get; set; }
Property Value
System.Object
Remarks
NamePrefix
The name prefix to use when creating an in-application stream.
public string NamePrefix { get; set; }
Property Value
System.String
Remarks
Suppose that you specify a prefix " MyInApplicationStream
." Kinesis Data Analytics then creates one or more (as per the InputParallelism
count you specified) in-application streams with the names " MyInApplicationStream_001
," " MyInApplicationStream_002
," and so on.