aws kinesisanalyticsv2 discover-input-schema

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

Options

NameDescription
--resource-arn <string>The Amazon Resource Name (ARN) of the streaming source
--service-execution-role <string>The ARN of the role that is used to access the streaming source
--input-starting-position-configuration <structure>The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes
--s3-configuration <structure>Specify this parameter to discover a schema from data in an Amazon S3 object
--input-processing-configuration <structure>The InputProcessingConfiguration to use to preprocess the records before discovering the schema of the records
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command