aws_sdk_lightsail/client/
download_default_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 [`DownloadDefaultKeyPair`](crate::operation::download_default_key_pair::builders::DownloadDefaultKeyPairFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::download_default_key_pair::builders::DownloadDefaultKeyPairFluentBuilder::send) it.
6    /// - On success, responds with [`DownloadDefaultKeyPairOutput`](crate::operation::download_default_key_pair::DownloadDefaultKeyPairOutput) with field(s):
7    ///   - [`public_key_base64(Option<String>)`](crate::operation::download_default_key_pair::DownloadDefaultKeyPairOutput::public_key_base64): <p>A base64-encoded public key of the <code>ssh-rsa</code> type.</p>
8    ///   - [`private_key_base64(Option<String>)`](crate::operation::download_default_key_pair::DownloadDefaultKeyPairOutput::private_key_base64): <p>A base64-encoded RSA private key.</p>
9    ///   - [`created_at(Option<DateTime>)`](crate::operation::download_default_key_pair::DownloadDefaultKeyPairOutput::created_at): <p>The timestamp when the default key pair was created.</p>
10    /// - On failure, responds with [`SdkError<DownloadDefaultKeyPairError>`](crate::operation::download_default_key_pair::DownloadDefaultKeyPairError)
11    pub fn download_default_key_pair(&self) -> crate::operation::download_default_key_pair::builders::DownloadDefaultKeyPairFluentBuilder {
12        crate::operation::download_default_key_pair::builders::DownloadDefaultKeyPairFluentBuilder::new(self.handle.clone())
13    }
14}