fn import_certificate_authority_certificate(
        &self,
        input: ImportCertificateAuthorityCertificateRequest,
    ) -> RusotoFuture<(), ImportCertificateAuthorityCertificateError> {
        let mut request = SignedRequest::new("POST", "acm-pca", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "ACMPrivateCA.ImportCertificateAuthorityCertificate",
        );
        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(future::ok(::std::mem::drop(response)))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(ImportCertificateAuthorityCertificateError::from_response(
                        response,
                    ))
                }))
            }
        })
    }
/// <p><p>Imports your signed private CA certificate into ACM PCA. Before you can call this operation, you must create the private certificate authority by calling the <a>CreateCertificateAuthority</a> operation. You must then generate a certificate signing request (CSR) by calling the <a>GetCertificateAuthorityCsr</a> operation. Take the CSR to your on-premises CA and use the root certificate or a subordinate certificate to sign it. Create a certificate chain and copy the signed certificate and the certificate chain to your working directory. </p> <note> <p>Your certificate chain must not include the private CA certificate that you are importing.</p> </note> <note> <p>Your on-premises CA certificate must be the last certificate in your chain. The subordinate certificate, if any, that your root CA signed must be next to last. The subordinate certificate signed by the preceding subordinate CA must come next, and so on until your chain is built. </p> </note> <note> <p>The chain must be PEM-encoded.</p> </note></p>
Imports your signed private CA certificate into ACM PCA. Before you can call this operation, you must create the private certificate authority by calling the CreateCertificateAuthority operation. You must then generate a certificate signing request (CSR) by calling the GetCertificateAuthorityCsr operation. Take the CSR to your on-premises CA and use the root certificate or a subordinate certificate to sign it. Create a certificate chain and copy the signed certificate and the certificate chain to your working directory.   Your certificate chain must not include the private CA certificate that you are importing.   Your on-premises CA certificate must be the last certificate in your chain. The subordinate certificate, if any, that your root CA signed must be next to last. The subordinate certificate signed by the preceding subordinate CA must come next, and so on until your chain is built.    The chain must be PEM-encoded. 
Imports your signed private CA certificate into ACM PCA . Before you can call this operation you must create the private certificate authority by calling the CreateCertificateAuthority operation . You must then generate a certificate signing request ( CSR ) by calling the GetCertificateAuthorityCsr operation . Take the CSR to your on - premises CA and use the root certificate or a subordinate certificate to sign it . Create a certificate chain and copy the signed certificate and the certificate chain to your working directory . Your certificate chain must not include the private CA certificate that you are importing . Your on - premises CA certificate must be the last certificate in your chain . The subordinate certificate if any that your root CA signed must be next to last . The subordinate certificate signed by the preceding subordinate CA must come next and so on until your chain is built . The chain must be PEM - encoded .
fn import_certificate_authority_certificate(
        &self,
        input: ImportCertificateAuthorityCertificateRequest,
    ) -> RusotoFuture<(), ImportCertificateAuthorityCertificateError> {
        let mut request = SignedRequest::new("POST", "acm-pca", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "ACMPrivateCA.ImportCertificateAuthorityCertificate",
        );
        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(future::ok(::std::mem::drop(response)))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(ImportCertificateAuthorityCertificateError::from_response(
                        response,
                    ))
                }))
            }
        })
    }
fn import_certificate_authority_certificate ( & self , input : ImportCertificateAuthorityCertificateRequest , ) -> RusotoFuture < ( ) , ImportCertificateAuthorityCertificateError > { 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 ( future :: ok ( :: std :: mem :: drop ( response ) ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( ImportCertificateAuthorityCertificateError :: from_response ( response , ) ) } ) ) } } ) }
<p><p>Imports your signed private CA certificate into ACM PCA.
<p > <p > Imports your signed private CA certificate into ACM PCA .
&self
input
ImportCertificateAuthorityCertificateRequest
&self
input
ImportCertificateAuthorityCertificateRequest