@aws-sdk/client-compute-optimizer 3.395.0 → 3.401.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 (46) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/ComputeOptimizer.js +4 -0
  3. package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +46 -0
  4. package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +1 -1
  7. package/dist-cjs/models/models_0.js +59 -2
  8. package/dist-cjs/protocols/Aws_json1_0.js +168 -1
  9. package/dist-cjs/runtimeExtensions.js +5 -5
  10. package/dist-es/ComputeOptimizer.js +4 -0
  11. package/dist-es/commands/ExportLicenseRecommendationsCommand.js +42 -0
  12. package/dist-es/commands/GetLicenseRecommendationsCommand.js +42 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/endpoint/ruleset.js +1 -1
  15. package/dist-es/models/models_0.js +57 -0
  16. package/dist-es/protocols/Aws_json1_0.js +163 -0
  17. package/dist-es/runtimeExtensions.js +5 -5
  18. package/dist-types/ComputeOptimizer.d.ts +14 -0
  19. package/dist-types/ComputeOptimizerClient.d.ts +4 -2
  20. package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +1 -1
  22. package/dist-types/commands/ExportLicenseRecommendationsCommand.d.ts +129 -0
  23. package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +1 -1
  24. package/dist-types/commands/GetLicenseRecommendationsCommand.d.ts +172 -0
  25. package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +2 -2
  26. package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -1
  27. package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/extensionConfiguration.d.ts +6 -0
  30. package/dist-types/models/models_0.d.ts +591 -0
  31. package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
  32. package/dist-types/runtimeExtensions.d.ts +2 -2
  33. package/dist-types/ts3.4/ComputeOptimizer.d.ts +34 -0
  34. package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +12 -0
  35. package/dist-types/ts3.4/commands/ExportLicenseRecommendationsCommand.d.ts +42 -0
  36. package/dist-types/ts3.4/commands/GetLicenseRecommendationsCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  38. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +131 -0
  40. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  41. package/dist-types/ts3.4/runtimeExtensions.d.ts +2 -4
  42. package/package.json +29 -29
  43. package/dist-types/clientConfiguration.d.ts +0 -6
  44. package/dist-types/ts3.4/clientConfiguration.d.ts +0 -3
  45. /package/dist-cjs/{clientConfiguration.js → extensionConfiguration.js} +0 -0
  46. /package/dist-es/{clientConfiguration.js → extensionConfiguration.js} +0 -0
@@ -0,0 +1,172 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ComputeOptimizerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerClient";
5
+ import { GetLicenseRecommendationsRequest, GetLicenseRecommendationsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetLicenseRecommendationsCommand}.
14
+ */
15
+ export interface GetLicenseRecommendationsCommandInput extends GetLicenseRecommendationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetLicenseRecommendationsCommand}.
21
+ */
22
+ export interface GetLicenseRecommendationsCommandOutput extends GetLicenseRecommendationsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns license recommendations for Amazon EC2 instances that run on a specific license.</p>
27
+ * <p>Compute Optimizer generates recommendations for licenses that meet a specific set of requirements. For more
28
+ * information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
29
+ * requirements</a> in the <i>Compute Optimizer User
30
+ * Guide</i>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ComputeOptimizerClient, GetLicenseRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
35
+ * // const { ComputeOptimizerClient, GetLicenseRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
36
+ * const client = new ComputeOptimizerClient(config);
37
+ * const input = { // GetLicenseRecommendationsRequest
38
+ * resourceArns: [ // ResourceArns
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * nextToken: "STRING_VALUE",
42
+ * maxResults: Number("int"),
43
+ * filters: [ // LicenseRecommendationFilters
44
+ * { // LicenseRecommendationFilter
45
+ * name: "Finding" || "FindingReasonCode" || "LicenseName",
46
+ * values: [ // FilterValues
47
+ * "STRING_VALUE",
48
+ * ],
49
+ * },
50
+ * ],
51
+ * accountIds: [ // AccountIds
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * };
55
+ * const command = new GetLicenseRecommendationsCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // GetLicenseRecommendationsResponse
58
+ * // nextToken: "STRING_VALUE",
59
+ * // licenseRecommendations: [ // LicenseRecommendations
60
+ * // { // LicenseRecommendation
61
+ * // resourceArn: "STRING_VALUE",
62
+ * // accountId: "STRING_VALUE",
63
+ * // currentLicenseConfiguration: { // LicenseConfiguration
64
+ * // numberOfCores: Number("int"),
65
+ * // instanceType: "STRING_VALUE",
66
+ * // operatingSystem: "STRING_VALUE",
67
+ * // licenseEdition: "Enterprise" || "Standard" || "Free" || "NoLicenseEditionFound",
68
+ * // licenseName: "SQLServer",
69
+ * // licenseModel: "LicenseIncluded" || "BringYourOwnLicense",
70
+ * // licenseVersion: "STRING_VALUE",
71
+ * // metricsSource: [ // MetricsSource
72
+ * // { // MetricSource
73
+ * // provider: "CloudWatchApplicationInsights",
74
+ * // providerArn: "STRING_VALUE",
75
+ * // },
76
+ * // ],
77
+ * // },
78
+ * // lookbackPeriodInDays: Number("double"),
79
+ * // lastRefreshTimestamp: new Date("TIMESTAMP"),
80
+ * // finding: "InsufficientMetrics" || "Optimized" || "NotOptimized",
81
+ * // findingReasonCodes: [ // LicenseFindingReasonCodes
82
+ * // "InvalidCloudWatchApplicationInsightsSetup" || "CloudWatchApplicationInsightsError" || "LicenseOverprovisioned" || "Optimized",
83
+ * // ],
84
+ * // licenseRecommendationOptions: [ // LicenseRecommendationOptions
85
+ * // { // LicenseRecommendationOption
86
+ * // rank: Number("int"),
87
+ * // operatingSystem: "STRING_VALUE",
88
+ * // licenseEdition: "Enterprise" || "Standard" || "Free" || "NoLicenseEditionFound",
89
+ * // licenseModel: "LicenseIncluded" || "BringYourOwnLicense",
90
+ * // savingsOpportunity: { // SavingsOpportunity
91
+ * // savingsOpportunityPercentage: Number("double"),
92
+ * // estimatedMonthlySavings: { // EstimatedMonthlySavings
93
+ * // currency: "USD" || "CNY",
94
+ * // value: Number("double"),
95
+ * // },
96
+ * // },
97
+ * // },
98
+ * // ],
99
+ * // tags: [ // Tags
100
+ * // { // Tag
101
+ * // key: "STRING_VALUE",
102
+ * // value: "STRING_VALUE",
103
+ * // },
104
+ * // ],
105
+ * // },
106
+ * // ],
107
+ * // errors: [ // GetRecommendationErrors
108
+ * // { // GetRecommendationError
109
+ * // identifier: "STRING_VALUE",
110
+ * // code: "STRING_VALUE",
111
+ * // message: "STRING_VALUE",
112
+ * // },
113
+ * // ],
114
+ * // };
115
+ *
116
+ * ```
117
+ *
118
+ * @param GetLicenseRecommendationsCommandInput - {@link GetLicenseRecommendationsCommandInput}
119
+ * @returns {@link GetLicenseRecommendationsCommandOutput}
120
+ * @see {@link GetLicenseRecommendationsCommandInput} for command's `input` shape.
121
+ * @see {@link GetLicenseRecommendationsCommandOutput} for command's `response` shape.
122
+ * @see {@link ComputeOptimizerClientResolvedConfig | config} for ComputeOptimizerClient's `config` shape.
123
+ *
124
+ * @throws {@link AccessDeniedException} (client fault)
125
+ * <p>You do not have sufficient access to perform this action.</p>
126
+ *
127
+ * @throws {@link InternalServerException} (server fault)
128
+ * <p>An internal error has occurred. Try your call again.</p>
129
+ *
130
+ * @throws {@link InvalidParameterValueException} (client fault)
131
+ * <p>The value supplied for the input parameter is out of range or not valid.</p>
132
+ *
133
+ * @throws {@link MissingAuthenticationToken} (client fault)
134
+ * <p>The request must contain either a valid (registered) Amazon Web Services access key ID
135
+ * or X.509 certificate.</p>
136
+ *
137
+ * @throws {@link OptInRequiredException} (client fault)
138
+ * <p>The account is not opted in to Compute Optimizer.</p>
139
+ *
140
+ * @throws {@link ResourceNotFoundException} (client fault)
141
+ * <p>A resource that is required for the action doesn't exist.</p>
142
+ *
143
+ * @throws {@link ServiceUnavailableException} (server fault)
144
+ * <p>The request has failed due to a temporary failure of the server.</p>
145
+ *
146
+ * @throws {@link ThrottlingException} (client fault)
147
+ * <p>The request was denied due to request throttling.</p>
148
+ *
149
+ * @throws {@link ComputeOptimizerServiceException}
150
+ * <p>Base exception class for all service exceptions from ComputeOptimizer service.</p>
151
+ *
152
+ */
153
+ export declare class GetLicenseRecommendationsCommand extends $Command<GetLicenseRecommendationsCommandInput, GetLicenseRecommendationsCommandOutput, ComputeOptimizerClientResolvedConfig> {
154
+ readonly input: GetLicenseRecommendationsCommandInput;
155
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
156
+ /**
157
+ * @public
158
+ */
159
+ constructor(input: GetLicenseRecommendationsCommandInput);
160
+ /**
161
+ * @internal
162
+ */
163
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComputeOptimizerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLicenseRecommendationsCommandInput, GetLicenseRecommendationsCommandOutput>;
164
+ /**
165
+ * @internal
166
+ */
167
+ private serialize;
168
+ /**
169
+ * @internal
170
+ */
171
+ private deserialize;
172
+ }
@@ -38,7 +38,7 @@ export interface GetRecommendationPreferencesCommandOutput extends GetRecommenda
38
38
  * // const { ComputeOptimizerClient, GetRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
39
39
  * const client = new ComputeOptimizerClient(config);
40
40
  * const input = { // GetRecommendationPreferencesRequest
41
- * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService", // required
41
+ * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License", // required
42
42
  * scope: { // Scope
43
43
  * name: "Organization" || "AccountId" || "ResourceArn",
44
44
  * value: "STRING_VALUE",
@@ -56,7 +56,7 @@ export interface GetRecommendationPreferencesCommandOutput extends GetRecommenda
56
56
  * // name: "Organization" || "AccountId" || "ResourceArn",
57
57
  * // value: "STRING_VALUE",
58
58
  * // },
59
- * // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService",
59
+ * // resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License",
60
60
  * // enhancedInfrastructureMetrics: "Active" || "Inactive",
61
61
  * // inferredWorkloadTypes: "Active" || "Inactive",
62
62
  * // externalMetricsPreference: { // ExternalMetricsPreference
@@ -79,7 +79,7 @@ export interface GetRecommendationSummariesCommandOutput extends GetRecommendati
79
79
  * // ],
80
80
  * // },
81
81
  * // ],
82
- * // recommendationResourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService",
82
+ * // recommendationResourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "EcsService" || "License",
83
83
  * // accountId: "STRING_VALUE",
84
84
  * // savingsOpportunity: { // SavingsOpportunity
85
85
  * // savingsOpportunityPercentage: Number("double"),
@@ -35,7 +35,7 @@ export interface PutRecommendationPreferencesCommandOutput extends PutRecommenda
35
35
  * // const { ComputeOptimizerClient, PutRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
36
36
  * const client = new ComputeOptimizerClient(config);
37
37
  * const input = { // PutRecommendationPreferencesRequest
38
- * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService", // required
38
+ * resourceType: "Ec2Instance" || "AutoScalingGroup" || "EbsVolume" || "LambdaFunction" || "NotApplicable" || "EcsService" || "License", // required
39
39
  * scope: { // Scope
40
40
  * name: "Organization" || "AccountId" || "ResourceArn",
41
41
  * value: "STRING_VALUE",
@@ -5,6 +5,7 @@ export * from "./ExportEBSVolumeRecommendationsCommand";
5
5
  export * from "./ExportEC2InstanceRecommendationsCommand";
6
6
  export * from "./ExportECSServiceRecommendationsCommand";
7
7
  export * from "./ExportLambdaFunctionRecommendationsCommand";
8
+ export * from "./ExportLicenseRecommendationsCommand";
8
9
  export * from "./GetAutoScalingGroupRecommendationsCommand";
9
10
  export * from "./GetEBSVolumeRecommendationsCommand";
10
11
  export * from "./GetEC2InstanceRecommendationsCommand";
@@ -15,6 +16,7 @@ export * from "./GetEffectiveRecommendationPreferencesCommand";
15
16
  export * from "./GetEnrollmentStatusCommand";
16
17
  export * from "./GetEnrollmentStatusesForOrganizationCommand";
17
18
  export * from "./GetLambdaFunctionRecommendationsCommand";
19
+ export * from "./GetLicenseRecommendationsCommand";
18
20
  export * from "./GetRecommendationPreferencesCommand";
19
21
  export * from "./GetRecommendationSummariesCommand";
20
22
  export * from "./PutRecommendationPreferencesCommand";
@@ -0,0 +1,6 @@
1
+ import { DefaultExtensionConfiguration } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface ComputeOptimizerExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ }