fn discover_input_schema(
        &self,
        input: DiscoverInputSchemaRequest,
    ) -> RusotoFuture<DiscoverInputSchemaResponse, DiscoverInputSchemaError> {
        let mut request = SignedRequest::new("POST", "kinesisanalytics", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "KinesisAnalytics_20150814.DiscoverInputSchema",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let mut body = response.body;

                    if body.is_empty() || body == b"null" {
                        body = b"{}".to_vec();
                    }

                    serde_json::from_str::<DiscoverInputSchemaResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(DiscoverInputSchemaError::from_response(response))
                    }),
                )
            }
        })
    }
/// <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="http://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>
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.  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.
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 . 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 .
fn discover_input_schema(
        &self,
        input: DiscoverInputSchemaRequest,
    ) -> RusotoFuture<DiscoverInputSchemaResponse, DiscoverInputSchemaError> {
        let mut request = SignedRequest::new("POST", "kinesisanalytics", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "KinesisAnalytics_20150814.DiscoverInputSchema",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let mut body = response.body;
                    if body.is_empty() || body == b"null" {
                        body = b"{}".to_vec();
                    }
                    serde_json::from_str::<DiscoverInputSchemaResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(DiscoverInputSchemaError::from_response(response))
                    }),
                )
            }
        })
    }
fn discover_input_schema ( & self , input : DiscoverInputSchemaRequest , ) -> RusotoFuture < DiscoverInputSchemaResponse , DiscoverInputSchemaError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " , ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded . into_bytes ( ) ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . map ( | response | { let mut body = response . body ; if body . is_empty ( ) || body == b" " { body = b" " . to_vec ( ) ; } serde_json :: from_str :: < DiscoverInputSchemaResponse > ( String :: from_utf8_lossy ( body . as_ref ( ) ) . as_ref ( ) , ) . unwrap ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( DiscoverInputSchemaError :: from_response ( response ) ) } ) , ) } } ) }
<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.
<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 .
&self
input
DiscoverInputSchemaRequest
&self
input
DiscoverInputSchemaRequest