@aws-sdk/client-ecs 3.993.0 → 3.995.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.
Files changed (85) hide show
  1. package/README.md +1 -15
  2. package/dist-cjs/index.js +164 -164
  3. package/dist-cjs/models/errors.js +86 -86
  4. package/dist-cjs/schemas/schemas_0.js +5 -5
  5. package/dist-es/models/enums.js +156 -156
  6. package/dist-es/models/errors.js +68 -68
  7. package/dist-es/schemas/schemas_0.js +5 -5
  8. package/dist-es/waiters/waitForServicesInactive.js +2 -2
  9. package/dist-es/waiters/waitForServicesStable.js +2 -2
  10. package/dist-es/waiters/waitForTasksRunning.js +2 -2
  11. package/dist-es/waiters/waitForTasksStopped.js +2 -2
  12. package/dist-types/ECS.d.ts +1 -15
  13. package/dist-types/ECSClient.d.ts +1 -15
  14. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +4 -16
  15. package/dist-types/commands/CreateClusterCommand.d.ts +3 -20
  16. package/dist-types/commands/CreateExpressGatewayServiceCommand.d.ts +4 -18
  17. package/dist-types/commands/CreateServiceCommand.d.ts +4 -236
  18. package/dist-types/commands/CreateTaskSetCommand.d.ts +6 -25
  19. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +12 -18
  20. package/dist-types/commands/DeleteAttributesCommand.d.ts +2 -7
  21. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +3 -21
  22. package/dist-types/commands/DeleteClusterCommand.d.ts +7 -30
  23. package/dist-types/commands/DeleteExpressGatewayServiceCommand.d.ts +5 -19
  24. package/dist-types/commands/DeleteServiceCommand.d.ts +4 -30
  25. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +3 -27
  26. package/dist-types/commands/DeleteTaskSetCommand.d.ts +6 -16
  27. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +3 -21
  28. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +3 -25
  29. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +34 -39
  30. package/dist-types/commands/DescribeClustersCommand.d.ts +3 -10
  31. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +3 -9
  32. package/dist-types/commands/DescribeExpressGatewayServiceCommand.d.ts +3 -14
  33. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +44 -13
  34. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +44 -14
  35. package/dist-types/commands/DescribeServicesCommand.d.ts +2 -7
  36. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +3 -15
  37. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +5 -16
  38. package/dist-types/commands/DescribeTasksCommand.d.ts +3 -12
  39. package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +2 -8
  40. package/dist-types/commands/ExecuteCommandCommand.d.ts +4 -32
  41. package/dist-types/commands/GetTaskProtectionCommand.d.ts +2 -7
  42. package/dist-types/commands/ListAccountSettingsCommand.d.ts +9 -14
  43. package/dist-types/commands/ListAttributesCommand.d.ts +2 -11
  44. package/dist-types/commands/ListClustersCommand.d.ts +2 -7
  45. package/dist-types/commands/ListContainerInstancesCommand.d.ts +3 -11
  46. package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +4 -15
  47. package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +3 -13
  48. package/dist-types/commands/ListServicesCommand.d.ts +3 -9
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -7
  50. package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +13 -24
  51. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +13 -20
  52. package/dist-types/commands/ListTasksCommand.d.ts +14 -23
  53. package/dist-types/commands/PutAccountSettingCommand.d.ts +12 -22
  54. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +3 -9
  55. package/dist-types/commands/PutAttributesCommand.d.ts +4 -14
  56. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +4 -29
  57. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +3 -13
  58. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +3 -26
  59. package/dist-types/commands/RunTaskCommand.d.ts +6 -75
  60. package/dist-types/commands/StartTaskCommand.d.ts +3 -23
  61. package/dist-types/commands/StopServiceDeploymentCommand.d.ts +5 -25
  62. package/dist-types/commands/StopTaskCommand.d.ts +3 -25
  63. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +3 -12
  64. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +2 -8
  65. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +3 -12
  66. package/dist-types/commands/TagResourceCommand.d.ts +3 -11
  67. package/dist-types/commands/UntagResourceCommand.d.ts +2 -7
  68. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +3 -10
  69. package/dist-types/commands/UpdateClusterCommand.d.ts +2 -7
  70. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +2 -7
  71. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +6 -41
  72. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +3 -56
  73. package/dist-types/commands/UpdateExpressGatewayServiceCommand.d.ts +5 -19
  74. package/dist-types/commands/UpdateServiceCommand.d.ts +14 -146
  75. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +6 -19
  76. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +15 -47
  77. package/dist-types/commands/UpdateTaskSetCommand.d.ts +6 -17
  78. package/dist-types/index.d.ts +1 -15
  79. package/dist-types/models/enums.d.ts +338 -338
  80. package/dist-types/models/errors.d.ts +74 -128
  81. package/dist-types/models/models_0.d.ts +3435 -9819
  82. package/dist-types/ts3.4/models/enums.d.ts +222 -222
  83. package/dist-types/ts3.4/models/errors.d.ts +61 -61
  84. package/dist-types/ts3.4/models/models_0.d.ts +1055 -1055
  85. package/package.json +3 -3
@@ -27,10 +27,7 @@ declare const TagResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Associates the specified tags to a resource with the specified
31
- * <code>resourceArn</code>. If existing tags on a resource aren't specified in the
32
- * request parameters, they aren't changed. When a resource is deleted, the tags that are
33
- * associated with that resource are deleted as well.</p>
30
+ * <p>Associates the specified tags to a resource with the specified <code>resourceArn</code>. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that are associated with that resource are deleted as well.</p>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -61,18 +58,13 @@ declare const TagResourceCommand_base: {
61
58
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
62
59
  *
63
60
  * @throws {@link ClientException} (client fault)
64
- * <p>These errors are usually caused by a client action. This client action might be using
65
- * an action or resource on behalf of a user that doesn't have permissions to use the
66
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
61
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
67
62
  *
68
63
  * @throws {@link ClusterNotFoundException} (client fault)
69
64
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
70
65
  *
71
66
  * @throws {@link InvalidParameterException} (client fault)
72
- * <p>The specified parameter isn't valid. Review the available parameters for the API
73
- * request.</p>
74
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
75
- * service event messages</a>. </p>
67
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
76
68
  *
77
69
  * @throws {@link ResourceNotFoundException} (client fault)
78
70
  * <p>The specified resource wasn't found.</p>
@@ -55,18 +55,13 @@ declare const UntagResourceCommand_base: {
55
55
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
56
56
  *
57
57
  * @throws {@link ClientException} (client fault)
58
- * <p>These errors are usually caused by a client action. This client action might be using
59
- * an action or resource on behalf of a user that doesn't have permissions to use the
60
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
58
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
61
59
  *
62
60
  * @throws {@link ClusterNotFoundException} (client fault)
63
61
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
64
62
  *
65
63
  * @throws {@link InvalidParameterException} (client fault)
66
- * <p>The specified parameter isn't valid. Review the available parameters for the API
67
- * request.</p>
68
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
69
- * service event messages</a>. </p>
64
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
70
65
  *
71
66
  * @throws {@link ResourceNotFoundException} (client fault)
72
67
  * <p>The specified resource wasn't found.</p>
@@ -27,9 +27,7 @@ declare const UpdateCapacityProviderCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Modifies the parameters for a capacity provider.</p>
31
- * <p>These changes only apply to new Amazon ECS Managed Instances, or EC2 instances, not
32
- * existing ones.</p>
30
+ * <p>Modifies the parameters for a capacity provider.</p> <p>These changes only apply to new Amazon ECS Managed Instances, or EC2 instances, not existing ones.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -278,18 +276,13 @@ declare const UpdateCapacityProviderCommand_base: {
278
276
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
279
277
  *
280
278
  * @throws {@link ClientException} (client fault)
281
- * <p>These errors are usually caused by a client action. This client action might be using
282
- * an action or resource on behalf of a user that doesn't have permissions to use the
283
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
279
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
284
280
  *
285
281
  * @throws {@link ClusterNotFoundException} (client fault)
286
282
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
287
283
  *
288
284
  * @throws {@link InvalidParameterException} (client fault)
289
- * <p>The specified parameter isn't valid. Review the available parameters for the API
290
- * request.</p>
291
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
292
- * service event messages</a>. </p>
285
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
293
286
  *
294
287
  * @throws {@link ServerException} (server fault)
295
288
  * <p>These errors are usually caused by a server issue.</p>
@@ -150,18 +150,13 @@ declare const UpdateClusterCommand_base: {
150
150
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
151
151
  *
152
152
  * @throws {@link ClientException} (client fault)
153
- * <p>These errors are usually caused by a client action. This client action might be using
154
- * an action or resource on behalf of a user that doesn't have permissions to use the
155
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
153
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
156
154
  *
157
155
  * @throws {@link ClusterNotFoundException} (client fault)
158
156
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
159
157
  *
160
158
  * @throws {@link InvalidParameterException} (client fault)
161
- * <p>The specified parameter isn't valid. Review the available parameters for the API
162
- * request.</p>
163
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
164
- * service event messages</a>. </p>
159
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
165
160
  *
166
161
  * @throws {@link NamespaceNotFoundException} (client fault)
167
162
  * <p>The specified namespace wasn't found.</p>
@@ -130,18 +130,13 @@ declare const UpdateClusterSettingsCommand_base: {
130
130
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
131
131
  *
132
132
  * @throws {@link ClientException} (client fault)
133
- * <p>These errors are usually caused by a client action. This client action might be using
134
- * an action or resource on behalf of a user that doesn't have permissions to use the
135
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
133
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
136
134
  *
137
135
  * @throws {@link ClusterNotFoundException} (client fault)
138
136
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
139
137
  *
140
138
  * @throws {@link InvalidParameterException} (client fault)
141
- * <p>The specified parameter isn't valid. Review the available parameters for the API
142
- * request.</p>
143
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
144
- * service event messages</a>. </p>
139
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
145
140
  *
146
141
  * @throws {@link ServerException} (server fault)
147
142
  * <p>These errors are usually caused by a server issue.</p>
@@ -27,28 +27,7 @@ declare const UpdateContainerAgentCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the Amazon ECS container agent on a specified container instance. Updating the
31
- * Amazon ECS container agent doesn't interrupt running tasks or services on the container
32
- * instance. The process for updating the agent differs depending on whether your container
33
- * instance was launched with the Amazon ECS-optimized AMI or another operating
34
- * system.</p>
35
- * <note>
36
- * <p>The <code>UpdateContainerAgent</code> API isn't supported for container instances
37
- * using the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container
38
- * agent, you can update the <code>ecs-init</code> package. This updates the agent. For
39
- * more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/agent-update-ecs-ami.html">Updating the
40
- * Amazon ECS container agent</a> in the <i>Amazon Elastic Container
41
- * Service Developer Guide</i>.</p>
42
- * </note>
43
- * <note>
44
- * <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not
45
- * apply to Windows container instances. We recommend that you launch new container
46
- * instances to update the agent version in your Windows clusters.</p>
47
- * </note>
48
- * <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or
49
- * Amazon Linux AMI with the <code>ecs-init</code> service installed and running. For help
50
- * updating the Amazon ECS container agent on other operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent">Manually updating the Amazon ECS container agent</a> in the <i>Amazon
51
- * Elastic Container Service Developer Guide</i>.</p>
30
+ * <p>Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent doesn't interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.</p> <note> <p>The <code>UpdateContainerAgent</code> API isn't supported for container instances using the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent, you can update the <code>ecs-init</code> package. This updates the agent. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/agent-update-ecs-ami.html">Updating the Amazon ECS container agent</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </note> <note> <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not apply to Windows container instances. We recommend that you launch new container instances to update the agent version in your Windows clusters.</p> </note> <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon Linux AMI with the <code>ecs-init</code> service installed and running. For help updating the Amazon ECS container agent on other operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent">Manually updating the Amazon ECS container agent</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
52
31
  * @example
53
32
  * Use a bare-bones client and the command you need to make an API call.
54
33
  * ```javascript
@@ -155,39 +134,25 @@ declare const UpdateContainerAgentCommand_base: {
155
134
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
156
135
  *
157
136
  * @throws {@link ClientException} (client fault)
158
- * <p>These errors are usually caused by a client action. This client action might be using
159
- * an action or resource on behalf of a user that doesn't have permissions to use the
160
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
137
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
161
138
  *
162
139
  * @throws {@link ClusterNotFoundException} (client fault)
163
140
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
164
141
  *
165
142
  * @throws {@link InvalidParameterException} (client fault)
166
- * <p>The specified parameter isn't valid. Review the available parameters for the API
167
- * request.</p>
168
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
169
- * service event messages</a>. </p>
143
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
170
144
  *
171
145
  * @throws {@link MissingVersionException} (client fault)
172
- * <p>Amazon ECS can't determine the current version of the Amazon ECS container agent on
173
- * the container instance and doesn't have enough information to proceed with an update.
174
- * This could be because the agent running on the container instance is a previous or
175
- * custom version that doesn't use our version information.</p>
146
+ * <p>Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and doesn't have enough information to proceed with an update. This could be because the agent running on the container instance is a previous or custom version that doesn't use our version information.</p>
176
147
  *
177
148
  * @throws {@link NoUpdateAvailableException} (client fault)
178
- * <p>There's no update available for this Amazon ECS container agent. This might be because
179
- * the agent is already running the latest version or because it's so old that there's no
180
- * update path to the current version.</p>
149
+ * <p>There's no update available for this Amazon ECS container agent. This might be because the agent is already running the latest version or because it's so old that there's no update path to the current version.</p>
181
150
  *
182
151
  * @throws {@link ServerException} (server fault)
183
152
  * <p>These errors are usually caused by a server issue.</p>
184
153
  *
185
154
  * @throws {@link UpdateInProgressException} (client fault)
186
- * <p>There's already a current Amazon ECS container agent update in progress on the
187
- * container instance that's specified. If the container agent becomes disconnected while
188
- * it's in a transitional stage, such as <code>PENDING</code> or <code>STAGING</code>, the
189
- * update process can get stuck in that state. However, when the agent reconnects, it
190
- * resumes where it stopped previously.</p>
155
+ * <p>There's already a current Amazon ECS container agent update in progress on the container instance that's specified. If the container agent becomes disconnected while it's in a transitional stage, such as <code>PENDING</code> or <code>STAGING</code>, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.</p>
191
156
  *
192
157
  * @throws {@link ECSServiceException}
193
158
  * <p>Base exception class for all service exceptions from ECS service.</p>
@@ -27,55 +27,7 @@ declare const UpdateContainerInstancesStateCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Modifies the status of an Amazon ECS container instance.</p>
31
- * <p>Once a container instance has reached an <code>ACTIVE</code> state, you can change the
32
- * status of a container instance to <code>DRAINING</code> to manually remove an instance
33
- * from a cluster, for example to perform system updates, update the Docker daemon, or
34
- * scale down the cluster size.</p>
35
- * <important>
36
- * <p>A container instance can't be changed to <code>DRAINING</code> until it has
37
- * reached an <code>ACTIVE</code> status. If the instance is in any other status, an
38
- * error will be received.</p>
39
- * </important>
40
- * <p>When you set a container instance to <code>DRAINING</code>, Amazon ECS prevents new
41
- * tasks from being scheduled for placement on the container instance and replacement
42
- * service tasks are started on other container instances in the cluster if the resources
43
- * are available. Service tasks on the container instance that are in the
44
- * <code>PENDING</code> state are stopped immediately.</p>
45
- * <p>Service tasks on the container instance that are in the <code>RUNNING</code> state are
46
- * stopped and replaced according to the service's deployment configuration parameters,
47
- * <code>minimumHealthyPercent</code> and <code>maximumPercent</code>. You can change
48
- * the deployment configuration of your service using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a>.</p>
49
- * <ul>
50
- * <li>
51
- * <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore
52
- * <code>desiredCount</code> temporarily during task replacement. For example,
53
- * <code>desiredCount</code> is four tasks, a minimum of 50% allows the
54
- * scheduler to stop two existing tasks before starting two new tasks. If the
55
- * minimum is 100%, the service scheduler can't remove existing tasks until the
56
- * replacement tasks are considered healthy. Tasks for services that do not use a
57
- * load balancer are considered healthy if they're in the <code>RUNNING</code>
58
- * state. Tasks for services that use a load balancer are considered healthy if
59
- * they're in the <code>RUNNING</code> state and are reported as healthy by the
60
- * load balancer.</p>
61
- * </li>
62
- * <li>
63
- * <p>The <code>maximumPercent</code> parameter represents an upper limit on the
64
- * number of running tasks during task replacement. You can use this to define the
65
- * replacement batch size. For example, if <code>desiredCount</code> is four tasks,
66
- * a maximum of 200% starts four new tasks before stopping the four tasks to be
67
- * drained, provided that the cluster resources required to do this are available.
68
- * If the maximum is 100%, then replacement tasks can't start until the draining
69
- * tasks have stopped.</p>
70
- * </li>
71
- * </ul>
72
- * <p>Any <code>PENDING</code> or <code>RUNNING</code> tasks that do not belong to a service
73
- * aren't affected. You must wait for them to finish or stop them manually.</p>
74
- * <p>A container instance has completed draining when it has no more <code>RUNNING</code>
75
- * tasks. You can verify this using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html">ListTasks</a>.</p>
76
- * <p>When a container instance has been drained, you can set a container instance to
77
- * <code>ACTIVE</code> status and once it has reached that status the Amazon ECS
78
- * scheduler can begin scheduling tasks on the instance again.</p>
30
+ * <p>Modifies the status of an Amazon ECS container instance.</p> <p>Once a container instance has reached an <code>ACTIVE</code> state, you can change the status of a container instance to <code>DRAINING</code> to manually remove an instance from a cluster, for example to perform system updates, update the Docker daemon, or scale down the cluster size.</p> <important> <p>A container instance can't be changed to <code>DRAINING</code> until it has reached an <code>ACTIVE</code> status. If the instance is in any other status, an error will be received.</p> </important> <p>When you set a container instance to <code>DRAINING</code>, Amazon ECS prevents new tasks from being scheduled for placement on the container instance and replacement service tasks are started on other container instances in the cluster if the resources are available. Service tasks on the container instance that are in the <code>PENDING</code> state are stopped immediately.</p> <p>Service tasks on the container instance that are in the <code>RUNNING</code> state are stopped and replaced according to the service's deployment configuration parameters, <code>minimumHealthyPercent</code> and <code>maximumPercent</code>. You can change the deployment configuration of your service using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a>.</p> <ul> <li> <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore <code>desiredCount</code> temporarily during task replacement. For example, <code>desiredCount</code> is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. If the minimum is 100%, the service scheduler can't remove existing tasks until the replacement tasks are considered healthy. Tasks for services that do not use a load balancer are considered healthy if they're in the <code>RUNNING</code> state. Tasks for services that use a load balancer are considered healthy if they're in the <code>RUNNING</code> state and are reported as healthy by the load balancer.</p> </li> <li> <p>The <code>maximumPercent</code> parameter represents an upper limit on the number of running tasks during task replacement. You can use this to define the replacement batch size. For example, if <code>desiredCount</code> is four tasks, a maximum of 200% starts four new tasks before stopping the four tasks to be drained, provided that the cluster resources required to do this are available. If the maximum is 100%, then replacement tasks can't start until the draining tasks have stopped.</p> </li> </ul> <p>Any <code>PENDING</code> or <code>RUNNING</code> tasks that do not belong to a service aren't affected. You must wait for them to finish or stop them manually.</p> <p>A container instance has completed draining when it has no more <code>RUNNING</code> tasks. You can verify this using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html">ListTasks</a>.</p> <p>When a container instance has been drained, you can set a container instance to <code>ACTIVE</code> status and once it has reached that status the Amazon ECS scheduler can begin scheduling tasks on the instance again.</p>
79
31
  * @example
80
32
  * Use a bare-bones client and the command you need to make an API call.
81
33
  * ```javascript
@@ -194,18 +146,13 @@ declare const UpdateContainerInstancesStateCommand_base: {
194
146
  * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
195
147
  *
196
148
  * @throws {@link ClientException} (client fault)
197
- * <p>These errors are usually caused by a client action. This client action might be using
198
- * an action or resource on behalf of a user that doesn't have permissions to use the
199
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
149
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
200
150
  *
201
151
  * @throws {@link ClusterNotFoundException} (client fault)
202
152
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
203
153
  *
204
154
  * @throws {@link InvalidParameterException} (client fault)
205
- * <p>The specified parameter isn't valid. Review the available parameters for the API
206
- * request.</p>
207
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
208
- * service event messages</a>. </p>
155
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
209
156
  *
210
157
  * @throws {@link ServerException} (server fault)
211
158
  * <p>These errors are usually caused by a server issue.</p>
@@ -27,14 +27,7 @@ declare const UpdateExpressGatewayServiceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an existing Express service configuration. Modifies container settings, resource
31
- * allocation, auto-scaling configuration, and other service parameters without recreating the
32
- * service.</p>
33
- * <p>Amazon ECS creates a new service revision with updated configuration and performs a rolling
34
- * deployment to replace existing tasks. The service remains available during updates,
35
- * ensuring zero-downtime deployments.</p>
36
- * <p>Some parameters like the infrastructure role cannot be modified after service creation
37
- * and require creating a new service.</p>
30
+ * <p>Updates an existing Express service configuration. Modifies container settings, resource allocation, auto-scaling configuration, and other service parameters without recreating the service.</p> <p>Amazon ECS creates a new service revision with updated configuration and performs a rolling deployment to replace existing tasks. The service remains available during updates, ensuring zero-downtime deployments.</p> <p>Some parameters like the infrastructure role cannot be modified after service creation and require creating a new service.</p>
38
31
  * @example
39
32
  * Use a bare-bones client and the command you need to make an API call.
40
33
  * ```javascript
@@ -174,29 +167,22 @@ declare const UpdateExpressGatewayServiceCommand_base: {
174
167
  * <p>You don't have authorization to perform the requested action.</p>
175
168
  *
176
169
  * @throws {@link ClientException} (client fault)
177
- * <p>These errors are usually caused by a client action. This client action might be using
178
- * an action or resource on behalf of a user that doesn't have permissions to use the
179
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
170
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
180
171
  *
181
172
  * @throws {@link ClusterNotFoundException} (client fault)
182
173
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
183
174
  *
184
175
  * @throws {@link InvalidParameterException} (client fault)
185
- * <p>The specified parameter isn't valid. Review the available parameters for the API
186
- * request.</p>
187
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
188
- * service event messages</a>. </p>
176
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
189
177
  *
190
178
  * @throws {@link ServerException} (server fault)
191
179
  * <p>These errors are usually caused by a server issue.</p>
192
180
  *
193
181
  * @throws {@link ServiceNotActiveException} (client fault)
194
- * <p>The specified service isn't active. You can't update a service that's inactive. If you
195
- * have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
182
+ * <p>The specified service isn't active. You can't update a service that's inactive. If you have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
196
183
  *
197
184
  * @throws {@link ServiceNotFoundException} (client fault)
198
- * <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region
199
- * specific.</p>
185
+ * <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region specific.</p>
200
186
  *
201
187
  * @throws {@link UnsupportedFeatureException} (client fault)
202
188
  * <p>The specified task isn't supported in this Region.</p>
@@ -27,131 +27,7 @@ declare const UpdateServiceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Modifies the parameters of a service.</p>
31
- * <note>
32
- * <p>On March 21, 2024, a change was made to resolve the task definition revision
33
- * before authorization. When a task definition revision is not specified,
34
- * authorization will occur using the latest revision of a task definition.</p>
35
- * </note>
36
- * <p>For services using the rolling update (<code>ECS</code>) you can update the desired
37
- * count, deployment configuration, network configuration, load balancers, service
38
- * registries, enable ECS managed tags option, propagate tags option, task placement
39
- * constraints and strategies, and task definition. When you update any of these
40
- * parameters, Amazon ECS starts new tasks with the new configuration. </p>
41
- * <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when
42
- * starting or running a task, or when creating or updating a service. For more
43
- * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic
44
- * Container Service Developer Guide</i>. You can update your volume
45
- * configurations and trigger a new deployment. <code>volumeConfigurations</code> is only
46
- * supported for REPLICA service and not DAEMON service. If you leave
47
- * <code>volumeConfigurations</code>
48
- * <code>null</code>, it doesn't trigger a new deployment. For more information on volumes,
49
- * see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic
50
- * Container Service Developer Guide</i>.</p>
51
- * <p>For services using the blue/green (<code>CODE_DEPLOY</code>) deployment controller,
52
- * only the desired count, deployment configuration, health check grace period, task
53
- * placement constraints and strategies, enable ECS managed tags option, and propagate tags
54
- * can be updated using this API. If the network configuration, platform version, task
55
- * definition, or load balancer need to be updated, create a new CodeDeploy deployment. For
56
- * more information, see <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> in the <i>CodeDeploy API
57
- * Reference</i>.</p>
58
- * <p>For services using an external deployment controller, you can update only the desired
59
- * count, task placement constraints and strategies, health check grace period, enable ECS
60
- * managed tags option, and propagate tags option, using this API. If the launch type, load
61
- * balancer, network configuration, platform version, or task definition need to be
62
- * updated, create a new task set For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>.</p>
63
- * <p>You can add to or subtract from the number of instantiations of a task definition in a
64
- * service by specifying the cluster that the service is running in and a new
65
- * <code>desiredCount</code> parameter.</p>
66
- * <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when
67
- * starting or running a task, or when creating or updating a service. For more
68
- * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic
69
- * Container Service Developer Guide</i>.</p>
70
- * <p>If you have updated the container image of your application, you can create a new task
71
- * definition with that image and deploy it to your service. The service scheduler uses the
72
- * minimum healthy percent and maximum percent parameters (in the service's deployment
73
- * configuration) to determine the deployment strategy.</p>
74
- * <note>
75
- * <p>If your updated Docker image uses the same tag as what is in the existing task
76
- * definition for your service (for example, <code>my_image:latest</code>), you don't
77
- * need to create a new revision of your task definition. You can update the service
78
- * using the <code>forceNewDeployment</code> option. The new tasks launched by the
79
- * deployment pull the current image/tag combination from your repository when they
80
- * start.</p>
81
- * </note>
82
- * <p>You can also update the deployment configuration of a service. When a deployment is
83
- * triggered by updating the task definition of a service, the service scheduler uses the
84
- * deployment configuration parameters, <code>minimumHealthyPercent</code> and
85
- * <code>maximumPercent</code>, to determine the deployment strategy.</p>
86
- * <ul>
87
- * <li>
88
- * <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore
89
- * <code>desiredCount</code> temporarily during a deployment. For example, if
90
- * <code>desiredCount</code> is four tasks, a minimum of 50% allows the
91
- * scheduler to stop two existing tasks before starting two new tasks. Tasks for
92
- * services that don't use a load balancer are considered healthy if they're in the
93
- * <code>RUNNING</code> state. Tasks for services that use a load balancer are
94
- * considered healthy if they're in the <code>RUNNING</code> state and are reported
95
- * as healthy by the load balancer.</p>
96
- * </li>
97
- * <li>
98
- * <p>The <code>maximumPercent</code> parameter represents an upper limit on the
99
- * number of running tasks during a deployment. You can use it to define the
100
- * deployment batch size. For example, if <code>desiredCount</code> is four tasks,
101
- * a maximum of 200% starts four new tasks before stopping the four older tasks
102
- * (provided that the cluster resources required to do this are available).</p>
103
- * </li>
104
- * </ul>
105
- * <p>When <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a>
106
- * stops a task during a deployment, the equivalent of <code>docker stop</code> is issued
107
- * to the containers running in the task. This results in a <code>SIGTERM</code> and a
108
- * 30-second timeout. After this, <code>SIGKILL</code> is sent and the containers are
109
- * forcibly stopped. If the container handles the <code>SIGTERM</code> gracefully and exits
110
- * within 30 seconds from receiving it, no <code>SIGKILL</code> is sent.</p>
111
- * <p>When the service scheduler launches new tasks, it determines task placement in your
112
- * cluster with the following logic.</p>
113
- * <ul>
114
- * <li>
115
- * <p>Determine which of the container instances in your cluster can support your
116
- * service's task definition. For example, they have the required CPU, memory,
117
- * ports, and container instance attributes.</p>
118
- * </li>
119
- * <li>
120
- * <p>By default, the service scheduler attempts to balance tasks across
121
- * Availability Zones in this manner even though you can choose a different
122
- * placement strategy.</p>
123
- * <ul>
124
- * <li>
125
- * <p>Sort the valid container instances by the fewest number of running
126
- * tasks for this service in the same Availability Zone as the instance.
127
- * For example, if zone A has one running service task and zones B and C
128
- * each have zero, valid container instances in either zone B or C are
129
- * considered optimal for placement.</p>
130
- * </li>
131
- * <li>
132
- * <p>Place the new service task on a valid container instance in an optimal
133
- * Availability Zone (based on the previous steps), favoring container
134
- * instances with the fewest number of running tasks for this
135
- * service.</p>
136
- * </li>
137
- * </ul>
138
- * </li>
139
- * </ul>
140
- * <p>When the service scheduler stops running tasks, it attempts to maintain balance across
141
- * the Availability Zones in your cluster using the following logic: </p>
142
- * <ul>
143
- * <li>
144
- * <p>Sort the container instances by the largest number of running tasks for this
145
- * service in the same Availability Zone as the instance. For example, if zone A
146
- * has one running service task and zones B and C each have two, container
147
- * instances in either zone B or C are considered optimal for termination.</p>
148
- * </li>
149
- * <li>
150
- * <p>Stop the task on a container instance in an optimal Availability Zone (based
151
- * on the previous steps), favoring container instances with the largest number of
152
- * running tasks for this service.</p>
153
- * </li>
154
- * </ul>
30
+ * <p>Modifies the parameters of a service.</p> <note> <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p> </note> <p>For services using the rolling update (<code>ECS</code>) you can update the desired count, deployment configuration, network configuration, load balancers, service registries, enable ECS managed tags option, propagate tags option, task placement constraints and strategies, and task definition. When you update any of these parameters, Amazon ECS starts new tasks with the new configuration. </p> <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. You can update your volume configurations and trigger a new deployment. <code>volumeConfigurations</code> is only supported for REPLICA service and not DAEMON service. If you leave <code>volumeConfigurations</code> <code>null</code>, it doesn't trigger a new deployment. For more information on volumes, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>For services using the blue/green (<code>CODE_DEPLOY</code>) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new CodeDeploy deployment. For more information, see <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> in the <i>CodeDeploy API Reference</i>.</p> <p>For services using an external deployment controller, you can update only the desired count, task placement constraints and strategies, health check grace period, enable ECS managed tags option, and propagate tags option, using this API. If the launch type, load balancer, network configuration, platform version, or task definition need to be updated, create a new task set For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>.</p> <p>You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new <code>desiredCount</code> parameter.</p> <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>If you have updated the container image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.</p> <note> <p>If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, <code>my_image:latest</code>), you don't need to create a new revision of your task definition. You can update the service using the <code>forceNewDeployment</code> option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.</p> </note> <p>You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, <code>minimumHealthyPercent</code> and <code>maximumPercent</code>, to determine the deployment strategy.</p> <ul> <li> <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore <code>desiredCount</code> temporarily during a deployment. For example, if <code>desiredCount</code> is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that don't use a load balancer are considered healthy if they're in the <code>RUNNING</code> state. Tasks for services that use a load balancer are considered healthy if they're in the <code>RUNNING</code> state and are reported as healthy by the load balancer.</p> </li> <li> <p>The <code>maximumPercent</code> parameter represents an upper limit on the number of running tasks during a deployment. You can use it to define the deployment batch size. For example, if <code>desiredCount</code> is four tasks, a maximum of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).</p> </li> </ul> <p>When <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a> stops a task during a deployment, the equivalent of <code>docker stop</code> is issued to the containers running in the task. This results in a <code>SIGTERM</code> and a 30-second timeout. After this, <code>SIGKILL</code> is sent and the containers are forcibly stopped. If the container handles the <code>SIGTERM</code> gracefully and exits within 30 seconds from receiving it, no <code>SIGKILL</code> is sent.</p> <p>When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic.</p> <ul> <li> <p>Determine which of the container instances in your cluster can support your service's task definition. For example, they have the required CPU, memory, ports, and container instance attributes.</p> </li> <li> <p>By default, the service scheduler attempts to balance tasks across Availability Zones in this manner even though you can choose a different placement strategy.</p> <ul> <li> <p>Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.</p> </li> <li> <p>Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.</p> </li> </ul> </li> </ul> <p>When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic: </p> <ul> <li> <p>Sort the container instances by the largest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have two, container instances in either zone B or C are considered optimal for termination.</p> </li> <li> <p>Stop the task on a container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the largest number of running tasks for this service.</p> </li> </ul>
155
31
  * @example
156
32
  * Use a bare-bones client and the command you need to make an API call.
157
33
  * ```javascript
@@ -702,25 +578,19 @@ declare const UpdateServiceCommand_base: {
702
578
  * <p>You don't have authorization to perform the requested action.</p>
703
579
  *
704
580
  * @throws {@link ClientException} (client fault)
705
- * <p>These errors are usually caused by a client action. This client action might be using
706
- * an action or resource on behalf of a user that doesn't have permissions to use the
707
- * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
581
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
708
582
  *
709
583
  * @throws {@link ClusterNotFoundException} (client fault)
710
584
  * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
711
585
  *
712
586
  * @throws {@link InvalidParameterException} (client fault)
713
- * <p>The specified parameter isn't valid. Review the available parameters for the API
714
- * request.</p>
715
- * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
716
- * service event messages</a>. </p>
587
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
717
588
  *
718
589
  * @throws {@link NamespaceNotFoundException} (client fault)
719
590
  * <p>The specified namespace wasn't found.</p>
720
591
  *
721
592
  * @throws {@link PlatformTaskDefinitionIncompatibilityException} (client fault)
722
- * <p>The specified platform version doesn't satisfy the required capabilities of the task
723
- * definition.</p>
593
+ * <p>The specified platform version doesn't satisfy the required capabilities of the task definition.</p>
724
594
  *
725
595
  * @throws {@link PlatformUnknownException} (client fault)
726
596
  * <p>The specified platform version doesn't exist.</p>
@@ -729,12 +599,10 @@ declare const UpdateServiceCommand_base: {
729
599
  * <p>These errors are usually caused by a server issue.</p>
730
600
  *
731
601
  * @throws {@link ServiceNotActiveException} (client fault)
732
- * <p>The specified service isn't active. You can't update a service that's inactive. If you
733
- * have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
602
+ * <p>The specified service isn't active. You can't update a service that's inactive. If you have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
734
603
  *
735
604
  * @throws {@link ServiceNotFoundException} (client fault)
736
- * <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region
737
- * specific.</p>
605
+ * <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region specific.</p>
738
606
  *
739
607
  * @throws {@link UnsupportedFeatureException} (client fault)
740
608
  * <p>The specified task isn't supported in this Region.</p>
@@ -743,12 +611,12 @@ declare const UpdateServiceCommand_base: {
743
611
  * <p>Base exception class for all service exceptions from ECS service.</p>
744
612
  *
745
613
  *
746
- * @example To change the number of tasks in a service
614
+ * @example To change the task definition used in a service
747
615
  * ```javascript
748
- * // This example updates the desired count of the my-http-service service to 10.
616
+ * // This example updates the my-http-service service to use the amazon-ecs-sample task definition.
749
617
  * const input = {
750
- * desiredCount: 10,
751
- * service: "my-http-service"
618
+ * service: "my-http-service",
619
+ * taskDefinition: "amazon-ecs-sample"
752
620
  * };
753
621
  * const command = new UpdateServiceCommand(input);
754
622
  * const response = await client.send(command);
@@ -757,12 +625,12 @@ declare const UpdateServiceCommand_base: {
757
625
  * *\/
758
626
  * ```
759
627
  *
760
- * @example To change the task definition used in a service
628
+ * @example To change the number of tasks in a service
761
629
  * ```javascript
762
- * // This example updates the my-http-service service to use the amazon-ecs-sample task definition.
630
+ * // This example updates the desired count of the my-http-service service to 10.
763
631
  * const input = {
764
- * service: "my-http-service",
765
- * taskDefinition: "amazon-ecs-sample"
632
+ * desiredCount: 10,
633
+ * service: "my-http-service"
766
634
  * };
767
635
  * const command = new UpdateServiceCommand(input);
768
636
  * const response = await client.send(command);