aws_sdk_acm/client/
revoke_certificate.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`RevokeCertificate`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`certificate_arn(impl Into<String>)`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::certificate_arn) / [`set_certificate_arn(Option<String>)`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::set_certificate_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the public or private certificate that will be revoked. The ARN must have the following form:</p> <p><code>arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012</code></p><br>
7    ///   - [`revocation_reason(RevocationReason)`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::revocation_reason) / [`set_revocation_reason(Option<RevocationReason>)`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::set_revocation_reason):<br>required: **true**<br><p>Specifies why you revoked the certificate.</p><br>
8    /// - On success, responds with [`RevokeCertificateOutput`](crate::operation::revoke_certificate::RevokeCertificateOutput) with field(s):
9    ///   - [`certificate_arn(Option<String>)`](crate::operation::revoke_certificate::RevokeCertificateOutput::certificate_arn): <p>The Amazon Resource Name (ARN) of the public or private certificate that was revoked.</p>
10    /// - On failure, responds with [`SdkError<RevokeCertificateError>`](crate::operation::revoke_certificate::RevokeCertificateError)
11    pub fn revoke_certificate(&self) -> crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder {
12        crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::new(self.handle.clone())
13    }
14}