aws_sdk_transfer/client/
describe_host_key.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeHostKey`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`server_id(impl Into<String>)`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::server_id) / [`set_server_id(Option<String>)`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::set_server_id):<br>required: **true**<br><p>The identifier of the server that contains the host key that you want described.</p><br>
    ///   - [`host_key_id(impl Into<String>)`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::host_key_id) / [`set_host_key_id(Option<String>)`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::set_host_key_id):<br>required: **true**<br><p>The identifier of the host key that you want described.</p><br>
    /// - On success, responds with [`DescribeHostKeyOutput`](crate::operation::describe_host_key::DescribeHostKeyOutput) with field(s):
    ///   - [`host_key(Option<DescribedHostKey>)`](crate::operation::describe_host_key::DescribeHostKeyOutput::host_key): <p>Returns the details for the specified host key.</p>
    /// - On failure, responds with [`SdkError<DescribeHostKeyError>`](crate::operation::describe_host_key::DescribeHostKeyError)
    pub fn describe_host_key(&self) -> crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder {
        crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::new(self.handle.clone())
    }
}