fn update_certificate_authority(
        &self,
        input: UpdateCertificateAuthorityRequest,
    ) -> RusotoFuture<(), UpdateCertificateAuthorityError> {
        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.UpdateCertificateAuthority");
        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(UpdateCertificateAuthorityError::from_response(response))
                }))
            }
        })
    }
/// <p>Updates the status or configuration of a private certificate authority (CA). Your private CA must be in the <code>ACTIVE</code> or <code>DISABLED</code> state before you can update it. You can disable a private CA that is in the <code>ACTIVE</code> state or make a CA that is in the <code>DISABLED</code> state active again.</p>
Updates the status or configuration of a private certificate authority (CA). Your private CA must be in the ACTIVE or DISABLED state before you can update it. You can disable a private CA that is in the ACTIVE state or make a CA that is in the DISABLED state active again.
Updates the status or configuration of a private certificate authority ( CA ) . Your private CA must be in the ACTIVE or DISABLED state before you can update it . You can disable a private CA that is in the ACTIVE state or make a CA that is in the DISABLED state active again .
fn update_certificate_authority(
        &self,
        input: UpdateCertificateAuthorityRequest,
    ) -> RusotoFuture<(), UpdateCertificateAuthorityError> {
        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.UpdateCertificateAuthority");
        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(UpdateCertificateAuthorityError::from_response(response))
                }))
            }
        })
    }
fn update_certificate_authority ( & self , input : UpdateCertificateAuthorityRequest , ) -> RusotoFuture < ( ) , UpdateCertificateAuthorityError > { 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 ( UpdateCertificateAuthorityError :: from_response ( response ) ) } ) ) } } ) }
<p>Updates the status or configuration of a private certificate authority (CA).
<p > Updates the status or configuration of a private certificate authority ( CA ) .
&self
input
UpdateCertificateAuthorityRequest
&self
input
UpdateCertificateAuthorityRequest