aws_sdk_transfer/client/
update_host_key.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateHostKey`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`server_id(impl Into<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::server_id) / [`set_server_id(Option<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::set_server_id):<br>required: **true**<br><p>The identifier of the server that contains the host key that you are updating.</p><br>
    ///   - [`host_key_id(impl Into<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::host_key_id) / [`set_host_key_id(Option<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::set_host_key_id):<br>required: **true**<br><p>The identifier of the host key that you are updating.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::set_description):<br>required: **true**<br><p>An updated description for the host key.</p><br>
    /// - On success, responds with [`UpdateHostKeyOutput`](crate::operation::update_host_key::UpdateHostKeyOutput) with field(s):
    ///   - [`server_id(String)`](crate::operation::update_host_key::UpdateHostKeyOutput::server_id): <p>Returns the server identifier for the server that contains the updated host key.</p>
    ///   - [`host_key_id(String)`](crate::operation::update_host_key::UpdateHostKeyOutput::host_key_id): <p>Returns the host key identifier for the updated host key.</p>
    /// - On failure, responds with [`SdkError<UpdateHostKeyError>`](crate::operation::update_host_key::UpdateHostKeyError)
    pub fn update_host_key(&self) -> crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder {
        crate::operation::update_host_key::builders::UpdateHostKeyFluentBuilder::new(self.handle.clone())
    }
}