Interface CfnApplication.IInputProperty
When you configure the application input, you specify the streaming source, the in-application stream name that is created, and the mapping between the two.
Namespace: Amazon.CDK.AWS.KinesisAnalytics
Assembly: Amazon.CDK.AWS.KinesisAnalytics.dll
Syntax (csharp)
public interface IInputProperty
Syntax (vb)
Public Interface IInputProperty
Remarks
For more information, see Configuring Application Input .
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 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",
RoleArn = "roleArn"
}
},
KinesisFirehoseInput = new KinesisFirehoseInputProperty {
ResourceArn = "resourceArn",
RoleArn = "roleArn"
},
KinesisStreamsInput = new KinesisStreamsInputProperty {
ResourceArn = "resourceArn",
RoleArn = "roleArn"
}
};
Synopsis
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 Firehose delivery stream, identifies the delivery stream's ARN and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf. |
KinesisStreamsInput | If the streaming source is an Amazon Kinesis stream, identifies the stream's Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf. |
NamePrefix | Name prefix to use when creating an in-application stream. |
Properties
InputParallelism
Describes the number of in-application streams to create.
virtual object InputParallelism { get; }
Property Value
System.Object
Remarks
Data from your source is routed to these in-application input streams.
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 .
virtual object InputProcessingConfiguration { get; }
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.
object InputSchema { get; }
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 Firehose delivery stream, identifies the delivery stream's ARN and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf.
virtual object KinesisFirehoseInput { get; }
Property Value
System.Object
Remarks
Note: Either KinesisStreamsInput
or KinesisFirehoseInput
is required.
KinesisStreamsInput
If the streaming source is an Amazon Kinesis stream, identifies the stream's Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf.
virtual object KinesisStreamsInput { get; }
Property Value
System.Object
Remarks
Note: Either KinesisStreamsInput
or KinesisFirehoseInput
is required.
NamePrefix
Name prefix to use when creating an in-application stream.
string NamePrefix { get; }
Property Value
System.String
Remarks
Suppose that you specify a prefix "MyInApplicationStream." Amazon Kinesis Analytics then creates one or more (as per the InputParallelism
count you specified) in-application streams with names "MyInApplicationStream_001," "MyInApplicationStream_002," and so on.