Interface CfnApplication.InputProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplication.InputProperty.Jsii$Proxy
- Enclosing class:
CfnApplication
For more information, see Configuring Application Input .
Example:
// 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.*;
InputProperty inputProperty = InputProperty.builder()
.inputSchema(InputSchemaProperty.builder()
.recordColumns(List.of(RecordColumnProperty.builder()
.name("name")
.sqlType("sqlType")
// the properties below are optional
.mapping("mapping")
.build()))
.recordFormat(RecordFormatProperty.builder()
.recordFormatType("recordFormatType")
// the properties below are optional
.mappingParameters(MappingParametersProperty.builder()
.csvMappingParameters(CSVMappingParametersProperty.builder()
.recordColumnDelimiter("recordColumnDelimiter")
.recordRowDelimiter("recordRowDelimiter")
.build())
.jsonMappingParameters(JSONMappingParametersProperty.builder()
.recordRowPath("recordRowPath")
.build())
.build())
.build())
// the properties below are optional
.recordEncoding("recordEncoding")
.build())
.namePrefix("namePrefix")
// the properties below are optional
.inputParallelism(InputParallelismProperty.builder()
.count(123)
.build())
.inputProcessingConfiguration(InputProcessingConfigurationProperty.builder()
.inputLambdaProcessor(InputLambdaProcessorProperty.builder()
.resourceArn("resourceArn")
.roleArn("roleArn")
.build())
.build())
.kinesisFirehoseInput(KinesisFirehoseInputProperty.builder()
.resourceArn("resourceArn")
.roleArn("roleArn")
.build())
.kinesisStreamsInput(KinesisStreamsInputProperty.builder()
.resourceArn("resourceArn")
.roleArn("roleArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplication.InputPropertystatic final classAn implementation forCfnApplication.InputProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDescribes the number of in-application streams to create.default ObjectThe InputProcessingConfiguration for the input.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.default ObjectIf 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.default ObjectIf 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.Name prefix to use when creating an in-application stream.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInputSchema
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.Also used to describe the format of the reference data source.
Returns union: either
IResolvableorCfnApplication.InputSchemaProperty- See Also:
-
getNamePrefix
Name prefix to use when creating an in-application stream.Suppose that you specify a prefix "MyInApplicationStream." Amazon Kinesis Analytics then creates one or more (as per the
InputParallelismcount you specified) in-application streams with names "MyInApplicationStream_001," "MyInApplicationStream_002," and so on.- See Also:
-
getInputParallelism
Describes the number of in-application streams to create.Data from your source is routed to these in-application input streams.
See Configuring Application Input .
Returns union: either
IResolvableorCfnApplication.InputParallelismProperty- See Also:
-
getInputProcessingConfiguration
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 .Returns union: either
IResolvableorCfnApplication.InputProcessingConfigurationProperty- See Also:
-
getKinesisFirehoseInput
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.Note: Either
KinesisStreamsInputorKinesisFirehoseInputis required.Returns union: either
IResolvableorCfnApplication.KinesisFirehoseInputProperty- See Also:
-
getKinesisStreamsInput
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.Note: Either
KinesisStreamsInputorKinesisFirehoseInputis required.Returns union: either
IResolvableorCfnApplication.KinesisStreamsInputProperty- See Also:
-
builder
-