@aws-sdk/client-ecs 3.180.0 → 3.183.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +58 -52
  3. package/dist-es/ECS.js +210 -217
  4. package/dist-es/ECSClient.js +22 -28
  5. package/dist-es/commands/CreateCapacityProviderCommand.js +21 -28
  6. package/dist-es/commands/CreateClusterCommand.js +21 -28
  7. package/dist-es/commands/CreateServiceCommand.js +21 -28
  8. package/dist-es/commands/CreateTaskSetCommand.js +21 -28
  9. package/dist-es/commands/DeleteAccountSettingCommand.js +21 -28
  10. package/dist-es/commands/DeleteAttributesCommand.js +21 -28
  11. package/dist-es/commands/DeleteCapacityProviderCommand.js +21 -28
  12. package/dist-es/commands/DeleteClusterCommand.js +21 -28
  13. package/dist-es/commands/DeleteServiceCommand.js +21 -28
  14. package/dist-es/commands/DeleteTaskSetCommand.js +21 -28
  15. package/dist-es/commands/DeregisterContainerInstanceCommand.js +21 -28
  16. package/dist-es/commands/DeregisterTaskDefinitionCommand.js +21 -28
  17. package/dist-es/commands/DescribeCapacityProvidersCommand.js +21 -28
  18. package/dist-es/commands/DescribeClustersCommand.js +21 -28
  19. package/dist-es/commands/DescribeContainerInstancesCommand.js +21 -28
  20. package/dist-es/commands/DescribeServicesCommand.js +21 -28
  21. package/dist-es/commands/DescribeTaskDefinitionCommand.js +21 -28
  22. package/dist-es/commands/DescribeTaskSetsCommand.js +21 -28
  23. package/dist-es/commands/DescribeTasksCommand.js +21 -28
  24. package/dist-es/commands/DiscoverPollEndpointCommand.js +21 -28
  25. package/dist-es/commands/ExecuteCommandCommand.js +21 -28
  26. package/dist-es/commands/ListAccountSettingsCommand.js +21 -28
  27. package/dist-es/commands/ListAttributesCommand.js +21 -28
  28. package/dist-es/commands/ListClustersCommand.js +21 -28
  29. package/dist-es/commands/ListContainerInstancesCommand.js +21 -28
  30. package/dist-es/commands/ListServicesCommand.js +21 -28
  31. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  32. package/dist-es/commands/ListTaskDefinitionFamiliesCommand.js +21 -28
  33. package/dist-es/commands/ListTaskDefinitionsCommand.js +21 -28
  34. package/dist-es/commands/ListTasksCommand.js +21 -28
  35. package/dist-es/commands/PutAccountSettingCommand.js +21 -28
  36. package/dist-es/commands/PutAccountSettingDefaultCommand.js +21 -28
  37. package/dist-es/commands/PutAttributesCommand.js +21 -28
  38. package/dist-es/commands/PutClusterCapacityProvidersCommand.js +21 -28
  39. package/dist-es/commands/RegisterContainerInstanceCommand.js +21 -28
  40. package/dist-es/commands/RegisterTaskDefinitionCommand.js +21 -28
  41. package/dist-es/commands/RunTaskCommand.js +21 -28
  42. package/dist-es/commands/StartTaskCommand.js +21 -28
  43. package/dist-es/commands/StopTaskCommand.js +21 -28
  44. package/dist-es/commands/SubmitAttachmentStateChangesCommand.js +21 -28
  45. package/dist-es/commands/SubmitContainerStateChangeCommand.js +21 -28
  46. package/dist-es/commands/SubmitTaskStateChangeCommand.js +21 -28
  47. package/dist-es/commands/TagResourceCommand.js +21 -28
  48. package/dist-es/commands/UntagResourceCommand.js +21 -28
  49. package/dist-es/commands/UpdateCapacityProviderCommand.js +21 -28
  50. package/dist-es/commands/UpdateClusterCommand.js +21 -28
  51. package/dist-es/commands/UpdateClusterSettingsCommand.js +21 -28
  52. package/dist-es/commands/UpdateContainerAgentCommand.js +21 -28
  53. package/dist-es/commands/UpdateContainerInstancesStateCommand.js +21 -28
  54. package/dist-es/commands/UpdateServiceCommand.js +21 -28
  55. package/dist-es/commands/UpdateServicePrimaryTaskSetCommand.js +21 -28
  56. package/dist-es/commands/UpdateTaskSetCommand.js +21 -28
  57. package/dist-es/endpoints.js +8 -8
  58. package/dist-es/models/ECSServiceException.js +5 -10
  59. package/dist-es/models/models_0.js +818 -449
  60. package/dist-es/pagination/ListAccountSettingsPaginator.js +25 -68
  61. package/dist-es/pagination/ListAttributesPaginator.js +25 -68
  62. package/dist-es/pagination/ListClustersPaginator.js +25 -68
  63. package/dist-es/pagination/ListContainerInstancesPaginator.js +25 -68
  64. package/dist-es/pagination/ListServicesPaginator.js +25 -68
  65. package/dist-es/pagination/ListTaskDefinitionFamiliesPaginator.js +25 -68
  66. package/dist-es/pagination/ListTaskDefinitionsPaginator.js +25 -68
  67. package/dist-es/pagination/ListTasksPaginator.js +25 -68
  68. package/dist-es/protocols/Aws_json1_1.js +4630 -5266
  69. package/dist-es/runtimeConfig.browser.js +26 -12
  70. package/dist-es/runtimeConfig.js +30 -12
  71. package/dist-es/runtimeConfig.native.js +8 -5
  72. package/dist-es/runtimeConfig.shared.js +8 -11
  73. package/dist-es/waiters/waitForServicesInactive.js +47 -88
  74. package/dist-es/waiters/waitForServicesStable.js +72 -123
  75. package/dist-es/waiters/waitForTasksRunning.js +63 -114
  76. package/dist-es/waiters/waitForTasksStopped.js +36 -67
  77. package/package.json +34 -34
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DiscoverPollEndpointRequestFilterSensitiveLog, DiscoverPollEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DiscoverPollEndpointCommand, serializeAws_json1_1DiscoverPollEndpointCommand, } from "../protocols/Aws_json1_1";
6
- var DiscoverPollEndpointCommand = (function (_super) {
7
- __extends(DiscoverPollEndpointCommand, _super);
8
- function DiscoverPollEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DiscoverPollEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DiscoverPollEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "DiscoverPollEndpointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "DiscoverPollEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DiscoverPollEndpointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DiscoverPollEndpointResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DiscoverPollEndpointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DiscoverPollEndpointCommand(input, context);
33
- };
34
- DiscoverPollEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DiscoverPollEndpointCommand(output, context);
36
- };
37
- return DiscoverPollEndpointCommand;
38
- }($Command));
39
- export { DiscoverPollEndpointCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExecuteCommandRequestFilterSensitiveLog, ExecuteCommandResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ExecuteCommandCommand, serializeAws_json1_1ExecuteCommandCommand, } from "../protocols/Aws_json1_1";
6
- var ExecuteCommandCommand = (function (_super) {
7
- __extends(ExecuteCommandCommand, _super);
8
- function ExecuteCommandCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExecuteCommandCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExecuteCommandCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ExecuteCommandCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ExecuteCommandCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExecuteCommandRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExecuteCommandResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExecuteCommandCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ExecuteCommandCommand(input, context);
33
- };
34
- ExecuteCommandCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ExecuteCommandCommand(output, context);
36
- };
37
- return ExecuteCommandCommand;
38
- }($Command));
39
- export { ExecuteCommandCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAccountSettingsRequestFilterSensitiveLog, ListAccountSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAccountSettingsCommand, serializeAws_json1_1ListAccountSettingsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAccountSettingsCommand = (function (_super) {
7
- __extends(ListAccountSettingsCommand, _super);
8
- function ListAccountSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAccountSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAccountSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListAccountSettingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListAccountSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAccountSettingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAccountSettingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAccountSettingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListAccountSettingsCommand(input, context);
33
- };
34
- ListAccountSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAccountSettingsCommand(output, context);
36
- };
37
- return ListAccountSettingsCommand;
38
- }($Command));
39
- export { ListAccountSettingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAttributesRequestFilterSensitiveLog, ListAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAttributesCommand, serializeAws_json1_1ListAttributesCommand, } from "../protocols/Aws_json1_1";
6
- var ListAttributesCommand = (function (_super) {
7
- __extends(ListAttributesCommand, _super);
8
- function ListAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListAttributesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAttributesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAttributesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListAttributesCommand(input, context);
33
- };
34
- ListAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAttributesCommand(output, context);
36
- };
37
- return ListAttributesCommand;
38
- }($Command));
39
- export { ListAttributesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListClustersRequestFilterSensitiveLog, ListClustersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListClustersCommand, serializeAws_json1_1ListClustersCommand, } from "../protocols/Aws_json1_1";
6
- var ListClustersCommand = (function (_super) {
7
- __extends(ListClustersCommand, _super);
8
- function ListClustersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListClustersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListClustersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListClustersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListClustersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListClustersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListClustersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListClustersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListClustersCommand(input, context);
33
- };
34
- ListClustersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListClustersCommand(output, context);
36
- };
37
- return ListClustersCommand;
38
- }($Command));
39
- export { ListClustersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListContainerInstancesRequestFilterSensitiveLog, ListContainerInstancesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListContainerInstancesCommand, serializeAws_json1_1ListContainerInstancesCommand, } from "../protocols/Aws_json1_1";
6
- var ListContainerInstancesCommand = (function (_super) {
7
- __extends(ListContainerInstancesCommand, _super);
8
- function ListContainerInstancesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListContainerInstancesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListContainerInstancesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListContainerInstancesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListContainerInstancesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListContainerInstancesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListContainerInstancesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListContainerInstancesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListContainerInstancesCommand(input, context);
33
- };
34
- ListContainerInstancesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListContainerInstancesCommand(output, context);
36
- };
37
- return ListContainerInstancesCommand;
38
- }($Command));
39
- export { ListContainerInstancesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListServicesRequestFilterSensitiveLog, ListServicesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListServicesCommand, serializeAws_json1_1ListServicesCommand, } from "../protocols/Aws_json1_1";
6
- var ListServicesCommand = (function (_super) {
7
- __extends(ListServicesCommand, _super);
8
- function ListServicesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListServicesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListServicesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListServicesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListServicesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListServicesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListServicesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListServicesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListServicesCommand(input, context);
33
- };
34
- ListServicesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListServicesCommand(output, context);
36
- };
37
- return ListServicesCommand;
38
- }($Command));
39
- export { ListServicesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTaskDefinitionFamiliesRequestFilterSensitiveLog, ListTaskDefinitionFamiliesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTaskDefinitionFamiliesCommand, serializeAws_json1_1ListTaskDefinitionFamiliesCommand, } from "../protocols/Aws_json1_1";
6
- var ListTaskDefinitionFamiliesCommand = (function (_super) {
7
- __extends(ListTaskDefinitionFamiliesCommand, _super);
8
- function ListTaskDefinitionFamiliesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTaskDefinitionFamiliesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTaskDefinitionFamiliesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListTaskDefinitionFamiliesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListTaskDefinitionFamiliesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTaskDefinitionFamiliesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTaskDefinitionFamiliesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTaskDefinitionFamiliesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTaskDefinitionFamiliesCommand(input, context);
33
- };
34
- ListTaskDefinitionFamiliesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTaskDefinitionFamiliesCommand(output, context);
36
- };
37
- return ListTaskDefinitionFamiliesCommand;
38
- }($Command));
39
- export { ListTaskDefinitionFamiliesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTaskDefinitionsRequestFilterSensitiveLog, ListTaskDefinitionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTaskDefinitionsCommand, serializeAws_json1_1ListTaskDefinitionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListTaskDefinitionsCommand = (function (_super) {
7
- __extends(ListTaskDefinitionsCommand, _super);
8
- function ListTaskDefinitionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTaskDefinitionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTaskDefinitionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ECSClient";
18
- var commandName = "ListTaskDefinitionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ECSClient";
15
+ const commandName = "ListTaskDefinitionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTaskDefinitionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTaskDefinitionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTaskDefinitionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTaskDefinitionsCommand(input, context);
33
- };
34
- ListTaskDefinitionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTaskDefinitionsCommand(output, context);
36
- };
37
- return ListTaskDefinitionsCommand;
38
- }($Command));
39
- export { ListTaskDefinitionsCommand };
31
+ }
32
+ }