@aws-sdk/client-migrationhubstrategy 3.183.0 → 3.186.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 +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MigrationHubStrategy.js +89 -82
  4. package/dist-es/MigrationHubStrategyClient.js +28 -22
  5. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +28 -21
  6. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +28 -21
  7. package/dist-es/commands/GetAssessmentCommand.js +28 -21
  8. package/dist-es/commands/GetImportFileTaskCommand.js +28 -21
  9. package/dist-es/commands/GetPortfolioPreferencesCommand.js +28 -21
  10. package/dist-es/commands/GetPortfolioSummaryCommand.js +28 -21
  11. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +28 -21
  12. package/dist-es/commands/GetServerDetailsCommand.js +28 -21
  13. package/dist-es/commands/GetServerStrategiesCommand.js +28 -21
  14. package/dist-es/commands/ListApplicationComponentsCommand.js +28 -21
  15. package/dist-es/commands/ListCollectorsCommand.js +28 -21
  16. package/dist-es/commands/ListImportFileTaskCommand.js +28 -21
  17. package/dist-es/commands/ListServersCommand.js +28 -21
  18. package/dist-es/commands/PutPortfolioPreferencesCommand.js +28 -21
  19. package/dist-es/commands/StartAssessmentCommand.js +28 -21
  20. package/dist-es/commands/StartImportFileTaskCommand.js +28 -21
  21. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +28 -21
  22. package/dist-es/commands/StopAssessmentCommand.js +28 -21
  23. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +28 -21
  24. package/dist-es/commands/UpdateServerConfigCommand.js +28 -21
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/MigrationHubStrategyServiceException.js +10 -5
  27. package/dist-es/models/models_0.js +184 -338
  28. package/dist-es/pagination/GetServerDetailsPaginator.js +68 -25
  29. package/dist-es/pagination/ListApplicationComponentsPaginator.js +68 -25
  30. package/dist-es/pagination/ListCollectorsPaginator.js +68 -25
  31. package/dist-es/pagination/ListImportFileTaskPaginator.js +68 -25
  32. package/dist-es/pagination/ListServersPaginator.js +68 -25
  33. package/dist-es/protocols/Aws_restJson1.js +2237 -1660
  34. package/dist-es/runtimeConfig.browser.js +12 -26
  35. package/dist-es/runtimeConfig.js +12 -30
  36. package/dist-es/runtimeConfig.native.js +5 -8
  37. package/dist-es/runtimeConfig.shared.js +11 -8
  38. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListServersRequestFilterSensitiveLog, ListServersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListServersCommand, serializeAws_restJson1ListServersCommand, } from "../protocols/Aws_restJson1";
5
- export class ListServersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListServersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: ListServersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListServersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1ListServersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListServersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListServersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListServersCommand;
38
+ }($Command));
39
+ export { ListServersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutPortfolioPreferencesRequestFilterSensitiveLog, PutPortfolioPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutPortfolioPreferencesCommand, serializeAws_restJson1PutPortfolioPreferencesCommand, } from "../protocols/Aws_restJson1";
5
- export class PutPortfolioPreferencesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutPortfolioPreferencesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: PutPortfolioPreferencesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutPortfolioPreferencesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1PutPortfolioPreferencesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutPortfolioPreferencesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutPortfolioPreferencesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutPortfolioPreferencesCommand;
38
+ }($Command));
39
+ export { PutPortfolioPreferencesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartAssessmentRequestFilterSensitiveLog, StartAssessmentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartAssessmentCommand, serializeAws_restJson1StartAssessmentCommand, } from "../protocols/Aws_restJson1";
5
- export class StartAssessmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartAssessmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: StartAssessmentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartAssessmentResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1StartAssessmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartAssessmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartAssessmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartAssessmentCommand;
38
+ }($Command));
39
+ export { StartAssessmentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartImportFileTaskRequestFilterSensitiveLog, StartImportFileTaskResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartImportFileTaskCommand, serializeAws_restJson1StartImportFileTaskCommand, } from "../protocols/Aws_restJson1";
5
- export class StartImportFileTaskCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartImportFileTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: StartImportFileTaskRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartImportFileTaskResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1StartImportFileTaskCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartImportFileTaskCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartImportFileTaskCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartImportFileTaskCommand;
38
+ }($Command));
39
+ export { StartImportFileTaskCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartRecommendationReportGenerationRequestFilterSensitiveLog, StartRecommendationReportGenerationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartRecommendationReportGenerationCommand, serializeAws_restJson1StartRecommendationReportGenerationCommand, } from "../protocols/Aws_restJson1";
5
- export class StartRecommendationReportGenerationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartRecommendationReportGenerationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: StartRecommendationReportGenerationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartRecommendationReportGenerationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1StartRecommendationReportGenerationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartRecommendationReportGenerationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartRecommendationReportGenerationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartRecommendationReportGenerationCommand;
38
+ }($Command));
39
+ export { StartRecommendationReportGenerationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StopAssessmentRequestFilterSensitiveLog, StopAssessmentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StopAssessmentCommand, serializeAws_restJson1StopAssessmentCommand, } from "../protocols/Aws_restJson1";
5
- export class StopAssessmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopAssessmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: StopAssessmentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopAssessmentResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1StopAssessmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopAssessmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StopAssessmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopAssessmentCommand;
38
+ }($Command));
39
+ export { StopAssessmentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateApplicationComponentConfigRequestFilterSensitiveLog, UpdateApplicationComponentConfigResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateApplicationComponentConfigCommand, serializeAws_restJson1UpdateApplicationComponentConfigCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateApplicationComponentConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateApplicationComponentConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateApplicationComponentConfigRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateApplicationComponentConfigResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1UpdateApplicationComponentConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateApplicationComponentConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateApplicationComponentConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateApplicationComponentConfigCommand;
38
+ }($Command));
39
+ export { UpdateApplicationComponentConfigCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateServerConfigRequestFilterSensitiveLog, UpdateServerConfigResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateServerConfigCommand, serializeAws_restJson1UpdateServerConfigCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateServerConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateServerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateServerConfigRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateServerConfigResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1UpdateServerConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateServerConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateServerConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateServerConfigCommand;
38
+ }($Command));
39
+ export { UpdateServerConfigCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "migrationhub-strategy",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "migrationhub-strategy", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class MigrationHubStrategyServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, MigrationHubStrategyServiceException.prototype);
3
+ var MigrationHubStrategyServiceException = (function (_super) {
4
+ __extends(MigrationHubStrategyServiceException, _super);
5
+ function MigrationHubStrategyServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, MigrationHubStrategyServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return MigrationHubStrategyServiceException;
11
+ }(__ServiceException));
12
+ export { MigrationHubStrategyServiceException };