aws_sdk_transfer/client/
list_host_keys.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 [`ListHostKeys`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`max_results(i32)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of host keys to return.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::set_next_token):<br>required: **false**<br><p>When there are additional results that were not returned, a <code>NextToken</code> parameter is returned. You can use that value for a subsequent call to <code>ListHostKeys</code> to continue listing results.</p><br>
    ///   - [`server_id(impl Into<String>)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::server_id) / [`set_server_id(Option<String>)`](crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::set_server_id):<br>required: **true**<br><p>The identifier of the server that contains the host keys that you want to view.</p><br>
    /// - On success, responds with [`ListHostKeysOutput`](crate::operation::list_host_keys::ListHostKeysOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_host_keys::ListHostKeysOutput::next_token): <p>Returns a token that you can use to call <code>ListHostKeys</code> again and receive additional results, if there are any.</p>
    ///   - [`server_id(String)`](crate::operation::list_host_keys::ListHostKeysOutput::server_id): <p>Returns the server identifier that contains the listed host keys.</p>
    ///   - [`host_keys(Vec::<ListedHostKey>)`](crate::operation::list_host_keys::ListHostKeysOutput::host_keys): <p>Returns an array, where each item contains the details of a host key.</p>
    /// - On failure, responds with [`SdkError<ListHostKeysError>`](crate::operation::list_host_keys::ListHostKeysError)
    pub fn list_host_keys(&self) -> crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder {
        crate::operation::list_host_keys::builders::ListHostKeysFluentBuilder::new(self.handle.clone())
    }
}