aws_sdk_deadline/client/
update_worker_schedule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateWorkerSchedule`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`farm_id(impl Into<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID to update.</p><br>
    ///   - [`fleet_id(impl Into<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::set_fleet_id):<br>required: **true**<br><p>The fleet ID to update.</p><br>
    ///   - [`worker_id(impl Into<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::worker_id) / [`set_worker_id(Option<String>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::set_worker_id):<br>required: **true**<br><p>The worker ID to update.</p><br>
    ///   - [`updated_session_actions(impl Into<String>, UpdatedSessionActionInfo)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::updated_session_actions) / [`set_updated_session_actions(Option<HashMap::<String, UpdatedSessionActionInfo>>)`](crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::set_updated_session_actions):<br>required: **false**<br><p>The session actions associated with the worker schedule to update.</p><br>
    /// - On success, responds with [`UpdateWorkerScheduleOutput`](crate::operation::update_worker_schedule::UpdateWorkerScheduleOutput) with field(s):
    ///   - [`assigned_sessions(HashMap::<String, AssignedSession>)`](crate::operation::update_worker_schedule::UpdateWorkerScheduleOutput::assigned_sessions): <p>The assigned sessions to update.</p>
    ///   - [`cancel_session_actions(HashMap::<String, Vec::<String>>)`](crate::operation::update_worker_schedule::UpdateWorkerScheduleOutput::cancel_session_actions): <p>The session actions associated with the worker schedule to cancel.</p>
    ///   - [`desired_worker_status(Option<DesiredWorkerStatus>)`](crate::operation::update_worker_schedule::UpdateWorkerScheduleOutput::desired_worker_status): <p>The status to update the worker to.</p>
    ///   - [`update_interval_seconds(i32)`](crate::operation::update_worker_schedule::UpdateWorkerScheduleOutput::update_interval_seconds): <p>Updates the time interval (in seconds) for the schedule.</p>
    /// - On failure, responds with [`SdkError<UpdateWorkerScheduleError>`](crate::operation::update_worker_schedule::UpdateWorkerScheduleError)
    pub fn update_worker_schedule(&self) -> crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder {
        crate::operation::update_worker_schedule::builders::UpdateWorkerScheduleFluentBuilder::new(self.handle.clone())
    }
}