fn add_application_output(
        &self,
        input: AddApplicationOutputRequest,
    ) -> RusotoFuture<AddApplicationOutputResponse, AddApplicationOutputError> {
        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.AddApplicationOutput",
        );
        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::<AddApplicationOutputResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(AddApplicationOutputError::from_response(response))
                    }),
                )
            }
        })
    }
/// <p>Adds an external destination to your Amazon Kinesis Analytics application.</p> <p>If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs for your application. Each output configuration maps an in-application stream and an external destination.</p> <p> You can use one of the output configurations to deliver data from your in-application error stream to an external destination so that you can analyze the errors. For conceptual information, see <a href="http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html">Understanding Application Output (Destination)</a>. </p> <p> Note that any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the <a>DescribeApplication</a> operation to find the current application version.</p> <p>For the limits on the number of application inputs and outputs you can configure, see <a href="http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html">Limits</a>.</p> <p>This operation requires permissions to perform the <code>kinesisanalytics:AddApplicationOutput</code> action.</p>
Adds an external destination to your Amazon Kinesis Analytics application. If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs for your application. Each output configuration maps an in-application stream and an external destination.  You can use one of the output configurations to deliver data from your in-application error stream to an external destination so that you can analyze the errors. For conceptual information, see Understanding Application Output (Destination).   Note that any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the DescribeApplication operation to find the current application version. For the limits on the number of application inputs and outputs you can configure, see Limits. This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput action.
Adds an external destination to your Amazon Kinesis Analytics application . If you want Amazon Kinesis Analytics to deliver data from an in - application stream within your application to an external destination ( such as an Amazon Kinesis stream an Amazon Kinesis Firehose delivery stream or an Amazon Lambda function ) you add the relevant configuration to your application using this operation . You can configure one or more outputs for your application . Each output configuration maps an in - application stream and an external destination . You can use one of the output configurations to deliver data from your in - application error stream to an external destination so that you can analyze the errors . For conceptual information see Understanding Application Output ( Destination ) . Note that any configuration update including adding a streaming source using this operation results in a new version of the application . You can use the DescribeApplication operation to find the current application version . For the limits on the number of application inputs and outputs you can configure see Limits . This operation requires permissions to perform the kinesisanalytics : AddApplicationOutput action .
fn add_application_output(
        &self,
        input: AddApplicationOutputRequest,
    ) -> RusotoFuture<AddApplicationOutputResponse, AddApplicationOutputError> {
        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.AddApplicationOutput",
        );
        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::<AddApplicationOutputResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(AddApplicationOutputError::from_response(response))
                    }),
                )
            }
        })
    }
fn add_application_output ( & self , input : AddApplicationOutputRequest , ) -> RusotoFuture < AddApplicationOutputResponse , AddApplicationOutputError > { 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 :: < AddApplicationOutputResponse > ( String :: from_utf8_lossy ( body . as_ref ( ) ) . as_ref ( ) , ) . unwrap ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( AddApplicationOutputError :: from_response ( response ) ) } ) , ) } } ) }
<p>Adds an external destination to your Amazon Kinesis Analytics application.</p> <p>If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation.
<p > Adds an external destination to your Amazon Kinesis Analytics application . < / p > <p > If you want Amazon Kinesis Analytics to deliver data from an in - application stream within your application to an external destination ( such as an Amazon Kinesis stream an Amazon Kinesis Firehose delivery stream or an Amazon Lambda function ) you add the relevant configuration to your application using this operation .
&self
input
AddApplicationOutputRequest
&self
input
AddApplicationOutputRequest