@aws-sdk/client-migrationhubstrategy 3.477.0 → 3.481.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 (117) hide show
  1. package/dist-cjs/commands/GetApplicationComponentDetailsCommand.js +18 -41
  2. package/dist-cjs/commands/GetApplicationComponentStrategiesCommand.js +18 -41
  3. package/dist-cjs/commands/GetAssessmentCommand.js +18 -41
  4. package/dist-cjs/commands/GetImportFileTaskCommand.js +18 -41
  5. package/dist-cjs/commands/GetLatestAssessmentIdCommand.js +18 -41
  6. package/dist-cjs/commands/GetPortfolioPreferencesCommand.js +18 -41
  7. package/dist-cjs/commands/GetPortfolioSummaryCommand.js +18 -41
  8. package/dist-cjs/commands/GetRecommendationReportDetailsCommand.js +18 -41
  9. package/dist-cjs/commands/GetServerDetailsCommand.js +18 -41
  10. package/dist-cjs/commands/GetServerStrategiesCommand.js +18 -41
  11. package/dist-cjs/commands/ListAnalyzableServersCommand.js +18 -41
  12. package/dist-cjs/commands/ListApplicationComponentsCommand.js +18 -41
  13. package/dist-cjs/commands/ListCollectorsCommand.js +18 -41
  14. package/dist-cjs/commands/ListImportFileTaskCommand.js +18 -41
  15. package/dist-cjs/commands/ListServersCommand.js +18 -41
  16. package/dist-cjs/commands/PutPortfolioPreferencesCommand.js +18 -41
  17. package/dist-cjs/commands/StartAssessmentCommand.js +18 -41
  18. package/dist-cjs/commands/StartImportFileTaskCommand.js +18 -41
  19. package/dist-cjs/commands/StartRecommendationReportGenerationCommand.js +18 -41
  20. package/dist-cjs/commands/StopAssessmentCommand.js +18 -41
  21. package/dist-cjs/commands/UpdateApplicationComponentConfigCommand.js +18 -41
  22. package/dist-cjs/commands/UpdateServerConfigCommand.js +18 -41
  23. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  24. package/dist-cjs/pagination/GetServerDetailsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListCollectorsPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListImportFileTaskPaginator.js +2 -24
  29. package/dist-cjs/pagination/ListServersPaginator.js +2 -24
  30. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +18 -41
  31. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +18 -41
  32. package/dist-es/commands/GetAssessmentCommand.js +18 -41
  33. package/dist-es/commands/GetImportFileTaskCommand.js +18 -41
  34. package/dist-es/commands/GetLatestAssessmentIdCommand.js +18 -41
  35. package/dist-es/commands/GetPortfolioPreferencesCommand.js +18 -41
  36. package/dist-es/commands/GetPortfolioSummaryCommand.js +18 -41
  37. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +18 -41
  38. package/dist-es/commands/GetServerDetailsCommand.js +18 -41
  39. package/dist-es/commands/GetServerStrategiesCommand.js +18 -41
  40. package/dist-es/commands/ListAnalyzableServersCommand.js +18 -41
  41. package/dist-es/commands/ListApplicationComponentsCommand.js +18 -41
  42. package/dist-es/commands/ListCollectorsCommand.js +18 -41
  43. package/dist-es/commands/ListImportFileTaskCommand.js +18 -41
  44. package/dist-es/commands/ListServersCommand.js +18 -41
  45. package/dist-es/commands/PutPortfolioPreferencesCommand.js +18 -41
  46. package/dist-es/commands/StartAssessmentCommand.js +18 -41
  47. package/dist-es/commands/StartImportFileTaskCommand.js +18 -41
  48. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +18 -41
  49. package/dist-es/commands/StopAssessmentCommand.js +18 -41
  50. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +18 -41
  51. package/dist-es/commands/UpdateServerConfigCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-es/pagination/GetServerDetailsPaginator.js +2 -23
  54. package/dist-es/pagination/ListAnalyzableServersPaginator.js +2 -23
  55. package/dist-es/pagination/ListApplicationComponentsPaginator.js +2 -23
  56. package/dist-es/pagination/ListCollectorsPaginator.js +2 -23
  57. package/dist-es/pagination/ListImportFileTaskPaginator.js +2 -23
  58. package/dist-es/pagination/ListServersPaginator.js +2 -23
  59. package/dist-types/commands/GetApplicationComponentDetailsCommand.d.ts +6 -21
  60. package/dist-types/commands/GetApplicationComponentStrategiesCommand.d.ts +6 -21
  61. package/dist-types/commands/GetAssessmentCommand.d.ts +6 -21
  62. package/dist-types/commands/GetImportFileTaskCommand.d.ts +6 -21
  63. package/dist-types/commands/GetLatestAssessmentIdCommand.d.ts +6 -21
  64. package/dist-types/commands/GetPortfolioPreferencesCommand.d.ts +6 -21
  65. package/dist-types/commands/GetPortfolioSummaryCommand.d.ts +6 -21
  66. package/dist-types/commands/GetRecommendationReportDetailsCommand.d.ts +6 -21
  67. package/dist-types/commands/GetServerDetailsCommand.d.ts +6 -21
  68. package/dist-types/commands/GetServerStrategiesCommand.d.ts +6 -21
  69. package/dist-types/commands/ListAnalyzableServersCommand.d.ts +6 -21
  70. package/dist-types/commands/ListApplicationComponentsCommand.d.ts +6 -21
  71. package/dist-types/commands/ListCollectorsCommand.d.ts +6 -21
  72. package/dist-types/commands/ListImportFileTaskCommand.d.ts +6 -21
  73. package/dist-types/commands/ListServersCommand.d.ts +6 -21
  74. package/dist-types/commands/PutPortfolioPreferencesCommand.d.ts +6 -21
  75. package/dist-types/commands/StartAssessmentCommand.d.ts +6 -21
  76. package/dist-types/commands/StartImportFileTaskCommand.d.ts +6 -21
  77. package/dist-types/commands/StartRecommendationReportGenerationCommand.d.ts +6 -21
  78. package/dist-types/commands/StopAssessmentCommand.d.ts +6 -21
  79. package/dist-types/commands/UpdateApplicationComponentConfigCommand.d.ts +6 -21
  80. package/dist-types/commands/UpdateServerConfigCommand.d.ts +6 -21
  81. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  82. package/dist-types/pagination/GetServerDetailsPaginator.d.ts +1 -1
  83. package/dist-types/pagination/ListAnalyzableServersPaginator.d.ts +1 -1
  84. package/dist-types/pagination/ListApplicationComponentsPaginator.d.ts +1 -1
  85. package/dist-types/pagination/ListCollectorsPaginator.d.ts +1 -1
  86. package/dist-types/pagination/ListImportFileTaskPaginator.d.ts +1 -1
  87. package/dist-types/pagination/ListServersPaginator.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/GetApplicationComponentDetailsCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/GetApplicationComponentStrategiesCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/GetAssessmentCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/GetImportFileTaskCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetLatestAssessmentIdCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/GetPortfolioPreferencesCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/GetPortfolioSummaryCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/GetRecommendationReportDetailsCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/GetServerDetailsCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/GetServerStrategiesCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/ListAnalyzableServersCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/ListApplicationComponentsCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/ListCollectorsCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/ListImportFileTaskCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/ListServersCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/PutPortfolioPreferencesCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/StartAssessmentCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/StartImportFileTaskCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/StartRecommendationReportGenerationCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/StopAssessmentCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/UpdateApplicationComponentConfigCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/UpdateServerConfigCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  111. package/dist-types/ts3.4/pagination/GetServerDetailsPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/ListAnalyzableServersPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/ListApplicationComponentsPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/ListCollectorsPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/ListImportFileTaskPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +3 -3
  117. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class StartRecommendationReportGenerationCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartRecommendationReportGenerationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MigrationHubStrategyClient";
29
- const commandName = "StartRecommendationReportGenerationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSMigrationHubStrategyRecommendation",
38
- operation: "StartRecommendationReportGeneration",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_StartRecommendationReportGenerationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_StartRecommendationReportGenerationCommand)(output, context);
49
- }
10
+ class StartRecommendationReportGenerationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSMigrationHubStrategyRecommendation", "StartRecommendationReportGeneration", {})
22
+ .n("MigrationHubStrategyClient", "StartRecommendationReportGenerationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_StartRecommendationReportGenerationCommand)
25
+ .de(Aws_restJson1_1.de_StartRecommendationReportGenerationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StartRecommendationReportGenerationCommand = StartRecommendationReportGenerationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class StopAssessmentCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopAssessmentCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MigrationHubStrategyClient";
29
- const commandName = "StopAssessmentCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSMigrationHubStrategyRecommendation",
38
- operation: "StopAssessment",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_StopAssessmentCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_StopAssessmentCommand)(output, context);
49
- }
10
+ class StopAssessmentCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSMigrationHubStrategyRecommendation", "StopAssessment", {})
22
+ .n("MigrationHubStrategyClient", "StopAssessmentCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_StopAssessmentCommand)
25
+ .de(Aws_restJson1_1.de_StopAssessmentCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StopAssessmentCommand = StopAssessmentCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class UpdateApplicationComponentConfigCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateApplicationComponentConfigCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "MigrationHubStrategyClient";
30
- const commandName = "UpdateApplicationComponentConfigCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.UpdateApplicationComponentConfigRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AWSMigrationHubStrategyRecommendation",
39
- operation: "UpdateApplicationComponentConfig",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_UpdateApplicationComponentConfigCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_UpdateApplicationComponentConfigCommand)(output, context);
50
- }
11
+ class UpdateApplicationComponentConfigCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("AWSMigrationHubStrategyRecommendation", "UpdateApplicationComponentConfig", {})
23
+ .n("MigrationHubStrategyClient", "UpdateApplicationComponentConfigCommand")
24
+ .f(models_0_1.UpdateApplicationComponentConfigRequestFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_UpdateApplicationComponentConfigCommand)
26
+ .de(Aws_restJson1_1.de_UpdateApplicationComponentConfigCommand)
27
+ .build() {
51
28
  }
52
29
  exports.UpdateApplicationComponentConfigCommand = UpdateApplicationComponentConfigCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateServerConfigCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServerConfigCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MigrationHubStrategyClient";
29
- const commandName = "UpdateServerConfigCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSMigrationHubStrategyRecommendation",
38
- operation: "UpdateServerConfig",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateServerConfigCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateServerConfigCommand)(output, context);
49
- }
10
+ class UpdateServerConfigCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSMigrationHubStrategyRecommendation", "UpdateServerConfig", {})
22
+ .n("MigrationHubStrategyClient", "UpdateServerConfigCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateServerConfigCommand)
25
+ .de(Aws_restJson1_1.de_UpdateServerConfigCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateServerConfigCommand = UpdateServerConfigCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetServerDetails = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetServerDetailsCommand_1 = require("../commands/GetServerDetailsCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetServerDetailsCommand_1.GetServerDetailsCommand(input), ...args);
8
- };
9
- async function* paginateGetServerDetails(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetServerDetails = paginateGetServerDetails;
7
+ exports.paginateGetServerDetails = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, GetServerDetailsCommand_1.GetServerDetailsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAnalyzableServers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAnalyzableServersCommand_1 = require("../commands/ListAnalyzableServersCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAnalyzableServersCommand_1.ListAnalyzableServersCommand(input), ...args);
8
- };
9
- async function* paginateListAnalyzableServers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAnalyzableServers = paginateListAnalyzableServers;
7
+ exports.paginateListAnalyzableServers = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, ListAnalyzableServersCommand_1.ListAnalyzableServersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListApplicationComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListApplicationComponentsCommand_1 = require("../commands/ListApplicationComponentsCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListApplicationComponentsCommand_1.ListApplicationComponentsCommand(input), ...args);
8
- };
9
- async function* paginateListApplicationComponents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListApplicationComponents = paginateListApplicationComponents;
7
+ exports.paginateListApplicationComponents = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, ListApplicationComponentsCommand_1.ListApplicationComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCollectors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCollectorsCommand_1 = require("../commands/ListCollectorsCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCollectorsCommand_1.ListCollectorsCommand(input), ...args);
8
- };
9
- async function* paginateListCollectors(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCollectors = paginateListCollectors;
7
+ exports.paginateListCollectors = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, ListCollectorsCommand_1.ListCollectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImportFileTask = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListImportFileTaskCommand_1 = require("../commands/ListImportFileTaskCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListImportFileTaskCommand_1.ListImportFileTaskCommand(input), ...args);
8
- };
9
- async function* paginateListImportFileTask(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListImportFileTask = paginateListImportFileTask;
7
+ exports.paginateListImportFileTask = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, ListImportFileTaskCommand_1.ListImportFileTaskCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListServersCommand_1 = require("../commands/ListServersCommand");
5
6
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListServersCommand_1.ListServersCommand(input), ...args);
8
- };
9
- async function* paginateListServers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListServers = paginateListServers;
7
+ exports.paginateListServers = (0, core_1.createPaginator)(MigrationHubStrategyClient_1.MigrationHubStrategyClient, ListServersCommand_1.ListServersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetApplicationComponentDetailsCommand, se_GetApplicationComponentDetailsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetApplicationComponentDetailsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetApplicationComponentDetailsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "GetApplicationComponentDetailsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "GetApplicationComponentDetails",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetApplicationComponentDetailsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetApplicationComponentDetailsCommand(output, context);
46
- }
7
+ export class GetApplicationComponentDetailsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubStrategyRecommendation", "GetApplicationComponentDetails", {})
19
+ .n("MigrationHubStrategyClient", "GetApplicationComponentDetailsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetApplicationComponentDetailsCommand)
22
+ .de(de_GetApplicationComponentDetailsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetApplicationComponentStrategiesCommand, se_GetApplicationComponentStrategiesCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetApplicationComponentStrategiesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetApplicationComponentStrategiesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "GetApplicationComponentStrategiesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "GetApplicationComponentStrategies",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetApplicationComponentStrategiesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetApplicationComponentStrategiesCommand(output, context);
46
- }
7
+ export class GetApplicationComponentStrategiesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubStrategyRecommendation", "GetApplicationComponentStrategies", {})
19
+ .n("MigrationHubStrategyClient", "GetApplicationComponentStrategiesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetApplicationComponentStrategiesCommand)
22
+ .de(de_GetApplicationComponentStrategiesCommand)
23
+ .build() {
47
24
  }