@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.
- package/README.md +16 -0
- package/dist-cjs/ComputeOptimizer.js +4 -0
- package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +59 -2
- package/dist-cjs/protocols/Aws_json1_0.js +168 -1
- package/dist-cjs/runtimeExtensions.js +5 -5
- package/dist-es/ComputeOptimizer.js +4 -0
- package/dist-es/commands/ExportLicenseRecommendationsCommand.js +42 -0
- package/dist-es/commands/GetLicenseRecommendationsCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +57 -0
- package/dist-es/protocols/Aws_json1_0.js +163 -0
- package/dist-es/runtimeExtensions.js +5 -5
- package/dist-types/ComputeOptimizer.d.ts +14 -0
- package/dist-types/ComputeOptimizerClient.d.ts +4 -2
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ExportLicenseRecommendationsCommand.d.ts +129 -0
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/GetLicenseRecommendationsCommand.d.ts +172 -0
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +2 -2
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -1
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +591 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/runtimeExtensions.d.ts +2 -2
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +34 -0
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ExportLicenseRecommendationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLicenseRecommendationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +131 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +2 -4
- package/package.json +29 -29
- package/dist-types/clientConfiguration.d.ts +0 -6
- package/dist-types/ts3.4/clientConfiguration.d.ts +0 -3
- /package/dist-cjs/{clientConfiguration.js → extensionConfiguration.js} +0 -0
- /package/dist-es/{clientConfiguration.js → extensionConfiguration.js} +0 -0
|
@@ -27,6 +27,10 @@ import {
|
|
|
27
27
|
ExportLambdaFunctionRecommendationsCommandInput,
|
|
28
28
|
ExportLambdaFunctionRecommendationsCommandOutput,
|
|
29
29
|
} from "./commands/ExportLambdaFunctionRecommendationsCommand";
|
|
30
|
+
import {
|
|
31
|
+
ExportLicenseRecommendationsCommandInput,
|
|
32
|
+
ExportLicenseRecommendationsCommandOutput,
|
|
33
|
+
} from "./commands/ExportLicenseRecommendationsCommand";
|
|
30
34
|
import {
|
|
31
35
|
GetAutoScalingGroupRecommendationsCommandInput,
|
|
32
36
|
GetAutoScalingGroupRecommendationsCommandOutput,
|
|
@@ -67,6 +71,10 @@ import {
|
|
|
67
71
|
GetLambdaFunctionRecommendationsCommandInput,
|
|
68
72
|
GetLambdaFunctionRecommendationsCommandOutput,
|
|
69
73
|
} from "./commands/GetLambdaFunctionRecommendationsCommand";
|
|
74
|
+
import {
|
|
75
|
+
GetLicenseRecommendationsCommandInput,
|
|
76
|
+
GetLicenseRecommendationsCommandOutput,
|
|
77
|
+
} from "./commands/GetLicenseRecommendationsCommand";
|
|
70
78
|
import {
|
|
71
79
|
GetRecommendationPreferencesCommandInput,
|
|
72
80
|
GetRecommendationPreferencesCommandOutput,
|
|
@@ -188,6 +196,19 @@ export interface ComputeOptimizer {
|
|
|
188
196
|
data?: ExportLambdaFunctionRecommendationsCommandOutput
|
|
189
197
|
) => void
|
|
190
198
|
): void;
|
|
199
|
+
exportLicenseRecommendations(
|
|
200
|
+
args: ExportLicenseRecommendationsCommandInput,
|
|
201
|
+
options?: __HttpHandlerOptions
|
|
202
|
+
): Promise<ExportLicenseRecommendationsCommandOutput>;
|
|
203
|
+
exportLicenseRecommendations(
|
|
204
|
+
args: ExportLicenseRecommendationsCommandInput,
|
|
205
|
+
cb: (err: any, data?: ExportLicenseRecommendationsCommandOutput) => void
|
|
206
|
+
): void;
|
|
207
|
+
exportLicenseRecommendations(
|
|
208
|
+
args: ExportLicenseRecommendationsCommandInput,
|
|
209
|
+
options: __HttpHandlerOptions,
|
|
210
|
+
cb: (err: any, data?: ExportLicenseRecommendationsCommandOutput) => void
|
|
211
|
+
): void;
|
|
191
212
|
getAutoScalingGroupRecommendations(
|
|
192
213
|
args: GetAutoScalingGroupRecommendationsCommandInput,
|
|
193
214
|
options?: __HttpHandlerOptions
|
|
@@ -348,6 +369,19 @@ export interface ComputeOptimizer {
|
|
|
348
369
|
options: __HttpHandlerOptions,
|
|
349
370
|
cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void
|
|
350
371
|
): void;
|
|
372
|
+
getLicenseRecommendations(
|
|
373
|
+
args: GetLicenseRecommendationsCommandInput,
|
|
374
|
+
options?: __HttpHandlerOptions
|
|
375
|
+
): Promise<GetLicenseRecommendationsCommandOutput>;
|
|
376
|
+
getLicenseRecommendations(
|
|
377
|
+
args: GetLicenseRecommendationsCommandInput,
|
|
378
|
+
cb: (err: any, data?: GetLicenseRecommendationsCommandOutput) => void
|
|
379
|
+
): void;
|
|
380
|
+
getLicenseRecommendations(
|
|
381
|
+
args: GetLicenseRecommendationsCommandInput,
|
|
382
|
+
options: __HttpHandlerOptions,
|
|
383
|
+
cb: (err: any, data?: GetLicenseRecommendationsCommandOutput) => void
|
|
384
|
+
): void;
|
|
351
385
|
getRecommendationPreferences(
|
|
352
386
|
args: GetRecommendationPreferencesCommandInput,
|
|
353
387
|
options?: __HttpHandlerOptions
|
|
@@ -73,6 +73,10 @@ import {
|
|
|
73
73
|
ExportLambdaFunctionRecommendationsCommandInput,
|
|
74
74
|
ExportLambdaFunctionRecommendationsCommandOutput,
|
|
75
75
|
} from "./commands/ExportLambdaFunctionRecommendationsCommand";
|
|
76
|
+
import {
|
|
77
|
+
ExportLicenseRecommendationsCommandInput,
|
|
78
|
+
ExportLicenseRecommendationsCommandOutput,
|
|
79
|
+
} from "./commands/ExportLicenseRecommendationsCommand";
|
|
76
80
|
import {
|
|
77
81
|
GetAutoScalingGroupRecommendationsCommandInput,
|
|
78
82
|
GetAutoScalingGroupRecommendationsCommandOutput,
|
|
@@ -113,6 +117,10 @@ import {
|
|
|
113
117
|
GetLambdaFunctionRecommendationsCommandInput,
|
|
114
118
|
GetLambdaFunctionRecommendationsCommandOutput,
|
|
115
119
|
} from "./commands/GetLambdaFunctionRecommendationsCommand";
|
|
120
|
+
import {
|
|
121
|
+
GetLicenseRecommendationsCommandInput,
|
|
122
|
+
GetLicenseRecommendationsCommandOutput,
|
|
123
|
+
} from "./commands/GetLicenseRecommendationsCommand";
|
|
116
124
|
import {
|
|
117
125
|
GetRecommendationPreferencesCommandInput,
|
|
118
126
|
GetRecommendationPreferencesCommandOutput,
|
|
@@ -144,6 +152,7 @@ export type ServiceInputTypes =
|
|
|
144
152
|
| ExportEC2InstanceRecommendationsCommandInput
|
|
145
153
|
| ExportECSServiceRecommendationsCommandInput
|
|
146
154
|
| ExportLambdaFunctionRecommendationsCommandInput
|
|
155
|
+
| ExportLicenseRecommendationsCommandInput
|
|
147
156
|
| GetAutoScalingGroupRecommendationsCommandInput
|
|
148
157
|
| GetEBSVolumeRecommendationsCommandInput
|
|
149
158
|
| GetEC2InstanceRecommendationsCommandInput
|
|
@@ -154,6 +163,7 @@ export type ServiceInputTypes =
|
|
|
154
163
|
| GetEnrollmentStatusCommandInput
|
|
155
164
|
| GetEnrollmentStatusesForOrganizationCommandInput
|
|
156
165
|
| GetLambdaFunctionRecommendationsCommandInput
|
|
166
|
+
| GetLicenseRecommendationsCommandInput
|
|
157
167
|
| GetRecommendationPreferencesCommandInput
|
|
158
168
|
| GetRecommendationSummariesCommandInput
|
|
159
169
|
| PutRecommendationPreferencesCommandInput
|
|
@@ -166,6 +176,7 @@ export type ServiceOutputTypes =
|
|
|
166
176
|
| ExportEC2InstanceRecommendationsCommandOutput
|
|
167
177
|
| ExportECSServiceRecommendationsCommandOutput
|
|
168
178
|
| ExportLambdaFunctionRecommendationsCommandOutput
|
|
179
|
+
| ExportLicenseRecommendationsCommandOutput
|
|
169
180
|
| GetAutoScalingGroupRecommendationsCommandOutput
|
|
170
181
|
| GetEBSVolumeRecommendationsCommandOutput
|
|
171
182
|
| GetEC2InstanceRecommendationsCommandOutput
|
|
@@ -176,6 +187,7 @@ export type ServiceOutputTypes =
|
|
|
176
187
|
| GetEnrollmentStatusCommandOutput
|
|
177
188
|
| GetEnrollmentStatusesForOrganizationCommandOutput
|
|
178
189
|
| GetLambdaFunctionRecommendationsCommandOutput
|
|
190
|
+
| GetLicenseRecommendationsCommandOutput
|
|
179
191
|
| GetRecommendationPreferencesCommandOutput
|
|
180
192
|
| GetRecommendationSummariesCommandOutput
|
|
181
193
|
| PutRecommendationPreferencesCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
ComputeOptimizerClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ComputeOptimizerClient";
|
|
14
|
+
import {
|
|
15
|
+
ExportLicenseRecommendationsRequest,
|
|
16
|
+
ExportLicenseRecommendationsResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ExportLicenseRecommendationsCommandInput
|
|
20
|
+
extends ExportLicenseRecommendationsRequest {}
|
|
21
|
+
export interface ExportLicenseRecommendationsCommandOutput
|
|
22
|
+
extends ExportLicenseRecommendationsResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class ExportLicenseRecommendationsCommand extends $Command<
|
|
25
|
+
ExportLicenseRecommendationsCommandInput,
|
|
26
|
+
ExportLicenseRecommendationsCommandOutput,
|
|
27
|
+
ComputeOptimizerClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: ExportLicenseRecommendationsCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: ExportLicenseRecommendationsCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: ComputeOptimizerClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
ExportLicenseRecommendationsCommandInput,
|
|
38
|
+
ExportLicenseRecommendationsCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
ComputeOptimizerClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ComputeOptimizerClient";
|
|
14
|
+
import {
|
|
15
|
+
GetLicenseRecommendationsRequest,
|
|
16
|
+
GetLicenseRecommendationsResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface GetLicenseRecommendationsCommandInput
|
|
20
|
+
extends GetLicenseRecommendationsRequest {}
|
|
21
|
+
export interface GetLicenseRecommendationsCommandOutput
|
|
22
|
+
extends GetLicenseRecommendationsResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class GetLicenseRecommendationsCommand extends $Command<
|
|
25
|
+
GetLicenseRecommendationsCommandInput,
|
|
26
|
+
GetLicenseRecommendationsCommandOutput,
|
|
27
|
+
ComputeOptimizerClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: GetLicenseRecommendationsCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: GetLicenseRecommendationsCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: ComputeOptimizerClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
GetLicenseRecommendationsCommandInput,
|
|
38
|
+
GetLicenseRecommendationsCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -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";
|
|
@@ -179,6 +179,7 @@ export declare const ResourceType: {
|
|
|
179
179
|
readonly EC2_INSTANCE: "Ec2Instance";
|
|
180
180
|
readonly ECS_SERVICE: "EcsService";
|
|
181
181
|
readonly LAMBDA_FUNCTION: "LambdaFunction";
|
|
182
|
+
readonly LICENSE: "License";
|
|
182
183
|
readonly NOT_APPLICABLE: "NotApplicable";
|
|
183
184
|
};
|
|
184
185
|
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
@@ -623,6 +624,54 @@ export interface ExportLambdaFunctionRecommendationsResponse {
|
|
|
623
624
|
jobId?: string;
|
|
624
625
|
s3Destination?: S3Destination;
|
|
625
626
|
}
|
|
627
|
+
export declare const ExportableLicenseField: {
|
|
628
|
+
readonly ACCOUNT_ID: "AccountId";
|
|
629
|
+
readonly CURRENT_LICENSE_CONFIGURATION_INSTANCE_TYPE: "CurrentLicenseConfigurationInstanceType";
|
|
630
|
+
readonly CURRENT_LICENSE_CONFIGURATION_LICENSE_EDITION: "CurrentLicenseConfigurationLicenseEdition";
|
|
631
|
+
readonly CURRENT_LICENSE_CONFIGURATION_LICENSE_MODEL: "CurrentLicenseConfigurationLicenseModel";
|
|
632
|
+
readonly CURRENT_LICENSE_CONFIGURATION_LICENSE_NAME: "CurrentLicenseConfigurationLicenseName";
|
|
633
|
+
readonly CURRENT_LICENSE_CONFIGURATION_LICENSE_VERSION: "CurrentLicenseConfigurationLicenseVersion";
|
|
634
|
+
readonly CURRENT_LICENSE_CONFIGURATION_METRICS_SOURCE: "CurrentLicenseConfigurationMetricsSource";
|
|
635
|
+
readonly CURRENT_LICENSE_CONFIGURATION_NUMBER_OF_CORES: "CurrentLicenseConfigurationNumberOfCores";
|
|
636
|
+
readonly CURRENT_LICENSE_CONFIGURATION_OPERATING_SYSTEM: "CurrentLicenseConfigurationOperatingSystem";
|
|
637
|
+
readonly LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp";
|
|
638
|
+
readonly LICENSE_FINDING: "Finding";
|
|
639
|
+
readonly LICENSE_FINDING_REASON_CODES: "FindingReasonCodes";
|
|
640
|
+
readonly LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays";
|
|
641
|
+
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency";
|
|
642
|
+
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
643
|
+
readonly RECOMMENDATION_OPTIONS_LICENSE_EDITION: "RecommendationOptionsLicenseEdition";
|
|
644
|
+
readonly RECOMMENDATION_OPTIONS_LICENSE_MODEL: "RecommendationOptionsLicenseModel";
|
|
645
|
+
readonly RECOMMENDATION_OPTIONS_OPERATING_SYSTEM: "RecommendationOptionsOperatingSystem";
|
|
646
|
+
readonly RECOMMENDATION_OPTIONS_SAVINGS_OPPORTUNITY_PERCENTAGE: "RecommendationOptionsSavingsOpportunityPercentage";
|
|
647
|
+
readonly RESOURCE_ARN: "ResourceArn";
|
|
648
|
+
readonly TAGS: "Tags";
|
|
649
|
+
};
|
|
650
|
+
export type ExportableLicenseField =
|
|
651
|
+
(typeof ExportableLicenseField)[keyof typeof ExportableLicenseField];
|
|
652
|
+
export declare const LicenseRecommendationFilterName: {
|
|
653
|
+
readonly LICENSE_FINDING: "Finding";
|
|
654
|
+
readonly LICENSE_FINDING_REASON_CODE: "FindingReasonCode";
|
|
655
|
+
readonly LICENSE_NAME: "LicenseName";
|
|
656
|
+
};
|
|
657
|
+
export type LicenseRecommendationFilterName =
|
|
658
|
+
(typeof LicenseRecommendationFilterName)[keyof typeof LicenseRecommendationFilterName];
|
|
659
|
+
export interface LicenseRecommendationFilter {
|
|
660
|
+
name?: LicenseRecommendationFilterName | string;
|
|
661
|
+
values?: string[];
|
|
662
|
+
}
|
|
663
|
+
export interface ExportLicenseRecommendationsRequest {
|
|
664
|
+
accountIds?: string[];
|
|
665
|
+
filters?: LicenseRecommendationFilter[];
|
|
666
|
+
fieldsToExport?: (ExportableLicenseField | string)[];
|
|
667
|
+
s3DestinationConfig: S3DestinationConfig | undefined;
|
|
668
|
+
fileFormat?: FileFormat | string;
|
|
669
|
+
includeMemberAccounts?: boolean;
|
|
670
|
+
}
|
|
671
|
+
export interface ExportLicenseRecommendationsResponse {
|
|
672
|
+
jobId?: string;
|
|
673
|
+
s3Destination?: S3Destination;
|
|
674
|
+
}
|
|
626
675
|
export interface GetAutoScalingGroupRecommendationsRequest {
|
|
627
676
|
accountIds?: string[];
|
|
628
677
|
autoScalingGroupArns?: string[];
|
|
@@ -781,6 +830,7 @@ export declare const RecommendationSourceType: {
|
|
|
781
830
|
readonly EC2_INSTANCE: "Ec2Instance";
|
|
782
831
|
readonly ECS_SERVICE: "EcsService";
|
|
783
832
|
readonly LAMBDA_FUNCTION: "LambdaFunction";
|
|
833
|
+
readonly LICENSE: "License";
|
|
784
834
|
};
|
|
785
835
|
export type RecommendationSourceType =
|
|
786
836
|
(typeof RecommendationSourceType)[keyof typeof RecommendationSourceType];
|
|
@@ -1069,6 +1119,87 @@ export interface GetLambdaFunctionRecommendationsResponse {
|
|
|
1069
1119
|
nextToken?: string;
|
|
1070
1120
|
lambdaFunctionRecommendations?: LambdaFunctionRecommendation[];
|
|
1071
1121
|
}
|
|
1122
|
+
export interface GetLicenseRecommendationsRequest {
|
|
1123
|
+
resourceArns?: string[];
|
|
1124
|
+
nextToken?: string;
|
|
1125
|
+
maxResults?: number;
|
|
1126
|
+
filters?: LicenseRecommendationFilter[];
|
|
1127
|
+
accountIds?: string[];
|
|
1128
|
+
}
|
|
1129
|
+
export declare const LicenseEdition: {
|
|
1130
|
+
readonly ENTERPRISE: "Enterprise";
|
|
1131
|
+
readonly FREE: "Free";
|
|
1132
|
+
readonly NO_LICENSE_EDITION_FOUND: "NoLicenseEditionFound";
|
|
1133
|
+
readonly STANDARD: "Standard";
|
|
1134
|
+
};
|
|
1135
|
+
export type LicenseEdition =
|
|
1136
|
+
(typeof LicenseEdition)[keyof typeof LicenseEdition];
|
|
1137
|
+
export declare const LicenseModel: {
|
|
1138
|
+
readonly BRING_YOUR_OWN_LICENSE: "BringYourOwnLicense";
|
|
1139
|
+
readonly LICENSE_INCLUDED: "LicenseIncluded";
|
|
1140
|
+
};
|
|
1141
|
+
export type LicenseModel = (typeof LicenseModel)[keyof typeof LicenseModel];
|
|
1142
|
+
export declare const LicenseName: {
|
|
1143
|
+
readonly SQLSERVER: "SQLServer";
|
|
1144
|
+
};
|
|
1145
|
+
export type LicenseName = (typeof LicenseName)[keyof typeof LicenseName];
|
|
1146
|
+
export declare const MetricSourceProvider: {
|
|
1147
|
+
readonly CloudWatchAppInsights: "CloudWatchApplicationInsights";
|
|
1148
|
+
};
|
|
1149
|
+
export type MetricSourceProvider =
|
|
1150
|
+
(typeof MetricSourceProvider)[keyof typeof MetricSourceProvider];
|
|
1151
|
+
export interface MetricSource {
|
|
1152
|
+
provider?: MetricSourceProvider | string;
|
|
1153
|
+
providerArn?: string;
|
|
1154
|
+
}
|
|
1155
|
+
export interface LicenseConfiguration {
|
|
1156
|
+
numberOfCores?: number;
|
|
1157
|
+
instanceType?: string;
|
|
1158
|
+
operatingSystem?: string;
|
|
1159
|
+
licenseEdition?: LicenseEdition | string;
|
|
1160
|
+
licenseName?: LicenseName | string;
|
|
1161
|
+
licenseModel?: LicenseModel | string;
|
|
1162
|
+
licenseVersion?: string;
|
|
1163
|
+
metricsSource?: MetricSource[];
|
|
1164
|
+
}
|
|
1165
|
+
export declare const LicenseFinding: {
|
|
1166
|
+
readonly INSUFFICIENT_METRICS: "InsufficientMetrics";
|
|
1167
|
+
readonly NOT_OPTIMIZED: "NotOptimized";
|
|
1168
|
+
readonly OPTIMIZED: "Optimized";
|
|
1169
|
+
};
|
|
1170
|
+
export type LicenseFinding =
|
|
1171
|
+
(typeof LicenseFinding)[keyof typeof LicenseFinding];
|
|
1172
|
+
export declare const LicenseFindingReasonCode: {
|
|
1173
|
+
readonly CW_APP_INSIGHTS_DISABLED: "InvalidCloudWatchApplicationInsightsSetup";
|
|
1174
|
+
readonly CW_APP_INSIGHTS_ERROR: "CloudWatchApplicationInsightsError";
|
|
1175
|
+
readonly LICENSE_OVER_PROVISIONED: "LicenseOverprovisioned";
|
|
1176
|
+
readonly OPTIMIZED: "Optimized";
|
|
1177
|
+
};
|
|
1178
|
+
export type LicenseFindingReasonCode =
|
|
1179
|
+
(typeof LicenseFindingReasonCode)[keyof typeof LicenseFindingReasonCode];
|
|
1180
|
+
export interface LicenseRecommendationOption {
|
|
1181
|
+
rank?: number;
|
|
1182
|
+
operatingSystem?: string;
|
|
1183
|
+
licenseEdition?: LicenseEdition | string;
|
|
1184
|
+
licenseModel?: LicenseModel | string;
|
|
1185
|
+
savingsOpportunity?: SavingsOpportunity;
|
|
1186
|
+
}
|
|
1187
|
+
export interface LicenseRecommendation {
|
|
1188
|
+
resourceArn?: string;
|
|
1189
|
+
accountId?: string;
|
|
1190
|
+
currentLicenseConfiguration?: LicenseConfiguration;
|
|
1191
|
+
lookbackPeriodInDays?: number;
|
|
1192
|
+
lastRefreshTimestamp?: Date;
|
|
1193
|
+
finding?: LicenseFinding | string;
|
|
1194
|
+
findingReasonCodes?: (LicenseFindingReasonCode | string)[];
|
|
1195
|
+
licenseRecommendationOptions?: LicenseRecommendationOption[];
|
|
1196
|
+
tags?: Tag[];
|
|
1197
|
+
}
|
|
1198
|
+
export interface GetLicenseRecommendationsResponse {
|
|
1199
|
+
nextToken?: string;
|
|
1200
|
+
licenseRecommendations?: LicenseRecommendation[];
|
|
1201
|
+
errors?: GetRecommendationError[];
|
|
1202
|
+
}
|
|
1072
1203
|
export interface GetRecommendationPreferencesRequest {
|
|
1073
1204
|
resourceType: ResourceType | string | undefined;
|
|
1074
1205
|
scope?: Scope;
|
|
@@ -31,6 +31,10 @@ import {
|
|
|
31
31
|
ExportLambdaFunctionRecommendationsCommandInput,
|
|
32
32
|
ExportLambdaFunctionRecommendationsCommandOutput,
|
|
33
33
|
} from "../commands/ExportLambdaFunctionRecommendationsCommand";
|
|
34
|
+
import {
|
|
35
|
+
ExportLicenseRecommendationsCommandInput,
|
|
36
|
+
ExportLicenseRecommendationsCommandOutput,
|
|
37
|
+
} from "../commands/ExportLicenseRecommendationsCommand";
|
|
34
38
|
import {
|
|
35
39
|
GetAutoScalingGroupRecommendationsCommandInput,
|
|
36
40
|
GetAutoScalingGroupRecommendationsCommandOutput,
|
|
@@ -71,6 +75,10 @@ import {
|
|
|
71
75
|
GetLambdaFunctionRecommendationsCommandInput,
|
|
72
76
|
GetLambdaFunctionRecommendationsCommandOutput,
|
|
73
77
|
} from "../commands/GetLambdaFunctionRecommendationsCommand";
|
|
78
|
+
import {
|
|
79
|
+
GetLicenseRecommendationsCommandInput,
|
|
80
|
+
GetLicenseRecommendationsCommandOutput,
|
|
81
|
+
} from "../commands/GetLicenseRecommendationsCommand";
|
|
74
82
|
import {
|
|
75
83
|
GetRecommendationPreferencesCommandInput,
|
|
76
84
|
GetRecommendationPreferencesCommandOutput,
|
|
@@ -115,6 +123,10 @@ export declare const se_ExportLambdaFunctionRecommendationsCommand: (
|
|
|
115
123
|
input: ExportLambdaFunctionRecommendationsCommandInput,
|
|
116
124
|
context: __SerdeContext
|
|
117
125
|
) => Promise<__HttpRequest>;
|
|
126
|
+
export declare const se_ExportLicenseRecommendationsCommand: (
|
|
127
|
+
input: ExportLicenseRecommendationsCommandInput,
|
|
128
|
+
context: __SerdeContext
|
|
129
|
+
) => Promise<__HttpRequest>;
|
|
118
130
|
export declare const se_GetAutoScalingGroupRecommendationsCommand: (
|
|
119
131
|
input: GetAutoScalingGroupRecommendationsCommandInput,
|
|
120
132
|
context: __SerdeContext
|
|
@@ -155,6 +167,10 @@ export declare const se_GetLambdaFunctionRecommendationsCommand: (
|
|
|
155
167
|
input: GetLambdaFunctionRecommendationsCommandInput,
|
|
156
168
|
context: __SerdeContext
|
|
157
169
|
) => Promise<__HttpRequest>;
|
|
170
|
+
export declare const se_GetLicenseRecommendationsCommand: (
|
|
171
|
+
input: GetLicenseRecommendationsCommandInput,
|
|
172
|
+
context: __SerdeContext
|
|
173
|
+
) => Promise<__HttpRequest>;
|
|
158
174
|
export declare const se_GetRecommendationPreferencesCommand: (
|
|
159
175
|
input: GetRecommendationPreferencesCommandInput,
|
|
160
176
|
context: __SerdeContext
|
|
@@ -199,6 +215,10 @@ export declare const de_ExportLambdaFunctionRecommendationsCommand: (
|
|
|
199
215
|
output: __HttpResponse,
|
|
200
216
|
context: __SerdeContext
|
|
201
217
|
) => Promise<ExportLambdaFunctionRecommendationsCommandOutput>;
|
|
218
|
+
export declare const de_ExportLicenseRecommendationsCommand: (
|
|
219
|
+
output: __HttpResponse,
|
|
220
|
+
context: __SerdeContext
|
|
221
|
+
) => Promise<ExportLicenseRecommendationsCommandOutput>;
|
|
202
222
|
export declare const de_GetAutoScalingGroupRecommendationsCommand: (
|
|
203
223
|
output: __HttpResponse,
|
|
204
224
|
context: __SerdeContext
|
|
@@ -239,6 +259,10 @@ export declare const de_GetLambdaFunctionRecommendationsCommand: (
|
|
|
239
259
|
output: __HttpResponse,
|
|
240
260
|
context: __SerdeContext
|
|
241
261
|
) => Promise<GetLambdaFunctionRecommendationsCommandOutput>;
|
|
262
|
+
export declare const de_GetLicenseRecommendationsCommand: (
|
|
263
|
+
output: __HttpResponse,
|
|
264
|
+
context: __SerdeContext
|
|
265
|
+
) => Promise<GetLicenseRecommendationsCommandOutput>;
|
|
242
266
|
export declare const de_GetRecommendationPreferencesCommand: (
|
|
243
267
|
output: __HttpResponse,
|
|
244
268
|
context: __SerdeContext
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputeOptimizerExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
export interface RuntimeExtension {
|
|
3
|
-
|
|
4
|
-
clientConfiguration: ComputeOptimizerClientConfiguration
|
|
5
|
-
): void;
|
|
3
|
+
configure(clientConfiguration: ComputeOptimizerExtensionConfiguration): void;
|
|
6
4
|
}
|
|
7
5
|
export interface RuntimeExtensionsConfig {
|
|
8
6
|
extensions: RuntimeExtension[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.401.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.0.
|
|
36
|
-
"@smithy/fetch-http-handler": "^2.0.
|
|
37
|
-
"@smithy/hash-node": "^2.0.
|
|
38
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
39
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
40
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
41
|
-
"@smithy/middleware-retry": "^2.0.
|
|
42
|
-
"@smithy/middleware-serde": "^2.0.
|
|
24
|
+
"@aws-sdk/client-sts": "3.398.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.398.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.398.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.398.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.398.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.398.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.398.0",
|
|
31
|
+
"@aws-sdk/types": "3.398.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.398.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.398.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.398.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.0.5",
|
|
36
|
+
"@smithy/fetch-http-handler": "^2.0.5",
|
|
37
|
+
"@smithy/hash-node": "^2.0.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^2.0.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^2.0.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^2.0.5",
|
|
41
|
+
"@smithy/middleware-retry": "^2.0.5",
|
|
42
|
+
"@smithy/middleware-serde": "^2.0.5",
|
|
43
43
|
"@smithy/middleware-stack": "^2.0.0",
|
|
44
|
-
"@smithy/node-config-provider": "^2.0.
|
|
45
|
-
"@smithy/node-http-handler": "^2.0.
|
|
46
|
-
"@smithy/protocol-http": "^2.0.
|
|
47
|
-
"@smithy/smithy-client": "^2.0.
|
|
48
|
-
"@smithy/types": "^2.2.
|
|
49
|
-
"@smithy/url-parser": "^2.0.
|
|
44
|
+
"@smithy/node-config-provider": "^2.0.5",
|
|
45
|
+
"@smithy/node-http-handler": "^2.0.5",
|
|
46
|
+
"@smithy/protocol-http": "^2.0.5",
|
|
47
|
+
"@smithy/smithy-client": "^2.0.5",
|
|
48
|
+
"@smithy/types": "^2.2.2",
|
|
49
|
+
"@smithy/url-parser": "^2.0.5",
|
|
50
50
|
"@smithy/util-base64": "^2.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
52
|
-
"@smithy/util-body-length-node": "^2.
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
52
|
+
"@smithy/util-body-length-node": "^2.1.0",
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^2.0.5",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^2.0.5",
|
|
55
55
|
"@smithy/util-retry": "^2.0.0",
|
|
56
56
|
"@smithy/util-utf8": "^2.0.0",
|
|
57
57
|
"tslib": "^2.5.0"
|
|
File without changes
|
|
File without changes
|