fn delete_certificate_authority(
        &self,
        input: DeleteCertificateAuthorityRequest,
    ) -> RusotoFuture<(), DeleteCertificateAuthorityError> {
        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.DeleteCertificateAuthority");
        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(DeleteCertificateAuthorityError::from_response(response))
                }))
            }
        })
    }
/// <p>Deletes a private certificate authority (CA). You must provide the ARN (Amazon Resource Name) of the private CA that you want to delete. You can find the ARN by calling the <a>ListCertificateAuthorities</a> operation. Before you can delete a CA, you must disable it. Call the <a>UpdateCertificateAuthority</a> operation and set the <b>CertificateAuthorityStatus</b> parameter to <code>DISABLED</code>. </p> <p>Additionally, you can delete a CA if you are waiting for it to be created (the <b>Status</b> field of the <a>CertificateAuthority</a> is <code>CREATING</code>). You can also delete it if the CA has been created but you haven't yet imported the signed certificate (the <b>Status</b> is <code>PENDING_CERTIFICATE</code>) into ACM PCA. </p> <p>If the CA is in one of the aforementioned states and you call <a>DeleteCertificateAuthority</a>, the CA's status changes to <code>DELETED</code>. However, the CA won't be permentantly deleted until the restoration period has passed. By default, if you do not set the <code>PermanentDeletionTimeInDays</code> parameter, the CA remains restorable for 30 days. You can set the parameter from 7 to 30 days. The <a>DescribeCertificateAuthority</a> operation returns the time remaining in the restoration window of a Private CA in the <code>DELETED</code> state. To restore an eligable CA, call the <a>RestoreCertificateAuthority</a> operation.</p>
Deletes a private certificate authority (CA). You must provide the ARN (Amazon Resource Name) of the private CA that you want to delete. You can find the ARN by calling the ListCertificateAuthorities operation. Before you can delete a CA, you must disable it. Call the UpdateCertificateAuthority operation and set the CertificateAuthorityStatus parameter to DISABLED.  Additionally, you can delete a CA if you are waiting for it to be created (the Status field of the CertificateAuthority is CREATING). You can also delete it if the CA has been created but you haven't yet imported the signed certificate (the Status is PENDING_CERTIFICATE) into ACM PCA.  If the CA is in one of the aforementioned states and you call DeleteCertificateAuthority, the CA's status changes to DELETED. However, the CA won't be permentantly deleted until the restoration period has passed. By default, if you do not set the PermanentDeletionTimeInDays parameter, the CA remains restorable for 30 days. You can set the parameter from 7 to 30 days. The DescribeCertificateAuthority operation returns the time remaining in the restoration window of a Private CA in the DELETED state. To restore an eligable CA, call the RestoreCertificateAuthority operation.
Deletes a private certificate authority ( CA ) . You must provide the ARN ( Amazon Resource Name ) of the private CA that you want to delete . You can find the ARN by calling the ListCertificateAuthorities operation . Before you can delete a CA you must disable it . Call the UpdateCertificateAuthority operation and set the CertificateAuthorityStatus parameter to DISABLED . Additionally you can delete a CA if you are waiting for it to be created ( the Status field of the CertificateAuthority is CREATING ) . You can also delete it if the CA has been created but you haven ' t yet imported the signed certificate ( the Status is PENDING_CERTIFICATE ) into ACM PCA . If the CA is in one of the aforementioned states and you call DeleteCertificateAuthority the CA ' s status changes to DELETED . However the CA won ' t be permentantly deleted until the restoration period has passed . By default if you do not set the PermanentDeletionTimeInDays parameter the CA remains restorable for 30 days . You can set the parameter from 7 to 30 days . The DescribeCertificateAuthority operation returns the time remaining in the restoration window of a Private CA in the DELETED state . To restore an eligable CA call the RestoreCertificateAuthority operation .
fn delete_certificate_authority(
        &self,
        input: DeleteCertificateAuthorityRequest,
    ) -> RusotoFuture<(), DeleteCertificateAuthorityError> {
        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.DeleteCertificateAuthority");
        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(DeleteCertificateAuthorityError::from_response(response))
                }))
            }
        })
    }
fn delete_certificate_authority ( & self , input : DeleteCertificateAuthorityRequest , ) -> RusotoFuture < ( ) , DeleteCertificateAuthorityError > { 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 ( DeleteCertificateAuthorityError :: from_response ( response ) ) } ) ) } } ) }
<p>Deletes a private certificate authority (CA).
<p > Deletes a private certificate authority ( CA ) .
&self
input
DeleteCertificateAuthorityRequest
&self
input
DeleteCertificateAuthorityRequest