Amazon.KinesisAnalytics.AmazonKinesisAnalyticsClient.DiscoverInputSchema C# (CSharp) Method

DiscoverInputSchema() public method

Infers a schema by evaluating sample records on the specified streaming source (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). 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. For conceptual information, see Configuring Application Input. Note that when you create an application using the Amazon Kinesis Analytics console, the console uses this operation to infer a schema and show it in the console user interface.

This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema action.

/// Specified input parameter value is invalid. /// /// Discovery failed to get a record from the streaming source because of the Kinesis /// Streams ProvisionedThroughputExceededException. /// /// Data format is not valid, Kinesis Analytics is not able to detect schema for the given /// streaming source. ///
public DiscoverInputSchema ( DiscoverInputSchemaRequest request ) : DiscoverInputSchemaResponse
request Amazon.KinesisAnalytics.Model.DiscoverInputSchemaRequest Container for the necessary parameters to execute the DiscoverInputSchema service method.
return Amazon.KinesisAnalytics.Model.DiscoverInputSchemaResponse
        public DiscoverInputSchemaResponse DiscoverInputSchema(DiscoverInputSchemaRequest request)
        {
            var marshaller = new DiscoverInputSchemaRequestMarshaller();
            var unmarshaller = DiscoverInputSchemaResponseUnmarshaller.Instance;

            return Invoke<DiscoverInputSchemaRequest,DiscoverInputSchemaResponse>(request, marshaller, unmarshaller);
        }