@aws-sdk/client-ecs 3.202.0 → 3.208.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 +30 -0
- package/dist-cjs/commands/GetTaskProtectionCommand.js +46 -0
- package/dist-cjs/commands/UpdateTaskProtectionCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +37 -17
- package/dist-cjs/protocols/Aws_json1_1.js +173 -3
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/ECS.js +30 -0
- package/dist-es/commands/GetTaskProtectionCommand.js +42 -0
- package/dist-es/commands/UpdateTaskProtectionCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +27 -12
- package/dist-es/protocols/Aws_json1_1.js +166 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/ECS.d.ts +42 -2
- package/dist-types/ECSClient.d.ts +4 -2
- package/dist-types/commands/CreateServiceCommand.d.ts +3 -2
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +62 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +151 -20
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/ECS.d.ts +34 -0
- package/dist-types/ts3.4/ECSClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +45 -7
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +36 -35
- package/CHANGELOG.md +0 -4366
package/dist-es/ECS.js
CHANGED
|
@@ -19,6 +19,7 @@ import { DescribeTasksCommand, } from "./commands/DescribeTasksCommand";
|
|
|
19
19
|
import { DescribeTaskSetsCommand, } from "./commands/DescribeTaskSetsCommand";
|
|
20
20
|
import { DiscoverPollEndpointCommand, } from "./commands/DiscoverPollEndpointCommand";
|
|
21
21
|
import { ExecuteCommandCommand, } from "./commands/ExecuteCommandCommand";
|
|
22
|
+
import { GetTaskProtectionCommand, } from "./commands/GetTaskProtectionCommand";
|
|
22
23
|
import { ListAccountSettingsCommand, } from "./commands/ListAccountSettingsCommand";
|
|
23
24
|
import { ListAttributesCommand, } from "./commands/ListAttributesCommand";
|
|
24
25
|
import { ListClustersCommand, } from "./commands/ListClustersCommand";
|
|
@@ -49,6 +50,7 @@ import { UpdateContainerAgentCommand, } from "./commands/UpdateContainerAgentCom
|
|
|
49
50
|
import { UpdateContainerInstancesStateCommand, } from "./commands/UpdateContainerInstancesStateCommand";
|
|
50
51
|
import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
|
|
51
52
|
import { UpdateServicePrimaryTaskSetCommand, } from "./commands/UpdateServicePrimaryTaskSetCommand";
|
|
53
|
+
import { UpdateTaskProtectionCommand, } from "./commands/UpdateTaskProtectionCommand";
|
|
52
54
|
import { UpdateTaskSetCommand, } from "./commands/UpdateTaskSetCommand";
|
|
53
55
|
import { ECSClient } from "./ECSClient";
|
|
54
56
|
export class ECS extends ECSClient {
|
|
@@ -346,6 +348,20 @@ export class ECS extends ECSClient {
|
|
|
346
348
|
return this.send(command, optionsOrCb);
|
|
347
349
|
}
|
|
348
350
|
}
|
|
351
|
+
getTaskProtection(args, optionsOrCb, cb) {
|
|
352
|
+
const command = new GetTaskProtectionCommand(args);
|
|
353
|
+
if (typeof optionsOrCb === "function") {
|
|
354
|
+
this.send(command, optionsOrCb);
|
|
355
|
+
}
|
|
356
|
+
else if (typeof cb === "function") {
|
|
357
|
+
if (typeof optionsOrCb !== "object")
|
|
358
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
return this.send(command, optionsOrCb);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
349
365
|
listAccountSettings(args, optionsOrCb, cb) {
|
|
350
366
|
const command = new ListAccountSettingsCommand(args);
|
|
351
367
|
if (typeof optionsOrCb === "function") {
|
|
@@ -766,6 +782,20 @@ export class ECS extends ECSClient {
|
|
|
766
782
|
return this.send(command, optionsOrCb);
|
|
767
783
|
}
|
|
768
784
|
}
|
|
785
|
+
updateTaskProtection(args, optionsOrCb, cb) {
|
|
786
|
+
const command = new UpdateTaskProtectionCommand(args);
|
|
787
|
+
if (typeof optionsOrCb === "function") {
|
|
788
|
+
this.send(command, optionsOrCb);
|
|
789
|
+
}
|
|
790
|
+
else if (typeof cb === "function") {
|
|
791
|
+
if (typeof optionsOrCb !== "object")
|
|
792
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
793
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
794
|
+
}
|
|
795
|
+
else {
|
|
796
|
+
return this.send(command, optionsOrCb);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
769
799
|
updateTaskSet(args, optionsOrCb, cb) {
|
|
770
800
|
const command = new UpdateTaskSetCommand(args);
|
|
771
801
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTaskProtectionRequestFilterSensitiveLog, GetTaskProtectionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetTaskProtectionCommand, serializeAws_json1_1GetTaskProtectionCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class GetTaskProtectionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetTaskProtectionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ECSClient";
|
|
25
|
+
const commandName = "GetTaskProtectionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetTaskProtectionRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetTaskProtectionResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1GetTaskProtectionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1GetTaskProtectionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateTaskProtectionRequestFilterSensitiveLog, UpdateTaskProtectionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateTaskProtectionCommand, serializeAws_json1_1UpdateTaskProtectionCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class UpdateTaskProtectionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTaskProtectionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ECSClient";
|
|
25
|
+
const commandName = "UpdateTaskProtectionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateTaskProtectionRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateTaskProtectionResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1UpdateTaskProtectionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1UpdateTaskProtectionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -19,6 +19,7 @@ export * from "./DescribeTaskSetsCommand";
|
|
|
19
19
|
export * from "./DescribeTasksCommand";
|
|
20
20
|
export * from "./DiscoverPollEndpointCommand";
|
|
21
21
|
export * from "./ExecuteCommandCommand";
|
|
22
|
+
export * from "./GetTaskProtectionCommand";
|
|
22
23
|
export * from "./ListAccountSettingsCommand";
|
|
23
24
|
export * from "./ListAttributesCommand";
|
|
24
25
|
export * from "./ListClustersCommand";
|
|
@@ -49,4 +50,5 @@ export * from "./UpdateContainerAgentCommand";
|
|
|
49
50
|
export * from "./UpdateContainerInstancesStateCommand";
|
|
50
51
|
export * from "./UpdateServiceCommand";
|
|
51
52
|
export * from "./UpdateServicePrimaryTaskSetCommand";
|
|
53
|
+
export * from "./UpdateTaskProtectionCommand";
|
|
52
54
|
export * from "./UpdateTaskSetCommand";
|
|
@@ -519,6 +519,18 @@ export class TargetNotConnectedException extends __BaseException {
|
|
|
519
519
|
Object.setPrototypeOf(this, TargetNotConnectedException.prototype);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
523
|
+
constructor(opts) {
|
|
524
|
+
super({
|
|
525
|
+
name: "ResourceNotFoundException",
|
|
526
|
+
$fault: "client",
|
|
527
|
+
...opts,
|
|
528
|
+
});
|
|
529
|
+
this.name = "ResourceNotFoundException";
|
|
530
|
+
this.$fault = "client";
|
|
531
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
522
534
|
export var ContainerInstanceStatus;
|
|
523
535
|
(function (ContainerInstanceStatus) {
|
|
524
536
|
ContainerInstanceStatus["ACTIVE"] = "ACTIVE";
|
|
@@ -584,18 +596,6 @@ export class BlockedException extends __BaseException {
|
|
|
584
596
|
Object.setPrototypeOf(this, BlockedException.prototype);
|
|
585
597
|
}
|
|
586
598
|
}
|
|
587
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
588
|
-
constructor(opts) {
|
|
589
|
-
super({
|
|
590
|
-
name: "ResourceNotFoundException",
|
|
591
|
-
$fault: "client",
|
|
592
|
-
...opts,
|
|
593
|
-
});
|
|
594
|
-
this.name = "ResourceNotFoundException";
|
|
595
|
-
this.$fault = "client";
|
|
596
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
599
|
export class MissingVersionException extends __BaseException {
|
|
600
600
|
constructor(opts) {
|
|
601
601
|
super({
|
|
@@ -973,6 +973,15 @@ export const ExecuteCommandResponseFilterSensitiveLog = (obj) => ({
|
|
|
973
973
|
...obj,
|
|
974
974
|
...(obj.session && { session: SessionFilterSensitiveLog(obj.session) }),
|
|
975
975
|
});
|
|
976
|
+
export const GetTaskProtectionRequestFilterSensitiveLog = (obj) => ({
|
|
977
|
+
...obj,
|
|
978
|
+
});
|
|
979
|
+
export const ProtectedTaskFilterSensitiveLog = (obj) => ({
|
|
980
|
+
...obj,
|
|
981
|
+
});
|
|
982
|
+
export const GetTaskProtectionResponseFilterSensitiveLog = (obj) => ({
|
|
983
|
+
...obj,
|
|
984
|
+
});
|
|
976
985
|
export const ListAccountSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
977
986
|
...obj,
|
|
978
987
|
});
|
|
@@ -1168,6 +1177,12 @@ export const UpdateServicePrimaryTaskSetRequestFilterSensitiveLog = (obj) => ({
|
|
|
1168
1177
|
export const UpdateServicePrimaryTaskSetResponseFilterSensitiveLog = (obj) => ({
|
|
1169
1178
|
...obj,
|
|
1170
1179
|
});
|
|
1180
|
+
export const UpdateTaskProtectionRequestFilterSensitiveLog = (obj) => ({
|
|
1181
|
+
...obj,
|
|
1182
|
+
});
|
|
1183
|
+
export const UpdateTaskProtectionResponseFilterSensitiveLog = (obj) => ({
|
|
1184
|
+
...obj,
|
|
1185
|
+
});
|
|
1171
1186
|
export const UpdateTaskSetRequestFilterSensitiveLog = (obj) => ({
|
|
1172
1187
|
...obj,
|
|
1173
1188
|
});
|
|
@@ -191,6 +191,15 @@ export const serializeAws_json1_1ExecuteCommandCommand = async (input, context)
|
|
|
191
191
|
body = JSON.stringify(serializeAws_json1_1ExecuteCommandRequest(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
+
export const serializeAws_json1_1GetTaskProtectionCommand = async (input, context) => {
|
|
195
|
+
const headers = {
|
|
196
|
+
"content-type": "application/x-amz-json-1.1",
|
|
197
|
+
"x-amz-target": "AmazonEC2ContainerServiceV20141113.GetTaskProtection",
|
|
198
|
+
};
|
|
199
|
+
let body;
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1GetTaskProtectionRequest(input, context));
|
|
201
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
|
+
};
|
|
194
203
|
export const serializeAws_json1_1ListAccountSettingsCommand = async (input, context) => {
|
|
195
204
|
const headers = {
|
|
196
205
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -461,6 +470,15 @@ export const serializeAws_json1_1UpdateServicePrimaryTaskSetCommand = async (inp
|
|
|
461
470
|
body = JSON.stringify(serializeAws_json1_1UpdateServicePrimaryTaskSetRequest(input, context));
|
|
462
471
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
472
|
};
|
|
473
|
+
export const serializeAws_json1_1UpdateTaskProtectionCommand = async (input, context) => {
|
|
474
|
+
const headers = {
|
|
475
|
+
"content-type": "application/x-amz-json-1.1",
|
|
476
|
+
"x-amz-target": "AmazonEC2ContainerServiceV20141113.UpdateTaskProtection",
|
|
477
|
+
};
|
|
478
|
+
let body;
|
|
479
|
+
body = JSON.stringify(serializeAws_json1_1UpdateTaskProtectionRequest(input, context));
|
|
480
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
|
+
};
|
|
464
482
|
export const serializeAws_json1_1UpdateTaskSetCommand = async (input, context) => {
|
|
465
483
|
const headers = {
|
|
466
484
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1403,6 +1421,57 @@ const deserializeAws_json1_1ExecuteCommandCommandError = async (output, context)
|
|
|
1403
1421
|
});
|
|
1404
1422
|
}
|
|
1405
1423
|
};
|
|
1424
|
+
export const deserializeAws_json1_1GetTaskProtectionCommand = async (output, context) => {
|
|
1425
|
+
if (output.statusCode >= 300) {
|
|
1426
|
+
return deserializeAws_json1_1GetTaskProtectionCommandError(output, context);
|
|
1427
|
+
}
|
|
1428
|
+
const data = await parseBody(output.body, context);
|
|
1429
|
+
let contents = {};
|
|
1430
|
+
contents = deserializeAws_json1_1GetTaskProtectionResponse(data, context);
|
|
1431
|
+
const response = {
|
|
1432
|
+
$metadata: deserializeMetadata(output),
|
|
1433
|
+
...contents,
|
|
1434
|
+
};
|
|
1435
|
+
return Promise.resolve(response);
|
|
1436
|
+
};
|
|
1437
|
+
const deserializeAws_json1_1GetTaskProtectionCommandError = async (output, context) => {
|
|
1438
|
+
const parsedOutput = {
|
|
1439
|
+
...output,
|
|
1440
|
+
body: await parseErrorBody(output.body, context),
|
|
1441
|
+
};
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
switch (errorCode) {
|
|
1444
|
+
case "AccessDeniedException":
|
|
1445
|
+
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1446
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1447
|
+
case "ClientException":
|
|
1448
|
+
case "com.amazonaws.ecs#ClientException":
|
|
1449
|
+
throw await deserializeAws_json1_1ClientExceptionResponse(parsedOutput, context);
|
|
1450
|
+
case "ClusterNotFoundException":
|
|
1451
|
+
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1452
|
+
throw await deserializeAws_json1_1ClusterNotFoundExceptionResponse(parsedOutput, context);
|
|
1453
|
+
case "InvalidParameterException":
|
|
1454
|
+
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1455
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1456
|
+
case "ResourceNotFoundException":
|
|
1457
|
+
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
1458
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1459
|
+
case "ServerException":
|
|
1460
|
+
case "com.amazonaws.ecs#ServerException":
|
|
1461
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1462
|
+
case "UnsupportedFeatureException":
|
|
1463
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1464
|
+
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
1465
|
+
default:
|
|
1466
|
+
const parsedBody = parsedOutput.body;
|
|
1467
|
+
throwDefaultError({
|
|
1468
|
+
output,
|
|
1469
|
+
parsedBody,
|
|
1470
|
+
exceptionCtor: __BaseException,
|
|
1471
|
+
errorCode,
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1406
1475
|
export const deserializeAws_json1_1ListAccountSettingsCommand = async (output, context) => {
|
|
1407
1476
|
if (output.statusCode >= 300) {
|
|
1408
1477
|
return deserializeAws_json1_1ListAccountSettingsCommandError(output, context);
|
|
@@ -2696,6 +2765,57 @@ const deserializeAws_json1_1UpdateServicePrimaryTaskSetCommandError = async (out
|
|
|
2696
2765
|
});
|
|
2697
2766
|
}
|
|
2698
2767
|
};
|
|
2768
|
+
export const deserializeAws_json1_1UpdateTaskProtectionCommand = async (output, context) => {
|
|
2769
|
+
if (output.statusCode >= 300) {
|
|
2770
|
+
return deserializeAws_json1_1UpdateTaskProtectionCommandError(output, context);
|
|
2771
|
+
}
|
|
2772
|
+
const data = await parseBody(output.body, context);
|
|
2773
|
+
let contents = {};
|
|
2774
|
+
contents = deserializeAws_json1_1UpdateTaskProtectionResponse(data, context);
|
|
2775
|
+
const response = {
|
|
2776
|
+
$metadata: deserializeMetadata(output),
|
|
2777
|
+
...contents,
|
|
2778
|
+
};
|
|
2779
|
+
return Promise.resolve(response);
|
|
2780
|
+
};
|
|
2781
|
+
const deserializeAws_json1_1UpdateTaskProtectionCommandError = async (output, context) => {
|
|
2782
|
+
const parsedOutput = {
|
|
2783
|
+
...output,
|
|
2784
|
+
body: await parseErrorBody(output.body, context),
|
|
2785
|
+
};
|
|
2786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
|
+
switch (errorCode) {
|
|
2788
|
+
case "AccessDeniedException":
|
|
2789
|
+
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2790
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2791
|
+
case "ClientException":
|
|
2792
|
+
case "com.amazonaws.ecs#ClientException":
|
|
2793
|
+
throw await deserializeAws_json1_1ClientExceptionResponse(parsedOutput, context);
|
|
2794
|
+
case "ClusterNotFoundException":
|
|
2795
|
+
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2796
|
+
throw await deserializeAws_json1_1ClusterNotFoundExceptionResponse(parsedOutput, context);
|
|
2797
|
+
case "InvalidParameterException":
|
|
2798
|
+
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2799
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2800
|
+
case "ResourceNotFoundException":
|
|
2801
|
+
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2802
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2803
|
+
case "ServerException":
|
|
2804
|
+
case "com.amazonaws.ecs#ServerException":
|
|
2805
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2806
|
+
case "UnsupportedFeatureException":
|
|
2807
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2808
|
+
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
2809
|
+
default:
|
|
2810
|
+
const parsedBody = parsedOutput.body;
|
|
2811
|
+
throwDefaultError({
|
|
2812
|
+
output,
|
|
2813
|
+
parsedBody,
|
|
2814
|
+
exceptionCtor: __BaseException,
|
|
2815
|
+
errorCode,
|
|
2816
|
+
});
|
|
2817
|
+
}
|
|
2818
|
+
};
|
|
2699
2819
|
export const deserializeAws_json1_1UpdateTaskSetCommand = async (output, context) => {
|
|
2700
2820
|
if (output.statusCode >= 300) {
|
|
2701
2821
|
return deserializeAws_json1_1UpdateTaskSetCommandError(output, context);
|
|
@@ -3591,6 +3711,12 @@ const serializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (input, cont
|
|
|
3591
3711
|
...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
|
|
3592
3712
|
};
|
|
3593
3713
|
};
|
|
3714
|
+
const serializeAws_json1_1GetTaskProtectionRequest = (input, context) => {
|
|
3715
|
+
return {
|
|
3716
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
3717
|
+
...(input.tasks != null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3594
3720
|
const serializeAws_json1_1HealthCheck = (input, context) => {
|
|
3595
3721
|
return {
|
|
3596
3722
|
...(input.command != null && { command: serializeAws_json1_1StringList(input.command, context) }),
|
|
@@ -4402,6 +4528,14 @@ const serializeAws_json1_1UpdateServiceRequest = (input, context) => {
|
|
|
4402
4528
|
...(input.taskDefinition != null && { taskDefinition: input.taskDefinition }),
|
|
4403
4529
|
};
|
|
4404
4530
|
};
|
|
4531
|
+
const serializeAws_json1_1UpdateTaskProtectionRequest = (input, context) => {
|
|
4532
|
+
return {
|
|
4533
|
+
...(input.cluster != null && { cluster: input.cluster }),
|
|
4534
|
+
...(input.expiresInMinutes != null && { expiresInMinutes: input.expiresInMinutes }),
|
|
4535
|
+
...(input.protectionEnabled != null && { protectionEnabled: input.protectionEnabled }),
|
|
4536
|
+
...(input.tasks != null && { tasks: serializeAws_json1_1StringList(input.tasks, context) }),
|
|
4537
|
+
};
|
|
4538
|
+
};
|
|
4405
4539
|
const serializeAws_json1_1UpdateTaskSetRequest = (input, context) => {
|
|
4406
4540
|
return {
|
|
4407
4541
|
...(input.cluster != null && { cluster: input.cluster }),
|
|
@@ -5218,6 +5352,12 @@ const deserializeAws_json1_1FSxWindowsFileServerVolumeConfiguration = (output, c
|
|
|
5218
5352
|
rootDirectory: __expectString(output.rootDirectory),
|
|
5219
5353
|
};
|
|
5220
5354
|
};
|
|
5355
|
+
const deserializeAws_json1_1GetTaskProtectionResponse = (output, context) => {
|
|
5356
|
+
return {
|
|
5357
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
5358
|
+
protectedTasks: output.protectedTasks != null ? deserializeAws_json1_1ProtectedTasks(output.protectedTasks, context) : undefined,
|
|
5359
|
+
};
|
|
5360
|
+
};
|
|
5221
5361
|
const deserializeAws_json1_1GpuIds = (output, context) => {
|
|
5222
5362
|
const retVal = (output || [])
|
|
5223
5363
|
.filter((e) => e != null)
|
|
@@ -5608,6 +5748,26 @@ const deserializeAws_json1_1PortMappingList = (output, context) => {
|
|
|
5608
5748
|
});
|
|
5609
5749
|
return retVal;
|
|
5610
5750
|
};
|
|
5751
|
+
const deserializeAws_json1_1ProtectedTask = (output, context) => {
|
|
5752
|
+
return {
|
|
5753
|
+
expirationDate: output.expirationDate != null
|
|
5754
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationDate)))
|
|
5755
|
+
: undefined,
|
|
5756
|
+
protectionEnabled: __expectBoolean(output.protectionEnabled),
|
|
5757
|
+
taskArn: __expectString(output.taskArn),
|
|
5758
|
+
};
|
|
5759
|
+
};
|
|
5760
|
+
const deserializeAws_json1_1ProtectedTasks = (output, context) => {
|
|
5761
|
+
const retVal = (output || [])
|
|
5762
|
+
.filter((e) => e != null)
|
|
5763
|
+
.map((entry) => {
|
|
5764
|
+
if (entry === null) {
|
|
5765
|
+
return null;
|
|
5766
|
+
}
|
|
5767
|
+
return deserializeAws_json1_1ProtectedTask(entry, context);
|
|
5768
|
+
});
|
|
5769
|
+
return retVal;
|
|
5770
|
+
};
|
|
5611
5771
|
const deserializeAws_json1_1ProxyConfiguration = (output, context) => {
|
|
5612
5772
|
return {
|
|
5613
5773
|
containerName: __expectString(output.containerName),
|
|
@@ -6293,6 +6453,12 @@ const deserializeAws_json1_1UpdateServiceResponse = (output, context) => {
|
|
|
6293
6453
|
service: output.service != null ? deserializeAws_json1_1Service(output.service, context) : undefined,
|
|
6294
6454
|
};
|
|
6295
6455
|
};
|
|
6456
|
+
const deserializeAws_json1_1UpdateTaskProtectionResponse = (output, context) => {
|
|
6457
|
+
return {
|
|
6458
|
+
failures: output.failures != null ? deserializeAws_json1_1Failures(output.failures, context) : undefined,
|
|
6459
|
+
protectedTasks: output.protectedTasks != null ? deserializeAws_json1_1ProtectedTasks(output.protectedTasks, context) : undefined,
|
|
6460
|
+
};
|
|
6461
|
+
};
|
|
6296
6462
|
const deserializeAws_json1_1UpdateTaskSetResponse = (output, context) => {
|
|
6297
6463
|
return {
|
|
6298
6464
|
taskSet: output.taskSet != null ? deserializeAws_json1_1TaskSet(output.taskSet, context) : undefined,
|
|
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
|
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
19
|
...config,
|
|
21
20
|
runtime: "browser",
|
|
22
21
|
defaultsMode,
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
22
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
7
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "node",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
2
3
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
4
|
export const getRuntimeConfig = (config) => ({
|
|
4
5
|
apiVersion: "2014-11-13",
|
|
6
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
7
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
5
8
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
9
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
7
10
|
logger: config?.logger ?? {},
|
package/dist-types/ECS.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { DescribeTasksCommandInput, DescribeTasksCommandOutput } from "./command
|
|
|
20
20
|
import { DescribeTaskSetsCommandInput, DescribeTaskSetsCommandOutput } from "./commands/DescribeTaskSetsCommand";
|
|
21
21
|
import { DiscoverPollEndpointCommandInput, DiscoverPollEndpointCommandOutput } from "./commands/DiscoverPollEndpointCommand";
|
|
22
22
|
import { ExecuteCommandCommandInput, ExecuteCommandCommandOutput } from "./commands/ExecuteCommandCommand";
|
|
23
|
+
import { GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput } from "./commands/GetTaskProtectionCommand";
|
|
23
24
|
import { ListAccountSettingsCommandInput, ListAccountSettingsCommandOutput } from "./commands/ListAccountSettingsCommand";
|
|
24
25
|
import { ListAttributesCommandInput, ListAttributesCommandOutput } from "./commands/ListAttributesCommand";
|
|
25
26
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
@@ -50,6 +51,7 @@ import { UpdateContainerAgentCommandInput, UpdateContainerAgentCommandOutput } f
|
|
|
50
51
|
import { UpdateContainerInstancesStateCommandInput, UpdateContainerInstancesStateCommandOutput } from "./commands/UpdateContainerInstancesStateCommand";
|
|
51
52
|
import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
|
|
52
53
|
import { UpdateServicePrimaryTaskSetCommandInput, UpdateServicePrimaryTaskSetCommandOutput } from "./commands/UpdateServicePrimaryTaskSetCommand";
|
|
54
|
+
import { UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput } from "./commands/UpdateTaskProtectionCommand";
|
|
53
55
|
import { UpdateTaskSetCommandInput, UpdateTaskSetCommandOutput } from "./commands/UpdateTaskSetCommand";
|
|
54
56
|
import { ECSClient } from "./ECSClient";
|
|
55
57
|
/**
|
|
@@ -175,8 +177,9 @@ export declare class ECS extends ECSClient {
|
|
|
175
177
|
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
|
|
176
178
|
* can specify only parameters that aren't controlled at the task set level. The only
|
|
177
179
|
* 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>
|
|
178
|
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
179
|
-
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
|
|
180
|
+
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
181
|
+
* information about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
|
|
182
|
+
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
180
183
|
*/
|
|
181
184
|
createService(args: CreateServiceCommandInput, options?: __HttpHandlerOptions): Promise<CreateServiceCommandOutput>;
|
|
182
185
|
createService(args: CreateServiceCommandInput, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
@@ -379,6 +382,12 @@ export declare class ECS extends ECSClient {
|
|
|
379
382
|
executeCommand(args: ExecuteCommandCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteCommandCommandOutput>;
|
|
380
383
|
executeCommand(args: ExecuteCommandCommandInput, cb: (err: any, data?: ExecuteCommandCommandOutput) => void): void;
|
|
381
384
|
executeCommand(args: ExecuteCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteCommandCommandOutput) => void): void;
|
|
385
|
+
/**
|
|
386
|
+
* <p>Retrieves the protection status of tasks in an Amazon ECS service.</p>
|
|
387
|
+
*/
|
|
388
|
+
getTaskProtection(args: GetTaskProtectionCommandInput, options?: __HttpHandlerOptions): Promise<GetTaskProtectionCommandOutput>;
|
|
389
|
+
getTaskProtection(args: GetTaskProtectionCommandInput, cb: (err: any, data?: GetTaskProtectionCommandOutput) => void): void;
|
|
390
|
+
getTaskProtection(args: GetTaskProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTaskProtectionCommandOutput) => void): void;
|
|
382
391
|
/**
|
|
383
392
|
* <p>Lists the account settings for a specified principal.</p>
|
|
384
393
|
*/
|
|
@@ -891,6 +900,37 @@ export declare class ECS extends ECSClient {
|
|
|
891
900
|
updateServicePrimaryTaskSet(args: UpdateServicePrimaryTaskSetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateServicePrimaryTaskSetCommandOutput>;
|
|
892
901
|
updateServicePrimaryTaskSet(args: UpdateServicePrimaryTaskSetCommandInput, cb: (err: any, data?: UpdateServicePrimaryTaskSetCommandOutput) => void): void;
|
|
893
902
|
updateServicePrimaryTaskSet(args: UpdateServicePrimaryTaskSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServicePrimaryTaskSetCommandOutput) => void): void;
|
|
903
|
+
/**
|
|
904
|
+
* <p>Updates the protection status of a task. You can set <code>protectionEnabled</code> to
|
|
905
|
+
* <code>true</code> to protect your task from termination during scale-in events from
|
|
906
|
+
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html">Service
|
|
907
|
+
* Autoscaling</a> or <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">deployments</a>.</p>
|
|
908
|
+
* <p>Task-protection, by default, expires after 2 hours at which point Amazon ECS unsets the
|
|
909
|
+
* <code>protectionEnabled</code> property making the task eligible for termination by
|
|
910
|
+
* a subsequent scale-in event.</p>
|
|
911
|
+
* <p>You can specify a custom expiration period for task protection from 1 minute to up to
|
|
912
|
+
* 2,880 minutes (48 hours). To specify the custom expiration period, set the
|
|
913
|
+
* <code>expiresInMinutes</code> property. The <code>expiresInMinutes</code> property
|
|
914
|
+
* is always reset when you invoke this operation for a task that already has
|
|
915
|
+
* <code>protectionEnabled</code> set to <code>true</code>. You can keep extending the
|
|
916
|
+
* protection expiration period of a task by invoking this operation repeatedly.</p>
|
|
917
|
+
* <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
|
|
918
|
+
* protection</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
919
|
+
* <note>
|
|
920
|
+
* <p>This operation is only supported for tasks belonging to an Amazon ECS service. Invoking
|
|
921
|
+
* this operation for a standalone task will result in an <code>TASK_NOT_VALID</code>
|
|
922
|
+
* failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html.html">API
|
|
923
|
+
* failure reasons</a>.</p>
|
|
924
|
+
* </note>
|
|
925
|
+
* <important>
|
|
926
|
+
* <p>If you prefer to set task protection from within the container, we recommend using
|
|
927
|
+
* the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-endpoint.html">Amazon ECS container
|
|
928
|
+
* agent endpoint</a>.</p>
|
|
929
|
+
* </important>
|
|
930
|
+
*/
|
|
931
|
+
updateTaskProtection(args: UpdateTaskProtectionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskProtectionCommandOutput>;
|
|
932
|
+
updateTaskProtection(args: UpdateTaskProtectionCommandInput, cb: (err: any, data?: UpdateTaskProtectionCommandOutput) => void): void;
|
|
933
|
+
updateTaskProtection(args: UpdateTaskProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTaskProtectionCommandOutput) => void): void;
|
|
894
934
|
/**
|
|
895
935
|
* <p>Modifies a task set. This is used when a service uses the <code>EXTERNAL</code>
|
|
896
936
|
* deployment controller type. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS Deployment
|
|
@@ -28,6 +28,7 @@ import { DescribeTasksCommandInput, DescribeTasksCommandOutput } from "./command
|
|
|
28
28
|
import { DescribeTaskSetsCommandInput, DescribeTaskSetsCommandOutput } from "./commands/DescribeTaskSetsCommand";
|
|
29
29
|
import { DiscoverPollEndpointCommandInput, DiscoverPollEndpointCommandOutput } from "./commands/DiscoverPollEndpointCommand";
|
|
30
30
|
import { ExecuteCommandCommandInput, ExecuteCommandCommandOutput } from "./commands/ExecuteCommandCommand";
|
|
31
|
+
import { GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput } from "./commands/GetTaskProtectionCommand";
|
|
31
32
|
import { ListAccountSettingsCommandInput, ListAccountSettingsCommandOutput } from "./commands/ListAccountSettingsCommand";
|
|
32
33
|
import { ListAttributesCommandInput, ListAttributesCommandOutput } from "./commands/ListAttributesCommand";
|
|
33
34
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
@@ -58,10 +59,11 @@ import { UpdateContainerAgentCommandInput, UpdateContainerAgentCommandOutput } f
|
|
|
58
59
|
import { UpdateContainerInstancesStateCommandInput, UpdateContainerInstancesStateCommandOutput } from "./commands/UpdateContainerInstancesStateCommand";
|
|
59
60
|
import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
|
|
60
61
|
import { UpdateServicePrimaryTaskSetCommandInput, UpdateServicePrimaryTaskSetCommandOutput } from "./commands/UpdateServicePrimaryTaskSetCommand";
|
|
62
|
+
import { UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput } from "./commands/UpdateTaskProtectionCommand";
|
|
61
63
|
import { UpdateTaskSetCommandInput, UpdateTaskSetCommandOutput } from "./commands/UpdateTaskSetCommand";
|
|
62
64
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
63
|
-
export declare type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | ListTaskDefinitionFamiliesCommandInput | ListTaskDefinitionsCommandInput | ListTasksCommandInput | PutAccountSettingCommandInput | PutAccountSettingDefaultCommandInput | PutAttributesCommandInput | PutClusterCapacityProvidersCommandInput | RegisterContainerInstanceCommandInput | RegisterTaskDefinitionCommandInput | RunTaskCommandInput | StartTaskCommandInput | StopTaskCommandInput | SubmitAttachmentStateChangesCommandInput | SubmitContainerStateChangeCommandInput | SubmitTaskStateChangeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCapacityProviderCommandInput | UpdateClusterCommandInput | UpdateClusterSettingsCommandInput | UpdateContainerAgentCommandInput | UpdateContainerInstancesStateCommandInput | UpdateServiceCommandInput | UpdateServicePrimaryTaskSetCommandInput | UpdateTaskSetCommandInput;
|
|
64
|
-
export declare type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | ListTaskDefinitionFamiliesCommandOutput | ListTaskDefinitionsCommandOutput | ListTasksCommandOutput | PutAccountSettingCommandOutput | PutAccountSettingDefaultCommandOutput | PutAttributesCommandOutput | PutClusterCapacityProvidersCommandOutput | RegisterContainerInstanceCommandOutput | RegisterTaskDefinitionCommandOutput | RunTaskCommandOutput | StartTaskCommandOutput | StopTaskCommandOutput | SubmitAttachmentStateChangesCommandOutput | SubmitContainerStateChangeCommandOutput | SubmitTaskStateChangeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCapacityProviderCommandOutput | UpdateClusterCommandOutput | UpdateClusterSettingsCommandOutput | UpdateContainerAgentCommandOutput | UpdateContainerInstancesStateCommandOutput | UpdateServiceCommandOutput | UpdateServicePrimaryTaskSetCommandOutput | UpdateTaskSetCommandOutput;
|
|
65
|
+
export declare type ServiceInputTypes = CreateCapacityProviderCommandInput | CreateClusterCommandInput | CreateServiceCommandInput | CreateTaskSetCommandInput | DeleteAccountSettingCommandInput | DeleteAttributesCommandInput | DeleteCapacityProviderCommandInput | DeleteClusterCommandInput | DeleteServiceCommandInput | DeleteTaskSetCommandInput | DeregisterContainerInstanceCommandInput | DeregisterTaskDefinitionCommandInput | DescribeCapacityProvidersCommandInput | DescribeClustersCommandInput | DescribeContainerInstancesCommandInput | DescribeServicesCommandInput | DescribeTaskDefinitionCommandInput | DescribeTaskSetsCommandInput | DescribeTasksCommandInput | DiscoverPollEndpointCommandInput | ExecuteCommandCommandInput | GetTaskProtectionCommandInput | ListAccountSettingsCommandInput | ListAttributesCommandInput | ListClustersCommandInput | ListContainerInstancesCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | ListTaskDefinitionFamiliesCommandInput | ListTaskDefinitionsCommandInput | ListTasksCommandInput | PutAccountSettingCommandInput | PutAccountSettingDefaultCommandInput | PutAttributesCommandInput | PutClusterCapacityProvidersCommandInput | RegisterContainerInstanceCommandInput | RegisterTaskDefinitionCommandInput | RunTaskCommandInput | StartTaskCommandInput | StopTaskCommandInput | SubmitAttachmentStateChangesCommandInput | SubmitContainerStateChangeCommandInput | SubmitTaskStateChangeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCapacityProviderCommandInput | UpdateClusterCommandInput | UpdateClusterSettingsCommandInput | UpdateContainerAgentCommandInput | UpdateContainerInstancesStateCommandInput | UpdateServiceCommandInput | UpdateServicePrimaryTaskSetCommandInput | UpdateTaskProtectionCommandInput | UpdateTaskSetCommandInput;
|
|
66
|
+
export declare type ServiceOutputTypes = CreateCapacityProviderCommandOutput | CreateClusterCommandOutput | CreateServiceCommandOutput | CreateTaskSetCommandOutput | DeleteAccountSettingCommandOutput | DeleteAttributesCommandOutput | DeleteCapacityProviderCommandOutput | DeleteClusterCommandOutput | DeleteServiceCommandOutput | DeleteTaskSetCommandOutput | DeregisterContainerInstanceCommandOutput | DeregisterTaskDefinitionCommandOutput | DescribeCapacityProvidersCommandOutput | DescribeClustersCommandOutput | DescribeContainerInstancesCommandOutput | DescribeServicesCommandOutput | DescribeTaskDefinitionCommandOutput | DescribeTaskSetsCommandOutput | DescribeTasksCommandOutput | DiscoverPollEndpointCommandOutput | ExecuteCommandCommandOutput | GetTaskProtectionCommandOutput | ListAccountSettingsCommandOutput | ListAttributesCommandOutput | ListClustersCommandOutput | ListContainerInstancesCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | ListTaskDefinitionFamiliesCommandOutput | ListTaskDefinitionsCommandOutput | ListTasksCommandOutput | PutAccountSettingCommandOutput | PutAccountSettingDefaultCommandOutput | PutAttributesCommandOutput | PutClusterCapacityProvidersCommandOutput | RegisterContainerInstanceCommandOutput | RegisterTaskDefinitionCommandOutput | RunTaskCommandOutput | StartTaskCommandOutput | StopTaskCommandOutput | SubmitAttachmentStateChangesCommandOutput | SubmitContainerStateChangeCommandOutput | SubmitTaskStateChangeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCapacityProviderCommandOutput | UpdateClusterCommandOutput | UpdateClusterSettingsCommandOutput | UpdateContainerAgentCommandOutput | UpdateContainerInstancesStateCommandOutput | UpdateServiceCommandOutput | UpdateServicePrimaryTaskSetCommandOutput | UpdateTaskProtectionCommandOutput | UpdateTaskSetCommandOutput;
|
|
65
67
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
66
68
|
/**
|
|
67
69
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -85,8 +85,9 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
|
|
|
85
85
|
* <p>When creating a service that uses the <code>EXTERNAL</code> deployment controller, you
|
|
86
86
|
* can specify only parameters that aren't controlled at the task set level. The only
|
|
87
87
|
* 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>
|
|
88
|
-
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
89
|
-
* about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
|
|
88
|
+
* <p>When the service scheduler launches new tasks, it determines task placement. For
|
|
89
|
+
* information about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
|
|
90
|
+
* task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
90
91
|
* @example
|
|
91
92
|
* Use a bare-bones client and the command you need to make an API call.
|
|
92
93
|
* ```javascript
|