@aws-sdk/client-migrationhubstrategy 3.478.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 (93) 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-es/commands/GetApplicationComponentDetailsCommand.js +18 -41
  25. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +18 -41
  26. package/dist-es/commands/GetAssessmentCommand.js +18 -41
  27. package/dist-es/commands/GetImportFileTaskCommand.js +18 -41
  28. package/dist-es/commands/GetLatestAssessmentIdCommand.js +18 -41
  29. package/dist-es/commands/GetPortfolioPreferencesCommand.js +18 -41
  30. package/dist-es/commands/GetPortfolioSummaryCommand.js +18 -41
  31. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +18 -41
  32. package/dist-es/commands/GetServerDetailsCommand.js +18 -41
  33. package/dist-es/commands/GetServerStrategiesCommand.js +18 -41
  34. package/dist-es/commands/ListAnalyzableServersCommand.js +18 -41
  35. package/dist-es/commands/ListApplicationComponentsCommand.js +18 -41
  36. package/dist-es/commands/ListCollectorsCommand.js +18 -41
  37. package/dist-es/commands/ListImportFileTaskCommand.js +18 -41
  38. package/dist-es/commands/ListServersCommand.js +18 -41
  39. package/dist-es/commands/PutPortfolioPreferencesCommand.js +18 -41
  40. package/dist-es/commands/StartAssessmentCommand.js +18 -41
  41. package/dist-es/commands/StartImportFileTaskCommand.js +18 -41
  42. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +18 -41
  43. package/dist-es/commands/StopAssessmentCommand.js +18 -41
  44. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +18 -41
  45. package/dist-es/commands/UpdateServerConfigCommand.js +18 -41
  46. package/dist-es/endpoint/EndpointParameters.js +6 -0
  47. package/dist-types/commands/GetApplicationComponentDetailsCommand.d.ts +6 -21
  48. package/dist-types/commands/GetApplicationComponentStrategiesCommand.d.ts +6 -21
  49. package/dist-types/commands/GetAssessmentCommand.d.ts +6 -21
  50. package/dist-types/commands/GetImportFileTaskCommand.d.ts +6 -21
  51. package/dist-types/commands/GetLatestAssessmentIdCommand.d.ts +6 -21
  52. package/dist-types/commands/GetPortfolioPreferencesCommand.d.ts +6 -21
  53. package/dist-types/commands/GetPortfolioSummaryCommand.d.ts +6 -21
  54. package/dist-types/commands/GetRecommendationReportDetailsCommand.d.ts +6 -21
  55. package/dist-types/commands/GetServerDetailsCommand.d.ts +6 -21
  56. package/dist-types/commands/GetServerStrategiesCommand.d.ts +6 -21
  57. package/dist-types/commands/ListAnalyzableServersCommand.d.ts +6 -21
  58. package/dist-types/commands/ListApplicationComponentsCommand.d.ts +6 -21
  59. package/dist-types/commands/ListCollectorsCommand.d.ts +6 -21
  60. package/dist-types/commands/ListImportFileTaskCommand.d.ts +6 -21
  61. package/dist-types/commands/ListServersCommand.d.ts +6 -21
  62. package/dist-types/commands/PutPortfolioPreferencesCommand.d.ts +6 -21
  63. package/dist-types/commands/StartAssessmentCommand.d.ts +6 -21
  64. package/dist-types/commands/StartImportFileTaskCommand.d.ts +6 -21
  65. package/dist-types/commands/StartRecommendationReportGenerationCommand.d.ts +6 -21
  66. package/dist-types/commands/StopAssessmentCommand.d.ts +6 -21
  67. package/dist-types/commands/UpdateApplicationComponentConfigCommand.d.ts +6 -21
  68. package/dist-types/commands/UpdateServerConfigCommand.d.ts +6 -21
  69. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  70. package/dist-types/ts3.4/commands/GetApplicationComponentDetailsCommand.d.ts +12 -24
  71. package/dist-types/ts3.4/commands/GetApplicationComponentStrategiesCommand.d.ts +12 -24
  72. package/dist-types/ts3.4/commands/GetAssessmentCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/commands/GetImportFileTaskCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/GetLatestAssessmentIdCommand.d.ts +12 -24
  75. package/dist-types/ts3.4/commands/GetPortfolioPreferencesCommand.d.ts +12 -24
  76. package/dist-types/ts3.4/commands/GetPortfolioSummaryCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/GetRecommendationReportDetailsCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/GetServerDetailsCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/GetServerStrategiesCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/ListAnalyzableServersCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/ListApplicationComponentsCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/ListCollectorsCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/ListImportFileTaskCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/ListServersCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/PutPortfolioPreferencesCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/StartAssessmentCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/StartImportFileTaskCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/StartRecommendationReportGenerationCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/StopAssessmentCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/UpdateApplicationComponentConfigCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/UpdateServerConfigCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  93. package/package.json +9 -9
@@ -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_ListServersCommand, se_ListServersCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListServersCommand 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, ListServersCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "ListServersCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "ListServers",
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_ListServersCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListServersCommand(output, context);
46
- }
7
+ export class ListServersCommand 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", "ListServers", {})
19
+ .n("MigrationHubStrategyClient", "ListServersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListServersCommand)
22
+ .de(de_ListServersCommand)
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_PutPortfolioPreferencesCommand, se_PutPortfolioPreferencesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class PutPortfolioPreferencesCommand 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, PutPortfolioPreferencesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "PutPortfolioPreferencesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "PutPortfolioPreferences",
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_PutPortfolioPreferencesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutPortfolioPreferencesCommand(output, context);
46
- }
7
+ export class PutPortfolioPreferencesCommand 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", "PutPortfolioPreferences", {})
19
+ .n("MigrationHubStrategyClient", "PutPortfolioPreferencesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutPortfolioPreferencesCommand)
22
+ .de(de_PutPortfolioPreferencesCommand)
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_StartAssessmentCommand, se_StartAssessmentCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartAssessmentCommand 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, StartAssessmentCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "StartAssessmentCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "StartAssessment",
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_StartAssessmentCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartAssessmentCommand(output, context);
46
- }
7
+ export class StartAssessmentCommand 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", "StartAssessment", {})
19
+ .n("MigrationHubStrategyClient", "StartAssessmentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartAssessmentCommand)
22
+ .de(de_StartAssessmentCommand)
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_StartImportFileTaskCommand, se_StartImportFileTaskCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartImportFileTaskCommand 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, StartImportFileTaskCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "StartImportFileTaskCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "StartImportFileTask",
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_StartImportFileTaskCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartImportFileTaskCommand(output, context);
46
- }
7
+ export class StartImportFileTaskCommand 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", "StartImportFileTask", {})
19
+ .n("MigrationHubStrategyClient", "StartImportFileTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartImportFileTaskCommand)
22
+ .de(de_StartImportFileTaskCommand)
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_StartRecommendationReportGenerationCommand, se_StartRecommendationReportGenerationCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartRecommendationReportGenerationCommand 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, StartRecommendationReportGenerationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "StartRecommendationReportGenerationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "StartRecommendationReportGeneration",
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_StartRecommendationReportGenerationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartRecommendationReportGenerationCommand(output, context);
46
- }
7
+ export class StartRecommendationReportGenerationCommand 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", "StartRecommendationReportGeneration", {})
19
+ .n("MigrationHubStrategyClient", "StartRecommendationReportGenerationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartRecommendationReportGenerationCommand)
22
+ .de(de_StartRecommendationReportGenerationCommand)
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_StopAssessmentCommand, se_StopAssessmentCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StopAssessmentCommand 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, StopAssessmentCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "StopAssessmentCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "StopAssessment",
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_StopAssessmentCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopAssessmentCommand(output, context);
46
- }
7
+ export class StopAssessmentCommand 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", "StopAssessment", {})
19
+ .n("MigrationHubStrategyClient", "StopAssessmentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopAssessmentCommand)
22
+ .de(de_StopAssessmentCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
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 { UpdateApplicationComponentConfigRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateApplicationComponentConfigCommand, se_UpdateApplicationComponentConfigCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateApplicationComponentConfigCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateApplicationComponentConfigCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "MigrationHubStrategyClient";
27
- const commandName = "UpdateApplicationComponentConfigCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateApplicationComponentConfigRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSMigrationHubStrategyRecommendation",
36
- operation: "UpdateApplicationComponentConfig",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateApplicationComponentConfigCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateApplicationComponentConfigCommand(output, context);
47
- }
8
+ export class UpdateApplicationComponentConfigCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSMigrationHubStrategyRecommendation", "UpdateApplicationComponentConfig", {})
20
+ .n("MigrationHubStrategyClient", "UpdateApplicationComponentConfigCommand")
21
+ .f(UpdateApplicationComponentConfigRequestFilterSensitiveLog, void 0)
22
+ .ser(se_UpdateApplicationComponentConfigCommand)
23
+ .de(de_UpdateApplicationComponentConfigCommand)
24
+ .build() {
48
25
  }
@@ -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_UpdateServerConfigCommand, se_UpdateServerConfigCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateServerConfigCommand 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, UpdateServerConfigCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "UpdateServerConfigCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "UpdateServerConfig",
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_UpdateServerConfigCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateServerConfigCommand(output, context);
46
- }
7
+ export class UpdateServerConfigCommand 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", "UpdateServerConfig", {})
19
+ .n("MigrationHubStrategyClient", "UpdateServerConfigCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateServerConfigCommand)
22
+ .de(de_UpdateServerConfigCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "migrationhub-strategy",
7
7
  };
8
8
  };
9
+ export const commonParams = {
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
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetApplicationComponentDetailsRequest, GetApplicationComponentDetailsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetApplicationComponentDetailsCommandInput extends GetApplicati
21
20
  */
22
21
  export interface GetApplicationComponentDetailsCommandOutput extends GetApplicationComponentDetailsResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetApplicationComponentDetailsCommand_base: {
24
+ new (input: GetApplicationComponentDetailsCommandInput): import("@smithy/smithy-client").CommandImpl<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves details about an application component. </p>
@@ -145,23 +148,5 @@ export interface GetApplicationComponentDetailsCommandOutput extends GetApplicat
145
148
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
146
149
  *
147
150
  */
148
- export declare class GetApplicationComponentDetailsCommand extends $Command<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput, MigrationHubStrategyClientResolvedConfig> {
149
- readonly input: GetApplicationComponentDetailsCommandInput;
150
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
151
- /**
152
- * @public
153
- */
154
- constructor(input: GetApplicationComponentDetailsCommandInput);
155
- /**
156
- * @internal
157
- */
158
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput>;
159
- /**
160
- * @internal
161
- */
162
- private serialize;
163
- /**
164
- * @internal
165
- */
166
- private deserialize;
151
+ export declare class GetApplicationComponentDetailsCommand extends GetApplicationComponentDetailsCommand_base {
167
152
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetApplicationComponentStrategiesRequest, GetApplicationComponentStrategiesResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetApplicationComponentStrategiesCommandInput extends GetApplic
21
20
  */
22
21
  export interface GetApplicationComponentStrategiesCommandOutput extends GetApplicationComponentStrategiesResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetApplicationComponentStrategiesCommand_base: {
24
+ new (input: GetApplicationComponentStrategiesCommandInput): import("@smithy/smithy-client").CommandImpl<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves a list of all the recommended strategies and tools for an application component
@@ -75,23 +78,5 @@ export interface GetApplicationComponentStrategiesCommandOutput extends GetAppli
75
78
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
76
79
  *
77
80
  */
78
- export declare class GetApplicationComponentStrategiesCommand extends $Command<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput, MigrationHubStrategyClientResolvedConfig> {
79
- readonly input: GetApplicationComponentStrategiesCommandInput;
80
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
81
- /**
82
- * @public
83
- */
84
- constructor(input: GetApplicationComponentStrategiesCommandInput);
85
- /**
86
- * @internal
87
- */
88
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput>;
89
- /**
90
- * @internal
91
- */
92
- private serialize;
93
- /**
94
- * @internal
95
- */
96
- private deserialize;
81
+ export declare class GetApplicationComponentStrategiesCommand extends GetApplicationComponentStrategiesCommand_base {
97
82
  }