@aws-sdk/client-cost-optimization-hub 3.490.0 → 3.496.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.
@@ -1,25 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CostOptimizationHub = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
6
- const GetRecommendationCommand_1 = require("./commands/GetRecommendationCommand");
7
- const ListEnrollmentStatusesCommand_1 = require("./commands/ListEnrollmentStatusesCommand");
8
- const ListRecommendationsCommand_1 = require("./commands/ListRecommendationsCommand");
9
- const ListRecommendationSummariesCommand_1 = require("./commands/ListRecommendationSummariesCommand");
10
- const UpdateEnrollmentStatusCommand_1 = require("./commands/UpdateEnrollmentStatusCommand");
11
- const UpdatePreferencesCommand_1 = require("./commands/UpdatePreferencesCommand");
12
- const CostOptimizationHubClient_1 = require("./CostOptimizationHubClient");
13
- const commands = {
14
- GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
15
- GetRecommendationCommand: GetRecommendationCommand_1.GetRecommendationCommand,
16
- ListEnrollmentStatusesCommand: ListEnrollmentStatusesCommand_1.ListEnrollmentStatusesCommand,
17
- ListRecommendationsCommand: ListRecommendationsCommand_1.ListRecommendationsCommand,
18
- ListRecommendationSummariesCommand: ListRecommendationSummariesCommand_1.ListRecommendationSummariesCommand,
19
- UpdateEnrollmentStatusCommand: UpdateEnrollmentStatusCommand_1.UpdateEnrollmentStatusCommand,
20
- UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
21
- };
22
- class CostOptimizationHub extends CostOptimizationHubClient_1.CostOptimizationHubClient {
23
- }
24
- exports.CostOptimizationHub = CostOptimizationHub;
25
- (0, smithy_client_1.createAggregatedClient)(commands, CostOptimizationHub);
1
+ module.exports = require("./index.js");
@@ -1,43 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CostOptimizationHubClient = exports.__Client = void 0;
4
- const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
5
- const middleware_logger_1 = require("@aws-sdk/middleware-logger");
6
- const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
7
- const middleware_signing_1 = require("@aws-sdk/middleware-signing");
8
- const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
9
- const config_resolver_1 = require("@smithy/config-resolver");
10
- const middleware_content_length_1 = require("@smithy/middleware-content-length");
11
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
12
- const middleware_retry_1 = require("@smithy/middleware-retry");
13
- const smithy_client_1 = require("@smithy/smithy-client");
14
- Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
- const EndpointParameters_1 = require("./endpoint/EndpointParameters");
16
- const runtimeConfig_1 = require("./runtimeConfig");
17
- const runtimeExtensions_1 = require("./runtimeExtensions");
18
- class CostOptimizationHubClient extends smithy_client_1.Client {
19
- constructor(...[configuration]) {
20
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
21
- const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
22
- const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
23
- const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
24
- const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
25
- const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
26
- const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
27
- const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
28
- const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
29
- super(_config_8);
30
- this.config = _config_8;
31
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
32
- this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
33
- this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
34
- this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
35
- this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
36
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
37
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
38
- }
39
- destroy() {
40
- super.destroy();
41
- }
42
- }
43
- exports.CostOptimizationHubClient = CostOptimizationHubClient;
1
+ module.exports = require("./index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPreferencesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class GetPreferencesCommand 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("CostOptimizationHubService", "GetPreferences", {})
22
- .n("CostOptimizationHubClient", "GetPreferencesCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_GetPreferencesCommand)
25
- .de(Aws_json1_0_1.de_GetPreferencesCommand)
26
- .build() {
27
- }
28
- exports.GetPreferencesCommand = GetPreferencesCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRecommendationCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class GetRecommendationCommand 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("CostOptimizationHubService", "GetRecommendation", {})
22
- .n("CostOptimizationHubClient", "GetRecommendationCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_GetRecommendationCommand)
25
- .de(Aws_json1_0_1.de_GetRecommendationCommand)
26
- .build() {
27
- }
28
- exports.GetRecommendationCommand = GetRecommendationCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListEnrollmentStatusesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class ListEnrollmentStatusesCommand 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("CostOptimizationHubService", "ListEnrollmentStatuses", {})
22
- .n("CostOptimizationHubClient", "ListEnrollmentStatusesCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_ListEnrollmentStatusesCommand)
25
- .de(Aws_json1_0_1.de_ListEnrollmentStatusesCommand)
26
- .build() {
27
- }
28
- exports.ListEnrollmentStatusesCommand = ListEnrollmentStatusesCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListRecommendationSummariesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class ListRecommendationSummariesCommand 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("CostOptimizationHubService", "ListRecommendationSummaries", {})
22
- .n("CostOptimizationHubClient", "ListRecommendationSummariesCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_ListRecommendationSummariesCommand)
25
- .de(Aws_json1_0_1.de_ListRecommendationSummariesCommand)
26
- .build() {
27
- }
28
- exports.ListRecommendationSummariesCommand = ListRecommendationSummariesCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListRecommendationsCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class ListRecommendationsCommand 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("CostOptimizationHubService", "ListRecommendations", {})
22
- .n("CostOptimizationHubClient", "ListRecommendationsCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_ListRecommendationsCommand)
25
- .de(Aws_json1_0_1.de_ListRecommendationsCommand)
26
- .build() {
27
- }
28
- exports.ListRecommendationsCommand = ListRecommendationsCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateEnrollmentStatusCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
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("CostOptimizationHubService", "UpdateEnrollmentStatus", {})
22
- .n("CostOptimizationHubClient", "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() {
27
- }
28
- exports.UpdateEnrollmentStatusCommand = UpdateEnrollmentStatusCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePreferencesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
- class UpdatePreferencesCommand 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("CostOptimizationHubService", "UpdatePreferences", {})
22
- .n("CostOptimizationHubClient", "UpdatePreferencesCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_json1_0_1.se_UpdatePreferencesCommand)
25
- .de(Aws_json1_0_1.de_UpdatePreferencesCommand)
26
- .build() {
27
- }
28
- exports.UpdatePreferencesCommand = UpdatePreferencesCommand;
1
+ module.exports = require("../index.js");
@@ -1,10 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
5
- tslib_1.__exportStar(require("./GetRecommendationCommand"), exports);
6
- tslib_1.__exportStar(require("./ListEnrollmentStatusesCommand"), exports);
7
- tslib_1.__exportStar(require("./ListRecommendationSummariesCommand"), exports);
8
- tslib_1.__exportStar(require("./ListRecommendationsCommand"), exports);
9
- tslib_1.__exportStar(require("./UpdateEnrollmentStatusCommand"), exports);
10
- tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
1
+ module.exports = require("../index.js");
@@ -1,18 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
- const resolveClientEndpointParameters = (options) => {
5
- return {
6
- ...options,
7
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
- useFipsEndpoint: options.useFipsEndpoint ?? false,
9
- defaultSigningName: "cost-optimization-hub",
10
- };
11
- };
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
+ module.exports = require("../index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("./index.js");