@aws-sdk/client-migrationhubstrategy 3.185.0 → 3.188.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 (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/MigrationHubStrategy.js +82 -89
  3. package/dist-es/MigrationHubStrategyClient.js +22 -28
  4. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +21 -28
  5. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +21 -28
  6. package/dist-es/commands/GetAssessmentCommand.js +21 -28
  7. package/dist-es/commands/GetImportFileTaskCommand.js +21 -28
  8. package/dist-es/commands/GetPortfolioPreferencesCommand.js +21 -28
  9. package/dist-es/commands/GetPortfolioSummaryCommand.js +21 -28
  10. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +21 -28
  11. package/dist-es/commands/GetServerDetailsCommand.js +21 -28
  12. package/dist-es/commands/GetServerStrategiesCommand.js +21 -28
  13. package/dist-es/commands/ListApplicationComponentsCommand.js +21 -28
  14. package/dist-es/commands/ListCollectorsCommand.js +21 -28
  15. package/dist-es/commands/ListImportFileTaskCommand.js +21 -28
  16. package/dist-es/commands/ListServersCommand.js +21 -28
  17. package/dist-es/commands/PutPortfolioPreferencesCommand.js +21 -28
  18. package/dist-es/commands/StartAssessmentCommand.js +21 -28
  19. package/dist-es/commands/StartImportFileTaskCommand.js +21 -28
  20. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +21 -28
  21. package/dist-es/commands/StopAssessmentCommand.js +21 -28
  22. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +21 -28
  23. package/dist-es/commands/UpdateServerConfigCommand.js +21 -28
  24. package/dist-es/endpoints.js +8 -8
  25. package/dist-es/models/MigrationHubStrategyServiceException.js +5 -10
  26. package/dist-es/models/models_0.js +338 -184
  27. package/dist-es/pagination/GetServerDetailsPaginator.js +25 -68
  28. package/dist-es/pagination/ListApplicationComponentsPaginator.js +25 -68
  29. package/dist-es/pagination/ListCollectorsPaginator.js +25 -68
  30. package/dist-es/pagination/ListImportFileTaskPaginator.js +25 -68
  31. package/dist-es/pagination/ListServersPaginator.js +25 -68
  32. package/dist-es/protocols/Aws_restJson1.js +1660 -2237
  33. package/dist-es/runtimeConfig.browser.js +26 -12
  34. package/dist-es/runtimeConfig.js +30 -12
  35. package/dist-es/runtimeConfig.native.js +8 -5
  36. package/dist-es/runtimeConfig.shared.js +8 -11
  37. package/package.json +33 -33
@@ -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 { GetAssessmentRequestFilterSensitiveLog, GetAssessmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAssessmentCommand, serializeAws_restJson1GetAssessmentCommand, } from "../protocols/Aws_restJson1";
6
- var GetAssessmentCommand = (function (_super) {
7
- __extends(GetAssessmentCommand, _super);
8
- function GetAssessmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAssessmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAssessmentCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetAssessmentCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetAssessmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAssessmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAssessmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAssessmentCommand.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_restJson1GetAssessmentCommand(input, context);
33
- };
34
- GetAssessmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAssessmentCommand(output, context);
36
- };
37
- return GetAssessmentCommand;
38
- }($Command));
39
- export { GetAssessmentCommand };
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 { GetImportFileTaskRequestFilterSensitiveLog, GetImportFileTaskResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetImportFileTaskCommand, serializeAws_restJson1GetImportFileTaskCommand, } from "../protocols/Aws_restJson1";
6
- var GetImportFileTaskCommand = (function (_super) {
7
- __extends(GetImportFileTaskCommand, _super);
8
- function GetImportFileTaskCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetImportFileTaskCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetImportFileTaskCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetImportFileTaskCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetImportFileTaskCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetImportFileTaskRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetImportFileTaskResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetImportFileTaskCommand.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_restJson1GetImportFileTaskCommand(input, context);
33
- };
34
- GetImportFileTaskCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetImportFileTaskCommand(output, context);
36
- };
37
- return GetImportFileTaskCommand;
38
- }($Command));
39
- export { GetImportFileTaskCommand };
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 { GetPortfolioPreferencesRequestFilterSensitiveLog, GetPortfolioPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetPortfolioPreferencesCommand, serializeAws_restJson1GetPortfolioPreferencesCommand, } from "../protocols/Aws_restJson1";
6
- var GetPortfolioPreferencesCommand = (function (_super) {
7
- __extends(GetPortfolioPreferencesCommand, _super);
8
- function GetPortfolioPreferencesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPortfolioPreferencesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPortfolioPreferencesCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetPortfolioPreferencesCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetPortfolioPreferencesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPortfolioPreferencesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPortfolioPreferencesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPortfolioPreferencesCommand.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_restJson1GetPortfolioPreferencesCommand(input, context);
33
- };
34
- GetPortfolioPreferencesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetPortfolioPreferencesCommand(output, context);
36
- };
37
- return GetPortfolioPreferencesCommand;
38
- }($Command));
39
- export { GetPortfolioPreferencesCommand };
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 { GetPortfolioSummaryRequestFilterSensitiveLog, GetPortfolioSummaryResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetPortfolioSummaryCommand, serializeAws_restJson1GetPortfolioSummaryCommand, } from "../protocols/Aws_restJson1";
6
- var GetPortfolioSummaryCommand = (function (_super) {
7
- __extends(GetPortfolioSummaryCommand, _super);
8
- function GetPortfolioSummaryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPortfolioSummaryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPortfolioSummaryCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetPortfolioSummaryCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetPortfolioSummaryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPortfolioSummaryRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPortfolioSummaryResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPortfolioSummaryCommand.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_restJson1GetPortfolioSummaryCommand(input, context);
33
- };
34
- GetPortfolioSummaryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetPortfolioSummaryCommand(output, context);
36
- };
37
- return GetPortfolioSummaryCommand;
38
- }($Command));
39
- export { GetPortfolioSummaryCommand };
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 { GetRecommendationReportDetailsRequestFilterSensitiveLog, GetRecommendationReportDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRecommendationReportDetailsCommand, serializeAws_restJson1GetRecommendationReportDetailsCommand, } from "../protocols/Aws_restJson1";
6
- var GetRecommendationReportDetailsCommand = (function (_super) {
7
- __extends(GetRecommendationReportDetailsCommand, _super);
8
- function GetRecommendationReportDetailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRecommendationReportDetailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRecommendationReportDetailsCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetRecommendationReportDetailsCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetRecommendationReportDetailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRecommendationReportDetailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRecommendationReportDetailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRecommendationReportDetailsCommand.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_restJson1GetRecommendationReportDetailsCommand(input, context);
33
- };
34
- GetRecommendationReportDetailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRecommendationReportDetailsCommand(output, context);
36
- };
37
- return GetRecommendationReportDetailsCommand;
38
- }($Command));
39
- export { GetRecommendationReportDetailsCommand };
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 { GetServerDetailsRequestFilterSensitiveLog, GetServerDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetServerDetailsCommand, serializeAws_restJson1GetServerDetailsCommand, } from "../protocols/Aws_restJson1";
6
- var GetServerDetailsCommand = (function (_super) {
7
- __extends(GetServerDetailsCommand, _super);
8
- function GetServerDetailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetServerDetailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetServerDetailsCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetServerDetailsCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetServerDetailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetServerDetailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetServerDetailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetServerDetailsCommand.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_restJson1GetServerDetailsCommand(input, context);
33
- };
34
- GetServerDetailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetServerDetailsCommand(output, context);
36
- };
37
- return GetServerDetailsCommand;
38
- }($Command));
39
- export { GetServerDetailsCommand };
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 { GetServerStrategiesRequestFilterSensitiveLog, GetServerStrategiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetServerStrategiesCommand, serializeAws_restJson1GetServerStrategiesCommand, } from "../protocols/Aws_restJson1";
6
- var GetServerStrategiesCommand = (function (_super) {
7
- __extends(GetServerStrategiesCommand, _super);
8
- function GetServerStrategiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetServerStrategiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetServerStrategiesCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "GetServerStrategiesCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "GetServerStrategiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetServerStrategiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetServerStrategiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetServerStrategiesCommand.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_restJson1GetServerStrategiesCommand(input, context);
33
- };
34
- GetServerStrategiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetServerStrategiesCommand(output, context);
36
- };
37
- return GetServerStrategiesCommand;
38
- }($Command));
39
- export { GetServerStrategiesCommand };
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 { ListApplicationComponentsRequestFilterSensitiveLog, ListApplicationComponentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListApplicationComponentsCommand, serializeAws_restJson1ListApplicationComponentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListApplicationComponentsCommand = (function (_super) {
7
- __extends(ListApplicationComponentsCommand, _super);
8
- function ListApplicationComponentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListApplicationComponentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListApplicationComponentsCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "ListApplicationComponentsCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "ListApplicationComponentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListApplicationComponentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListApplicationComponentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListApplicationComponentsCommand.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_restJson1ListApplicationComponentsCommand(input, context);
33
- };
34
- ListApplicationComponentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListApplicationComponentsCommand(output, context);
36
- };
37
- return ListApplicationComponentsCommand;
38
- }($Command));
39
- export { ListApplicationComponentsCommand };
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 { ListCollectorsRequestFilterSensitiveLog, ListCollectorsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListCollectorsCommand, serializeAws_restJson1ListCollectorsCommand, } from "../protocols/Aws_restJson1";
6
- var ListCollectorsCommand = (function (_super) {
7
- __extends(ListCollectorsCommand, _super);
8
- function ListCollectorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListCollectorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListCollectorsCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "ListCollectorsCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "ListCollectorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListCollectorsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListCollectorsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListCollectorsCommand.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_restJson1ListCollectorsCommand(input, context);
33
- };
34
- ListCollectorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListCollectorsCommand(output, context);
36
- };
37
- return ListCollectorsCommand;
38
- }($Command));
39
- export { ListCollectorsCommand };
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 { ListImportFileTaskRequestFilterSensitiveLog, ListImportFileTaskResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListImportFileTaskCommand, serializeAws_restJson1ListImportFileTaskCommand, } from "../protocols/Aws_restJson1";
6
- var ListImportFileTaskCommand = (function (_super) {
7
- __extends(ListImportFileTaskCommand, _super);
8
- function ListImportFileTaskCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListImportFileTaskCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListImportFileTaskCommand.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 = "MigrationHubStrategyClient";
18
- var commandName = "ListImportFileTaskCommand";
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 = "MigrationHubStrategyClient";
15
+ const commandName = "ListImportFileTaskCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListImportFileTaskRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListImportFileTaskResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListImportFileTaskCommand.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_restJson1ListImportFileTaskCommand(input, context);
33
- };
34
- ListImportFileTaskCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListImportFileTaskCommand(output, context);
36
- };
37
- return ListImportFileTaskCommand;
38
- }($Command));
39
- export { ListImportFileTaskCommand };
31
+ }
32
+ }