@aws-sdk/client-ecs 3.489.0 → 3.495.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/dist-cjs/ECS.js +1 -123
- package/dist-cjs/ECSClient.js +1 -43
- package/dist-cjs/commands/CreateCapacityProviderCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateServiceCommand.js +1 -28
- package/dist-cjs/commands/CreateTaskSetCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccountSettingCommand.js +1 -28
- package/dist-cjs/commands/DeleteAttributesCommand.js +1 -28
- package/dist-cjs/commands/DeleteCapacityProviderCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceCommand.js +1 -28
- package/dist-cjs/commands/DeleteTaskDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/DeleteTaskSetCommand.js +1 -28
- package/dist-cjs/commands/DeregisterContainerInstanceCommand.js +1 -28
- package/dist-cjs/commands/DeregisterTaskDefinitionCommand.js +1 -28
- package/dist-cjs/commands/DescribeCapacityProvidersCommand.js +1 -28
- package/dist-cjs/commands/DescribeClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeContainerInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeServicesCommand.js +1 -28
- package/dist-cjs/commands/DescribeTaskDefinitionCommand.js +1 -28
- package/dist-cjs/commands/DescribeTaskSetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTasksCommand.js +1 -28
- package/dist-cjs/commands/DiscoverPollEndpointCommand.js +1 -28
- package/dist-cjs/commands/ExecuteCommandCommand.js +1 -29
- package/dist-cjs/commands/GetTaskProtectionCommand.js +1 -28
- package/dist-cjs/commands/ListAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/ListAttributesCommand.js +1 -28
- package/dist-cjs/commands/ListClustersCommand.js +1 -28
- package/dist-cjs/commands/ListContainerInstancesCommand.js +1 -28
- package/dist-cjs/commands/ListServicesByNamespaceCommand.js +1 -28
- package/dist-cjs/commands/ListServicesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTaskDefinitionFamiliesCommand.js +1 -28
- package/dist-cjs/commands/ListTaskDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/ListTasksCommand.js +1 -28
- package/dist-cjs/commands/PutAccountSettingCommand.js +1 -28
- package/dist-cjs/commands/PutAccountSettingDefaultCommand.js +1 -28
- package/dist-cjs/commands/PutAttributesCommand.js +1 -28
- package/dist-cjs/commands/PutClusterCapacityProvidersCommand.js +1 -28
- package/dist-cjs/commands/RegisterContainerInstanceCommand.js +1 -28
- package/dist-cjs/commands/RegisterTaskDefinitionCommand.js +1 -28
- package/dist-cjs/commands/RunTaskCommand.js +1 -28
- package/dist-cjs/commands/StartTaskCommand.js +1 -28
- package/dist-cjs/commands/StopTaskCommand.js +1 -28
- package/dist-cjs/commands/SubmitAttachmentStateChangesCommand.js +1 -28
- package/dist-cjs/commands/SubmitContainerStateChangeCommand.js +1 -28
- package/dist-cjs/commands/SubmitTaskStateChangeCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCapacityProviderCommand.js +1 -28
- package/dist-cjs/commands/UpdateClusterCommand.js +1 -28
- package/dist-cjs/commands/UpdateClusterSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateContainerAgentCommand.js +1 -28
- package/dist-cjs/commands/UpdateContainerInstancesStateCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceCommand.js +1 -28
- package/dist-cjs/commands/UpdateServicePrimaryTaskSetCommand.js +1 -28
- package/dist-cjs/commands/UpdateTaskProtectionCommand.js +1 -28
- package/dist-cjs/commands/UpdateTaskSetCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -59
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6154 -12
- package/dist-cjs/models/ECSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -651
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccountSettingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAttributesPaginator.js +1 -7
- package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
- package/dist-cjs/pagination/ListContainerInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/ListServicesByNamespacePaginator.js +1 -7
- package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTaskDefinitionFamiliesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTaskDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTasksPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -13
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3768
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -7
- package/dist-cjs/waiters/waitForServicesInactive.js +1 -57
- package/dist-cjs/waiters/waitForServicesStable.js +1 -84
- package/dist-cjs/waiters/waitForTasksRunning.js +1 -74
- package/dist-cjs/waiters/waitForTasksStopped.js +1 -44
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +8 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +3 -3
- package/dist-types/commands/CreateServiceCommand.d.ts +60 -6
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +2 -2
- package/dist-types/commands/DeleteServiceCommand.d.ts +29 -6
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +17 -11
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +7 -6
- package/dist-types/commands/DescribeServicesCommand.d.ts +29 -6
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +7 -6
- package/dist-types/commands/ListTasksCommand.d.ts +2 -2
- package/dist-types/commands/PutAccountSettingCommand.d.ts +12 -11
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +2 -3
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +6 -4
- package/dist-types/commands/RunTaskCommand.d.ts +36 -4
- package/dist-types/commands/StartTaskCommand.d.ts +36 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +72 -9
- package/dist-types/models/models_0.d.ts +757 -230
- package/dist-types/ts3.4/models/models_0.d.ts +59 -0
- package/package.json +41 -41
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForServicesInactive"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForServicesStable"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./waitForTasksRunning"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./waitForTasksStopped"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilServicesInactive = exports.waitForServicesInactive = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeServicesCommand_1 = require("../commands/DescribeServicesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.failures);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.reason;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
20
|
-
if (anyStringEq_4 == "MISSING") {
|
|
21
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (e) { }
|
|
26
|
-
try {
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
const flat_1 = [].concat(...result.services);
|
|
29
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
30
|
-
return element_2.status;
|
|
31
|
-
});
|
|
32
|
-
return projection_3;
|
|
33
|
-
};
|
|
34
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
35
|
-
if (anyStringEq_4 == "INACTIVE") {
|
|
36
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
}
|
|
42
|
-
catch (exception) {
|
|
43
|
-
reason = exception;
|
|
44
|
-
}
|
|
45
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
46
|
-
};
|
|
47
|
-
const waitForServicesInactive = async (params, input) => {
|
|
48
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
49
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
50
|
-
};
|
|
51
|
-
exports.waitForServicesInactive = waitForServicesInactive;
|
|
52
|
-
const waitUntilServicesInactive = async (params, input) => {
|
|
53
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
54
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
55
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
56
|
-
};
|
|
57
|
-
exports.waitUntilServicesInactive = waitUntilServicesInactive;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,84 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilServicesStable = exports.waitForServicesStable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeServicesCommand_1 = require("../commands/DescribeServicesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeServicesCommand_1.DescribeServicesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.failures);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.reason;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
20
|
-
if (anyStringEq_4 == "MISSING") {
|
|
21
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (e) { }
|
|
26
|
-
try {
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
const flat_1 = [].concat(...result.services);
|
|
29
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
30
|
-
return element_2.status;
|
|
31
|
-
});
|
|
32
|
-
return projection_3;
|
|
33
|
-
};
|
|
34
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
35
|
-
if (anyStringEq_4 == "DRAINING") {
|
|
36
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
try {
|
|
42
|
-
const returnComparator = () => {
|
|
43
|
-
const flat_1 = [].concat(...result.services);
|
|
44
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
45
|
-
return element_2.status;
|
|
46
|
-
});
|
|
47
|
-
return projection_3;
|
|
48
|
-
};
|
|
49
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
50
|
-
if (anyStringEq_4 == "INACTIVE") {
|
|
51
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (e) { }
|
|
56
|
-
try {
|
|
57
|
-
const returnComparator = () => {
|
|
58
|
-
const filterRes_2 = result.services.filter((element_1) => {
|
|
59
|
-
return !(element_1.deployments.length == 1.0 && element_1.runningCount == element_1.desiredCount);
|
|
60
|
-
});
|
|
61
|
-
return filterRes_2.length == 0.0;
|
|
62
|
-
};
|
|
63
|
-
if (returnComparator() == true) {
|
|
64
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e) { }
|
|
68
|
-
}
|
|
69
|
-
catch (exception) {
|
|
70
|
-
reason = exception;
|
|
71
|
-
}
|
|
72
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
73
|
-
};
|
|
74
|
-
const waitForServicesStable = async (params, input) => {
|
|
75
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
76
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
77
|
-
};
|
|
78
|
-
exports.waitForServicesStable = waitForServicesStable;
|
|
79
|
-
const waitUntilServicesStable = async (params, input) => {
|
|
80
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
81
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
82
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
83
|
-
};
|
|
84
|
-
exports.waitUntilServicesStable = waitUntilServicesStable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,74 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilTasksRunning = exports.waitForTasksRunning = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeTasksCommand_1 = require("../commands/DescribeTasksCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.tasks);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.lastStatus;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
20
|
-
if (anyStringEq_4 == "STOPPED") {
|
|
21
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (e) { }
|
|
26
|
-
try {
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
const flat_1 = [].concat(...result.failures);
|
|
29
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
30
|
-
return element_2.reason;
|
|
31
|
-
});
|
|
32
|
-
return projection_3;
|
|
33
|
-
};
|
|
34
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
35
|
-
if (anyStringEq_4 == "MISSING") {
|
|
36
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
try {
|
|
42
|
-
const returnComparator = () => {
|
|
43
|
-
const flat_1 = [].concat(...result.tasks);
|
|
44
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
45
|
-
return element_2.lastStatus;
|
|
46
|
-
});
|
|
47
|
-
return projection_3;
|
|
48
|
-
};
|
|
49
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
50
|
-
for (const element_4 of returnComparator()) {
|
|
51
|
-
allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
|
|
52
|
-
}
|
|
53
|
-
if (allStringEq_5) {
|
|
54
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
}
|
|
59
|
-
catch (exception) {
|
|
60
|
-
reason = exception;
|
|
61
|
-
}
|
|
62
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
63
|
-
};
|
|
64
|
-
const waitForTasksRunning = async (params, input) => {
|
|
65
|
-
const serviceDefaults = { minDelay: 6, maxDelay: 120 };
|
|
66
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
67
|
-
};
|
|
68
|
-
exports.waitForTasksRunning = waitForTasksRunning;
|
|
69
|
-
const waitUntilTasksRunning = async (params, input) => {
|
|
70
|
-
const serviceDefaults = { minDelay: 6, maxDelay: 120 };
|
|
71
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
72
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
73
|
-
};
|
|
74
|
-
exports.waitUntilTasksRunning = waitUntilTasksRunning;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilTasksStopped = exports.waitForTasksStopped = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeTasksCommand_1 = require("../commands/DescribeTasksCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeTasksCommand_1.DescribeTasksCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.tasks);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.lastStatus;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
}
|
|
29
|
-
catch (exception) {
|
|
30
|
-
reason = exception;
|
|
31
|
-
}
|
|
32
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
33
|
-
};
|
|
34
|
-
const waitForTasksStopped = async (params, input) => {
|
|
35
|
-
const serviceDefaults = { minDelay: 6, maxDelay: 120 };
|
|
36
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
};
|
|
38
|
-
exports.waitForTasksStopped = waitForTasksStopped;
|
|
39
|
-
const waitUntilTasksStopped = async (params, input) => {
|
|
40
|
-
const serviceDefaults = { minDelay: 6, maxDelay: 120 };
|
|
41
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
43
|
-
};
|
|
44
|
-
exports.waitUntilTasksStopped = waitUntilTasksStopped;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -178,6 +178,14 @@ export const LogDriver = {
|
|
|
178
178
|
SPLUNK: "splunk",
|
|
179
179
|
SYSLOG: "syslog",
|
|
180
180
|
};
|
|
181
|
+
export const TaskFilesystemType = {
|
|
182
|
+
EXT3: "ext3",
|
|
183
|
+
EXT4: "ext4",
|
|
184
|
+
XFS: "xfs",
|
|
185
|
+
};
|
|
186
|
+
export const EBSResourceType = {
|
|
187
|
+
VOLUME: "volume",
|
|
188
|
+
};
|
|
181
189
|
export const DeploymentRolloutState = {
|
|
182
190
|
COMPLETED: "COMPLETED",
|
|
183
191
|
FAILED: "FAILED",
|
|
@@ -2077,6 +2077,9 @@ const de_StartTaskCommandError = async (output, context) => {
|
|
|
2077
2077
|
case "ServerException":
|
|
2078
2078
|
case "com.amazonaws.ecs#ServerException":
|
|
2079
2079
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2080
|
+
case "UnsupportedFeatureException":
|
|
2081
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2082
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2080
2083
|
default:
|
|
2081
2084
|
const parsedBody = parsedOutput.body;
|
|
2082
2085
|
return throwDefaultError({
|
|
@@ -2599,6 +2602,9 @@ const de_UpdateServiceCommandError = async (output, context) => {
|
|
|
2599
2602
|
case "ServiceNotFoundException":
|
|
2600
2603
|
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2601
2604
|
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2605
|
+
case "UnsupportedFeatureException":
|
|
2606
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2607
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2602
2608
|
default:
|
|
2603
2609
|
const parsedBody = parsedOutput.body;
|
|
2604
2610
|
return throwDefaultError({
|
|
@@ -3071,6 +3077,7 @@ const se_RunTaskRequest = (input, context) => {
|
|
|
3071
3077
|
startedBy: [],
|
|
3072
3078
|
tags: _json,
|
|
3073
3079
|
taskDefinition: [],
|
|
3080
|
+
volumeConfigurations: _json,
|
|
3074
3081
|
});
|
|
3075
3082
|
};
|
|
3076
3083
|
const se_Scale = (input, context) => {
|
|
@@ -3212,6 +3219,7 @@ const de_Deployment = (output, context) => {
|
|
|
3212
3219
|
status: __expectString,
|
|
3213
3220
|
taskDefinition: __expectString,
|
|
3214
3221
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3222
|
+
volumeConfigurations: _json,
|
|
3215
3223
|
});
|
|
3216
3224
|
};
|
|
3217
3225
|
const de_Deployments = (output, context) => {
|
|
@@ -32,9 +32,9 @@ declare const CreateClusterCommand_base: {
|
|
|
32
32
|
* <note>
|
|
33
33
|
* <p>When you call the <a>CreateCluster</a> API operation, Amazon ECS attempts to
|
|
34
34
|
* create the Amazon ECS service-linked role for your account. This is so that it can manage
|
|
35
|
-
* required resources in other Amazon Web Services services on your behalf. However, if the user
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* required resources in other Amazon Web Services services on your behalf. However, if the user that
|
|
36
|
+
* makes the call doesn't have permissions to create the service-linked role, it isn't
|
|
37
|
+
* created. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html">Using
|
|
38
38
|
* service-linked roles for Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
39
39
|
* </note>
|
|
40
40
|
* @example
|
|
@@ -37,6 +37,9 @@ declare const CreateServiceCommand_base: {
|
|
|
37
37
|
* optionally run your service behind one or more load balancers. The load balancers
|
|
38
38
|
* distribute traffic across the tasks that are associated with the service. For more
|
|
39
39
|
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html">Service load balancing</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
40
|
+
* <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or
|
|
41
|
+
* updating a service. <code>volumeConfigurations</code> is only supported for REPLICA
|
|
42
|
+
* service and not DAEMON service. For more infomation, 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>
|
|
40
43
|
* <p>Tasks for services that don't use a load balancer are considered healthy if they're in
|
|
41
44
|
* the <code>RUNNING</code> state. Tasks for services that use a load balancer are
|
|
42
45
|
* considered healthy if they're in the <code>RUNNING</code> state and are reported as
|
|
@@ -225,6 +228,34 @@ declare const CreateServiceCommand_base: {
|
|
|
225
228
|
* ],
|
|
226
229
|
* },
|
|
227
230
|
* },
|
|
231
|
+
* volumeConfigurations: [ // ServiceVolumeConfigurations
|
|
232
|
+
* { // ServiceVolumeConfiguration
|
|
233
|
+
* name: "STRING_VALUE", // required
|
|
234
|
+
* managedEBSVolume: { // ServiceManagedEBSVolumeConfiguration
|
|
235
|
+
* encrypted: true || false,
|
|
236
|
+
* kmsKeyId: "STRING_VALUE",
|
|
237
|
+
* volumeType: "STRING_VALUE",
|
|
238
|
+
* sizeInGiB: Number("int"),
|
|
239
|
+
* snapshotId: "STRING_VALUE",
|
|
240
|
+
* iops: Number("int"),
|
|
241
|
+
* throughput: Number("int"),
|
|
242
|
+
* tagSpecifications: [ // EBSTagSpecifications
|
|
243
|
+
* { // EBSTagSpecification
|
|
244
|
+
* resourceType: "volume", // required
|
|
245
|
+
* tags: [
|
|
246
|
+
* {
|
|
247
|
+
* key: "STRING_VALUE",
|
|
248
|
+
* value: "STRING_VALUE",
|
|
249
|
+
* },
|
|
250
|
+
* ],
|
|
251
|
+
* propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
252
|
+
* },
|
|
253
|
+
* ],
|
|
254
|
+
* roleArn: "STRING_VALUE", // required
|
|
255
|
+
* filesystemType: "ext3" || "ext4" || "xfs",
|
|
256
|
+
* },
|
|
257
|
+
* },
|
|
258
|
+
* ],
|
|
228
259
|
* };
|
|
229
260
|
* const command = new CreateServiceCommand(input);
|
|
230
261
|
* const response = await client.send(command);
|
|
@@ -414,6 +445,34 @@ declare const CreateServiceCommand_base: {
|
|
|
414
445
|
* // discoveryArn: "STRING_VALUE",
|
|
415
446
|
* // },
|
|
416
447
|
* // ],
|
|
448
|
+
* // volumeConfigurations: [ // ServiceVolumeConfigurations
|
|
449
|
+
* // { // ServiceVolumeConfiguration
|
|
450
|
+
* // name: "STRING_VALUE", // required
|
|
451
|
+
* // managedEBSVolume: { // ServiceManagedEBSVolumeConfiguration
|
|
452
|
+
* // encrypted: true || false,
|
|
453
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
454
|
+
* // volumeType: "STRING_VALUE",
|
|
455
|
+
* // sizeInGiB: Number("int"),
|
|
456
|
+
* // snapshotId: "STRING_VALUE",
|
|
457
|
+
* // iops: Number("int"),
|
|
458
|
+
* // throughput: Number("int"),
|
|
459
|
+
* // tagSpecifications: [ // EBSTagSpecifications
|
|
460
|
+
* // { // EBSTagSpecification
|
|
461
|
+
* // resourceType: "volume", // required
|
|
462
|
+
* // tags: [
|
|
463
|
+
* // {
|
|
464
|
+
* // key: "STRING_VALUE",
|
|
465
|
+
* // value: "STRING_VALUE",
|
|
466
|
+
* // },
|
|
467
|
+
* // ],
|
|
468
|
+
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
469
|
+
* // },
|
|
470
|
+
* // ],
|
|
471
|
+
* // roleArn: "STRING_VALUE", // required
|
|
472
|
+
* // filesystemType: "ext3" || "ext4" || "xfs",
|
|
473
|
+
* // },
|
|
474
|
+
* // },
|
|
475
|
+
* // ],
|
|
417
476
|
* // },
|
|
418
477
|
* // ],
|
|
419
478
|
* // roleArn: "STRING_VALUE",
|
|
@@ -449,12 +508,7 @@ declare const CreateServiceCommand_base: {
|
|
|
449
508
|
* // deploymentController: { // DeploymentController
|
|
450
509
|
* // type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
451
510
|
* // },
|
|
452
|
-
* // tags:
|
|
453
|
-
* // {
|
|
454
|
-
* // key: "STRING_VALUE",
|
|
455
|
-
* // value: "STRING_VALUE",
|
|
456
|
-
* // },
|
|
457
|
-
* // ],
|
|
511
|
+
* // tags: "<Tags>",
|
|
458
512
|
* // createdBy: "STRING_VALUE",
|
|
459
513
|
* // enableECSManagedTags: true || false,
|
|
460
514
|
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
@@ -26,8 +26,8 @@ declare const DeleteAccountSettingCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Disables an account setting for a specified
|
|
30
|
-
*
|
|
29
|
+
* <p>Disables an account setting for a specified user, role, or the root user for an
|
|
30
|
+
* account.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -246,6 +246,34 @@ declare const DeleteServiceCommand_base: {
|
|
|
246
246
|
* // discoveryArn: "STRING_VALUE",
|
|
247
247
|
* // },
|
|
248
248
|
* // ],
|
|
249
|
+
* // volumeConfigurations: [ // ServiceVolumeConfigurations
|
|
250
|
+
* // { // ServiceVolumeConfiguration
|
|
251
|
+
* // name: "STRING_VALUE", // required
|
|
252
|
+
* // managedEBSVolume: { // ServiceManagedEBSVolumeConfiguration
|
|
253
|
+
* // encrypted: true || false,
|
|
254
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
255
|
+
* // volumeType: "STRING_VALUE",
|
|
256
|
+
* // sizeInGiB: Number("int"),
|
|
257
|
+
* // snapshotId: "STRING_VALUE",
|
|
258
|
+
* // iops: Number("int"),
|
|
259
|
+
* // throughput: Number("int"),
|
|
260
|
+
* // tagSpecifications: [ // EBSTagSpecifications
|
|
261
|
+
* // { // EBSTagSpecification
|
|
262
|
+
* // resourceType: "volume", // required
|
|
263
|
+
* // tags: [
|
|
264
|
+
* // {
|
|
265
|
+
* // key: "STRING_VALUE",
|
|
266
|
+
* // value: "STRING_VALUE",
|
|
267
|
+
* // },
|
|
268
|
+
* // ],
|
|
269
|
+
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
270
|
+
* // },
|
|
271
|
+
* // ],
|
|
272
|
+
* // roleArn: "STRING_VALUE", // required
|
|
273
|
+
* // filesystemType: "ext3" || "ext4" || "xfs",
|
|
274
|
+
* // },
|
|
275
|
+
* // },
|
|
276
|
+
* // ],
|
|
249
277
|
* // },
|
|
250
278
|
* // ],
|
|
251
279
|
* // roleArn: "STRING_VALUE",
|
|
@@ -281,12 +309,7 @@ declare const DeleteServiceCommand_base: {
|
|
|
281
309
|
* // deploymentController: { // DeploymentController
|
|
282
310
|
* // type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
283
311
|
* // },
|
|
284
|
-
* // tags:
|
|
285
|
-
* // {
|
|
286
|
-
* // key: "STRING_VALUE",
|
|
287
|
-
* // value: "STRING_VALUE",
|
|
288
|
-
* // },
|
|
289
|
-
* // ],
|
|
312
|
+
* // tags: "<Tags>",
|
|
290
313
|
* // createdBy: "STRING_VALUE",
|
|
291
314
|
* // enableECSManagedTags: true || false,
|
|
292
315
|
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
@@ -27,20 +27,25 @@ declare const DeleteTaskDefinitionsCommand_base: {
|
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
29
|
* <p>Deletes one or more task definitions.</p>
|
|
30
|
-
* <p>You must deregister a task definition revision before you delete it. For more
|
|
31
|
-
* see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterTaskDefinition.html">DeregisterTaskDefinition</a>.</p>
|
|
30
|
+
* <p>You must deregister a task definition revision before you delete it. For more
|
|
31
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterTaskDefinition.html">DeregisterTaskDefinition</a>.</p>
|
|
32
32
|
* <p>When you delete a task definition revision, it is immediately transitions from the
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* <p>You can't use a <code>DELETE_IN_PROGRESS</code> task definition revision to run new
|
|
39
|
-
* or create new services. You also can't update an existing service to reference a
|
|
40
|
-
*
|
|
33
|
+
* <code>INACTIVE</code> to <code>DELETE_IN_PROGRESS</code>. Existing tasks and
|
|
34
|
+
* services that reference a <code>DELETE_IN_PROGRESS</code> task definition revision
|
|
35
|
+
* continue to run without disruption. Existing services that reference a
|
|
36
|
+
* <code>DELETE_IN_PROGRESS</code> task definition revision can still scale up or down
|
|
37
|
+
* by modifying the service's desired count.</p>
|
|
38
|
+
* <p>You can't use a <code>DELETE_IN_PROGRESS</code> task definition revision to run new
|
|
39
|
+
* tasks or create new services. You also can't update an existing service to reference a
|
|
40
|
+
* <code>DELETE_IN_PROGRESS</code> task definition revision.</p>
|
|
41
41
|
* <p> A task definition revision will stay in <code>DELETE_IN_PROGRESS</code> status until
|
|
42
42
|
* all the associated tasks and services have been terminated.</p>
|
|
43
|
-
* <p>When you delete all <code>INACTIVE</code> task definition revisions, the task
|
|
43
|
+
* <p>When you delete all <code>INACTIVE</code> task definition revisions, the task
|
|
44
|
+
* definition name is not displayed in the console and not returned in the API. If a task
|
|
45
|
+
* definition revisions are in the <code>DELETE_IN_PROGRESS</code> state, the task
|
|
46
|
+
* definition name is displayed in the console and returned in the API. The task definition
|
|
47
|
+
* name is retained by Amazon ECS and the revision is incremented the next time you create a
|
|
48
|
+
* task definition with that name.</p>
|
|
44
49
|
* @example
|
|
45
50
|
* Use a bare-bones client and the command you need to make an API call.
|
|
46
51
|
* ```javascript
|
|
@@ -264,6 +269,7 @@ declare const DeleteTaskDefinitionsCommand_base: {
|
|
|
264
269
|
* // domain: "STRING_VALUE", // required
|
|
265
270
|
* // },
|
|
266
271
|
* // },
|
|
272
|
+
* // configuredAtLaunch: true || false,
|
|
267
273
|
* // },
|
|
268
274
|
* // ],
|
|
269
275
|
* // status: "ACTIVE" || "INACTIVE" || "DELETE_IN_PROGRESS",
|
|
@@ -26,12 +26,12 @@ declare const DeregisterTaskDefinitionCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Deregisters the specified task definition by family and revision. Upon deregistration,
|
|
30
|
-
* task definition is marked as <code>INACTIVE</code>. Existing tasks and services that
|
|
29
|
+
* <p>Deregisters the specified task definition by family and revision. Upon deregistration,
|
|
30
|
+
* the task definition is marked as <code>INACTIVE</code>. Existing tasks and services that
|
|
31
31
|
* reference an <code>INACTIVE</code> task definition continue to run without disruption.
|
|
32
32
|
* Existing services that reference an <code>INACTIVE</code> task definition can still
|
|
33
|
-
* scale up or down by modifying the service's desired count. If you want to delete a
|
|
34
|
-
* definition revision, you must first deregister the
|
|
33
|
+
* scale up or down by modifying the service's desired count. If you want to delete a task
|
|
34
|
+
* definition revision, you must first deregister the task definition revision.</p>
|
|
35
35
|
* <p>You can't use an <code>INACTIVE</code> task definition to run new tasks or create new
|
|
36
36
|
* services, and you can't update an existing service to reference an <code>INACTIVE</code>
|
|
37
37
|
* task definition. However, there may be up to a 10-minute window following deregistration
|
|
@@ -42,8 +42,8 @@ declare const DeregisterTaskDefinitionCommand_base: {
|
|
|
42
42
|
* don't recommend that you rely on <code>INACTIVE</code> task definitions persisting
|
|
43
43
|
* beyond the lifecycle of any associated tasks and services.</p>
|
|
44
44
|
* </note>
|
|
45
|
-
* <p>You must deregister a task definition revision before you delete it. For more
|
|
46
|
-
* see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskDefinitions.html">DeleteTaskDefinitions</a>.</p>
|
|
45
|
+
* <p>You must deregister a task definition revision before you delete it. For more
|
|
46
|
+
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskDefinitions.html">DeleteTaskDefinitions</a>.</p>
|
|
47
47
|
* @example
|
|
48
48
|
* Use a bare-bones client and the command you need to make an API call.
|
|
49
49
|
* ```javascript
|
|
@@ -264,6 +264,7 @@ declare const DeregisterTaskDefinitionCommand_base: {
|
|
|
264
264
|
* // domain: "STRING_VALUE", // required
|
|
265
265
|
* // },
|
|
266
266
|
* // },
|
|
267
|
+
* // configuredAtLaunch: true || false,
|
|
267
268
|
* // },
|
|
268
269
|
* // ],
|
|
269
270
|
* // status: "ACTIVE" || "INACTIVE" || "DELETE_IN_PROGRESS",
|
|
@@ -231,6 +231,34 @@ declare const DescribeServicesCommand_base: {
|
|
|
231
231
|
* // discoveryArn: "STRING_VALUE",
|
|
232
232
|
* // },
|
|
233
233
|
* // ],
|
|
234
|
+
* // volumeConfigurations: [ // ServiceVolumeConfigurations
|
|
235
|
+
* // { // ServiceVolumeConfiguration
|
|
236
|
+
* // name: "STRING_VALUE", // required
|
|
237
|
+
* // managedEBSVolume: { // ServiceManagedEBSVolumeConfiguration
|
|
238
|
+
* // encrypted: true || false,
|
|
239
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
240
|
+
* // volumeType: "STRING_VALUE",
|
|
241
|
+
* // sizeInGiB: Number("int"),
|
|
242
|
+
* // snapshotId: "STRING_VALUE",
|
|
243
|
+
* // iops: Number("int"),
|
|
244
|
+
* // throughput: Number("int"),
|
|
245
|
+
* // tagSpecifications: [ // EBSTagSpecifications
|
|
246
|
+
* // { // EBSTagSpecification
|
|
247
|
+
* // resourceType: "volume", // required
|
|
248
|
+
* // tags: [
|
|
249
|
+
* // {
|
|
250
|
+
* // key: "STRING_VALUE",
|
|
251
|
+
* // value: "STRING_VALUE",
|
|
252
|
+
* // },
|
|
253
|
+
* // ],
|
|
254
|
+
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
255
|
+
* // },
|
|
256
|
+
* // ],
|
|
257
|
+
* // roleArn: "STRING_VALUE", // required
|
|
258
|
+
* // filesystemType: "ext3" || "ext4" || "xfs",
|
|
259
|
+
* // },
|
|
260
|
+
* // },
|
|
261
|
+
* // ],
|
|
234
262
|
* // },
|
|
235
263
|
* // ],
|
|
236
264
|
* // roleArn: "STRING_VALUE",
|
|
@@ -266,12 +294,7 @@ declare const DescribeServicesCommand_base: {
|
|
|
266
294
|
* // deploymentController: { // DeploymentController
|
|
267
295
|
* // type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
268
296
|
* // },
|
|
269
|
-
* // tags:
|
|
270
|
-
* // {
|
|
271
|
-
* // key: "STRING_VALUE",
|
|
272
|
-
* // value: "STRING_VALUE",
|
|
273
|
-
* // },
|
|
274
|
-
* // ],
|
|
297
|
+
* // tags: "<Tags>",
|
|
275
298
|
* // createdBy: "STRING_VALUE",
|
|
276
299
|
* // enableECSManagedTags: true || false,
|
|
277
300
|
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|