/// <p>Changes the Channel&#39;s first IngestEndpoint&#39;s username and password. WARNING - This API is deprecated. Please use RotateIngestEndpointCredentials instead</p>
Changes the Channel's first IngestEndpoint's username and password. WARNING - This API is deprecated. Please use RotateIngestEndpointCredentials instead
Changes the Channel ' s first IngestEndpoint ' s username and password . WARNING - This API is deprecated . Please use RotateIngestEndpointCredentials instead
fn rotate_channel_credentials(
        &self,
        input: RotateChannelCredentialsRequest,
    ) -> RusotoFuture<RotateChannelCredentialsResponse, RotateChannelCredentialsError> {
        let request_uri = format!("/channels/{id}/credentials", id = input.id);
        let mut request = SignedRequest::new("PUT", "mediapackage", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        self.client.sign_and_dispatch(request, |response| {
            if response.status.as_u16() == 200 {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<RotateChannelCredentialsResponse, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(RotateChannelCredentialsError::from_response(response))
                }))
            }
        })
    }
fn rotate_channel_credentials ( & self , input : RotateChannelCredentialsRequest , ) -> RusotoFuture < RotateChannelCredentialsResponse , RotateChannelCredentialsError > { let request_uri = format ! ( " " id input id ) ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . as_u16 ( ) == 200 { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { let result = proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < RotateChannelCredentialsResponse , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( RotateChannelCredentialsError :: from_response ( response ) ) } ) ) } } ) }
<p>Changes the Channel&#39;s first IngestEndpoint&#39;s username and password.
<p > Changes the Channel&#39 ; s first IngestEndpoint&#39 ; s username and password .
&self
input
RotateChannelCredentialsRequest