aws_sdk_lightsail/client/delete_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 [`DeleteCertificate`](crate::operation::delete_certificate::builders::DeleteCertificateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`certificate_name(impl Into<String>)`](crate::operation::delete_certificate::builders::DeleteCertificateFluentBuilder::certificate_name) / [`set_certificate_name(Option<String>)`](crate::operation::delete_certificate::builders::DeleteCertificateFluentBuilder::set_certificate_name):<br>required: **true**<br><p>The name of the certificate to delete.</p> <p>Use the <code>GetCertificates</code> action to get a list of certificate names that you can specify.</p><br>
7 /// - On success, responds with [`DeleteCertificateOutput`](crate::operation::delete_certificate::DeleteCertificateOutput) with field(s):
8 /// - [`operations(Option<Vec::<Operation>>)`](crate::operation::delete_certificate::DeleteCertificateOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
9 /// - On failure, responds with [`SdkError<DeleteCertificateError>`](crate::operation::delete_certificate::DeleteCertificateError)
10 pub fn delete_certificate(&self) -> crate::operation::delete_certificate::builders::DeleteCertificateFluentBuilder {
11 crate::operation::delete_certificate::builders::DeleteCertificateFluentBuilder::new(self.handle.clone())
12 }
13}