aws_sdk_deadline/client/
update_fleet.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 [`UpdateFleet`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
7    ///   - [`farm_id(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID to update.</p><br>
8    ///   - [`fleet_id(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_fleet_id):<br>required: **true**<br><p>The fleet ID to update.</p><br>
9    ///   - [`display_name(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_display_name):<br>required: **false**<br><p>The display name of the fleet to update.</p><important>  <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
10    ///   - [`description(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the fleet to update.</p><important>  <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
11    ///   - [`role_arn(impl Into<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_role_arn):<br>required: **false**<br><p>The IAM role ARN that the fleet's workers assume while running jobs.</p><br>
12    ///   - [`min_worker_count(i32)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::min_worker_count) / [`set_min_worker_count(Option<i32>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_min_worker_count):<br>required: **false**<br><p>The minimum number of workers in the fleet.</p><br>
13    ///   - [`max_worker_count(i32)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::max_worker_count) / [`set_max_worker_count(Option<i32>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_max_worker_count):<br>required: **false**<br><p>The maximum number of workers in the fleet.</p> <p>Deadline Cloud limits the number of workers to less than or equal to the fleet's maximum worker count. The service maintains eventual consistency for the worker count. If you make multiple rapid calls to <code>CreateWorker</code> before the field updates, you might exceed your fleet's maximum worker count. For example, if your <code>maxWorkerCount</code> is 10 and you currently have 9 workers, making two quick <code>CreateWorker</code> calls might successfully create 2 workers instead of 1, resulting in 11 total workers.</p><br>
14    ///   - [`configuration(FleetConfiguration)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::configuration) / [`set_configuration(Option<FleetConfiguration>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_configuration):<br>required: **false**<br><p>The fleet configuration to update.</p><br>
15    ///   - [`host_configuration(HostConfiguration)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::host_configuration) / [`set_host_configuration(Option<HostConfiguration>)`](crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::set_host_configuration):<br>required: **false**<br><p>Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.</p><br>
16    /// - On success, responds with [`UpdateFleetOutput`](crate::operation::update_fleet::UpdateFleetOutput)
17    /// - On failure, responds with [`SdkError<UpdateFleetError>`](crate::operation::update_fleet::UpdateFleetError)
18    pub fn update_fleet(&self) -> crate::operation::update_fleet::builders::UpdateFleetFluentBuilder {
19        crate::operation::update_fleet::builders::UpdateFleetFluentBuilder::new(self.handle.clone())
20    }
21}