Skip to content

Commit 25a8d5d

Browse files
This Amazon ECS release supports updating the capacityProviderStrategy parameter in update-service.
1 parent f3b6659 commit 25a8d5d

File tree

10 files changed

+134
-205
lines changed

10 files changed

+134
-205
lines changed

generator/ServiceModels/ecs/ecs-2014-11-13.docs.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

generator/ServiceModels/ecs/ecs-2014-11-13.normal.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

sdk/src/Services/ECS/Generated/Model/HealthCheck.cs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,67 @@ namespace Amazon.ECS.Model
163163
/// </para>
164164
///
165165
/// <para>
166+
/// When a container health check fails for a task that is part of a service, the following
167+
/// process occurs:
168+
/// </para>
169+
/// <ol> <li>
170+
/// <para>
171+
/// The task is marked as <c>UNHEALTHY</c>.
172+
/// </para>
173+
/// </li> <li>
174+
/// <para>
175+
/// The unhealthy task will be stopped, and during the stopping process, it will go through
176+
/// the following states:
177+
/// </para>
178+
/// <ul> <li>
179+
/// <para>
180+
/// <c>DEACTIVATING</c> - In this state, Amazon ECS performs additional steps before
181+
/// stopping the task. For example, for tasks that are part of services configured to
182+
/// use Elastic Load Balancing target groups, target groups will be deregistered in this
183+
/// state.
184+
/// </para>
185+
/// </li> <li>
186+
/// <para>
187+
/// <c>STOPPING</c> - The task is in the process of being stopped.
188+
/// </para>
189+
/// </li> <li>
190+
/// <para>
191+
/// <c>DEPROVISIONING</c> - Resources associated with the task are being cleaned up.
192+
/// </para>
193+
/// </li> <li>
194+
/// <para>
195+
/// <c>STOPPED</c> - The task has been completely stopped.
196+
/// </para>
197+
/// </li> </ul> </li> <li>
198+
/// <para>
199+
/// After the old task stops, a new task will be launched to ensure service operation,
200+
/// and the new task will go through the following lifecycle:
201+
/// </para>
202+
/// <ul> <li>
203+
/// <para>
204+
/// <c>PROVISIONING</c> - Resources required for the task are being provisioned.
205+
/// </para>
206+
/// </li> <li>
207+
/// <para>
208+
/// <c>PENDING</c> - The task is waiting to be placed on a container instance.
209+
/// </para>
210+
/// </li> <li>
211+
/// <para>
212+
/// <c>ACTIVATING</c> - In this state, Amazon ECS pulls container images, creates containers,
213+
/// configures task networking, registers load balancer target groups, and configures
214+
/// service discovery status.
215+
/// </para>
216+
/// </li> <li>
217+
/// <para>
218+
/// <c>RUNNING</c> - The task is running and performing its work.
219+
/// </para>
220+
/// </li> </ul> </li> </ol>
221+
/// <para>
222+
/// For more detailed information about task lifecycle states, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle-explanation.html">Task
223+
/// lifecycle</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
224+
/// </para>
225+
///
226+
/// <para>
166227
/// The following are notes about container health check support:
167228
/// </para>
168229
/// <ul> <li>

sdk/src/Services/ECS/Generated/Model/UpdateServiceRequest.cs

Lines changed: 53 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -186,25 +186,7 @@ namespace Amazon.ECS.Model
186186
/// previous steps), favoring container instances with the largest number of running tasks
187187
/// for this service.
188188
/// </para>
189-
/// </li> </ul> <note>
190-
/// <para>
191-
/// You must have a service-linked role when you update any of the following service properties:
192-
/// </para>
193-
/// <ul> <li>
194-
/// <para>
195-
/// <c>loadBalancers</c>,
196-
/// </para>
197-
/// </li> <li>
198-
/// <para>
199-
/// <c>serviceRegistries</c>
200-
/// </para>
201-
/// </li> </ul>
202-
/// <para>
203-
/// For more information about the role see the <c>CreateService</c> request parameter
204-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
205-
/// <c>role</c> </a>.
206-
/// </para>
207-
/// </note>
189+
/// </li> </ul>
208190
/// </summary>
209191
public partial class UpdateServiceRequest : AmazonECSRequest
210192
{
@@ -257,41 +239,53 @@ internal bool IsSetAvailabilityZoneRebalancing()
257239
/// <summary>
258240
/// Gets and sets the property CapacityProviderStrategy.
259241
/// <para>
260-
/// The capacity provider strategy to update the service to use.
242+
/// The details of a capacity provider strategy. You can set a capacity provider when
243+
/// you create a cluster, run a task, or update a service.
261244
/// </para>
262245
///
263246
/// <para>
264-
/// if the service uses the default capacity provider strategy for the cluster, the service
265-
/// can be updated to use one or more capacity providers as opposed to the default capacity
266-
/// provider strategy. However, when a service is using a capacity provider strategy that's
267-
/// not the default capacity provider strategy, the service can't be updated to use the
268-
/// cluster's default capacity provider strategy.
247+
/// When you use Fargate, the capacity providers are <c>FARGATE</c> or <c>FARGATE_SPOT</c>.
269248
/// </para>
270249
///
271250
/// <para>
272-
/// A capacity provider strategy consists of one or more capacity providers along with
273-
/// the <c>base</c> and <c>weight</c> to assign to them. A capacity provider must be associated
274-
/// with the cluster to be used in a capacity provider strategy. The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a>
275-
/// API is used to associate a capacity provider with a cluster. Only capacity providers
276-
/// with an <c>ACTIVE</c> or <c>UPDATING</c> status can be used.
251+
/// When you use Amazon EC2, the capacity providers are Auto Scaling groups.
277252
/// </para>
278253
///
279254
/// <para>
280-
/// If specifying a capacity provider that uses an Auto Scaling group, the capacity provider
281-
/// 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>
282-
/// API operation.
255+
/// You can change capacity providers for rolling deployments and blue/green deployments.
283256
/// </para>
284257
///
285258
/// <para>
286-
/// To use a Fargate capacity provider, specify either the <c>FARGATE</c> or <c>FARGATE_SPOT</c>
287-
/// capacity providers. The Fargate capacity providers are available to all accounts and
288-
/// only need to be associated with a cluster to be used.
259+
/// The following list provides the valid transitions:
260+
/// </para>
261+
/// <ul> <li>
262+
/// <para>
263+
/// Update the Fargate launch type to an EC2 capacity provider.
264+
/// </para>
265+
/// </li> <li>
266+
/// <para>
267+
/// Update the Amazon EC2 launch type to a Fargate capacity provider.
268+
/// </para>
269+
/// </li> <li>
270+
/// <para>
271+
/// Update the Fargate capacity provider to an EC2 capacity provider.
272+
/// </para>
273+
/// </li> <li>
274+
/// <para>
275+
/// Update the Amazon EC2 capacity provider to a Fargate capacity provider.
276+
/// </para>
277+
/// </li> <li>
278+
/// <para>
279+
/// Update the EC2 or Fargate capacity provider back to the launch type.
289280
/// </para>
290281
///
291282
/// <para>
292-
/// The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a>API
293-
/// operation is used to update the list of available capacity providers for a cluster
294-
/// after the cluster is created.
283+
/// Pass an empty list in the <c>capacityProvider</c> parameter.
284+
/// </para>
285+
/// </li> </ul>
286+
/// <para>
287+
/// For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon
288+
/// Web Services CDK considerations</a>.
295289
/// </para>
296290
/// </summary>
297291
public List<CapacityProviderStrategyItem> CapacityProviderStrategy
@@ -312,6 +306,10 @@ internal bool IsSetCapacityProviderStrategy()
312306
/// The short name or full Amazon Resource Name (ARN) of the cluster that your service
313307
/// runs on. If you do not specify a cluster, the default cluster is assumed.
314308
/// </para>
309+
///
310+
/// <para>
311+
/// You can't change the cluster name.
312+
/// </para>
315313
/// </summary>
316314
public string Cluster
317315
{
@@ -465,7 +463,11 @@ internal bool IsSetHealthCheckGracePeriodSeconds()
465463
}
466464

467465
/// <summary>
468-
/// Gets and sets the property LoadBalancers.
466+
/// Gets and sets the property LoadBalancers. <note>
467+
/// <para>
468+
/// You must have a service-linked role when you update this property
469+
/// </para>
470+
/// </note>
469471
/// <para>
470472
/// A list of Elastic Load Balancing load balancer objects. It contains the load balancer
471473
/// name, the container name, and the container port to access from the load balancer.
@@ -683,7 +685,17 @@ internal bool IsSetServiceConnectConfiguration()
683685
}
684686

685687
/// <summary>
686-
/// Gets and sets the property ServiceRegistries.
688+
/// Gets and sets the property ServiceRegistries. <note>
689+
/// <para>
690+
/// You must have a service-linked role when you update this property.
691+
/// </para>
692+
///
693+
/// <para>
694+
/// For more information about the role see the <c>CreateService</c> request parameter
695+
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
696+
/// <c>role</c> </a>.
697+
/// </para>
698+
/// </note>
687699
/// <para>
688700
/// The details for the service discovery registries to assign to this service. For more
689701
/// information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service

sdk/src/Services/ECS/Generated/_bcl35/AmazonECSClient.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5225,25 +5225,7 @@ public virtual UpdateContainerInstancesStateResponse EndUpdateContainerInstances
52255225
/// previous steps), favoring container instances with the largest number of running tasks
52265226
/// for this service.
52275227
/// </para>
5228-
/// </li> </ul> <note>
5229-
/// <para>
5230-
/// You must have a service-linked role when you update any of the following service properties:
5231-
/// </para>
5232-
/// <ul> <li>
5233-
/// <para>
5234-
/// <c>loadBalancers</c>,
5235-
/// </para>
5236-
/// </li> <li>
5237-
/// <para>
5238-
/// <c>serviceRegistries</c>
5239-
/// </para>
5240-
/// </li> </ul>
5241-
/// <para>
5242-
/// For more information about the role see the <c>CreateService</c> request parameter
5243-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
5244-
/// <c>role</c> </a>.
5245-
/// </para>
5246-
/// </note>
5228+
/// </li> </ul>
52475229
/// </summary>
52485230
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
52495231
///

sdk/src/Services/ECS/Generated/_bcl35/IAmazonECS.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4279,25 +4279,7 @@ public partial interface IAmazonECS : IAmazonService, IDisposable
42794279
/// previous steps), favoring container instances with the largest number of running tasks
42804280
/// for this service.
42814281
/// </para>
4282-
/// </li> </ul> <note>
4283-
/// <para>
4284-
/// You must have a service-linked role when you update any of the following service properties:
4285-
/// </para>
4286-
/// <ul> <li>
4287-
/// <para>
4288-
/// <c>loadBalancers</c>,
4289-
/// </para>
4290-
/// </li> <li>
4291-
/// <para>
4292-
/// <c>serviceRegistries</c>
4293-
/// </para>
4294-
/// </li> </ul>
4295-
/// <para>
4296-
/// For more information about the role see the <c>CreateService</c> request parameter
4297-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
4298-
/// <c>role</c> </a>.
4299-
/// </para>
4300-
/// </note>
4282+
/// </li> </ul>
43014283
/// </summary>
43024284
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
43034285
///

sdk/src/Services/ECS/Generated/_bcl45/AmazonECSClient.cs

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6523,25 +6523,7 @@ public virtual UpdateContainerInstancesStateResponse UpdateContainerInstancesSta
65236523
/// previous steps), favoring container instances with the largest number of running tasks
65246524
/// for this service.
65256525
/// </para>
6526-
/// </li> </ul> <note>
6527-
/// <para>
6528-
/// You must have a service-linked role when you update any of the following service properties:
6529-
/// </para>
6530-
/// <ul> <li>
6531-
/// <para>
6532-
/// <c>loadBalancers</c>,
6533-
/// </para>
6534-
/// </li> <li>
6535-
/// <para>
6536-
/// <c>serviceRegistries</c>
6537-
/// </para>
6538-
/// </li> </ul>
6539-
/// <para>
6540-
/// For more information about the role see the <c>CreateService</c> request parameter
6541-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
6542-
/// <c>role</c> </a>.
6543-
/// </para>
6544-
/// </note>
6526+
/// </li> </ul>
65456527
/// </summary>
65466528
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
65476529
///
@@ -6758,25 +6740,7 @@ public virtual UpdateServiceResponse UpdateService(UpdateServiceRequest request)
67586740
/// previous steps), favoring container instances with the largest number of running tasks
67596741
/// for this service.
67606742
/// </para>
6761-
/// </li> </ul> <note>
6762-
/// <para>
6763-
/// You must have a service-linked role when you update any of the following service properties:
6764-
/// </para>
6765-
/// <ul> <li>
6766-
/// <para>
6767-
/// <c>loadBalancers</c>,
6768-
/// </para>
6769-
/// </li> <li>
6770-
/// <para>
6771-
/// <c>serviceRegistries</c>
6772-
/// </para>
6773-
/// </li> </ul>
6774-
/// <para>
6775-
/// For more information about the role see the <c>CreateService</c> request parameter
6776-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
6777-
/// <c>role</c> </a>.
6778-
/// </para>
6779-
/// </note>
6743+
/// </li> </ul>
67806744
/// </summary>
67816745
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
67826746
/// <param name="cancellationToken">

sdk/src/Services/ECS/Generated/_bcl45/IAmazonECS.cs

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5626,25 +5626,7 @@ public partial interface IAmazonECS : IAmazonService, IDisposable
56265626
/// previous steps), favoring container instances with the largest number of running tasks
56275627
/// for this service.
56285628
/// </para>
5629-
/// </li> </ul> <note>
5630-
/// <para>
5631-
/// You must have a service-linked role when you update any of the following service properties:
5632-
/// </para>
5633-
/// <ul> <li>
5634-
/// <para>
5635-
/// <c>loadBalancers</c>,
5636-
/// </para>
5637-
/// </li> <li>
5638-
/// <para>
5639-
/// <c>serviceRegistries</c>
5640-
/// </para>
5641-
/// </li> </ul>
5642-
/// <para>
5643-
/// For more information about the role see the <c>CreateService</c> request parameter
5644-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
5645-
/// <c>role</c> </a>.
5646-
/// </para>
5647-
/// </note>
5629+
/// </li> </ul>
56485630
/// </summary>
56495631
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
56505632
///
@@ -5855,25 +5837,7 @@ public partial interface IAmazonECS : IAmazonService, IDisposable
58555837
/// previous steps), favoring container instances with the largest number of running tasks
58565838
/// for this service.
58575839
/// </para>
5858-
/// </li> </ul> <note>
5859-
/// <para>
5860-
/// You must have a service-linked role when you update any of the following service properties:
5861-
/// </para>
5862-
/// <ul> <li>
5863-
/// <para>
5864-
/// <c>loadBalancers</c>,
5865-
/// </para>
5866-
/// </li> <li>
5867-
/// <para>
5868-
/// <c>serviceRegistries</c>
5869-
/// </para>
5870-
/// </li> </ul>
5871-
/// <para>
5872-
/// For more information about the role see the <c>CreateService</c> request parameter
5873-
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role">
5874-
/// <c>role</c> </a>.
5875-
/// </para>
5876-
/// </note>
5840+
/// </li> </ul>
58775841
/// </summary>
58785842
/// <param name="request">Container for the necessary parameters to execute the UpdateService service method.</param>
58795843
/// <param name="cancellationToken">

0 commit comments

Comments
 (0)