Skip to content

ECS  >  Operations  >  update_task_set

update_task_set

Operation

update_task_set async

update_task_set(input: UpdateTaskSetInput, plugins: list[Plugin] | None = None) -> UpdateTaskSetOutput

Modifies a task set. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

Parameters:

Name Type Description Default
input UpdateTaskSetInput

An instance of UpdateTaskSetInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
UpdateTaskSetOutput

An instance of UpdateTaskSetOutput.

Input

UpdateTaskSetInput dataclass

Bases: _SerdeShape

Dataclass for UpdateTaskSetInput structure.

Attributes

cluster class-attribute instance-attribute
cluster: str | None = ...

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set is found in.

scale class-attribute instance-attribute
scale: Scale | None = ...

A floating-point percentage of the desired number of tasks to place and keep running in the task set.

service class-attribute instance-attribute
service: str | None = ...

The short name or full Amazon Resource Name (ARN) of the service that the task set is found in.

task_set class-attribute instance-attribute
task_set: str | None = ...

The short name or full Amazon Resource Name (ARN) of the task set to update.

Output

UpdateTaskSetOutput dataclass

Bases: _SerdeShape

Dataclass for UpdateTaskSetOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

task_set class-attribute instance-attribute
task_set: TaskSet | None = ...

Details about the task set.