fn update_channel(&self, input: UpdateChannelRequest) -> RusotoFuture<(), UpdateChannelError> {
        let request_uri = format!(
            "/channels/{channel_name}",
            channel_name = input.channel_name
        );

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

        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let result = ::std::mem::drop(response);

                    result
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(UpdateChannelError::from_response(response))),
                )
            }
        })
    }
/// <p>Updates the settings of a channel.</p>
Updates the settings of a channel.
Updates the settings of a channel .
fn update_channel(&self, input: UpdateChannelRequest) -> RusotoFuture<(), UpdateChannelError> {
        let request_uri = format!(
            "/channels/{channel_name}",
            channel_name = input.channel_name
        );
        let mut request = SignedRequest::new("PUT", "iotanalytics", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let result = ::std::mem::drop(response);
                    result
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(UpdateChannelError::from_response(response))),
                )
            }
        })
    }
fn update_channel ( & self , input : UpdateChannelRequest ) -> RusotoFuture < ( ) , UpdateChannelError > { let request_uri = format ! ( " " channel_name input channel_name ) ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; let encoded = Some ( serde_json :: to_vec ( & input ) . unwrap ( ) ) ; request . set_payload ( encoded ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . map ( | response | { let result = :: std :: mem :: drop ( response ) ; result } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( UpdateChannelError :: from_response ( response ) ) ) , ) } } ) }
<p>Updates the settings of a channel.</p>
<p > Updates the settings of a channel . < / p >
&self
input
UpdateChannelRequest
&self
input
UpdateChannelRequest