aws_sdk_lightsail/client/delete_key_pair.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 [`DeleteKeyPair`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`DeleteKeyPairOutput`](crate::operation::delete_key_pair::DeleteKeyPairOutput) with field(s):
9 /// - [`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>
10 /// - On failure, responds with [`SdkError<DeleteKeyPairError>`](crate::operation::delete_key_pair::DeleteKeyPairError)
11 pub fn delete_key_pair(&self) -> crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder {
12 crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::new(self.handle.clone())
13 }
14}