aws-sdk-acm 1.105.0

AWS SDK for AWS Certificate Manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RevokeCertificate`](crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`RevokeCertificateOutput`](crate::operation::revoke_certificate::RevokeCertificateOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<RevokeCertificateError>`](crate::operation::revoke_certificate::RevokeCertificateError)
    pub fn revoke_certificate(&self) -> crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder {
        crate::operation::revoke_certificate::builders::RevokeCertificateFluentBuilder::new(self.handle.clone())
    }
}