// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteKeyPair`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`key_pair_name(impl Into<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::key_pair_name) / [`set_key_pair_name(Option<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::set_key_pair_name):<br>required: **true**<br><p>The name of the key pair to delete.</p><br>
/// - [`expected_fingerprint(impl Into<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::expected_fingerprint) / [`set_expected_fingerprint(Option<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::set_expected_fingerprint):<br>required: **false**<br><p>The RSA fingerprint of the Lightsail default key pair to delete.</p><note> <p>The <code>expectedFingerprint</code> parameter is required only when specifying to delete a Lightsail default key pair.</p> </note><br>
/// - On success, responds with [`DeleteKeyPairOutput`](crate::operation::delete_key_pair::DeleteKeyPairOutput) with field(s):
/// - [`operation(Option<Operation>)`](crate::operation::delete_key_pair::DeleteKeyPairOutput::operation): <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>
/// - On failure, responds with [`SdkError<DeleteKeyPairError>`](crate::operation::delete_key_pair::DeleteKeyPairError)
pub fn delete_key_pair(&self) -> crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder {
crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::new(self.handle.clone())
}
}