Module Values.DiscoverInputSchemaResponseSource

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.

Sourcetype nonrec t = {
  1. inputSchema : SourceSchema.t option;
    (*

    The schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.

    *)
  2. parsedInputRecords : ParsedInputRecords.t option;
    (*

    An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).

    *)
  3. processedInputRecords : ProcessedInputRecords.t option;
    (*

    The stream data that was modified by the processor specified in the InputProcessingConfiguration parameter.

    *)
  4. rawInputRecords : RawInputRecords.t option;
    (*

    The raw stream data that was sampled to infer the schema.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidArgumentException of InvalidArgumentException.t
  2. | `InvalidRequestException of InvalidRequestException.t
  3. | `ResourceProvisionedThroughputExceededException of ResourceProvisionedThroughputExceededException.t
  4. | `ServiceUnavailableException of ServiceUnavailableException.t
  5. | `UnableToDetectSchemaException of UnableToDetectSchemaException.t
  6. | `UnsupportedOperationException of UnsupportedOperationException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?inputSchema:??? -> ?parsedInputRecords:??? -> ?processedInputRecords:??? -> ?rawInputRecords:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidArgumentException of InvalidArgumentException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceProvisionedThroughputExceededException of ResourceProvisionedThroughputExceededException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `UnableToDetectSchemaException of UnableToDetectSchemaException.t | `Unknown_operation_error of string * string option | `UnsupportedOperationException of UnsupportedOperationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidArgumentException of InvalidArgumentException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceProvisionedThroughputExceededException of ResourceProvisionedThroughputExceededException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `UnableToDetectSchemaException of UnableToDetectSchemaException.t | `Unknown_operation_error of string * string option | `UnsupportedOperationException of UnsupportedOperationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `List of [> `String of ParsedInputRecordField.t ] list | `String of ProcessedInputRecord.t ] list | `Structure of (string * [> `List of [> `Structure of (string * [> `String of RecordColumnName.t ]) list ] list | `String of RecordEncoding.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Structure of (string * [> `String of RecordRowPath.t ]) list ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t