aws_sdk_transfer/client/describe_host_key.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 [`DescribeHostKey`](crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`DescribeHostKeyOutput`](crate::operation::describe_host_key::DescribeHostKeyOutput) with field(s):
9 /// - [`host_key(Option<DescribedHostKey>)`](crate::operation::describe_host_key::DescribeHostKeyOutput::host_key): <p>Returns the details for the specified host key.</p>
10 /// - On failure, responds with [`SdkError<DescribeHostKeyError>`](crate::operation::describe_host_key::DescribeHostKeyError)
11 pub fn describe_host_key(&self) -> crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder {
12 crate::operation::describe_host_key::builders::DescribeHostKeyFluentBuilder::new(self.handle.clone())
13 }
14}