aws_sdk_ecs/client/
update_service_primary_task_set.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 [`UpdateServicePrimaryTaskSet`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster(impl Into<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::set_cluster):<br>required: **true**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.</p><br>
7    ///   - [`service(impl Into<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::service) / [`set_service(Option<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::set_service):<br>required: **true**<br><p>The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.</p><br>
8    ///   - [`primary_task_set(impl Into<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::primary_task_set) / [`set_primary_task_set(Option<String>)`](crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::set_primary_task_set):<br>required: **true**<br><p>The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.</p><br>
9    /// - On success, responds with [`UpdateServicePrimaryTaskSetOutput`](crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetOutput) with field(s):
10    ///   - [`task_set(Option<TaskSet>)`](crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetOutput::task_set): <p>The details about the task set.</p>
11    /// - On failure, responds with [`SdkError<UpdateServicePrimaryTaskSetError>`](crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError)
12    pub fn update_service_primary_task_set(
13        &self,
14    ) -> crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder {
15        crate::operation::update_service_primary_task_set::builders::UpdateServicePrimaryTaskSetFluentBuilder::new(self.handle.clone())
16    }
17}