@aws-sdk/client-compute-optimizer 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/ComputeOptimizer.js +81 -74
- package/dist-es/ComputeOptimizerClient.js +28 -22
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +28 -21
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +28 -21
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +28 -21
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +28 -21
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +28 -21
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +28 -21
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +28 -21
- package/dist-es/commands/GetEnrollmentStatusCommand.js +28 -21
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +28 -21
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +28 -21
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +28 -21
- package/dist-es/commands/GetRecommendationSummariesCommand.js +28 -21
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +28 -21
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComputeOptimizerServiceException.js +10 -5
- package/dist-es/models/models_0.js +174 -321
- package/dist-es/protocols/Aws_json1_0.js +2064 -1679
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetLambdaFunctionRecommendationsRequestFilterSensitiveLog, GetLambdaFunctionRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand, serializeAws_json1_0GetLambdaFunctionRecommendationsCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetLambdaFunctionRecommendationsCommand = (function (_super) {
|
|
7
|
+
__extends(GetLambdaFunctionRecommendationsCommand, _super);
|
|
8
|
+
function GetLambdaFunctionRecommendationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetLambdaFunctionRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComputeOptimizerClient";
|
|
18
|
+
var commandName = "GetLambdaFunctionRecommendationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetLambdaFunctionRecommendationsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetLambdaFunctionRecommendationsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetLambdaFunctionRecommendationsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0GetLambdaFunctionRecommendationsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetLambdaFunctionRecommendationsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetLambdaFunctionRecommendationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetLambdaFunctionRecommendationsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetRecommendationPreferencesRequestFilterSensitiveLog, GetRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0GetRecommendationPreferencesCommand, serializeAws_json1_0GetRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetRecommendationPreferencesCommand = (function (_super) {
|
|
7
|
+
__extends(GetRecommendationPreferencesCommand, _super);
|
|
8
|
+
function GetRecommendationPreferencesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetRecommendationPreferencesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComputeOptimizerClient";
|
|
18
|
+
var commandName = "GetRecommendationPreferencesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetRecommendationPreferencesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetRecommendationPreferencesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0GetRecommendationPreferencesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0GetRecommendationPreferencesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetRecommendationPreferencesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRecommendationPreferencesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetRecommendationSummariesRequestFilterSensitiveLog, GetRecommendationSummariesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0GetRecommendationSummariesCommand, serializeAws_json1_0GetRecommendationSummariesCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetRecommendationSummariesCommand = (function (_super) {
|
|
7
|
+
__extends(GetRecommendationSummariesCommand, _super);
|
|
8
|
+
function GetRecommendationSummariesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetRecommendationSummariesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComputeOptimizerClient";
|
|
18
|
+
var commandName = "GetRecommendationSummariesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetRecommendationSummariesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetRecommendationSummariesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRecommendationSummariesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0GetRecommendationSummariesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetRecommendationSummariesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0GetRecommendationSummariesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetRecommendationSummariesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRecommendationSummariesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { PutRecommendationPreferencesRequestFilterSensitiveLog, PutRecommendationPreferencesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0PutRecommendationPreferencesCommand, serializeAws_json1_0PutRecommendationPreferencesCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var PutRecommendationPreferencesCommand = (function (_super) {
|
|
7
|
+
__extends(PutRecommendationPreferencesCommand, _super);
|
|
8
|
+
function PutRecommendationPreferencesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
PutRecommendationPreferencesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComputeOptimizerClient";
|
|
18
|
+
var commandName = "PutRecommendationPreferencesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: PutRecommendationPreferencesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: PutRecommendationPreferencesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutRecommendationPreferencesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0PutRecommendationPreferencesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
PutRecommendationPreferencesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0PutRecommendationPreferencesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return PutRecommendationPreferencesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutRecommendationPreferencesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateEnrollmentStatusRequestFilterSensitiveLog, UpdateEnrollmentStatusResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0UpdateEnrollmentStatusCommand, serializeAws_json1_0UpdateEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateEnrollmentStatusCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateEnrollmentStatusCommand, _super);
|
|
8
|
+
function UpdateEnrollmentStatusCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateEnrollmentStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComputeOptimizerClient";
|
|
18
|
+
var commandName = "UpdateEnrollmentStatusCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateEnrollmentStatusRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: UpdateEnrollmentStatusResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateEnrollmentStatusCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0UpdateEnrollmentStatusCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateEnrollmentStatusCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0UpdateEnrollmentStatusCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateEnrollmentStatusCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateEnrollmentStatusCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"af-south-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -208,7 +209,7 @@ const regionHash = {
|
|
|
208
209
|
signingRegion: "us-west-2",
|
|
209
210
|
},
|
|
210
211
|
};
|
|
211
|
-
|
|
212
|
+
var partitionHash = {
|
|
212
213
|
aws: {
|
|
213
214
|
regions: [
|
|
214
215
|
"af-south-1",
|
|
@@ -328,9 +329,8 @@ const partitionHash = {
|
|
|
328
329
|
],
|
|
329
330
|
},
|
|
330
331
|
};
|
|
331
|
-
export
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
});
|
|
332
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
333
|
+
return __generator(this, function (_a) {
|
|
334
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "compute-optimizer", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
335
|
+
});
|
|
336
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var ComputeOptimizerServiceException = (function (_super) {
|
|
4
|
+
__extends(ComputeOptimizerServiceException, _super);
|
|
5
|
+
function ComputeOptimizerServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ComputeOptimizerServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return ComputeOptimizerServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ComputeOptimizerServiceException };
|