@Override
    public DiscoverInputSchemaResult discoverInputSchema(DiscoverInputSchemaRequest request) {
        request = beforeClientExecution(request);
        return executeDiscoverInputSchema(request);
    }
<note>
<p>
This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL
applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see
<a href="/kinesisanalytics/latest/apiv2/Welcome.html">Amazon Kinesis Data Analytics API V2 Documentation</a>.
</p>
</note>
<p>
Infers a schema by evaluating sample records on the specified streaming source (Amazon Kinesis stream or Amazon
Kinesis Firehose delivery stream) or S3 object. In the response, the operation returns the inferred schema and
also the sample records that the operation used to infer the schema.
</p>
<p>
You can use the inferred schema when configuring a streaming source for your application. For conceptual
information, see <a
href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html">Configuring Application
Input</a>. 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.
</p>
<p>
This operation requires permissions to perform the <code>kinesisanalytics:DiscoverInputSchema</code> action.
</p>

@param discoverInputSchemaRequest
@return Result of the DiscoverInputSchema operation returned by the service.
@throws InvalidArgumentException
        Specified input parameter value is invalid.
@throws UnableToDetectSchemaException
        Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming
        source.
@throws ResourceProvisionedThroughputExceededException
        Discovery failed to get a record from the streaming source because of the Amazon Kinesis Streams
        ProvisionedThroughputExceededException. For more information, see <a
        href="https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html">GetRecords</a> in the
        Amazon Kinesis Streams API Reference.
@throws ServiceUnavailableException
        The service is unavailable. Back off and retry the operation.
@sample AmazonKinesisAnalytics.DiscoverInputSchema
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchema"
     target="_top">AWS API Documentation</a>
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisanalytics/AmazonKinesisAnalyticsClient.java