Skip to content

Commit a565233

Browse files
author
awstools
committed
docs(client-ecs): This is a documentation only Amazon ECS release that adds additional information for health checks.
1 parent c32ced4 commit a565233

File tree

3 files changed

+49
-28
lines changed

3 files changed

+49
-28
lines changed

clients/client-ecs/src/models/models_0.ts

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ export type ClusterSettingName = (typeof ClusterSettingName)[keyof typeof Cluste
16151615
*/
16161616
export interface ClusterSetting {
16171617
/**
1618-
* <p>The name of the cluster setting. The value is <code>containerInsights</code> .</p>
1618+
* <p>The name of the cluster setting. The value is <code>containerInsights</code>.</p>
16191619
* @public
16201620
*/
16211621
name?: ClusterSettingName | undefined;
@@ -2263,7 +2263,7 @@ export interface DeploymentLifecycleHook {
22632263
lifecycleStages?: DeploymentLifecycleHookStage[] | undefined;
22642264

22652265
/**
2266-
* <p>The details of the deployment lifecycle hook. This provides additional configuration for how the hook should be executed during deployment operations on Amazon ECS Managed Instances.</p>
2266+
* <p>Use this field to specify custom parameters that Amazon ECS will pass to your hook target invocations (such as a Lambda function).</p>
22672267
* @public
22682268
*/
22692269
hookDetails?: __DocumentType | undefined;
@@ -2357,7 +2357,7 @@ export interface DeploymentConfiguration {
23572357
* scheduler to start replacement tasks, the scheduler stops the unhealthy tasks one-by-one
23582358
* — using the <code>minimumHealthyPercent</code> as a constraint — to clear up capacity to
23592359
* launch replacement tasks. For more information about how the scheduler replaces
2360-
* unhealthy tasks, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html">Amazon ECS services</a> . </p>
2360+
* unhealthy tasks, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html">Amazon ECS services</a>. </p>
23612361
* <p>For services that <i>do not</i> use a load balancer, the following
23622362
* should be noted:</p>
23632363
* <ul>
@@ -3893,14 +3893,23 @@ export interface CreateServiceRequest {
38933893
* the <i>
38943894
* <i>Amazon Elastic Container Service Developer Guide</i>
38953895
* </i>.</p>
3896+
* <p>The default behavior of <code>AvailabilityZoneRebalancing</code> differs between create and update requests:</p>
3897+
* <ul>
3898+
* <li>
3899+
* <p>For create service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults the value to <code>ENABLED</code>.</p>
3900+
* </li>
3901+
* <li>
3902+
* <p>For update service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults to the existing service’s <code>AvailabilityZoneRebalancing</code> value. If the service never had an <code>AvailabilityZoneRebalancing</code> value set, Amazon ECS treats this as <code>DISABLED</code>.</p>
3903+
* </li>
3904+
* </ul>
38963905
* @public
38973906
*/
38983907
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
38993908

39003909
/**
39013910
* <p>A load balancer object representing the load balancers to use with your service. For
39023911
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html">Service load balancing</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
3903-
* <p>If the service uses the rolling update (<code>ECS</code>) deployment controller and
3912+
* <p>If the service uses the <code>ECS</code> deployment controller and
39043913
* using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to attach
39053914
* to the service. The service-linked role is required for services that use multiple
39063915
* target groups. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html">Using service-linked roles for Amazon ECS</a> in the
@@ -4066,16 +4075,8 @@ export interface CreateServiceRequest {
40664075
networkConfiguration?: NetworkConfiguration | undefined;
40674076

40684077
/**
4069-
* <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy
4070-
* Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't
4071-
* specify a health check grace period value, the default value of <code>0</code> is used.
4072-
* If you don't use any of the health checks, then
4073-
* <code>healthCheckGracePeriodSeconds</code> is unused.</p>
4074-
* <p>If your service's tasks take a while to start and respond to health checks, you can
4075-
* specify a health check grace period of up to 2,147,483,647 seconds (about 69 years).
4076-
* During that time, the Amazon ECS service scheduler ignores health check status. This grace
4077-
* period can prevent the service scheduler from marking tasks as unhealthy and stopping
4078-
* them before they have time to come up.</p>
4078+
* <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you do not specify a health check grace period value, the default value of 0 is used. If you do not use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
4079+
* <p>If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count.</p>
40794080
* @public
40804081
*/
40814082
healthCheckGracePeriodSeconds?: number | undefined;
@@ -4959,6 +4960,7 @@ export interface Service {
49594960
/**
49604961
* <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy
49614962
* Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started.</p>
4963+
* <p>If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count.</p>
49624964
* @public
49634965
*/
49644966
healthCheckGracePeriodSeconds?: number | undefined;
@@ -5072,6 +5074,15 @@ export interface Service {
50725074
* the <i>
50735075
* <i>Amazon Elastic Container Service Developer Guide</i>
50745076
* </i>.</p>
5077+
* <p>The default behavior of <code>AvailabilityZoneRebalancing</code> differs between create and update requests:</p>
5078+
* <ul>
5079+
* <li>
5080+
* <p>For create service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults the value to <code>ENABLED</code>.</p>
5081+
* </li>
5082+
* <li>
5083+
* <p>For update service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults to the existing service’s <code>AvailabilityZoneRebalancing</code> value. If the service never had an <code>AvailabilityZoneRebalancing</code> value set, Amazon ECS treats this as <code>DISABLED</code>.</p>
5084+
* </li>
5085+
* </ul>
50755086
* @public
50765087
*/
50775088
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
@@ -7228,7 +7239,7 @@ export interface ContainerDefinition {
72287239
* <p>Port mappings on Windows use the <code>NetNAT</code> gateway address rather than
72297240
* <code>localhost</code>. There's no loopback for port mappings on Windows, so you
72307241
* can't access a container's mapped port from the host itself. </p>
7231-
* <p>This parameter maps to <code>PortBindings</code> in the the docker container create
7242+
* <p>This parameter maps to <code>PortBindings</code> in the docker container create
72327243
* command and the <code>--publish</code> option to docker run. If the network mode of a
72337244
* task definition is set to <code>none</code>, then you can't specify port mappings. If
72347245
* the network mode of a task definition is set to <code>host</code>, then host ports must

clients/client-ecs/src/models/models_1.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ export interface RunTaskRequest {
13451345

13461346
/**
13471347
* <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure
1348-
* the size, volumeType, IOPS, throughput, snapshot and encryption in in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html">TaskManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must
1348+
* the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html">TaskManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must
13491349
* match the <code>name</code> from the task definition.</p>
13501350
* @public
13511351
*/
@@ -2427,6 +2427,15 @@ export interface UpdateServiceRequest {
24272427
* the <i>
24282428
* <i>Amazon Elastic Container Service Developer Guide</i>
24292429
* </i>.</p>
2430+
* <p>The default behavior of <code>AvailabilityZoneRebalancing</code> differs between create and update requests:</p>
2431+
* <ul>
2432+
* <li>
2433+
* <p>For create service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults the value to <code>ENABLED</code>.</p>
2434+
* </li>
2435+
* <li>
2436+
* <p>For update service requests, when no value is specified for <code>AvailabilityZoneRebalancing</code>, Amazon ECS defaults to the existing service’s <code>AvailabilityZoneRebalancing</code> value. If the service never had an <code>AvailabilityZoneRebalancing</code> value set, Amazon ECS treats this as <code>DISABLED</code>.</p>
2437+
* </li>
2438+
* </ul>
24302439
* <p>This parameter doesn't trigger a new service deployment.</p>
24312440
* @public
24322441
*/
@@ -2495,6 +2504,7 @@ export interface UpdateServiceRequest {
24952504
* During that time, the Amazon ECS service scheduler ignores health check status. This grace
24962505
* period can prevent the service scheduler from marking tasks as unhealthy and stopping
24972506
* them before they have time to come up.</p>
2507+
* <p>If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count.</p>
24982508
* <p>This parameter doesn't trigger a new service deployment.</p>
24992509
* @public
25002510
*/

0 commit comments

Comments
 (0)