aws_sdk_deadline/client/
update_worker.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateWorker`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`farm_id(impl Into<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID to update.</p><br>
    ///   - [`fleet_id(impl Into<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_fleet_id):<br>required: **true**<br><p>The fleet ID to update.</p><br>
    ///   - [`worker_id(impl Into<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::worker_id) / [`set_worker_id(Option<String>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_worker_id):<br>required: **true**<br><p>The worker ID to update.</p><br>
    ///   - [`status(UpdatedWorkerStatus)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::status) / [`set_status(Option<UpdatedWorkerStatus>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_status):<br>required: **false**<br><p>The worker status to update.</p><br>
    ///   - [`capabilities(WorkerCapabilities)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::capabilities) / [`set_capabilities(Option<WorkerCapabilities>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_capabilities):<br>required: **false**<br><p>The worker capabilities to update.</p><br>
    ///   - [`host_properties(HostPropertiesRequest)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::host_properties) / [`set_host_properties(Option<HostPropertiesRequest>)`](crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::set_host_properties):<br>required: **false**<br><p>The host properties to update.</p><br>
    /// - On success, responds with [`UpdateWorkerOutput`](crate::operation::update_worker::UpdateWorkerOutput) with field(s):
    ///   - [`log(Option<LogConfiguration>)`](crate::operation::update_worker::UpdateWorkerOutput::log): <p>The worker log to update.</p>
    /// - On failure, responds with [`SdkError<UpdateWorkerError>`](crate::operation::update_worker::UpdateWorkerError)
    pub fn update_worker(&self) -> crate::operation::update_worker::builders::UpdateWorkerFluentBuilder {
        crate::operation::update_worker::builders::UpdateWorkerFluentBuilder::new(self.handle.clone())
    }
}