aws_sdk_transfer/client/
import_ssh_public_key.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ImportSshPublicKey`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`server_id(impl Into<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::server_id) / [`set_server_id(Option<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::set_server_id):<br>required: **true**<br><p>A system-assigned unique identifier for a server.</p><br>
    ///   - [`ssh_public_key_body(impl Into<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::ssh_public_key_body) / [`set_ssh_public_key_body(Option<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::set_ssh_public_key_body):<br>required: **true**<br><p>The public key portion of an SSH key pair.</p> <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</p><br>
    ///   - [`user_name(impl Into<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::set_user_name):<br>required: **true**<br><p>The name of the Transfer Family user that is assigned to one or more servers.</p><br>
    /// - On success, responds with [`ImportSshPublicKeyOutput`](crate::operation::import_ssh_public_key::ImportSshPublicKeyOutput) with field(s):
    ///   - [`server_id(String)`](crate::operation::import_ssh_public_key::ImportSshPublicKeyOutput::server_id): <p>A system-assigned unique identifier for a server.</p>
    ///   - [`ssh_public_key_id(String)`](crate::operation::import_ssh_public_key::ImportSshPublicKeyOutput::ssh_public_key_id): <p>The name given to a public key by the system that was imported.</p>
    ///   - [`user_name(String)`](crate::operation::import_ssh_public_key::ImportSshPublicKeyOutput::user_name): <p>A user name assigned to the <code>ServerID</code> value that you specified.</p>
    /// - On failure, responds with [`SdkError<ImportSshPublicKeyError>`](crate::operation::import_ssh_public_key::ImportSshPublicKeyError)
    pub fn import_ssh_public_key(&self) -> crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder {
        crate::operation::import_ssh_public_key::builders::ImportSshPublicKeyFluentBuilder::new(self.handle.clone())
    }
}