fn update_data_retention(
        &self,
        input: UpdateDataRetentionInput,
    ) -> RusotoFuture<UpdateDataRetentionOutput, UpdateDataRetentionError> {
        let request_uri = "/updateDataRetention";

        let mut request = SignedRequest::new("POST", "kinesisvideo", &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 mut body = response.body;

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

                    debug!("Response body: {:?}", body);
                    debug!("Response status: {}", response.status);
                    let result =
                        serde_json::from_slice::<UpdateDataRetentionOutput>(&body).unwrap();

                    result
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(UpdateDataRetentionError::from_response(response))
                    }),
                )
            }
        })
    }
/// <p><p> Increases or decreases the stream&#39;s data retention period by the value that you specify. To indicate whether you want to increase or decrease the data retention period, specify the <code>Operation</code> parameter in the request body. In the request, you must specify either the <code>StreamName</code> or the <code>StreamARN</code>. </p> <note> <p>The retention period that you specify replaces the current value.</p> </note> <p>This operation requires permission for the <code>KinesisVideo:UpdateDataRetention</code> action.</p> <p>Changing the data retention period affects the data in the stream as follows:</p> <ul> <li> <p>If the data retention period is increased, existing data is retained for the new retention period. For example, if the data retention period is increased from one hour to seven hours, all existing data is retained for seven hours.</p> </li> <li> <p>If the data retention period is decreased, existing data is retained for the new retention period. For example, if the data retention period is decreased from seven hours to one hour, all existing data is retained for one hour, and any data older than one hour is deleted immediately.</p> </li> </ul></p>
 Increases or decreases the stream's data retention period by the value that you specify. To indicate whether you want to increase or decrease the data retention period, specify the Operation parameter in the request body. In the request, you must specify either the StreamName or the StreamARN.   The retention period that you specify replaces the current value.  This operation requires permission for the KinesisVideo:UpdateDataRetention action. Changing the data retention period affects the data in the stream as follows:   If the data retention period is increased, existing data is retained for the new retention period. For example, if the data retention period is increased from one hour to seven hours, all existing data is retained for seven hours.   If the data retention period is decreased, existing data is retained for the new retention period. For example, if the data retention period is decreased from seven hours to one hour, all existing data is retained for one hour, and any data older than one hour is deleted immediately.  
Increases or decreases the stream ' s data retention period by the value that you specify . To indicate whether you want to increase or decrease the data retention period specify the Operation parameter in the request body . In the request you must specify either the StreamName or the StreamARN . The retention period that you specify replaces the current value . This operation requires permission for the KinesisVideo : UpdateDataRetention action . Changing the data retention period affects the data in the stream as follows : If the data retention period is increased existing data is retained for the new retention period . For example if the data retention period is increased from one hour to seven hours all existing data is retained for seven hours . If the data retention period is decreased existing data is retained for the new retention period . For example if the data retention period is decreased from seven hours to one hour all existing data is retained for one hour and any data older than one hour is deleted immediately .
fn update_data_retention(
        &self,
        input: UpdateDataRetentionInput,
    ) -> RusotoFuture<UpdateDataRetentionOutput, UpdateDataRetentionError> {
        let request_uri = "/updateDataRetention";
        let mut request = SignedRequest::new("POST", "kinesisvideo", &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 mut body = response.body;
                    if body == b"null" || body.is_empty() {
                        body = b"{}".to_vec();
                    }
                    debug!("Response body: {:?}", body);
                    debug!("Response status: {}", response.status);
                    let result =
                        serde_json::from_slice::<UpdateDataRetentionOutput>(&body).unwrap();
                    result
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(UpdateDataRetentionError::from_response(response))
                    }),
                )
            }
        })
    }
fn update_data_retention ( & self , input : UpdateDataRetentionInput , ) -> RusotoFuture < UpdateDataRetentionOutput , UpdateDataRetentionError > { let request_uri = " " ; 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 mut body = response . body ; if body == b" " || body . is_empty ( ) { body = b" " . to_vec ( ) ; } debug ! ( " " body ) ; debug ! ( " " response status ) ; let result = serde_json :: from_slice :: < UpdateDataRetentionOutput > ( & body ) . unwrap ( ) ; result } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( UpdateDataRetentionError :: from_response ( response ) ) } ) , ) } } ) }
<p><p> Increases or decreases the stream&#39;s data retention period by the value that you specify.
<p > <p > Increases or decreases the stream&#39 ; s data retention period by the value that you specify .
&self
input
UpdateDataRetentionInput
&self
input
UpdateDataRetentionInput