@aws-sdk/client-compute-optimizer 3.42.0 → 3.46.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/CHANGELOG.md +47 -0
- package/README.md +7 -10
- package/dist-cjs/ComputeOptimizer.js +60 -0
- package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +183 -51
- package/dist-cjs/protocols/Aws_json1_0.js +617 -1
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/ComputeOptimizer.js +60 -0
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +143 -40
- package/dist-es/protocols/Aws_json1_0.js +646 -8
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/ComputeOptimizer.d.ts +50 -27
- package/dist-types/ComputeOptimizerClient.d.ts +6 -2
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +38 -0
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +0 -1
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +0 -2
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +1 -4
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -4
- package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +1 -4
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +0 -1
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +0 -1
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +0 -1
- package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +0 -1
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +40 -0
- package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +0 -1
- package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +0 -1
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +0 -1
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +42 -0
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +0 -2
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +39 -0
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +0 -3
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +646 -282
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +20 -0
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +291 -77
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
package/README.md
CHANGED
|
@@ -34,19 +34,16 @@ using your favorite package manager:
|
|
|
34
34
|
|
|
35
35
|
The AWS SDK is modulized by clients and commands.
|
|
36
36
|
To send a request, you only need to import the `ComputeOptimizerClient` and
|
|
37
|
-
the commands you need, for example `
|
|
37
|
+
the commands you need, for example `DeleteRecommendationPreferencesCommand`:
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
40
|
// ES5 example
|
|
41
|
-
const {
|
|
42
|
-
ComputeOptimizerClient,
|
|
43
|
-
DescribeRecommendationExportJobsCommand,
|
|
44
|
-
} = require("@aws-sdk/client-compute-optimizer");
|
|
41
|
+
const { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer");
|
|
45
42
|
```
|
|
46
43
|
|
|
47
44
|
```ts
|
|
48
45
|
// ES6+ example
|
|
49
|
-
import { ComputeOptimizerClient,
|
|
46
|
+
import { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer";
|
|
50
47
|
```
|
|
51
48
|
|
|
52
49
|
### Usage
|
|
@@ -65,7 +62,7 @@ const client = new ComputeOptimizerClient({ region: "REGION" });
|
|
|
65
62
|
const params = {
|
|
66
63
|
/** input parameters */
|
|
67
64
|
};
|
|
68
|
-
const command = new
|
|
65
|
+
const command = new DeleteRecommendationPreferencesCommand(params);
|
|
69
66
|
```
|
|
70
67
|
|
|
71
68
|
#### Async/await
|
|
@@ -144,7 +141,7 @@ const client = new AWS.ComputeOptimizer({ region: "REGION" });
|
|
|
144
141
|
|
|
145
142
|
// async/await.
|
|
146
143
|
try {
|
|
147
|
-
const data = await client.
|
|
144
|
+
const data = await client.deleteRecommendationPreferences(params);
|
|
148
145
|
// process data.
|
|
149
146
|
} catch (error) {
|
|
150
147
|
// error handling.
|
|
@@ -152,7 +149,7 @@ try {
|
|
|
152
149
|
|
|
153
150
|
// Promises.
|
|
154
151
|
client
|
|
155
|
-
.
|
|
152
|
+
.deleteRecommendationPreferences(params)
|
|
156
153
|
.then((data) => {
|
|
157
154
|
// process data.
|
|
158
155
|
})
|
|
@@ -161,7 +158,7 @@ client
|
|
|
161
158
|
});
|
|
162
159
|
|
|
163
160
|
// callbacks.
|
|
164
|
-
client.
|
|
161
|
+
client.deleteRecommendationPreferences(params, (err, data) => {
|
|
165
162
|
// proccess err and data.
|
|
166
163
|
});
|
|
167
164
|
```
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ComputeOptimizer = void 0;
|
|
4
|
+
const DeleteRecommendationPreferencesCommand_1 = require("./commands/DeleteRecommendationPreferencesCommand");
|
|
4
5
|
const DescribeRecommendationExportJobsCommand_1 = require("./commands/DescribeRecommendationExportJobsCommand");
|
|
5
6
|
const ExportAutoScalingGroupRecommendationsCommand_1 = require("./commands/ExportAutoScalingGroupRecommendationsCommand");
|
|
6
7
|
const ExportEBSVolumeRecommendationsCommand_1 = require("./commands/ExportEBSVolumeRecommendationsCommand");
|
|
@@ -10,13 +11,30 @@ const GetAutoScalingGroupRecommendationsCommand_1 = require("./commands/GetAutoS
|
|
|
10
11
|
const GetEBSVolumeRecommendationsCommand_1 = require("./commands/GetEBSVolumeRecommendationsCommand");
|
|
11
12
|
const GetEC2InstanceRecommendationsCommand_1 = require("./commands/GetEC2InstanceRecommendationsCommand");
|
|
12
13
|
const GetEC2RecommendationProjectedMetricsCommand_1 = require("./commands/GetEC2RecommendationProjectedMetricsCommand");
|
|
14
|
+
const GetEffectiveRecommendationPreferencesCommand_1 = require("./commands/GetEffectiveRecommendationPreferencesCommand");
|
|
13
15
|
const GetEnrollmentStatusCommand_1 = require("./commands/GetEnrollmentStatusCommand");
|
|
14
16
|
const GetEnrollmentStatusesForOrganizationCommand_1 = require("./commands/GetEnrollmentStatusesForOrganizationCommand");
|
|
15
17
|
const GetLambdaFunctionRecommendationsCommand_1 = require("./commands/GetLambdaFunctionRecommendationsCommand");
|
|
18
|
+
const GetRecommendationPreferencesCommand_1 = require("./commands/GetRecommendationPreferencesCommand");
|
|
16
19
|
const GetRecommendationSummariesCommand_1 = require("./commands/GetRecommendationSummariesCommand");
|
|
20
|
+
const PutRecommendationPreferencesCommand_1 = require("./commands/PutRecommendationPreferencesCommand");
|
|
17
21
|
const UpdateEnrollmentStatusCommand_1 = require("./commands/UpdateEnrollmentStatusCommand");
|
|
18
22
|
const ComputeOptimizerClient_1 = require("./ComputeOptimizerClient");
|
|
19
23
|
class ComputeOptimizer extends ComputeOptimizerClient_1.ComputeOptimizerClient {
|
|
24
|
+
deleteRecommendationPreferences(args, optionsOrCb, cb) {
|
|
25
|
+
const command = new DeleteRecommendationPreferencesCommand_1.DeleteRecommendationPreferencesCommand(args);
|
|
26
|
+
if (typeof optionsOrCb === "function") {
|
|
27
|
+
this.send(command, optionsOrCb);
|
|
28
|
+
}
|
|
29
|
+
else if (typeof cb === "function") {
|
|
30
|
+
if (typeof optionsOrCb !== "object")
|
|
31
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return this.send(command, optionsOrCb);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
20
38
|
describeRecommendationExportJobs(args, optionsOrCb, cb) {
|
|
21
39
|
const command = new DescribeRecommendationExportJobsCommand_1.DescribeRecommendationExportJobsCommand(args);
|
|
22
40
|
if (typeof optionsOrCb === "function") {
|
|
@@ -143,6 +161,20 @@ class ComputeOptimizer extends ComputeOptimizerClient_1.ComputeOptimizerClient {
|
|
|
143
161
|
return this.send(command, optionsOrCb);
|
|
144
162
|
}
|
|
145
163
|
}
|
|
164
|
+
getEffectiveRecommendationPreferences(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new GetEffectiveRecommendationPreferencesCommand_1.GetEffectiveRecommendationPreferencesCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
146
178
|
getEnrollmentStatus(args, optionsOrCb, cb) {
|
|
147
179
|
const command = new GetEnrollmentStatusCommand_1.GetEnrollmentStatusCommand(args);
|
|
148
180
|
if (typeof optionsOrCb === "function") {
|
|
@@ -185,6 +217,20 @@ class ComputeOptimizer extends ComputeOptimizerClient_1.ComputeOptimizerClient {
|
|
|
185
217
|
return this.send(command, optionsOrCb);
|
|
186
218
|
}
|
|
187
219
|
}
|
|
220
|
+
getRecommendationPreferences(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new GetRecommendationPreferencesCommand_1.GetRecommendationPreferencesCommand(args);
|
|
222
|
+
if (typeof optionsOrCb === "function") {
|
|
223
|
+
this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
else if (typeof cb === "function") {
|
|
226
|
+
if (typeof optionsOrCb !== "object")
|
|
227
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
return this.send(command, optionsOrCb);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
188
234
|
getRecommendationSummaries(args, optionsOrCb, cb) {
|
|
189
235
|
const command = new GetRecommendationSummariesCommand_1.GetRecommendationSummariesCommand(args);
|
|
190
236
|
if (typeof optionsOrCb === "function") {
|
|
@@ -199,6 +245,20 @@ class ComputeOptimizer extends ComputeOptimizerClient_1.ComputeOptimizerClient {
|
|
|
199
245
|
return this.send(command, optionsOrCb);
|
|
200
246
|
}
|
|
201
247
|
}
|
|
248
|
+
putRecommendationPreferences(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new PutRecommendationPreferencesCommand_1.PutRecommendationPreferencesCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
202
262
|
updateEnrollmentStatus(args, optionsOrCb, cb) {
|
|
203
263
|
const command = new UpdateEnrollmentStatusCommand_1.UpdateEnrollmentStatusCommand(args);
|
|
204
264
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteRecommendationPreferencesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
+
class DeleteRecommendationPreferencesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComputeOptimizerClient";
|
|
18
|
+
const commandName = "DeleteRecommendationPreferencesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteRecommendationPreferencesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteRecommendationPreferencesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_0_1.serializeAws_json1_0DeleteRecommendationPreferencesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_0_1.deserializeAws_json1_0DeleteRecommendationPreferencesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteRecommendationPreferencesCommand = DeleteRecommendationPreferencesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEffectiveRecommendationPreferencesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
+
class GetEffectiveRecommendationPreferencesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComputeOptimizerClient";
|
|
18
|
+
const commandName = "GetEffectiveRecommendationPreferencesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetEffectiveRecommendationPreferencesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetEffectiveRecommendationPreferencesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_0_1.serializeAws_json1_0GetEffectiveRecommendationPreferencesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_0_1.deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetEffectiveRecommendationPreferencesCommand = GetEffectiveRecommendationPreferencesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetRecommendationPreferencesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
+
class GetRecommendationPreferencesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComputeOptimizerClient";
|
|
18
|
+
const commandName = "GetRecommendationPreferencesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetRecommendationPreferencesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetRecommendationPreferencesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_0_1.serializeAws_json1_0GetRecommendationPreferencesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_0_1.deserializeAws_json1_0GetRecommendationPreferencesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetRecommendationPreferencesCommand = GetRecommendationPreferencesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutRecommendationPreferencesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
+
class PutRecommendationPreferencesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComputeOptimizerClient";
|
|
18
|
+
const commandName = "PutRecommendationPreferencesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutRecommendationPreferencesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.PutRecommendationPreferencesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_0_1.serializeAws_json1_0PutRecommendationPreferencesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_0_1.deserializeAws_json1_0PutRecommendationPreferencesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutRecommendationPreferencesCommand = PutRecommendationPreferencesCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DeleteRecommendationPreferencesCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./DescribeRecommendationExportJobsCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ExportAutoScalingGroupRecommendationsCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ExportEBSVolumeRecommendationsCommand"), exports);
|
|
@@ -10,8 +11,11 @@ tslib_1.__exportStar(require("./GetAutoScalingGroupRecommendationsCommand"), exp
|
|
|
10
11
|
tslib_1.__exportStar(require("./GetEBSVolumeRecommendationsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./GetEC2InstanceRecommendationsCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetEC2RecommendationProjectedMetricsCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GetEffectiveRecommendationPreferencesCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./GetEnrollmentStatusCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./GetEnrollmentStatusesForOrganizationCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetLambdaFunctionRecommendationsCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetRecommendationPreferencesCommand"), exports);
|
|
16
19
|
tslib_1.__exportStar(require("./GetRecommendationSummariesCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./PutRecommendationPreferencesCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./UpdateEnrollmentStatusCommand"), exports);
|