aws_sdk_batch/client/update_service_environment.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 [`UpdateServiceEnvironment`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`service_environment(impl Into<String>)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::service_environment) / [`set_service_environment(Option<String>)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::set_service_environment):<br>required: **true**<br><p>The name or ARN of the service environment to update.</p><br>
7 /// - [`state(ServiceEnvironmentState)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::state) / [`set_state(Option<ServiceEnvironmentState>)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::set_state):<br>required: **false**<br><p>The state of the service environment.</p><br>
8 /// - [`capacity_limits(CapacityLimit)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::capacity_limits) / [`set_capacity_limits(Option<Vec::<CapacityLimit>>)`](crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::set_capacity_limits):<br>required: **false**<br><p>The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.</p><br>
9 /// - On success, responds with [`UpdateServiceEnvironmentOutput`](crate::operation::update_service_environment::UpdateServiceEnvironmentOutput) with field(s):
10 /// - [`service_environment_name(Option<String>)`](crate::operation::update_service_environment::UpdateServiceEnvironmentOutput::service_environment_name): <p>The name of the service environment that was updated.</p>
11 /// - [`service_environment_arn(Option<String>)`](crate::operation::update_service_environment::UpdateServiceEnvironmentOutput::service_environment_arn): <p>The Amazon Resource Name (ARN) of the service environment that was updated.</p>
12 /// - On failure, responds with [`SdkError<UpdateServiceEnvironmentError>`](crate::operation::update_service_environment::UpdateServiceEnvironmentError)
13 pub fn update_service_environment(&self) -> crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder {
14 crate::operation::update_service_environment::builders::UpdateServiceEnvironmentFluentBuilder::new(self.handle.clone())
15 }
16}