@aws-sdk/client-cost-optimization-hub 3.489.0 → 3.495.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,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CostOptimizationHubServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class CostOptimizationHubServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, CostOptimizationHubServiceException.prototype);
10
- }
11
- }
12
- exports.CostOptimizationHubServiceException = CostOptimizationHubServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,158 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Order = exports.ResourceNotFoundException = exports.Source = exports.ImplementationEffort = exports.ResourceType = exports.ResourceDetails = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.SavingsEstimationMode = exports.MemberAccountDiscountVisibility = exports.ActionType = exports.EnrollmentStatus = exports.AccessDeniedException = void 0;
4
- const CostOptimizationHubServiceException_1 = require("./CostOptimizationHubServiceException");
5
- class AccessDeniedException extends CostOptimizationHubServiceException_1.CostOptimizationHubServiceException {
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- this.name = "AccessDeniedException";
13
- this.$fault = "client";
14
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
- }
16
- }
17
- exports.AccessDeniedException = AccessDeniedException;
18
- exports.EnrollmentStatus = {
19
- ACTIVE: "Active",
20
- INACTIVE: "Inactive",
21
- };
22
- exports.ActionType = {
23
- MIGRATE_TO_GRAVITON: "MigrateToGraviton",
24
- PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
25
- PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
26
- RIGHTSIZE: "Rightsize",
27
- STOP: "Stop",
28
- UPGRADE: "Upgrade",
29
- };
30
- exports.MemberAccountDiscountVisibility = {
31
- ALL: "All",
32
- NONE: "None",
33
- };
34
- exports.SavingsEstimationMode = {
35
- AFTER_DISCOUNTS: "AfterDiscounts",
36
- BEFORE_DISCOUNTS: "BeforeDiscounts",
37
- };
38
- class InternalServerException extends CostOptimizationHubServiceException_1.CostOptimizationHubServiceException {
39
- constructor(opts) {
40
- super({
41
- name: "InternalServerException",
42
- $fault: "server",
43
- ...opts,
44
- });
45
- this.name = "InternalServerException";
46
- this.$fault = "server";
47
- Object.setPrototypeOf(this, InternalServerException.prototype);
48
- }
49
- }
50
- exports.InternalServerException = InternalServerException;
51
- class ThrottlingException extends CostOptimizationHubServiceException_1.CostOptimizationHubServiceException {
52
- constructor(opts) {
53
- super({
54
- name: "ThrottlingException",
55
- $fault: "client",
56
- ...opts,
57
- });
58
- this.name = "ThrottlingException";
59
- this.$fault = "client";
60
- Object.setPrototypeOf(this, ThrottlingException.prototype);
61
- }
62
- }
63
- exports.ThrottlingException = ThrottlingException;
64
- exports.ValidationExceptionReason = {
65
- FIELD_VALIDATION_FAILED: "FieldValidationFailed",
66
- OTHER: "Other",
67
- };
68
- class ValidationException extends CostOptimizationHubServiceException_1.CostOptimizationHubServiceException {
69
- constructor(opts) {
70
- super({
71
- name: "ValidationException",
72
- $fault: "client",
73
- ...opts,
74
- });
75
- this.name = "ValidationException";
76
- this.$fault = "client";
77
- Object.setPrototypeOf(this, ValidationException.prototype);
78
- this.reason = opts.reason;
79
- this.fields = opts.fields;
80
- }
81
- }
82
- exports.ValidationException = ValidationException;
83
- var ResourceDetails;
84
- (function (ResourceDetails) {
85
- ResourceDetails.visit = (value, visitor) => {
86
- if (value.lambdaFunction !== undefined)
87
- return visitor.lambdaFunction(value.lambdaFunction);
88
- if (value.ecsService !== undefined)
89
- return visitor.ecsService(value.ecsService);
90
- if (value.ec2Instance !== undefined)
91
- return visitor.ec2Instance(value.ec2Instance);
92
- if (value.ebsVolume !== undefined)
93
- return visitor.ebsVolume(value.ebsVolume);
94
- if (value.ec2AutoScalingGroup !== undefined)
95
- return visitor.ec2AutoScalingGroup(value.ec2AutoScalingGroup);
96
- if (value.ec2ReservedInstances !== undefined)
97
- return visitor.ec2ReservedInstances(value.ec2ReservedInstances);
98
- if (value.rdsReservedInstances !== undefined)
99
- return visitor.rdsReservedInstances(value.rdsReservedInstances);
100
- if (value.elastiCacheReservedInstances !== undefined)
101
- return visitor.elastiCacheReservedInstances(value.elastiCacheReservedInstances);
102
- if (value.openSearchReservedInstances !== undefined)
103
- return visitor.openSearchReservedInstances(value.openSearchReservedInstances);
104
- if (value.redshiftReservedInstances !== undefined)
105
- return visitor.redshiftReservedInstances(value.redshiftReservedInstances);
106
- if (value.ec2InstanceSavingsPlans !== undefined)
107
- return visitor.ec2InstanceSavingsPlans(value.ec2InstanceSavingsPlans);
108
- if (value.computeSavingsPlans !== undefined)
109
- return visitor.computeSavingsPlans(value.computeSavingsPlans);
110
- if (value.sageMakerSavingsPlans !== undefined)
111
- return visitor.sageMakerSavingsPlans(value.sageMakerSavingsPlans);
112
- return visitor._(value.$unknown[0], value.$unknown[1]);
113
- };
114
- })(ResourceDetails = exports.ResourceDetails || (exports.ResourceDetails = {}));
115
- exports.ResourceType = {
116
- COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans",
117
- EBS_VOLUME: "EbsVolume",
118
- EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup",
119
- EC2_INSTANCE: "Ec2Instance",
120
- EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans",
121
- EC2_RESERVED_INSTANCES: "Ec2ReservedInstances",
122
- ECS_SERVICE: "EcsService",
123
- ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances",
124
- LAMBDA_FUNCTION: "LambdaFunction",
125
- OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances",
126
- RDS_RESERVED_INSTANCES: "RdsReservedInstances",
127
- REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances",
128
- SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans",
129
- };
130
- exports.ImplementationEffort = {
131
- HIGH: "High",
132
- LOW: "Low",
133
- MEDIUM: "Medium",
134
- VERY_HIGH: "VeryHigh",
135
- VERY_LOW: "VeryLow",
136
- };
137
- exports.Source = {
138
- COMPUTE_OPTIMIZER: "ComputeOptimizer",
139
- COST_EXPLORER: "CostExplorer",
140
- };
141
- class ResourceNotFoundException extends CostOptimizationHubServiceException_1.CostOptimizationHubServiceException {
142
- constructor(opts) {
143
- super({
144
- name: "ResourceNotFoundException",
145
- $fault: "client",
146
- ...opts,
147
- });
148
- this.name = "ResourceNotFoundException";
149
- this.$fault = "client";
150
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
151
- this.resourceId = opts.resourceId;
152
- }
153
- }
154
- exports.ResourceNotFoundException = ResourceNotFoundException;
155
- exports.Order = {
156
- ASC: "Asc",
157
- DESC: "Desc",
158
- };
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");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListEnrollmentStatuses = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListEnrollmentStatusesCommand_1 = require("../commands/ListEnrollmentStatusesCommand");
6
- const CostOptimizationHubClient_1 = require("../CostOptimizationHubClient");
7
- exports.paginateListEnrollmentStatuses = (0, core_1.createPaginator)(CostOptimizationHubClient_1.CostOptimizationHubClient, ListEnrollmentStatusesCommand_1.ListEnrollmentStatusesCommand, "nextToken", "nextToken", "maxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListRecommendationSummaries = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListRecommendationSummariesCommand_1 = require("../commands/ListRecommendationSummariesCommand");
6
- const CostOptimizationHubClient_1 = require("../CostOptimizationHubClient");
7
- exports.paginateListRecommendationSummaries = (0, core_1.createPaginator)(CostOptimizationHubClient_1.CostOptimizationHubClient, ListRecommendationSummariesCommand_1.ListRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListRecommendations = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListRecommendationsCommand_1 = require("../commands/ListRecommendationsCommand");
6
- const CostOptimizationHubClient_1 = require("../CostOptimizationHubClient");
7
- exports.paginateListRecommendations = (0, core_1.createPaginator)(CostOptimizationHubClient_1.CostOptimizationHubClient, ListRecommendationsCommand_1.ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListEnrollmentStatusesPaginator"), exports);
6
- tslib_1.__exportStar(require("./ListRecommendationSummariesPaginator"), exports);
7
- tslib_1.__exportStar(require("./ListRecommendationsPaginator"), exports);
1
+ module.exports = require("../index.js");