@aws-sdk/client-migrationhubstrategy 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 (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +26 -20
  3. package/dist-es/MigrationHubStrategy.js +82 -89
  4. package/dist-es/MigrationHubStrategyClient.js +22 -28
  5. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +21 -28
  6. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +21 -28
  7. package/dist-es/commands/GetAssessmentCommand.js +21 -28
  8. package/dist-es/commands/GetImportFileTaskCommand.js +21 -28
  9. package/dist-es/commands/GetPortfolioPreferencesCommand.js +21 -28
  10. package/dist-es/commands/GetPortfolioSummaryCommand.js +21 -28
  11. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +21 -28
  12. package/dist-es/commands/GetServerDetailsCommand.js +21 -28
  13. package/dist-es/commands/GetServerStrategiesCommand.js +21 -28
  14. package/dist-es/commands/ListApplicationComponentsCommand.js +21 -28
  15. package/dist-es/commands/ListCollectorsCommand.js +21 -28
  16. package/dist-es/commands/ListImportFileTaskCommand.js +21 -28
  17. package/dist-es/commands/ListServersCommand.js +21 -28
  18. package/dist-es/commands/PutPortfolioPreferencesCommand.js +21 -28
  19. package/dist-es/commands/StartAssessmentCommand.js +21 -28
  20. package/dist-es/commands/StartImportFileTaskCommand.js +21 -28
  21. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +21 -28
  22. package/dist-es/commands/StopAssessmentCommand.js +21 -28
  23. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +21 -28
  24. package/dist-es/commands/UpdateServerConfigCommand.js +21 -28
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/MigrationHubStrategyServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +338 -184
  28. package/dist-es/pagination/GetServerDetailsPaginator.js +25 -68
  29. package/dist-es/pagination/ListApplicationComponentsPaginator.js +25 -68
  30. package/dist-es/pagination/ListCollectorsPaginator.js +25 -68
  31. package/dist-es/pagination/ListImportFileTaskPaginator.js +25 -68
  32. package/dist-es/pagination/ListServersPaginator.js +25 -68
  33. package/dist-es/protocols/Aws_restJson1.js +1660 -2224
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. 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 { 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
+ }
@@ -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 { ListServersRequestFilterSensitiveLog, ListServersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListServersCommand, serializeAws_restJson1ListServersCommand, } from "../protocols/Aws_restJson1";
6
- var ListServersCommand = (function (_super) {
7
- __extends(ListServersCommand, _super);
8
- function ListServersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListServersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListServersCommand.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 = "ListServersCommand";
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 = "ListServersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListServersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListServersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListServersCommand.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_restJson1ListServersCommand(input, context);
33
- };
34
- ListServersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListServersCommand(output, context);
36
- };
37
- return ListServersCommand;
38
- }($Command));
39
- export { ListServersCommand };
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 { PutPortfolioPreferencesRequestFilterSensitiveLog, PutPortfolioPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PutPortfolioPreferencesCommand, serializeAws_restJson1PutPortfolioPreferencesCommand, } from "../protocols/Aws_restJson1";
6
- var PutPortfolioPreferencesCommand = (function (_super) {
7
- __extends(PutPortfolioPreferencesCommand, _super);
8
- function PutPortfolioPreferencesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutPortfolioPreferencesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutPortfolioPreferencesCommand.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 = "PutPortfolioPreferencesCommand";
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 = "PutPortfolioPreferencesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutPortfolioPreferencesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutPortfolioPreferencesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutPortfolioPreferencesCommand.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_restJson1PutPortfolioPreferencesCommand(input, context);
33
- };
34
- PutPortfolioPreferencesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PutPortfolioPreferencesCommand(output, context);
36
- };
37
- return PutPortfolioPreferencesCommand;
38
- }($Command));
39
- export { PutPortfolioPreferencesCommand };
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 { StartAssessmentRequestFilterSensitiveLog, StartAssessmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartAssessmentCommand, serializeAws_restJson1StartAssessmentCommand, } from "../protocols/Aws_restJson1";
6
- var StartAssessmentCommand = (function (_super) {
7
- __extends(StartAssessmentCommand, _super);
8
- function StartAssessmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartAssessmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartAssessmentCommand.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 = "StartAssessmentCommand";
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 = "StartAssessmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartAssessmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartAssessmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartAssessmentCommand.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_restJson1StartAssessmentCommand(input, context);
33
- };
34
- StartAssessmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartAssessmentCommand(output, context);
36
- };
37
- return StartAssessmentCommand;
38
- }($Command));
39
- export { StartAssessmentCommand };
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 { StartImportFileTaskRequestFilterSensitiveLog, StartImportFileTaskResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartImportFileTaskCommand, serializeAws_restJson1StartImportFileTaskCommand, } from "../protocols/Aws_restJson1";
6
- var StartImportFileTaskCommand = (function (_super) {
7
- __extends(StartImportFileTaskCommand, _super);
8
- function StartImportFileTaskCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartImportFileTaskCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartImportFileTaskCommand.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 = "StartImportFileTaskCommand";
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 = "StartImportFileTaskCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartImportFileTaskRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartImportFileTaskResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartImportFileTaskCommand.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_restJson1StartImportFileTaskCommand(input, context);
33
- };
34
- StartImportFileTaskCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartImportFileTaskCommand(output, context);
36
- };
37
- return StartImportFileTaskCommand;
38
- }($Command));
39
- export { StartImportFileTaskCommand };
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 { StartRecommendationReportGenerationRequestFilterSensitiveLog, StartRecommendationReportGenerationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartRecommendationReportGenerationCommand, serializeAws_restJson1StartRecommendationReportGenerationCommand, } from "../protocols/Aws_restJson1";
6
- var StartRecommendationReportGenerationCommand = (function (_super) {
7
- __extends(StartRecommendationReportGenerationCommand, _super);
8
- function StartRecommendationReportGenerationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartRecommendationReportGenerationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartRecommendationReportGenerationCommand.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 = "StartRecommendationReportGenerationCommand";
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 = "StartRecommendationReportGenerationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartRecommendationReportGenerationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartRecommendationReportGenerationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartRecommendationReportGenerationCommand.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_restJson1StartRecommendationReportGenerationCommand(input, context);
33
- };
34
- StartRecommendationReportGenerationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartRecommendationReportGenerationCommand(output, context);
36
- };
37
- return StartRecommendationReportGenerationCommand;
38
- }($Command));
39
- export { StartRecommendationReportGenerationCommand };
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 { StopAssessmentRequestFilterSensitiveLog, StopAssessmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StopAssessmentCommand, serializeAws_restJson1StopAssessmentCommand, } from "../protocols/Aws_restJson1";
6
- var StopAssessmentCommand = (function (_super) {
7
- __extends(StopAssessmentCommand, _super);
8
- function StopAssessmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopAssessmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopAssessmentCommand.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 = "StopAssessmentCommand";
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 = "StopAssessmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopAssessmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopAssessmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopAssessmentCommand.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_restJson1StopAssessmentCommand(input, context);
33
- };
34
- StopAssessmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StopAssessmentCommand(output, context);
36
- };
37
- return StopAssessmentCommand;
38
- }($Command));
39
- export { StopAssessmentCommand };
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 { UpdateApplicationComponentConfigRequestFilterSensitiveLog, UpdateApplicationComponentConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateApplicationComponentConfigCommand, serializeAws_restJson1UpdateApplicationComponentConfigCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateApplicationComponentConfigCommand = (function (_super) {
7
- __extends(UpdateApplicationComponentConfigCommand, _super);
8
- function UpdateApplicationComponentConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateApplicationComponentConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateApplicationComponentConfigCommand.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 = "UpdateApplicationComponentConfigCommand";
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 = "UpdateApplicationComponentConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateApplicationComponentConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateApplicationComponentConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateApplicationComponentConfigCommand.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_restJson1UpdateApplicationComponentConfigCommand(input, context);
33
- };
34
- UpdateApplicationComponentConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateApplicationComponentConfigCommand(output, context);
36
- };
37
- return UpdateApplicationComponentConfigCommand;
38
- }($Command));
39
- export { UpdateApplicationComponentConfigCommand };
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 { UpdateServerConfigRequestFilterSensitiveLog, UpdateServerConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateServerConfigCommand, serializeAws_restJson1UpdateServerConfigCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateServerConfigCommand = (function (_super) {
7
- __extends(UpdateServerConfigCommand, _super);
8
- function UpdateServerConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateServerConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateServerConfigCommand.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 = "UpdateServerConfigCommand";
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 = "UpdateServerConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateServerConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateServerConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateServerConfigCommand.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_restJson1UpdateServerConfigCommand(input, context);
33
- };
34
- UpdateServerConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateServerConfigCommand(output, context);
36
- };
37
- return UpdateServerConfigCommand;
38
- }($Command));
39
- export { UpdateServerConfigCommand };
31
+ }
32
+ }