@aws-sdk/client-ecs 3.957.0 → 3.962.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/README.md +1 -70
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +1781 -2274
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/pagination/index.js +1 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +1753 -2246
- package/dist-es/waiters/waitForServicesInactive.js +7 -7
- package/dist-es/waiters/waitForServicesStable.js +13 -13
- package/dist-es/waiters/waitForTasksRunning.js +12 -12
- package/dist-es/waiters/waitForTasksStopped.js +6 -6
- package/dist-types/models/models_0.d.ts +1 -0
- package/dist-types/pagination/index.d.ts +1 -1
- package/dist-types/ts3.4/pagination/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,17 +3,17 @@ import { DescribeServicesCommand } from "../commands/DescribeServicesCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeServicesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
9
|
const returnComparator = () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let flat_1 = [].concat(...result.failures);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.reason;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
for (
|
|
16
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
17
17
|
if (anyStringEq_4 == "MISSING") {
|
|
18
18
|
return { state: WaiterState.FAILURE, reason };
|
|
19
19
|
}
|
|
@@ -22,13 +22,13 @@ const checkState = async (client, input) => {
|
|
|
22
22
|
catch (e) { }
|
|
23
23
|
try {
|
|
24
24
|
const returnComparator = () => {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
let flat_1 = [].concat(...result.services);
|
|
26
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
27
27
|
return element_2.status;
|
|
28
28
|
});
|
|
29
29
|
return projection_3;
|
|
30
30
|
};
|
|
31
|
-
for (
|
|
31
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
32
32
|
if (anyStringEq_4 == "INACTIVE") {
|
|
33
33
|
return { state: WaiterState.SUCCESS, reason };
|
|
34
34
|
}
|
|
@@ -3,17 +3,17 @@ import { DescribeServicesCommand } from "../commands/DescribeServicesCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeServicesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
9
|
const returnComparator = () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let flat_1 = [].concat(...result.failures);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.reason;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
for (
|
|
16
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
17
17
|
if (anyStringEq_4 == "MISSING") {
|
|
18
18
|
return { state: WaiterState.FAILURE, reason };
|
|
19
19
|
}
|
|
@@ -22,13 +22,13 @@ const checkState = async (client, input) => {
|
|
|
22
22
|
catch (e) { }
|
|
23
23
|
try {
|
|
24
24
|
const returnComparator = () => {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
let flat_1 = [].concat(...result.services);
|
|
26
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
27
27
|
return element_2.status;
|
|
28
28
|
});
|
|
29
29
|
return projection_3;
|
|
30
30
|
};
|
|
31
|
-
for (
|
|
31
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
32
32
|
if (anyStringEq_4 == "DRAINING") {
|
|
33
33
|
return { state: WaiterState.FAILURE, reason };
|
|
34
34
|
}
|
|
@@ -37,13 +37,13 @@ const checkState = async (client, input) => {
|
|
|
37
37
|
catch (e) { }
|
|
38
38
|
try {
|
|
39
39
|
const returnComparator = () => {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
let flat_1 = [].concat(...result.services);
|
|
41
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
42
42
|
return element_2.status;
|
|
43
43
|
});
|
|
44
44
|
return projection_3;
|
|
45
45
|
};
|
|
46
|
-
for (
|
|
46
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
47
47
|
if (anyStringEq_4 == "INACTIVE") {
|
|
48
48
|
return { state: WaiterState.FAILURE, reason };
|
|
49
49
|
}
|
|
@@ -52,10 +52,10 @@ const checkState = async (client, input) => {
|
|
|
52
52
|
catch (e) { }
|
|
53
53
|
try {
|
|
54
54
|
const returnComparator = () => {
|
|
55
|
-
|
|
56
|
-
return !(element_1.deployments.length == 1.0 && element_1.runningCount == element_1.desiredCount);
|
|
55
|
+
let filterRes_2 = result.services.filter((element_1) => {
|
|
56
|
+
return (!((element_1.deployments.length == 1.0) && (element_1.runningCount == element_1.desiredCount)));
|
|
57
57
|
});
|
|
58
|
-
return filterRes_2.length == 0.0;
|
|
58
|
+
return (filterRes_2.length == 0.0);
|
|
59
59
|
};
|
|
60
60
|
if (returnComparator() == true) {
|
|
61
61
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -3,17 +3,17 @@ import { DescribeTasksCommand } from "../commands/DescribeTasksCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
9
|
const returnComparator = () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let flat_1 = [].concat(...result.tasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.lastStatus;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
for (
|
|
16
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
17
17
|
if (anyStringEq_4 == "STOPPED") {
|
|
18
18
|
return { state: WaiterState.FAILURE, reason };
|
|
19
19
|
}
|
|
@@ -22,13 +22,13 @@ const checkState = async (client, input) => {
|
|
|
22
22
|
catch (e) { }
|
|
23
23
|
try {
|
|
24
24
|
const returnComparator = () => {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
let flat_1 = [].concat(...result.failures);
|
|
26
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
27
27
|
return element_2.reason;
|
|
28
28
|
});
|
|
29
29
|
return projection_3;
|
|
30
30
|
};
|
|
31
|
-
for (
|
|
31
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
32
32
|
if (anyStringEq_4 == "MISSING") {
|
|
33
33
|
return { state: WaiterState.FAILURE, reason };
|
|
34
34
|
}
|
|
@@ -37,15 +37,15 @@ const checkState = async (client, input) => {
|
|
|
37
37
|
catch (e) { }
|
|
38
38
|
try {
|
|
39
39
|
const returnComparator = () => {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
let flat_1 = [].concat(...result.tasks);
|
|
41
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
42
42
|
return element_2.lastStatus;
|
|
43
43
|
});
|
|
44
44
|
return projection_3;
|
|
45
45
|
};
|
|
46
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
47
|
-
for (
|
|
48
|
-
allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
|
|
46
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
47
|
+
for (let element_4 of returnComparator()) {
|
|
48
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "RUNNING");
|
|
49
49
|
}
|
|
50
50
|
if (allStringEq_5) {
|
|
51
51
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -3,19 +3,19 @@ import { DescribeTasksCommand } from "../commands/DescribeTasksCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new DescribeTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
9
|
const returnComparator = () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let flat_1 = [].concat(...result.tasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.lastStatus;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "STOPPED");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -9908,6 +9908,7 @@ export interface TaskEphemeralStorage {
|
|
|
9908
9908
|
/**
|
|
9909
9909
|
* <p>The total amount, in GiB, of the ephemeral storage to set for the task. The minimum
|
|
9910
9910
|
* supported value is <code>20</code> GiB and the maximum supported value is
|
|
9911
|
+
|
|
9911
9912
|
* <code>200</code> GiB.</p>
|
|
9912
9913
|
* @public
|
|
9913
9914
|
*/
|
|
@@ -3,8 +3,8 @@ export * from "./ListAccountSettingsPaginator";
|
|
|
3
3
|
export * from "./ListAttributesPaginator";
|
|
4
4
|
export * from "./ListClustersPaginator";
|
|
5
5
|
export * from "./ListContainerInstancesPaginator";
|
|
6
|
-
export * from "./ListServicesByNamespacePaginator";
|
|
7
6
|
export * from "./ListServicesPaginator";
|
|
7
|
+
export * from "./ListServicesByNamespacePaginator";
|
|
8
8
|
export * from "./ListTaskDefinitionFamiliesPaginator";
|
|
9
9
|
export * from "./ListTaskDefinitionsPaginator";
|
|
10
10
|
export * from "./ListTasksPaginator";
|
|
@@ -3,8 +3,8 @@ export * from "./ListAccountSettingsPaginator";
|
|
|
3
3
|
export * from "./ListAttributesPaginator";
|
|
4
4
|
export * from "./ListClustersPaginator";
|
|
5
5
|
export * from "./ListContainerInstancesPaginator";
|
|
6
|
-
export * from "./ListServicesByNamespacePaginator";
|
|
7
6
|
export * from "./ListServicesPaginator";
|
|
7
|
+
export * from "./ListServicesByNamespacePaginator";
|
|
8
8
|
export * from "./ListTaskDefinitionFamiliesPaginator";
|
|
9
9
|
export * from "./ListTaskDefinitionsPaginator";
|
|
10
10
|
export * from "./ListTasksPaginator";
|
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.962.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
26
|
"@aws-sdk/core": "3.957.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.962.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|