@aws-sdk/client-compute-optimizer 3.927.0 → 3.928.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/dist-cjs/index.js +2103 -1875
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ComputeOptimizerClient.js +2 -0
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +3 -9
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +3 -9
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportIdleRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportLicenseRecommendationsCommand.js +3 -9
- package/dist-es/commands/ExportRDSDatabaseRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -9
- package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +3 -9
- package/dist-es/commands/GetECSServiceRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +3 -9
- package/dist-es/commands/GetEnrollmentStatusCommand.js +3 -9
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -9
- package/dist-es/commands/GetIdleRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetLicenseRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.js +3 -9
- package/dist-es/commands/GetRDSDatabaseRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +3 -9
- package/dist-es/commands/GetRecommendationSummariesCommand.js +3 -9
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +3 -9
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2050 -0
- package/dist-types/ComputeOptimizerClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +291 -0
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +296 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -1656
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -254
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -341
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetRDSDatabaseRecommendationProjectedMetrics } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetRDSDatabaseRecommendationProjectedMetricsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "GetRDSDatabaseRecommendationProjectedMetrics", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "GetRDSDatabaseRecommendationProjectedMetricsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetRDSDatabaseRecommendationProjectedMetricsCommand)
|
|
20
|
-
.de(de_GetRDSDatabaseRecommendationProjectedMetricsCommand)
|
|
14
|
+
.sc(GetRDSDatabaseRecommendationProjectedMetrics)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetRDSDatabaseRecommendations } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetRDSDatabaseRecommendationsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "GetRDSDatabaseRecommendations", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "GetRDSDatabaseRecommendationsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetRDSDatabaseRecommendationsCommand)
|
|
20
|
-
.de(de_GetRDSDatabaseRecommendationsCommand)
|
|
14
|
+
.sc(GetRDSDatabaseRecommendations)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetRecommendationPreferences } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetRecommendationPreferencesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "GetRecommendationPreferences", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "GetRecommendationPreferencesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetRecommendationPreferencesCommand)
|
|
20
|
-
.de(de_GetRecommendationPreferencesCommand)
|
|
14
|
+
.sc(GetRecommendationPreferences)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetRecommendationSummaries } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetRecommendationSummariesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "GetRecommendationSummaries", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "GetRecommendationSummariesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetRecommendationSummariesCommand)
|
|
20
|
-
.de(de_GetRecommendationSummariesCommand)
|
|
14
|
+
.sc(GetRecommendationSummaries)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutRecommendationPreferences } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutRecommendationPreferencesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "PutRecommendationPreferences", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "PutRecommendationPreferencesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutRecommendationPreferencesCommand)
|
|
20
|
-
.de(de_PutRecommendationPreferencesCommand)
|
|
14
|
+
.sc(PutRecommendationPreferences)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateEnrollmentStatus } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateEnrollmentStatusCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("ComputeOptimizerService", "UpdateEnrollmentStatus", {})
|
|
17
13
|
.n("ComputeOptimizerClient", "UpdateEnrollmentStatusCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateEnrollmentStatusCommand)
|
|
20
|
-
.de(de_UpdateEnrollmentStatusCommand)
|
|
14
|
+
.sc(UpdateEnrollmentStatus)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_0Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.computeoptimizer",
|
|
29
|
+
serviceTarget: "ComputeOptimizerService",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Compute Optimizer",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|