fn copy_backup_to_region(
        &self,
        input: CopyBackupToRegionRequest,
    ) -> RusotoFuture<CopyBackupToRegionResponse, CopyBackupToRegionError> {
        let mut request = SignedRequest::new("POST", "cloudhsm", &self.region, "/");
        request.set_endpoint_prefix("cloudhsmv2".to_string());
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "BaldrApiService.CopyBackupToRegion");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<CopyBackupToRegionResponse, _>()
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(CopyBackupToRegionError::from_response(response))),
                )
            }
        })
    }
/// <p>Copy an AWS CloudHSM cluster backup to a different region.</p>
Copy an AWS CloudHSM cluster backup to a different region.
Copy an AWS CloudHSM cluster backup to a different region .
fn copy_backup_to_region(
        &self,
        input: CopyBackupToRegionRequest,
    ) -> RusotoFuture<CopyBackupToRegionResponse, CopyBackupToRegionError> {
        let mut request = SignedRequest::new("POST", "cloudhsm", &self.region, "/");
        request.set_endpoint_prefix("cloudhsmv2".to_string());
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "BaldrApiService.CopyBackupToRegion");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<CopyBackupToRegionResponse, _>()
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(CopyBackupToRegionError::from_response(response))),
                )
            }
        })
    }
fn copy_backup_to_region ( & self , input : CopyBackupToRegionRequest , ) -> RusotoFuture < CopyBackupToRegionResponse , CopyBackupToRegionError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_endpoint_prefix ( " " . to_string ( ) ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < CopyBackupToRegionResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( CopyBackupToRegionError :: from_response ( response ) ) ) , ) } } ) }
<p>Copy an AWS CloudHSM cluster backup to a different region.</p>
<p > Copy an AWS CloudHSM cluster backup to a different region . < / p >
&self
input
CopyBackupToRegionRequest