Smaws_Client_KinesisAnalyticsV2.DiscoverInputSchema
val request :
Smaws_Lib.Context.t ->
discover_input_schema_request ->
(discover_input_schema_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArgumentException of invalid_argument_exception
| `InvalidRequestException of invalid_request_exception
| `ResourceProvisionedThroughputExceededException of
resource_provisioned_throughput_exceeded_exception
| `ServiceUnavailableException of service_unavailable_exception
| `UnableToDetectSchemaException of unable_to_detect_schema_exception
| `UnsupportedOperationException of unsupported_operation_exception ])
Stdlib.result
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.