fn put_retention_configuration(
        &self,
        input: PutRetentionConfigurationRequest,
    ) -> RusotoFuture<PutRetentionConfigurationResponse, PutRetentionConfigurationError> {
        let mut request = SignedRequest::new("POST", "config", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "StarlingDoveService.PutRetentionConfiguration",
        );
        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::<PutRetentionConfigurationResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(PutRetentionConfigurationError::from_response(response))
                }))
            }
        })
    }
/// <p><p>Creates and updates the retention configuration with details about retention period (number of days) that AWS Config stores your historical information. The API creates the <code>RetentionConfiguration</code> object and names the object as <b>default</b>. When you have a <code>RetentionConfiguration</code> object named <b>default</b>, calling the API modifies the default object. </p> <note> <p>Currently, AWS Config supports only one retention configuration per region in your account.</p> </note></p>
Creates and updates the retention configuration with details about retention period (number of days) that AWS Config stores your historical information. The API creates the RetentionConfiguration object and names the object as default. When you have a RetentionConfiguration object named default, calling the API modifies the default object.   Currently, AWS Config supports only one retention configuration per region in your account. 
Creates and updates the retention configuration with details about retention period ( number of days ) that AWS Config stores your historical information . The API creates the RetentionConfiguration object and names the object as default . When you have a RetentionConfiguration object named default calling the API modifies the default object . Currently AWS Config supports only one retention configuration per region in your account .
fn put_retention_configuration(
        &self,
        input: PutRetentionConfigurationRequest,
    ) -> RusotoFuture<PutRetentionConfigurationResponse, PutRetentionConfigurationError> {
        let mut request = SignedRequest::new("POST", "config", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "StarlingDoveService.PutRetentionConfiguration",
        );
        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::<PutRetentionConfigurationResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(PutRetentionConfigurationError::from_response(response))
                }))
            }
        })
    }
fn put_retention_configuration ( & self , input : PutRetentionConfigurationRequest , ) -> RusotoFuture < PutRetentionConfigurationResponse , PutRetentionConfigurationError > { 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 :: < PutRetentionConfigurationResponse > ( String :: from_utf8_lossy ( body . as_ref ( ) ) . as_ref ( ) , ) . unwrap ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( PutRetentionConfigurationError :: from_response ( response ) ) } ) ) } } ) }
<p><p>Creates and updates the retention configuration with details about retention period (number of days) that AWS Config stores your historical information.
<p > <p > Creates and updates the retention configuration with details about retention period ( number of days ) that AWS Config stores your historical information .
&self
input
PutRetentionConfigurationRequest
&self
input
PutRetentionConfigurationRequest