@aws-sdk/client-compute-optimizer 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/DeleteRecommendationPreferencesCommand.js +18 -41
  2. package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +18 -41
  3. package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +18 -41
  4. package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +18 -41
  5. package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +18 -41
  6. package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +18 -41
  7. package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +18 -41
  8. package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +18 -41
  9. package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +18 -41
  10. package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +18 -41
  11. package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +18 -41
  12. package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +18 -41
  13. package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +18 -41
  14. package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +18 -41
  15. package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +18 -41
  16. package/dist-cjs/commands/GetEnrollmentStatusCommand.js +18 -41
  17. package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +18 -41
  18. package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +18 -41
  19. package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +18 -41
  20. package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +18 -41
  21. package/dist-cjs/commands/GetRecommendationSummariesCommand.js +18 -41
  22. package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +18 -41
  23. package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +18 -41
  24. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  25. package/dist-cjs/pagination/DescribeRecommendationExportJobsPaginator.js +2 -24
  26. package/dist-cjs/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +2 -24
  27. package/dist-cjs/pagination/GetLambdaFunctionRecommendationsPaginator.js +2 -24
  28. package/dist-cjs/pagination/GetRecommendationPreferencesPaginator.js +2 -24
  29. package/dist-cjs/pagination/GetRecommendationSummariesPaginator.js +2 -24
  30. package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +18 -41
  31. package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +18 -41
  32. package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +18 -41
  33. package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +18 -41
  34. package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +18 -41
  35. package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +18 -41
  36. package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +18 -41
  37. package/dist-es/commands/ExportLicenseRecommendationsCommand.js +18 -41
  38. package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +18 -41
  39. package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +18 -41
  40. package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +18 -41
  41. package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +18 -41
  42. package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +18 -41
  43. package/dist-es/commands/GetECSServiceRecommendationsCommand.js +18 -41
  44. package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +18 -41
  45. package/dist-es/commands/GetEnrollmentStatusCommand.js +18 -41
  46. package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +18 -41
  47. package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +18 -41
  48. package/dist-es/commands/GetLicenseRecommendationsCommand.js +18 -41
  49. package/dist-es/commands/GetRecommendationPreferencesCommand.js +18 -41
  50. package/dist-es/commands/GetRecommendationSummariesCommand.js +18 -41
  51. package/dist-es/commands/PutRecommendationPreferencesCommand.js +18 -41
  52. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +18 -41
  53. package/dist-es/endpoint/EndpointParameters.js +6 -0
  54. package/dist-es/pagination/DescribeRecommendationExportJobsPaginator.js +2 -23
  55. package/dist-es/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +2 -23
  56. package/dist-es/pagination/GetLambdaFunctionRecommendationsPaginator.js +2 -23
  57. package/dist-es/pagination/GetRecommendationPreferencesPaginator.js +2 -23
  58. package/dist-es/pagination/GetRecommendationSummariesPaginator.js +2 -23
  59. package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +6 -21
  60. package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +6 -21
  61. package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +6 -21
  62. package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +6 -21
  63. package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +6 -21
  64. package/dist-types/commands/ExportECSServiceRecommendationsCommand.d.ts +6 -21
  65. package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +6 -21
  66. package/dist-types/commands/ExportLicenseRecommendationsCommand.d.ts +6 -21
  67. package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +6 -21
  68. package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +6 -21
  69. package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +6 -21
  70. package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +6 -21
  71. package/dist-types/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +6 -21
  72. package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +6 -21
  73. package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +6 -21
  74. package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +6 -21
  75. package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +6 -21
  76. package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +6 -21
  77. package/dist-types/commands/GetLicenseRecommendationsCommand.d.ts +6 -21
  78. package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +6 -21
  79. package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +6 -21
  80. package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +6 -21
  81. package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +6 -21
  82. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  83. package/dist-types/pagination/DescribeRecommendationExportJobsPaginator.d.ts +1 -1
  84. package/dist-types/pagination/GetEnrollmentStatusesForOrganizationPaginator.d.ts +1 -1
  85. package/dist-types/pagination/GetLambdaFunctionRecommendationsPaginator.d.ts +1 -1
  86. package/dist-types/pagination/GetRecommendationPreferencesPaginator.d.ts +1 -1
  87. package/dist-types/pagination/GetRecommendationSummariesPaginator.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/DescribeRecommendationExportJobsCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/ExportEBSVolumeRecommendationsCommand.d.ts +12 -24
  92. package/dist-types/ts3.4/commands/ExportEC2InstanceRecommendationsCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/ExportECSServiceRecommendationsCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +12 -24
  95. package/dist-types/ts3.4/commands/ExportLicenseRecommendationsCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +12 -24
  97. package/dist-types/ts3.4/commands/GetEBSVolumeRecommendationsCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/GetEC2InstanceRecommendationsCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +12 -24
  101. package/dist-types/ts3.4/commands/GetECSServiceRecommendationsCommand.d.ts +12 -24
  102. package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/GetEnrollmentStatusCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +12 -24
  105. package/dist-types/ts3.4/commands/GetLambdaFunctionRecommendationsCommand.d.ts +12 -24
  106. package/dist-types/ts3.4/commands/GetLicenseRecommendationsCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/commands/GetRecommendationSummariesCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +12 -24
  110. package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +12 -24
  111. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  112. package/dist-types/ts3.4/pagination/DescribeRecommendationExportJobsPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/GetEnrollmentStatusesForOrganizationPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/GetLambdaFunctionRecommendationsPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/GetRecommendationPreferencesPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/GetRecommendationSummariesPaginator.d.ts +3 -3
  117. package/package.json +11 -10
@@ -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_GetRecommendationPreferencesCommand, se_GetRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class GetRecommendationPreferencesCommand 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, GetRecommendationPreferencesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ComputeOptimizerClient";
26
- const commandName = "GetRecommendationPreferencesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ComputeOptimizerService",
35
- operation: "GetRecommendationPreferences",
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_GetRecommendationPreferencesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetRecommendationPreferencesCommand(output, context);
46
- }
7
+ export class GetRecommendationPreferencesCommand 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("ComputeOptimizerService", "GetRecommendationPreferences", {})
19
+ .n("ComputeOptimizerClient", "GetRecommendationPreferencesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetRecommendationPreferencesCommand)
22
+ .de(de_GetRecommendationPreferencesCommand)
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_GetRecommendationSummariesCommand, se_GetRecommendationSummariesCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class GetRecommendationSummariesCommand 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, GetRecommendationSummariesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ComputeOptimizerClient";
26
- const commandName = "GetRecommendationSummariesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ComputeOptimizerService",
35
- operation: "GetRecommendationSummaries",
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_GetRecommendationSummariesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetRecommendationSummariesCommand(output, context);
46
- }
7
+ export class GetRecommendationSummariesCommand 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("ComputeOptimizerService", "GetRecommendationSummaries", {})
19
+ .n("ComputeOptimizerClient", "GetRecommendationSummariesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetRecommendationSummariesCommand)
22
+ .de(de_GetRecommendationSummariesCommand)
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_PutRecommendationPreferencesCommand, se_PutRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class PutRecommendationPreferencesCommand 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, PutRecommendationPreferencesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ComputeOptimizerClient";
26
- const commandName = "PutRecommendationPreferencesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ComputeOptimizerService",
35
- operation: "PutRecommendationPreferences",
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_PutRecommendationPreferencesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutRecommendationPreferencesCommand(output, context);
46
- }
7
+ export class PutRecommendationPreferencesCommand 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("ComputeOptimizerService", "PutRecommendationPreferences", {})
19
+ .n("ComputeOptimizerClient", "PutRecommendationPreferencesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutRecommendationPreferencesCommand)
22
+ .de(de_PutRecommendationPreferencesCommand)
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_UpdateEnrollmentStatusCommand, se_UpdateEnrollmentStatusCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class UpdateEnrollmentStatusCommand 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, UpdateEnrollmentStatusCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ComputeOptimizerClient";
26
- const commandName = "UpdateEnrollmentStatusCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ComputeOptimizerService",
35
- operation: "UpdateEnrollmentStatus",
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_UpdateEnrollmentStatusCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateEnrollmentStatusCommand(output, context);
46
- }
7
+ export class UpdateEnrollmentStatusCommand 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("ComputeOptimizerService", "UpdateEnrollmentStatus", {})
19
+ .n("ComputeOptimizerClient", "UpdateEnrollmentStatusCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateEnrollmentStatusCommand)
22
+ .de(de_UpdateEnrollmentStatusCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "compute-optimizer",
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,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeRecommendationExportJobsCommand, } from "../commands/DescribeRecommendationExportJobsCommand";
2
3
  import { ComputeOptimizerClient } from "../ComputeOptimizerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeRecommendationExportJobsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeRecommendationExportJobs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ComputeOptimizerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeRecommendationExportJobs = createPaginator(ComputeOptimizerClient, DescribeRecommendationExportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetEnrollmentStatusesForOrganizationCommand, } from "../commands/GetEnrollmentStatusesForOrganizationCommand";
2
3
  import { ComputeOptimizerClient } from "../ComputeOptimizerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetEnrollmentStatusesForOrganizationCommand(input), ...args);
5
- };
6
- export async function* paginateGetEnrollmentStatusesForOrganization(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ComputeOptimizerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetEnrollmentStatusesForOrganization = createPaginator(ComputeOptimizerClient, GetEnrollmentStatusesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetLambdaFunctionRecommendationsCommand, } from "../commands/GetLambdaFunctionRecommendationsCommand";
2
3
  import { ComputeOptimizerClient } from "../ComputeOptimizerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetLambdaFunctionRecommendationsCommand(input), ...args);
5
- };
6
- export async function* paginateGetLambdaFunctionRecommendations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ComputeOptimizerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetLambdaFunctionRecommendations = createPaginator(ComputeOptimizerClient, GetLambdaFunctionRecommendationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetRecommendationPreferencesCommand, } from "../commands/GetRecommendationPreferencesCommand";
2
3
  import { ComputeOptimizerClient } from "../ComputeOptimizerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetRecommendationPreferencesCommand(input), ...args);
5
- };
6
- export async function* paginateGetRecommendationPreferences(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ComputeOptimizerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetRecommendationPreferences = createPaginator(ComputeOptimizerClient, GetRecommendationPreferencesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetRecommendationSummariesCommand, } from "../commands/GetRecommendationSummariesCommand";
2
3
  import { ComputeOptimizerClient } from "../ComputeOptimizerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetRecommendationSummariesCommand(input), ...args);
5
- };
6
- export async function* paginateGetRecommendationSummaries(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ComputeOptimizerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetRecommendationSummaries = createPaginator(ComputeOptimizerClient, GetRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
@@ -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 { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
4
  import { DeleteRecommendationPreferencesRequest, DeleteRecommendationPreferencesResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteRecommendationPreferencesCommandInput extends DeleteRecom
21
20
  */
22
21
  export interface DeleteRecommendationPreferencesCommandOutput extends DeleteRecommendationPreferencesResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteRecommendationPreferencesCommand_base: {
24
+ new (input: DeleteRecommendationPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a recommendation preference, such as enhanced infrastructure metrics.</p>
@@ -84,23 +87,5 @@ export interface DeleteRecommendationPreferencesCommandOutput extends DeleteReco
84
87
  * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
85
88
  *
86
89
  */
87
- export declare class DeleteRecommendationPreferencesCommand extends $Command<DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput, ComputeOptimizerClientResolvedConfig> {
88
- readonly input: DeleteRecommendationPreferencesCommandInput;
89
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
90
- /**
91
- * @public
92
- */
93
- constructor(input: DeleteRecommendationPreferencesCommandInput);
94
- /**
95
- * @internal
96
- */
97
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput>;
98
- /**
99
- * @internal
100
- */
101
- private serialize;
102
- /**
103
- * @internal
104
- */
105
- private deserialize;
90
+ export declare class DeleteRecommendationPreferencesCommand extends DeleteRecommendationPreferencesCommand_base {
106
91
  }
@@ -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 { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
4
  import { DescribeRecommendationExportJobsRequest, DescribeRecommendationExportJobsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DescribeRecommendationExportJobsCommandInput extends DescribeRe
21
20
  */
22
21
  export interface DescribeRecommendationExportJobsCommandOutput extends DescribeRecommendationExportJobsResponse, __MetadataBearer {
23
22
  }
23
+ declare const DescribeRecommendationExportJobsCommand_base: {
24
+ new (input: DescribeRecommendationExportJobsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Describes recommendation export jobs created in the last seven days.</p>
@@ -108,23 +111,5 @@ export interface DescribeRecommendationExportJobsCommandOutput extends DescribeR
108
111
  * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
109
112
  *
110
113
  */
111
- export declare class DescribeRecommendationExportJobsCommand extends $Command<DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput, ComputeOptimizerClientResolvedConfig> {
112
- readonly input: DescribeRecommendationExportJobsCommandInput;
113
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
- /**
115
- * @public
116
- */
117
- constructor(input: DescribeRecommendationExportJobsCommandInput);
118
- /**
119
- * @internal
120
- */
121
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput>;
122
- /**
123
- * @internal
124
- */
125
- private serialize;
126
- /**
127
- * @internal
128
- */
129
- private deserialize;
114
+ export declare class DescribeRecommendationExportJobsCommand extends DescribeRecommendationExportJobsCommand_base {
130
115
  }
@@ -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 { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
4
  import { ExportAutoScalingGroupRecommendationsRequest, ExportAutoScalingGroupRecommendationsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ExportAutoScalingGroupRecommendationsCommandInput extends Expor
21
20
  */
22
21
  export interface ExportAutoScalingGroupRecommendationsCommandOutput extends ExportAutoScalingGroupRecommendationsResponse, __MetadataBearer {
23
22
  }
23
+ declare const ExportAutoScalingGroupRecommendationsCommand_base: {
24
+ new (input: ExportAutoScalingGroupRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Exports optimization recommendations for Auto Scaling groups.</p>
@@ -110,23 +113,5 @@ export interface ExportAutoScalingGroupRecommendationsCommandOutput extends Expo
110
113
  * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
111
114
  *
112
115
  */
113
- export declare class ExportAutoScalingGroupRecommendationsCommand extends $Command<ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig> {
114
- readonly input: ExportAutoScalingGroupRecommendationsCommandInput;
115
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
- /**
117
- * @public
118
- */
119
- constructor(input: ExportAutoScalingGroupRecommendationsCommandInput);
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput>;
124
- /**
125
- * @internal
126
- */
127
- private serialize;
128
- /**
129
- * @internal
130
- */
131
- private deserialize;
116
+ export declare class ExportAutoScalingGroupRecommendationsCommand extends ExportAutoScalingGroupRecommendationsCommand_base {
132
117
  }
@@ -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 { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
4
  import { ExportEBSVolumeRecommendationsRequest, ExportEBSVolumeRecommendationsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ExportEBSVolumeRecommendationsCommandInput extends ExportEBSVol
21
20
  */
22
21
  export interface ExportEBSVolumeRecommendationsCommandOutput extends ExportEBSVolumeRecommendationsResponse, __MetadataBearer {
23
22
  }
23
+ declare const ExportEBSVolumeRecommendationsCommand_base: {
24
+ new (input: ExportEBSVolumeRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Exports optimization recommendations for Amazon EBS volumes.</p>
@@ -105,23 +108,5 @@ export interface ExportEBSVolumeRecommendationsCommandOutput extends ExportEBSVo
105
108
  * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
106
109
  *
107
110
  */
108
- export declare class ExportEBSVolumeRecommendationsCommand extends $Command<ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig> {
109
- readonly input: ExportEBSVolumeRecommendationsCommandInput;
110
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
111
- /**
112
- * @public
113
- */
114
- constructor(input: ExportEBSVolumeRecommendationsCommandInput);
115
- /**
116
- * @internal
117
- */
118
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput>;
119
- /**
120
- * @internal
121
- */
122
- private serialize;
123
- /**
124
- * @internal
125
- */
126
- private deserialize;
111
+ export declare class ExportEBSVolumeRecommendationsCommand extends ExportEBSVolumeRecommendationsCommand_base {
127
112
  }
@@ -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 { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
4
  import { ExportEC2InstanceRecommendationsRequest, ExportEC2InstanceRecommendationsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ExportEC2InstanceRecommendationsCommandInput extends ExportEC2I
21
20
  */
22
21
  export interface ExportEC2InstanceRecommendationsCommandOutput extends ExportEC2InstanceRecommendationsResponse, __MetadataBearer {
23
22
  }
23
+ declare const ExportEC2InstanceRecommendationsCommand_base: {
24
+ new (input: ExportEC2InstanceRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ExportEC2InstanceRecommendationsCommandInput, ExportEC2InstanceRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Exports optimization recommendations for Amazon EC2 instances.</p>
@@ -110,23 +113,5 @@ export interface ExportEC2InstanceRecommendationsCommandOutput extends ExportEC2
110
113
  * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
111
114
  *
112
115
  */
113
- export declare class ExportEC2InstanceRecommendationsCommand extends $Command<ExportEC2InstanceRecommendationsCommandInput, ExportEC2InstanceRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig> {
114
- readonly input: ExportEC2InstanceRecommendationsCommandInput;
115
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
- /**
117
- * @public
118
- */
119
- constructor(input: ExportEC2InstanceRecommendationsCommandInput);
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportEC2InstanceRecommendationsCommandInput, ExportEC2InstanceRecommendationsCommandOutput>;
124
- /**
125
- * @internal
126
- */
127
- private serialize;
128
- /**
129
- * @internal
130
- */
131
- private deserialize;
116
+ export declare class ExportEC2InstanceRecommendationsCommand extends ExportEC2InstanceRecommendationsCommand_base {
132
117
  }