@aws-sdk/client-ecs 3.204.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.
@@ -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,
@@ -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 information
179
- * about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
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 information
89
- * about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
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
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
5
+ import { GetTaskProtectionRequest, GetTaskProtectionResponse } from "../models/models_0";
6
+ export interface GetTaskProtectionCommandInput extends GetTaskProtectionRequest {
7
+ }
8
+ export interface GetTaskProtectionCommandOutput extends GetTaskProtectionResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Retrieves the protection status of tasks in an Amazon ECS service.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { ECSClient, GetTaskProtectionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
16
+ * // const { ECSClient, GetTaskProtectionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
17
+ * const client = new ECSClient(config);
18
+ * const command = new GetTaskProtectionCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link GetTaskProtectionCommandInput} for command's `input` shape.
23
+ * @see {@link GetTaskProtectionCommandOutput} for command's `response` shape.
24
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class GetTaskProtectionCommand extends $Command<GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput, ECSClientResolvedConfig> {
28
+ readonly input: GetTaskProtectionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetTaskProtectionCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTaskProtectionCommandInput, GetTaskProtectionCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,62 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
5
+ import { UpdateTaskProtectionRequest, UpdateTaskProtectionResponse } from "../models/models_0";
6
+ export interface UpdateTaskProtectionCommandInput extends UpdateTaskProtectionRequest {
7
+ }
8
+ export interface UpdateTaskProtectionCommandOutput extends UpdateTaskProtectionResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Updates the protection status of a task. You can set <code>protectionEnabled</code> to
12
+ * <code>true</code> to protect your task from termination during scale-in events from
13
+ * <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html">Service
14
+ * Autoscaling</a> or <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">deployments</a>.</p>
15
+ * <p>Task-protection, by default, expires after 2 hours at which point Amazon ECS unsets the
16
+ * <code>protectionEnabled</code> property making the task eligible for termination by
17
+ * a subsequent scale-in event.</p>
18
+ * <p>You can specify a custom expiration period for task protection from 1 minute to up to
19
+ * 2,880 minutes (48 hours). To specify the custom expiration period, set the
20
+ * <code>expiresInMinutes</code> property. The <code>expiresInMinutes</code> property
21
+ * is always reset when you invoke this operation for a task that already has
22
+ * <code>protectionEnabled</code> set to <code>true</code>. You can keep extending the
23
+ * protection expiration period of a task by invoking this operation repeatedly.</p>
24
+ * <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
25
+ * protection</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
26
+ * <note>
27
+ * <p>This operation is only supported for tasks belonging to an Amazon ECS service. Invoking
28
+ * this operation for a standalone task will result in an <code>TASK_NOT_VALID</code>
29
+ * failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html.html">API
30
+ * failure reasons</a>.</p>
31
+ * </note>
32
+ * <important>
33
+ * <p>If you prefer to set task protection from within the container, we recommend using
34
+ * the <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-endpoint.html">Amazon ECS container
35
+ * agent endpoint</a>.</p>
36
+ * </important>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { ECSClient, UpdateTaskProtectionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
41
+ * // const { ECSClient, UpdateTaskProtectionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
42
+ * const client = new ECSClient(config);
43
+ * const command = new UpdateTaskProtectionCommand(input);
44
+ * const response = await client.send(command);
45
+ * ```
46
+ *
47
+ * @see {@link UpdateTaskProtectionCommandInput} for command's `input` shape.
48
+ * @see {@link UpdateTaskProtectionCommandOutput} for command's `response` shape.
49
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
50
+ *
51
+ */
52
+ export declare class UpdateTaskProtectionCommand extends $Command<UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput, ECSClientResolvedConfig> {
53
+ readonly input: UpdateTaskProtectionCommandInput;
54
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
55
+ constructor(input: UpdateTaskProtectionCommandInput);
56
+ /**
57
+ * @internal
58
+ */
59
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ECSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateTaskProtectionCommandInput, UpdateTaskProtectionCommandOutput>;
60
+ private serialize;
61
+ private deserialize;
62
+ }
@@ -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";