You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-ecs): This release adds support for ECS Service Connect, a new capability that simplifies writing and operating resilient distributed applications. This release updates the TaskDefinition, Cluster, Service mutation APIs with Service connect constructs and also adds a new ListServicesByNamespace API.
Copy file name to clipboardExpand all lines: clients/client-ecs/src/ECS.ts
+55-9Lines changed: 55 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,11 @@ import {
131
131
ListContainerInstancesCommandInput,
132
132
ListContainerInstancesCommandOutput,
133
133
}from"./commands/ListContainerInstancesCommand";
134
+
import{
135
+
ListServicesByNamespaceCommand,
136
+
ListServicesByNamespaceCommandInput,
137
+
ListServicesByNamespaceCommandOutput,
138
+
}from"./commands/ListServicesByNamespaceCommand";
134
139
import{
135
140
ListServicesCommand,
136
141
ListServicesCommandInput,
@@ -428,9 +433,8 @@ export class ECS extends ECSClient {
428
433
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
429
434
* can specify only parameters that aren't controlled at the task set level. The only
430
435
* required parameter is the service name. You control your services using the <a>CreateTaskSet</a> operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
431
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
432
-
* information about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
433
-
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
436
+
* <p>When the service scheduler launches new tasks, it determines task placement. For information
437
+
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
434
438
*/
435
439
publiccreateService(
436
440
args: CreateServiceCommandInput,
@@ -1094,7 +1098,7 @@ export class ECS extends ECSClient {
1094
1098
/**
1095
1099
* <p>Runs a command remotely on a container within a task.</p>
1096
1100
* <p>If you use a condition key in your IAM policy to refine the conditions for the policy
1097
-
* statement, for example limit the actions to a specific cluster, you recevie an
1101
+
* statement, for example limit the actions to a specific cluster, you receive an
1098
1102
* <code>AccessDeniedException</code> when there is a mismatch between the condition
1099
1103
* key value and the corresponding parameter value.</p>
1100
1104
*/
@@ -1323,6 +1327,42 @@ export class ECS extends ECSClient {
1323
1327
}
1324
1328
}
1325
1329
1330
+
/**
1331
+
* <p>This operation lists all of the services that are associated with a Cloud Map namespace. This list
1332
+
* might include services in different clusters. In contrast, <code>ListServices</code> can
1333
+
* only list services in one cluster at a time. If you need to filter the list of
1334
+
* services in a single cluster by various parameters, use <code>ListServices</code>.
1335
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
1360
+
this.send(command,optionsOrCb||{},cb);
1361
+
}else{
1362
+
returnthis.send(command,optionsOrCb);
1363
+
}
1364
+
}
1365
+
1326
1366
/**
1327
1367
* <p>List the tags for an Amazon ECS resource.</p>
1328
1368
*/
@@ -2109,6 +2149,11 @@ export class ECS extends ECSClient {
2109
2149
* Amazon ECS container agent</a> in the
2110
2150
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
2111
2151
* </note>
2152
+
* <note>
2153
+
* <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not
2154
+
* apply to Windows container instances. We recommend that you launch new container
2155
+
* instances to update the agent version in your Windows clusters.</p>
2156
+
* </note>
2112
2157
* <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon
2113
2158
* Linux AMI with the <code>ecs-init</code> service installed and running. For help
2114
2159
* 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
@@ -2430,17 +2475,18 @@ export class ECS extends ECSClient {
2430
2475
* <code>protectionEnabled</code> set to <code>true</code>. You can keep extending the
2431
2476
* protection expiration period of a task by invoking this operation repeatedly.</p>
2432
2477
* <p>To learn more about Amazon ECS task protection, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection.html">Task scale-in
2433
-
* protection</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
2478
+
* protection</a> in the <i>
2479
+
* <i>Amazon Elastic Container Service Developer Guide</i>
2480
+
* </i>.</p>
2434
2481
* <note>
2435
2482
* <p>This operation is only supported for tasks belonging to an Amazon ECS service. Invoking
2436
2483
* this operation for a standalone task will result in an <code>TASK_NOT_VALID</code>
2437
-
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html.html">API
2438
-
* failure reasons</a>.</p>
2484
+
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html">API failure
2485
+
* reasons</a>.</p>
2439
2486
* </note>
2440
2487
* <important>
2441
2488
* <p>If you prefer to set task protection from within the container, we recommend using
2442
-
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-endpoint.html">Amazon ECS container
2443
-
* agent endpoint</a>.</p>
2489
+
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection-endpoint.html">Task scale-in protection endpoint</a>.</p>
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
107
107
* can specify only parameters that aren't controlled at the task set level. The only
108
108
* required parameter is the service name. You control your services using the <a>CreateTaskSet</a> operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
109
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
110
-
* information about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
111
-
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
109
+
* <p>When the service scheduler launches new tasks, it determines task placement. For information
110
+
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
112
111
* @example
113
112
* Use a bare-bones client and the command you need to make an API call.
* <p>This operation lists all of the services that are associated with a Cloud Map namespace. This list
33
+
* might include services in different clusters. In contrast, <code>ListServices</code> can
34
+
* only list services in one cluster at a time. If you need to filter the list of
35
+
* services in a single cluster by various parameters, use <code>ListServices</code>.
36
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
37
+
* @example
38
+
* Use a bare-bones client and the command you need to make an API call.
39
+
* ```javascript
40
+
* import { ECSClient, ListServicesByNamespaceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
43
43
* </note>
44
+
* <note>
45
+
* <p>Agent updates with the <code>UpdateContainerAgent</code> API operation do not
46
+
* apply to Windows container instances. We recommend that you launch new container
47
+
* instances to update the agent version in your Windows clusters.</p>
48
+
* </note>
44
49
* <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon
45
50
* Linux AMI with the <code>ecs-init</code> service installed and running. For help
46
51
* 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
* <code>protectionEnabled</code> set to <code>true</code>. You can keep extending the
44
44
* protection expiration period of a task by invoking this operation repeatedly.</p>
45
45
* <p>To learn more about Amazon ECS task protection, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection.html">Task scale-in
46
-
* protection</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
46
+
* protection</a> in the <i>
47
+
* <i>Amazon Elastic Container Service Developer Guide</i>
48
+
* </i>.</p>
47
49
* <note>
48
50
* <p>This operation is only supported for tasks belonging to an Amazon ECS service. Invoking
49
51
* this operation for a standalone task will result in an <code>TASK_NOT_VALID</code>
50
-
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html.html">API
51
-
* failure reasons</a>.</p>
52
+
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html">API failure
53
+
* reasons</a>.</p>
52
54
* </note>
53
55
* <important>
54
56
* <p>If you prefer to set task protection from within the container, we recommend using
55
-
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-endpoint.html">Amazon ECS container
56
-
* agent endpoint</a>.</p>
57
+
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection-endpoint.html">Task scale-in protection endpoint</a>.</p>
57
58
* </important>
58
59
* @example
59
60
* Use a bare-bones client and the command you need to make an API call.
0 commit comments