@aws-sdk/client-ecs 3.54.1 → 3.58.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/ECSClient.js +13 -13
- package/dist-cjs/commands/CreateCapacityProviderCommand.js +3 -3
- package/dist-cjs/commands/CreateClusterCommand.js +3 -3
- package/dist-cjs/commands/CreateServiceCommand.js +3 -3
- package/dist-cjs/commands/CreateTaskSetCommand.js +3 -3
- package/dist-cjs/commands/DeleteAccountSettingCommand.js +3 -3
- package/dist-cjs/commands/DeleteAttributesCommand.js +3 -3
- package/dist-cjs/commands/DeleteCapacityProviderCommand.js +3 -3
- package/dist-cjs/commands/DeleteClusterCommand.js +3 -3
- package/dist-cjs/commands/DeleteServiceCommand.js +3 -3
- package/dist-cjs/commands/DeleteTaskSetCommand.js +3 -3
- package/dist-cjs/commands/DeregisterContainerInstanceCommand.js +3 -3
- package/dist-cjs/commands/DeregisterTaskDefinitionCommand.js +3 -3
- package/dist-cjs/commands/DescribeCapacityProvidersCommand.js +3 -3
- package/dist-cjs/commands/DescribeClustersCommand.js +3 -3
- package/dist-cjs/commands/DescribeContainerInstancesCommand.js +3 -3
- package/dist-cjs/commands/DescribeServicesCommand.js +3 -3
- package/dist-cjs/commands/DescribeTaskDefinitionCommand.js +3 -3
- package/dist-cjs/commands/DescribeTaskSetsCommand.js +3 -3
- package/dist-cjs/commands/DescribeTasksCommand.js +3 -3
- package/dist-cjs/commands/DiscoverPollEndpointCommand.js +3 -3
- package/dist-cjs/commands/ExecuteCommandCommand.js +3 -3
- package/dist-cjs/commands/ListAccountSettingsCommand.js +3 -3
- package/dist-cjs/commands/ListAttributesCommand.js +3 -3
- package/dist-cjs/commands/ListClustersCommand.js +3 -3
- package/dist-cjs/commands/ListContainerInstancesCommand.js +3 -3
- package/dist-cjs/commands/ListServicesCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTaskDefinitionFamiliesCommand.js +3 -3
- package/dist-cjs/commands/ListTaskDefinitionsCommand.js +3 -3
- package/dist-cjs/commands/ListTasksCommand.js +3 -3
- package/dist-cjs/commands/PutAccountSettingCommand.js +3 -3
- package/dist-cjs/commands/PutAccountSettingDefaultCommand.js +3 -3
- package/dist-cjs/commands/PutAttributesCommand.js +3 -3
- package/dist-cjs/commands/PutClusterCapacityProvidersCommand.js +3 -3
- package/dist-cjs/commands/RegisterContainerInstanceCommand.js +3 -3
- package/dist-cjs/commands/RegisterTaskDefinitionCommand.js +3 -3
- package/dist-cjs/commands/RunTaskCommand.js +3 -3
- package/dist-cjs/commands/StartTaskCommand.js +3 -3
- package/dist-cjs/commands/StopTaskCommand.js +3 -3
- package/dist-cjs/commands/SubmitAttachmentStateChangesCommand.js +3 -3
- package/dist-cjs/commands/SubmitContainerStateChangeCommand.js +3 -3
- package/dist-cjs/commands/SubmitTaskStateChangeCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateCapacityProviderCommand.js +3 -3
- package/dist-cjs/commands/UpdateClusterCommand.js +3 -3
- package/dist-cjs/commands/UpdateClusterSettingsCommand.js +3 -3
- package/dist-cjs/commands/UpdateContainerAgentCommand.js +3 -3
- package/dist-cjs/commands/UpdateContainerInstancesStateCommand.js +3 -3
- package/dist-cjs/commands/UpdateServiceCommand.js +3 -3
- package/dist-cjs/commands/UpdateServicePrimaryTaskSetCommand.js +3 -3
- package/dist-cjs/commands/UpdateTaskSetCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +434 -434
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-cjs/waiters/waitForServicesInactive.js +3 -3
- package/dist-cjs/waiters/waitForTasksRunning.js +3 -3
- package/dist-cjs/waiters/waitForTasksStopped.js +3 -3
- package/dist-es/ECS.js +52 -52
- package/dist-es/pagination/ListAccountSettingsPaginator.js +4 -4
- package/dist-es/pagination/ListAttributesPaginator.js +4 -4
- package/dist-es/pagination/ListClustersPaginator.js +4 -4
- package/dist-es/pagination/ListContainerInstancesPaginator.js +4 -4
- package/dist-es/pagination/ListServicesPaginator.js +4 -4
- package/dist-es/pagination/ListTaskDefinitionFamiliesPaginator.js +4 -4
- package/dist-es/pagination/ListTaskDefinitionsPaginator.js +4 -4
- package/dist-es/pagination/ListTasksPaginator.js +4 -4
- package/dist-es/waiters/waitForServicesInactive.js +2 -2
- package/dist-es/waiters/waitForTasksRunning.js +3 -3
- package/dist-es/waiters/waitForTasksStopped.js +1 -1
- package/dist-types/ECS.d.ts +11 -9
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +2 -1
- package/dist-types/commands/UpdateServiceCommand.d.ts +9 -8
- package/dist-types/models/models_0.d.ts +45 -14
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +35 -35
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListClustersCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListClustersCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listClusters.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listClusters.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListClusters(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListContainerInstancesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListContainerInstancesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listContainerInstances.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listContainerInstances.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListContainerInstances(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListServicesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListServicesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listServices.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listServices.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListServices(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTaskDefinitionFamiliesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTaskDefinitionFamiliesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTaskDefinitionFamilies.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTaskDefinitionFamilies.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListTaskDefinitionFamilies(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTaskDefinitionsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTaskDefinitionsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTaskDefinitions.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTaskDefinitions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListTaskDefinitions(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTasksCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTasksCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTasks.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTasks.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListTasks(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof ECS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof ECSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -14,7 +14,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
14
14
|
reason = result_1;
|
|
15
15
|
try {
|
|
16
16
|
returnComparator = function () {
|
|
17
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.failures)));
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.failures), false));
|
|
18
18
|
var projection_3 = flat_1.map(function (element_2) {
|
|
19
19
|
return element_2.reason;
|
|
20
20
|
});
|
|
@@ -39,7 +39,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
41
|
returnComparator = function () {
|
|
42
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.services)));
|
|
42
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.services), false));
|
|
43
43
|
var projection_3 = flat_1.map(function (element_2) {
|
|
44
44
|
return element_2.status;
|
|
45
45
|
});
|
|
@@ -14,7 +14,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
14
14
|
reason = result_1;
|
|
15
15
|
try {
|
|
16
16
|
returnComparator = function () {
|
|
17
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks)));
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks), false));
|
|
18
18
|
var projection_3 = flat_1.map(function (element_2) {
|
|
19
19
|
return element_2.lastStatus;
|
|
20
20
|
});
|
|
@@ -39,7 +39,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
41
|
returnComparator = function () {
|
|
42
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.failures)));
|
|
42
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.failures), false));
|
|
43
43
|
var projection_3 = flat_1.map(function (element_2) {
|
|
44
44
|
return element_2.reason;
|
|
45
45
|
});
|
|
@@ -64,7 +64,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
64
64
|
catch (e) { }
|
|
65
65
|
try {
|
|
66
66
|
returnComparator = function () {
|
|
67
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks)));
|
|
67
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks), false));
|
|
68
68
|
var projection_3 = flat_1.map(function (element_2) {
|
|
69
69
|
return element_2.lastStatus;
|
|
70
70
|
});
|
|
@@ -14,7 +14,7 @@ var checkState = function (client, input) { return __awaiter(void 0, void 0, voi
|
|
|
14
14
|
reason = result_1;
|
|
15
15
|
try {
|
|
16
16
|
returnComparator = function () {
|
|
17
|
-
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks)));
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.tasks), false));
|
|
18
18
|
var projection_3 = flat_1.map(function (element_2) {
|
|
19
19
|
return element_2.lastStatus;
|
|
20
20
|
});
|
package/dist-types/ECS.d.ts
CHANGED
|
@@ -749,7 +749,8 @@ export declare class ECS extends ECSClient {
|
|
|
749
749
|
* replacement tasks are considered healthy. Tasks for services that do not use a
|
|
750
750
|
* load balancer are considered healthy if they're in the <code>RUNNING</code>
|
|
751
751
|
* state. Tasks for services that use a load balancer are considered healthy if
|
|
752
|
-
* they're in the <code>RUNNING</code> state and are reported as healthy by the
|
|
752
|
+
* they're in the <code>RUNNING</code> state and are reported as healthy by the
|
|
753
|
+
* load balancer.</p>
|
|
753
754
|
* </li>
|
|
754
755
|
* <li>
|
|
755
756
|
* <p>The <code>maximumPercent</code> parameter represents an upper limit on the
|
|
@@ -781,15 +782,16 @@ export declare class ECS extends ECSClient {
|
|
|
781
782
|
* </important>
|
|
782
783
|
* <p>Modifies the parameters of a service.</p>
|
|
783
784
|
* <p>For services using the rolling update (<code>ECS</code>) you can update the desired count,
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
785
|
+
* deployment configuration, network configuration, load balancers, service registries,
|
|
786
|
+
* enable ECS managed tags option, propagate tags option, task placement constraints and
|
|
787
|
+
* strategies, and task definition. When you update any of these parameters, Amazon ECS starts
|
|
788
|
+
* new tasks with the new configuration. </p>
|
|
788
789
|
* <p>For services using the blue/green (<code>CODE_DEPLOY</code>) deployment controller, only the
|
|
789
|
-
* desired count, deployment configuration,
|
|
790
|
-
* enable ECS managed tags option, and propagate tags can be
|
|
791
|
-
* network configuration, platform version, task definition,
|
|
792
|
-
* updated, create a new CodeDeploy deployment. For more
|
|
790
|
+
* desired count, deployment configuration, health check grace period, task placement
|
|
791
|
+
* constraints and strategies, enable ECS managed tags option, and propagate tags can be
|
|
792
|
+
* updated using this API. If the network configuration, platform version, task definition,
|
|
793
|
+
* or load balancer need to be updated, create a new CodeDeploy deployment. For more
|
|
794
|
+
* 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>
|
|
793
795
|
* <p>For services using an external deployment controller, you can update only the desired count,
|
|
794
796
|
* task placement constraints and strategies, health check grace period, enable ECS managed
|
|
795
797
|
* tags option, and propagate tags option, using this API. If the launch type, load
|
|
@@ -36,7 +36,8 @@ export interface UpdateContainerInstancesStateCommandOutput extends UpdateContai
|
|
|
36
36
|
* replacement tasks are considered healthy. Tasks for services that do not use a
|
|
37
37
|
* load balancer are considered healthy if they're in the <code>RUNNING</code>
|
|
38
38
|
* state. Tasks for services that use a load balancer are considered healthy if
|
|
39
|
-
* they're in the <code>RUNNING</code> state and are reported as healthy by the
|
|
39
|
+
* they're in the <code>RUNNING</code> state and are reported as healthy by the
|
|
40
|
+
* load balancer.</p>
|
|
40
41
|
* </li>
|
|
41
42
|
* <li>
|
|
42
43
|
* <p>The <code>maximumPercent</code> parameter represents an upper limit on the
|
|
@@ -15,15 +15,16 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
|
|
|
15
15
|
* </important>
|
|
16
16
|
* <p>Modifies the parameters of a service.</p>
|
|
17
17
|
* <p>For services using the rolling update (<code>ECS</code>) you can update the desired count,
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* deployment configuration, network configuration, load balancers, service registries,
|
|
19
|
+
* enable ECS managed tags option, propagate tags option, task placement constraints and
|
|
20
|
+
* strategies, and task definition. When you update any of these parameters, Amazon ECS starts
|
|
21
|
+
* new tasks with the new configuration. </p>
|
|
22
22
|
* <p>For services using the blue/green (<code>CODE_DEPLOY</code>) deployment controller, only the
|
|
23
|
-
* desired count, deployment configuration,
|
|
24
|
-
* enable ECS managed tags option, and propagate tags can be
|
|
25
|
-
* network configuration, platform version, task definition,
|
|
26
|
-
* updated, create a new CodeDeploy deployment. For more
|
|
23
|
+
* desired count, deployment configuration, health check grace period, task placement
|
|
24
|
+
* constraints and strategies, enable ECS managed tags option, and propagate tags can be
|
|
25
|
+
* updated using this API. If the network configuration, platform version, task definition,
|
|
26
|
+
* or load balancer need to be updated, create a new CodeDeploy deployment. For more
|
|
27
|
+
* 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>
|
|
27
28
|
* <p>For services using an external deployment controller, you can update only the desired count,
|
|
28
29
|
* task placement constraints and strategies, health check grace period, enable ECS managed
|
|
29
30
|
* tags option, and propagate tags option, using this API. If the launch type, load
|
|
@@ -636,8 +636,7 @@ export interface CreateClusterRequest {
|
|
|
636
636
|
*/
|
|
637
637
|
settings?: ClusterSetting[];
|
|
638
638
|
/**
|
|
639
|
-
* <p>The
|
|
640
|
-
* execute command configuration for the cluster.</p>
|
|
639
|
+
* <p>The <code>execute</code> command configuration for the cluster.</p>
|
|
641
640
|
*/
|
|
642
641
|
configuration?: ClusterConfiguration;
|
|
643
642
|
/**
|
|
@@ -1595,11 +1594,9 @@ export interface CreateServiceRequest {
|
|
|
1595
1594
|
*/
|
|
1596
1595
|
enableECSManagedTags?: boolean;
|
|
1597
1596
|
/**
|
|
1598
|
-
* <p>Specifies whether to propagate the tags from the task definition
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* to a task after service creation or task creation, use the <a>TagResource</a>
|
|
1602
|
-
* API action.</p>
|
|
1597
|
+
* <p>Specifies whether to propagate the tags from the task definition to the task. If no
|
|
1598
|
+
* value is specified, the tags aren't propagated. Tags can only be propagated to the task
|
|
1599
|
+
* during task creation. To add tags to a task after task creation, use the <a>TagResource</a> API action.</p>
|
|
1603
1600
|
*/
|
|
1604
1601
|
propagateTags?: PropagateTags | string;
|
|
1605
1602
|
/**
|
|
@@ -3296,6 +3293,14 @@ export declare namespace FirelensConfiguration {
|
|
|
3296
3293
|
* specified in a container definition override any Docker health checks that exist in the
|
|
3297
3294
|
* container image (such as those specified in a parent image or from the image's
|
|
3298
3295
|
* Dockerfile).</p>
|
|
3296
|
+
* <note>
|
|
3297
|
+
* <p>The Amazon ECS container agent only monitors and reports on the health
|
|
3298
|
+
* checks specified in the task definition. Amazon ECS does not monitor
|
|
3299
|
+
* Docker health checks that are embedded in a container image and not
|
|
3300
|
+
* specified in the container definition. Health check parameters that
|
|
3301
|
+
* are specified in a container definition override any Docker health
|
|
3302
|
+
* checks that exist in the container image.</p>
|
|
3303
|
+
* </note>
|
|
3299
3304
|
* <p>You can view the health status of both individual containers and a task with the
|
|
3300
3305
|
* DescribeTasks API operation or when viewing the task details in the console.</p>
|
|
3301
3306
|
* <p>The following describes the possible <code>healthStatus</code> values for a
|
|
@@ -6604,8 +6609,22 @@ export declare namespace ExecuteCommandResponse {
|
|
|
6604
6609
|
const filterSensitiveLog: (obj: ExecuteCommandResponse) => any;
|
|
6605
6610
|
}
|
|
6606
6611
|
/**
|
|
6607
|
-
* <p>The
|
|
6608
|
-
*
|
|
6612
|
+
* <p>The execute command cannot run. This error can be caused by any of the following
|
|
6613
|
+
* configuration issues:</p>
|
|
6614
|
+
* <ul>
|
|
6615
|
+
* <li>
|
|
6616
|
+
* <p>Incorrect IAM permissions</p>
|
|
6617
|
+
* </li>
|
|
6618
|
+
* <li>
|
|
6619
|
+
* <p>The SSM agent is not installed or is not running</p>
|
|
6620
|
+
* </li>
|
|
6621
|
+
* <li>
|
|
6622
|
+
* <p> There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for for Systems Manager Session Manager</p>
|
|
6623
|
+
* </li>
|
|
6624
|
+
* </ul>
|
|
6625
|
+
* <p>For information about how to troubleshoot the
|
|
6626
|
+
* issues, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html">Troubleshooting issues with ECS Exec</a> in the
|
|
6627
|
+
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
6609
6628
|
*/
|
|
6610
6629
|
export declare class TargetNotConnectedException extends __BaseException {
|
|
6611
6630
|
readonly name: "TargetNotConnectedException";
|
|
@@ -7906,6 +7925,8 @@ export interface RunTaskRequest {
|
|
|
7906
7925
|
* <p>Determines whether to use the execute command functionality for the containers in
|
|
7907
7926
|
* this task. If <code>true</code>, this enables execute command functionality on all
|
|
7908
7927
|
* containers in the task.</p>
|
|
7928
|
+
* <p>If <code>true</code>, then the task definition must have a task role, or you must
|
|
7929
|
+
* provide one as an override.</p>
|
|
7909
7930
|
*/
|
|
7910
7931
|
enableExecuteCommand?: boolean;
|
|
7911
7932
|
/**
|
|
@@ -8037,12 +8058,22 @@ export interface RunTaskRequest {
|
|
|
8037
8058
|
* <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or
|
|
8038
8059
|
* full ARN of the task definition to run. If a <code>revision</code> isn't specified,
|
|
8039
8060
|
* the latest <code>ACTIVE</code> revision is used.</p>
|
|
8040
|
-
* <p>
|
|
8041
|
-
*
|
|
8042
|
-
*
|
|
8043
|
-
*
|
|
8044
|
-
* <code>
|
|
8061
|
+
* <p>When you create an IAM policy for run-task, you can set the resource to be the latest task definition revision, or a specific revision.</p>
|
|
8062
|
+
* <p>The full ARN value must match the value that you specified as the <code>Resource</code> of
|
|
8063
|
+
* the IAM principal's permissions policy.</p>
|
|
8064
|
+
* <p>When you specify the policy resource as the latest task definition version (by setting the
|
|
8065
|
+
* <code>Resource</code> in the policy to
|
|
8066
|
+
* <code>arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName</code>),
|
|
8067
|
+
* then set this value to
|
|
8045
8068
|
* <code>arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName</code>.</p>
|
|
8069
|
+
* <p>When you specify the policy resource as a specific task definition version (by setting the
|
|
8070
|
+
* <code>Resource</code> in the policy to
|
|
8071
|
+
* <code>arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:1</code> or
|
|
8072
|
+
* <code>arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:*</code>),
|
|
8073
|
+
* then set this value to
|
|
8074
|
+
* <code>arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:1</code>.</p>
|
|
8075
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources">Policy Resources for Amazon ECS</a> in the Amazon Elastic Container Service
|
|
8076
|
+
* developer Guide.</p>
|
|
8046
8077
|
*/
|
|
8047
8078
|
taskDefinition: string | undefined;
|
|
8048
8079
|
}
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.58.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,48 +18,48 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"@aws-sdk/util-waiter": "3.
|
|
52
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.58.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.58.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.58.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.58.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.58.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.58.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.58.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.58.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.58.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.58.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.58.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"@aws-sdk/util-waiter": "3.55.0",
|
|
52
|
+
"tslib": "^2.3.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.58.0",
|
|
56
56
|
"@tsconfig/recommended": "1.0.1",
|
|
57
57
|
"@types/node": "^12.7.5",
|
|
58
58
|
"concurrently": "7.0.0",
|
|
59
59
|
"downlevel-dts": "0.7.0",
|
|
60
60
|
"rimraf": "3.0.2",
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
|
-
"typescript": "~4.
|
|
62
|
+
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=12.0.0"
|