1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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_name(impl Into<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::key_name) / [`set_key_name(Option<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::set_key_name):<br>required: **false**<br><p>The name of the key pair.</p><br>
    ///   - [`key_pair_id(impl Into<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::key_pair_id) / [`set_key_pair_id(Option<String>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::set_key_pair_id):<br>required: **false**<br><p>The ID of the key pair.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_key_pair::builders::DeleteKeyPairFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    /// - On success, responds with [`DeleteKeyPairOutput`](crate::operation::delete_key_pair::DeleteKeyPairOutput) with field(s):
    ///   - [`r#return(Option<bool>)`](crate::operation::delete_key_pair::DeleteKeyPairOutput::return): <p>Is <code>true</code> if the request succeeds, and an error otherwise.</p>
    ///   - [`key_pair_id(Option<String>)`](crate::operation::delete_key_pair::DeleteKeyPairOutput::key_pair_id): <p>The ID of the key pair.</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())
    }
}