Skip to content

/AWS1/CL_KN2=>DISCOVERINPUTSCHEMA()

About DiscoverInputSchema

Infers a schema for a SQL-based Kinesis Data Analytics application by evaluating sample records on the specified streaming source (Kinesis data stream or Kinesis Data Firehose delivery stream) or Amazon S3 object. In the response, the operation returns the inferred schema and also the sample records that the operation used to infer the schema.

You can use the inferred schema when configuring a streaming source for your application. When you create an application using the Kinesis Data Analytics console, the console uses this operation to infer a schema and show it in the console user interface.

Method Signature

IMPORTING

Required arguments:

IV_SERVICEEXECUTIONROLE TYPE /AWS1/KN2ROLEARN /AWS1/KN2ROLEARN

The ARN of the role that is used to access the streaming source.

Optional arguments:

IV_RESOURCEARN TYPE /AWS1/KN2RESOURCEARN /AWS1/KN2RESOURCEARN

The Amazon Resource Name (ARN) of the streaming source.

IO_INPUTSTARTINGPOSITIONCONF TYPE REF TO /AWS1/CL_KN2INPSTRTINGPOSITI00 /AWS1/CL_KN2INPSTRTINGPOSITI00

The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source for discovery purposes.

IO_S3CONFIGURATION TYPE REF TO /AWS1/CL_KN2S3CONFIGURATION /AWS1/CL_KN2S3CONFIGURATION

Specify this parameter to discover a schema from data in an Amazon S3 object.

IO_INPUTPROCESSINGCONF TYPE REF TO /AWS1/CL_KN2INPUTPROCINGCONF /AWS1/CL_KN2INPUTPROCINGCONF

The InputProcessingConfiguration to use to preprocess the records before discovering the schema of the records.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_KN2DISCOVERINPSCHRSP /AWS1/CL_KN2DISCOVERINPSCHRSP