aws_sdk_transfer/client/
import_host_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 [`ImportHostKey`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`server_id(impl Into<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::server_id) / [`set_server_id(Option<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::set_server_id):<br>required: **true**<br><p>The identifier of the server that contains the host key that you are importing.</p><br>
    ///   - [`host_key_body(impl Into<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::host_key_body) / [`set_host_key_body(Option<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::set_host_key_body):<br>required: **true**<br><p>The private key portion of an SSH key pair.</p> <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::set_description):<br>required: **false**<br><p>The text description that identifies this host key.</p><br>
    ///   - [`tags(Tag)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::set_tags):<br>required: **false**<br><p>Key-value pairs that can be used to group and search for host keys.</p><br>
    /// - On success, responds with [`ImportHostKeyOutput`](crate::operation::import_host_key::ImportHostKeyOutput) with field(s):
    ///   - [`server_id(String)`](crate::operation::import_host_key::ImportHostKeyOutput::server_id): <p>Returns the server identifier that contains the imported key.</p>
    ///   - [`host_key_id(String)`](crate::operation::import_host_key::ImportHostKeyOutput::host_key_id): <p>Returns the host key identifier for the imported key.</p>
    /// - On failure, responds with [`SdkError<ImportHostKeyError>`](crate::operation::import_host_key::ImportHostKeyError)
    pub fn import_host_key(&self) -> crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder {
        crate::operation::import_host_key::builders::ImportHostKeyFluentBuilder::new(self.handle.clone())
    }
}