@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.
- package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +18 -41
- package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +18 -41
- package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +18 -41
- package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +18 -41
- package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +18 -41
- package/dist-cjs/commands/GetEnrollmentStatusCommand.js +18 -41
- package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +18 -41
- package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +18 -41
- package/dist-cjs/commands/GetRecommendationSummariesCommand.js +18 -41
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +18 -41
- package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeRecommendationExportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +2 -24
- package/dist-cjs/pagination/GetLambdaFunctionRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetRecommendationPreferencesPaginator.js +2 -24
- package/dist-cjs/pagination/GetRecommendationSummariesPaginator.js +2 -24
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +18 -41
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +18 -41
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +18 -41
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +18 -41
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +18 -41
- package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +18 -41
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +18 -41
- package/dist-es/commands/ExportLicenseRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +18 -41
- package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +18 -41
- package/dist-es/commands/GetECSServiceRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +18 -41
- package/dist-es/commands/GetEnrollmentStatusCommand.js +18 -41
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +18 -41
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetLicenseRecommendationsCommand.js +18 -41
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +18 -41
- package/dist-es/commands/GetRecommendationSummariesCommand.js +18 -41
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +18 -41
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeRecommendationExportJobsPaginator.js +2 -23
- package/dist-es/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +2 -23
- package/dist-es/pagination/GetLambdaFunctionRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/GetRecommendationPreferencesPaginator.js +2 -23
- package/dist-es/pagination/GetRecommendationSummariesPaginator.js +2 -23
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +6 -21
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +6 -21
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ExportECSServiceRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ExportLicenseRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +6 -21
- package/dist-types/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +6 -21
- package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +6 -21
- package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +6 -21
- package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +6 -21
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetLicenseRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +6 -21
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +6 -21
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +6 -21
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeRecommendationExportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEnrollmentStatusesForOrganizationPaginator.d.ts +1 -1
- package/dist-types/pagination/GetLambdaFunctionRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetRecommendationPreferencesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetRecommendationSummariesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeRecommendationExportJobsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportEBSVolumeRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportEC2InstanceRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportECSServiceRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ExportLicenseRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetEBSVolumeRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetEC2InstanceRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetECSServiceRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetEnrollmentStatusCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetLambdaFunctionRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetLicenseRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetRecommendationSummariesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeRecommendationExportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEnrollmentStatusesForOrganizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetLambdaFunctionRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetRecommendationPreferencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetRecommendationSummariesPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class GetLicenseRecommendationsCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "ComputeOptimizerClient";
|
|
29
|
-
const commandName = "GetLicenseRecommendationsCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "ComputeOptimizerService",
|
|
38
|
-
operation: "GetLicenseRecommendations",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_0_1.se_GetLicenseRecommendationsCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_0_1.de_GetLicenseRecommendationsCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class GetLicenseRecommendationsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ComputeOptimizerService", "GetLicenseRecommendations", {})
|
|
22
|
+
.n("ComputeOptimizerClient", "GetLicenseRecommendationsCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_GetLicenseRecommendationsCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_GetLicenseRecommendationsCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.GetLicenseRecommendationsCommand = GetLicenseRecommendationsCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class GetRecommendationPreferencesCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "ComputeOptimizerClient";
|
|
29
|
-
const commandName = "GetRecommendationPreferencesCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "ComputeOptimizerService",
|
|
38
|
-
operation: "GetRecommendationPreferences",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_0_1.se_GetRecommendationPreferencesCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_0_1.de_GetRecommendationPreferencesCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class GetRecommendationPreferencesCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ComputeOptimizerService", "GetRecommendationPreferences", {})
|
|
22
|
+
.n("ComputeOptimizerClient", "GetRecommendationPreferencesCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_GetRecommendationPreferencesCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_GetRecommendationPreferencesCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.GetRecommendationPreferencesCommand = GetRecommendationPreferencesCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class GetRecommendationSummariesCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "ComputeOptimizerClient";
|
|
29
|
-
const commandName = "GetRecommendationSummariesCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "ComputeOptimizerService",
|
|
38
|
-
operation: "GetRecommendationSummaries",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_0_1.se_GetRecommendationSummariesCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_0_1.de_GetRecommendationSummariesCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class GetRecommendationSummariesCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ComputeOptimizerService", "GetRecommendationSummaries", {})
|
|
22
|
+
.n("ComputeOptimizerClient", "GetRecommendationSummariesCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_GetRecommendationSummariesCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_GetRecommendationSummariesCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.GetRecommendationSummariesCommand = GetRecommendationSummariesCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class PutRecommendationPreferencesCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "ComputeOptimizerClient";
|
|
29
|
-
const commandName = "PutRecommendationPreferencesCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "ComputeOptimizerService",
|
|
38
|
-
operation: "PutRecommendationPreferences",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_0_1.se_PutRecommendationPreferencesCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_0_1.de_PutRecommendationPreferencesCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class PutRecommendationPreferencesCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ComputeOptimizerService", "PutRecommendationPreferences", {})
|
|
22
|
+
.n("ComputeOptimizerClient", "PutRecommendationPreferencesCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_PutRecommendationPreferencesCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_PutRecommendationPreferencesCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.PutRecommendationPreferencesCommand = PutRecommendationPreferencesCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class UpdateEnrollmentStatusCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "ComputeOptimizerClient";
|
|
29
|
-
const commandName = "UpdateEnrollmentStatusCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "ComputeOptimizerService",
|
|
38
|
-
operation: "UpdateEnrollmentStatus",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_0_1.se_UpdateEnrollmentStatusCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_0_1.de_UpdateEnrollmentStatusCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class UpdateEnrollmentStatusCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ComputeOptimizerService", "UpdateEnrollmentStatus", {})
|
|
22
|
+
.n("ComputeOptimizerClient", "UpdateEnrollmentStatusCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_UpdateEnrollmentStatusCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_UpdateEnrollmentStatusCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.UpdateEnrollmentStatusCommand = UpdateEnrollmentStatusCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeRecommendationExportJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeRecommendationExportJobsCommand_1 = require("../commands/DescribeRecommendationExportJobsCommand");
|
|
5
6
|
const ComputeOptimizerClient_1 = require("../ComputeOptimizerClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeRecommendationExportJobsCommand_1.DescribeRecommendationExportJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeRecommendationExportJobs(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ComputeOptimizerClient_1.ComputeOptimizerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeRecommendationExportJobs = paginateDescribeRecommendationExportJobs;
|
|
7
|
+
exports.paginateDescribeRecommendationExportJobs = (0, core_1.createPaginator)(ComputeOptimizerClient_1.ComputeOptimizerClient, DescribeRecommendationExportJobsCommand_1.DescribeRecommendationExportJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetEnrollmentStatusesForOrganization = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetEnrollmentStatusesForOrganizationCommand_1 = require("../commands/GetEnrollmentStatusesForOrganizationCommand");
|
|
5
6
|
const ComputeOptimizerClient_1 = require("../ComputeOptimizerClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetEnrollmentStatusesForOrganizationCommand_1.GetEnrollmentStatusesForOrganizationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetEnrollmentStatusesForOrganization(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ComputeOptimizerClient_1.ComputeOptimizerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetEnrollmentStatusesForOrganization = paginateGetEnrollmentStatusesForOrganization;
|
|
7
|
+
exports.paginateGetEnrollmentStatusesForOrganization = (0, core_1.createPaginator)(ComputeOptimizerClient_1.ComputeOptimizerClient, GetEnrollmentStatusesForOrganizationCommand_1.GetEnrollmentStatusesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetLambdaFunctionRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetLambdaFunctionRecommendationsCommand_1 = require("../commands/GetLambdaFunctionRecommendationsCommand");
|
|
5
6
|
const ComputeOptimizerClient_1 = require("../ComputeOptimizerClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetLambdaFunctionRecommendationsCommand_1.GetLambdaFunctionRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetLambdaFunctionRecommendations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ComputeOptimizerClient_1.ComputeOptimizerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetLambdaFunctionRecommendations = paginateGetLambdaFunctionRecommendations;
|
|
7
|
+
exports.paginateGetLambdaFunctionRecommendations = (0, core_1.createPaginator)(ComputeOptimizerClient_1.ComputeOptimizerClient, GetLambdaFunctionRecommendationsCommand_1.GetLambdaFunctionRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetRecommendationPreferences = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetRecommendationPreferencesCommand_1 = require("../commands/GetRecommendationPreferencesCommand");
|
|
5
6
|
const ComputeOptimizerClient_1 = require("../ComputeOptimizerClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetRecommendationPreferencesCommand_1.GetRecommendationPreferencesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetRecommendationPreferences(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ComputeOptimizerClient_1.ComputeOptimizerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetRecommendationPreferences = paginateGetRecommendationPreferences;
|
|
7
|
+
exports.paginateGetRecommendationPreferences = (0, core_1.createPaginator)(ComputeOptimizerClient_1.ComputeOptimizerClient, GetRecommendationPreferencesCommand_1.GetRecommendationPreferencesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetRecommendationSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetRecommendationSummariesCommand_1 = require("../commands/GetRecommendationSummariesCommand");
|
|
5
6
|
const ComputeOptimizerClient_1 = require("../ComputeOptimizerClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetRecommendationSummariesCommand_1.GetRecommendationSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetRecommendationSummaries(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ComputeOptimizerClient_1.ComputeOptimizerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ComputeOptimizer | ComputeOptimizerClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetRecommendationSummaries = paginateGetRecommendationSummaries;
|
|
7
|
+
exports.paginateGetRecommendationSummaries = (0, core_1.createPaginator)(ComputeOptimizerClient_1.ComputeOptimizerClient, GetRecommendationSummariesCommand_1.GetRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -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 {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_DeleteRecommendationPreferencesCommand, se_DeleteRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class DeleteRecommendationPreferencesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ComputeOptimizerClient";
|
|
26
|
-
const commandName = "DeleteRecommendationPreferencesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "ComputeOptimizerService",
|
|
35
|
-
operation: "DeleteRecommendationPreferences",
|
|
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_DeleteRecommendationPreferencesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_DeleteRecommendationPreferencesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class DeleteRecommendationPreferencesCommand 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", "DeleteRecommendationPreferences", {})
|
|
19
|
+
.n("ComputeOptimizerClient", "DeleteRecommendationPreferencesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteRecommendationPreferencesCommand)
|
|
22
|
+
.de(de_DeleteRecommendationPreferencesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|