fn list_webhooks(
        &self,
        input: ListWebhooksRequest,
    ) -> RusotoFuture<ListWebhooksResult, ListWebhooksError> {
        let request_uri = format!("/apps/{app_id}/webhooks", app_id = input.app_id);

        let mut request = SignedRequest::new("GET", "amplify", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());

        let mut params = Params::new();
        if let Some(ref x) = input.max_results {
            params.put("maxResults", x);
        }
        if let Some(ref x) = input.next_token {
            params.put("nextToken", x);
        }
        request.set_params(params);

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<ListWebhooksResult, _>()?;

                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(ListWebhooksError::from_response(response))),
                )
            }
        })
    }
/// <p> List webhooks with an app. </p>
 List webhooks with an app.
List webhooks with an app .
fn list_webhooks(
        &self,
        input: ListWebhooksRequest,
    ) -> RusotoFuture<ListWebhooksResult, ListWebhooksError> {
        let request_uri = format!("/apps/{app_id}/webhooks", app_id = input.app_id);
        let mut request = SignedRequest::new("GET", "amplify", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        let mut params = Params::new();
        if let Some(ref x) = input.max_results {
            params.put("maxResults", x);
        }
        if let Some(ref x) = input.next_token {
            params.put("nextToken", x);
        }
        request.set_params(params);
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<ListWebhooksResult, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(ListWebhooksError::from_response(response))),
                )
            }
        })
    }
fn list_webhooks ( & self , input : ListWebhooksRequest , ) -> RusotoFuture < ListWebhooksResult , ListWebhooksError > { let request_uri = format ! ( " " app_id input app_id ) ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; let mut params = Params :: new ( ) ; if let Some ( ref x ) = input . max_results { params . put ( " " , x ) ; } if let Some ( ref x ) = input . next_token { params . put ( " " , x ) ; } request . set_params ( params ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { let result = proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < ListWebhooksResult , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( ListWebhooksError :: from_response ( response ) ) ) , ) } } ) }
<p> List webhooks with an app.
<p > List webhooks with an app .
&self
input
ListWebhooksRequest