@aws-sdk/client-ecs 3.828.0 → 3.829.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,25 +144,6 @@ declare const UpdateServiceCommand_base: {
144
144
  * running tasks for this service.</p>
145
145
  * </li>
146
146
  * </ul>
147
- * <note>
148
- * <p>You must have a service-linked role when you update any of the following service
149
- * properties:</p>
150
- * <ul>
151
- * <li>
152
- * <p>
153
- * <code>loadBalancers</code>,</p>
154
- * </li>
155
- * <li>
156
- * <p>
157
- * <code>serviceRegistries</code>
158
- * </p>
159
- * </li>
160
- * </ul>
161
- * <p>For more information about the role see the <code>CreateService</code> request
162
- * parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
163
- * <code>role</code>
164
- * </a>. </p>
165
- * </note>
166
147
  * @example
167
148
  * Use a bare-bones client and the command you need to make an API call.
168
149
  * ```javascript
@@ -4575,6 +4575,60 @@ export interface FirelensConfiguration {
4575
4575
  * lifecycle regardless of its health status. For tasks that are part of a service, if the
4576
4576
  * task reports as unhealthy then the task will be stopped and the service scheduler will
4577
4577
  * replace it.</p>
4578
+ * <p>When a container health check fails for a task that is part of a service, the following process occurs:</p>
4579
+ * <ol>
4580
+ * <li>
4581
+ * <p>The task is marked as <code>UNHEALTHY</code>.</p>
4582
+ * </li>
4583
+ * <li>
4584
+ * <p>The unhealthy task will be stopped, and during the stopping process, it will go through the following states:</p>
4585
+ * <ul>
4586
+ * <li>
4587
+ * <p>
4588
+ * <code>DEACTIVATING</code> - In this state, Amazon ECS performs additional steps before stopping the
4589
+ * task. For example, for tasks that are part of services configured to use
4590
+ * Elastic Load Balancing target groups, target groups will be deregistered
4591
+ * in this state.</p>
4592
+ * </li>
4593
+ * <li>
4594
+ * <p>
4595
+ * <code>STOPPING</code> - The task is in the process of being stopped.</p>
4596
+ * </li>
4597
+ * <li>
4598
+ * <p>
4599
+ * <code>DEPROVISIONING</code> - Resources associated with the task are being cleaned up.</p>
4600
+ * </li>
4601
+ * <li>
4602
+ * <p>
4603
+ * <code>STOPPED</code> - The task has been completely stopped.</p>
4604
+ * </li>
4605
+ * </ul>
4606
+ * </li>
4607
+ * <li>
4608
+ * <p>After the old task stops, a new task will be launched to ensure service operation, and the new task will go through the following lifecycle:</p>
4609
+ * <ul>
4610
+ * <li>
4611
+ * <p>
4612
+ * <code>PROVISIONING</code> - Resources required for the task are being provisioned.</p>
4613
+ * </li>
4614
+ * <li>
4615
+ * <p>
4616
+ * <code>PENDING</code> - The task is waiting to be placed on a container instance.</p>
4617
+ * </li>
4618
+ * <li>
4619
+ * <p>
4620
+ * <code>ACTIVATING</code> - In this state, Amazon ECS pulls container images, creates containers,
4621
+ * configures task networking, registers load balancer target groups, and
4622
+ * configures service discovery status.</p>
4623
+ * </li>
4624
+ * <li>
4625
+ * <p>
4626
+ * <code>RUNNING</code> - The task is running and performing its work.</p>
4627
+ * </li>
4628
+ * </ul>
4629
+ * </li>
4630
+ * </ol>
4631
+ * <p>For more detailed information about task lifecycle states, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle-explanation.html">Task lifecycle</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
4578
4632
  * <p>The following are notes about container health check support:</p>
4579
4633
  * <ul>
4580
4634
  * <li>
@@ -331,6 +331,7 @@ export interface UpdateServiceRequest {
331
331
  /**
332
332
  * <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on.
333
333
  * If you do not specify a cluster, the default cluster is assumed.</p>
334
+ * <p>You can't change the cluster name.</p>
334
335
  * @public
335
336
  */
336
337
  cluster?: string | undefined;
@@ -355,27 +356,33 @@ export interface UpdateServiceRequest {
355
356
  */
356
357
  taskDefinition?: string | undefined;
357
358
  /**
358
- * <p>The capacity provider strategy to update the service to use.</p>
359
- * <p>if the service uses the default capacity provider strategy for the cluster, the
360
- * service can be updated to use one or more capacity providers as opposed to the default
361
- * capacity provider strategy. However, when a service is using a capacity provider
362
- * strategy that's not the default capacity provider strategy, the service can't be updated
363
- * to use the cluster's default capacity provider strategy.</p>
364
- * <p>A capacity provider strategy consists of one or more capacity providers along with the
365
- * <code>base</code> and <code>weight</code> to assign to them. A capacity provider
366
- * must be associated with the cluster to be used in a capacity provider strategy. The
367
- * <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API is used to associate a capacity provider
368
- * with a cluster. Only capacity providers with an <code>ACTIVE</code> or
369
- * <code>UPDATING</code> status can be used.</p>
370
- * <p>If specifying a capacity provider that uses an Auto Scaling group, the capacity
371
- * provider must already be created. New capacity providers can be created with the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateClusterCapacityProvider.html">CreateClusterCapacityProvider</a> API operation.</p>
372
- * <p>To use a Fargate capacity provider, specify either the <code>FARGATE</code> or
373
- * <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are
374
- * available to all accounts and only need to be associated with a cluster to be
375
- * used.</p>
376
- * <p>The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a>API operation is used to update the list of
377
- * available capacity providers for a cluster after the cluster is created.</p>
378
- * <p></p>
359
+ * <p>The details of a capacity provider strategy. You can set a capacity provider when you
360
+ * create a cluster, run a task, or update a service.</p>
361
+ * <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or
362
+ * <code>FARGATE_SPOT</code>.</p>
363
+ * <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
364
+ * <p>You can change capacity providers for rolling deployments and blue/green
365
+ * deployments.</p>
366
+ * <p>The following list provides the valid transitions:</p>
367
+ * <ul>
368
+ * <li>
369
+ * <p>Update the Fargate launch type to an EC2 capacity provider.</p>
370
+ * </li>
371
+ * <li>
372
+ * <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p>
373
+ * </li>
374
+ * <li>
375
+ * <p>Update the Fargate capacity provider to an EC2 capacity provider.</p>
376
+ * </li>
377
+ * <li>
378
+ * <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider. </p>
379
+ * </li>
380
+ * <li>
381
+ * <p>Update the EC2 or Fargate capacity provider back to the launch type.</p>
382
+ * <p>Pass an empty list in the <code>capacityProvider</code> parameter.</p>
383
+ * </li>
384
+ * </ul>
385
+ * <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
379
386
  * @public
380
387
  */
381
388
  capacityProviderStrategy?: CapacityProviderStrategyItem[] | undefined;
@@ -470,7 +477,10 @@ export interface UpdateServiceRequest {
470
477
  */
471
478
  enableECSManagedTags?: boolean | undefined;
472
479
  /**
473
- * <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the
480
+ * <note>
481
+ * <p>You must have a service-linked role when you update this property</p>
482
+ * </note>
483
+ * <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the
474
484
  * container name, and the container port to access from the load balancer. The container
475
485
  * name is as it appears in a container definition.</p>
476
486
  * <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks
@@ -504,7 +514,14 @@ export interface UpdateServiceRequest {
504
514
  */
505
515
  propagateTags?: PropagateTags | undefined;
506
516
  /**
507
- * <p>The details for the service discovery registries to assign to this service. For more
517
+ * <note>
518
+ * <p>You must have a service-linked role when you update this property.</p>
519
+ * <p>For more information about the role see the <code>CreateService</code> request
520
+ * parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
521
+ * <code>role</code>
522
+ * </a>. </p>
523
+ * </note>
524
+ * <p>The details for the service discovery registries to assign to this service. For more
508
525
  * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service
509
526
  * Discovery</a>.</p>
510
527
  * <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecs",
3
3
  "description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
4
- "version": "3.828.0",
4
+ "version": "3.829.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ecs",