@aws-sdk/client-cost-explorer 3.312.0 → 3.316.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/CostExplorer.js +41 -518
- package/dist-cjs/protocols/Aws_json1_1.js +452 -2214
- package/dist-es/CostExplorer.js +41 -518
- package/dist-es/protocols/Aws_json1_1.js +453 -2215
- package/dist-types/CostExplorer.d.ts +59 -278
- package/dist-types/ts3.4/CostExplorer.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/CostExplorer.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CostExplorer = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateAnomalyMonitorCommand_1 = require("./commands/CreateAnomalyMonitorCommand");
|
|
5
6
|
const CreateAnomalySubscriptionCommand_1 = require("./commands/CreateAnomalySubscriptionCommand");
|
|
6
7
|
const CreateCostCategoryDefinitionCommand_1 = require("./commands/CreateCostCategoryDefinitionCommand");
|
|
@@ -39,524 +40,46 @@ const UpdateAnomalySubscriptionCommand_1 = require("./commands/UpdateAnomalySubs
|
|
|
39
40
|
const UpdateCostAllocationTagsStatusCommand_1 = require("./commands/UpdateCostAllocationTagsStatusCommand");
|
|
40
41
|
const UpdateCostCategoryDefinitionCommand_1 = require("./commands/UpdateCostCategoryDefinitionCommand");
|
|
41
42
|
const CostExplorerClient_1 = require("./CostExplorerClient");
|
|
43
|
+
const commands = {
|
|
44
|
+
CreateAnomalyMonitorCommand: CreateAnomalyMonitorCommand_1.CreateAnomalyMonitorCommand,
|
|
45
|
+
CreateAnomalySubscriptionCommand: CreateAnomalySubscriptionCommand_1.CreateAnomalySubscriptionCommand,
|
|
46
|
+
CreateCostCategoryDefinitionCommand: CreateCostCategoryDefinitionCommand_1.CreateCostCategoryDefinitionCommand,
|
|
47
|
+
DeleteAnomalyMonitorCommand: DeleteAnomalyMonitorCommand_1.DeleteAnomalyMonitorCommand,
|
|
48
|
+
DeleteAnomalySubscriptionCommand: DeleteAnomalySubscriptionCommand_1.DeleteAnomalySubscriptionCommand,
|
|
49
|
+
DeleteCostCategoryDefinitionCommand: DeleteCostCategoryDefinitionCommand_1.DeleteCostCategoryDefinitionCommand,
|
|
50
|
+
DescribeCostCategoryDefinitionCommand: DescribeCostCategoryDefinitionCommand_1.DescribeCostCategoryDefinitionCommand,
|
|
51
|
+
GetAnomaliesCommand: GetAnomaliesCommand_1.GetAnomaliesCommand,
|
|
52
|
+
GetAnomalyMonitorsCommand: GetAnomalyMonitorsCommand_1.GetAnomalyMonitorsCommand,
|
|
53
|
+
GetAnomalySubscriptionsCommand: GetAnomalySubscriptionsCommand_1.GetAnomalySubscriptionsCommand,
|
|
54
|
+
GetCostAndUsageCommand: GetCostAndUsageCommand_1.GetCostAndUsageCommand,
|
|
55
|
+
GetCostAndUsageWithResourcesCommand: GetCostAndUsageWithResourcesCommand_1.GetCostAndUsageWithResourcesCommand,
|
|
56
|
+
GetCostCategoriesCommand: GetCostCategoriesCommand_1.GetCostCategoriesCommand,
|
|
57
|
+
GetCostForecastCommand: GetCostForecastCommand_1.GetCostForecastCommand,
|
|
58
|
+
GetDimensionValuesCommand: GetDimensionValuesCommand_1.GetDimensionValuesCommand,
|
|
59
|
+
GetReservationCoverageCommand: GetReservationCoverageCommand_1.GetReservationCoverageCommand,
|
|
60
|
+
GetReservationPurchaseRecommendationCommand: GetReservationPurchaseRecommendationCommand_1.GetReservationPurchaseRecommendationCommand,
|
|
61
|
+
GetReservationUtilizationCommand: GetReservationUtilizationCommand_1.GetReservationUtilizationCommand,
|
|
62
|
+
GetRightsizingRecommendationCommand: GetRightsizingRecommendationCommand_1.GetRightsizingRecommendationCommand,
|
|
63
|
+
GetSavingsPlansCoverageCommand: GetSavingsPlansCoverageCommand_1.GetSavingsPlansCoverageCommand,
|
|
64
|
+
GetSavingsPlansPurchaseRecommendationCommand: GetSavingsPlansPurchaseRecommendationCommand_1.GetSavingsPlansPurchaseRecommendationCommand,
|
|
65
|
+
GetSavingsPlansUtilizationCommand: GetSavingsPlansUtilizationCommand_1.GetSavingsPlansUtilizationCommand,
|
|
66
|
+
GetSavingsPlansUtilizationDetailsCommand: GetSavingsPlansUtilizationDetailsCommand_1.GetSavingsPlansUtilizationDetailsCommand,
|
|
67
|
+
GetTagsCommand: GetTagsCommand_1.GetTagsCommand,
|
|
68
|
+
GetUsageForecastCommand: GetUsageForecastCommand_1.GetUsageForecastCommand,
|
|
69
|
+
ListCostAllocationTagsCommand: ListCostAllocationTagsCommand_1.ListCostAllocationTagsCommand,
|
|
70
|
+
ListCostCategoryDefinitionsCommand: ListCostCategoryDefinitionsCommand_1.ListCostCategoryDefinitionsCommand,
|
|
71
|
+
ListSavingsPlansPurchaseRecommendationGenerationCommand: ListSavingsPlansPurchaseRecommendationGenerationCommand_1.ListSavingsPlansPurchaseRecommendationGenerationCommand,
|
|
72
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
73
|
+
ProvideAnomalyFeedbackCommand: ProvideAnomalyFeedbackCommand_1.ProvideAnomalyFeedbackCommand,
|
|
74
|
+
StartSavingsPlansPurchaseRecommendationGenerationCommand: StartSavingsPlansPurchaseRecommendationGenerationCommand_1.StartSavingsPlansPurchaseRecommendationGenerationCommand,
|
|
75
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
76
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
77
|
+
UpdateAnomalyMonitorCommand: UpdateAnomalyMonitorCommand_1.UpdateAnomalyMonitorCommand,
|
|
78
|
+
UpdateAnomalySubscriptionCommand: UpdateAnomalySubscriptionCommand_1.UpdateAnomalySubscriptionCommand,
|
|
79
|
+
UpdateCostAllocationTagsStatusCommand: UpdateCostAllocationTagsStatusCommand_1.UpdateCostAllocationTagsStatusCommand,
|
|
80
|
+
UpdateCostCategoryDefinitionCommand: UpdateCostCategoryDefinitionCommand_1.UpdateCostCategoryDefinitionCommand,
|
|
81
|
+
};
|
|
42
82
|
class CostExplorer extends CostExplorerClient_1.CostExplorerClient {
|
|
43
|
-
createAnomalyMonitor(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new CreateAnomalyMonitorCommand_1.CreateAnomalyMonitorCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
createAnomalySubscription(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new CreateAnomalySubscriptionCommand_1.CreateAnomalySubscriptionCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
createCostCategoryDefinition(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new CreateCostCategoryDefinitionCommand_1.CreateCostCategoryDefinitionCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
deleteAnomalyMonitor(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DeleteAnomalyMonitorCommand_1.DeleteAnomalyMonitorCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
deleteAnomalySubscription(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new DeleteAnomalySubscriptionCommand_1.DeleteAnomalySubscriptionCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
deleteCostCategoryDefinition(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new DeleteCostCategoryDefinitionCommand_1.DeleteCostCategoryDefinitionCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
describeCostCategoryDefinition(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new DescribeCostCategoryDefinitionCommand_1.DescribeCostCategoryDefinitionCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
getAnomalies(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new GetAnomaliesCommand_1.GetAnomaliesCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
getAnomalyMonitors(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new GetAnomalyMonitorsCommand_1.GetAnomalyMonitorsCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
getAnomalySubscriptions(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new GetAnomalySubscriptionsCommand_1.GetAnomalySubscriptionsCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
getCostAndUsage(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new GetCostAndUsageCommand_1.GetCostAndUsageCommand(args);
|
|
185
|
-
if (typeof optionsOrCb === "function") {
|
|
186
|
-
this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
else if (typeof cb === "function") {
|
|
189
|
-
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return this.send(command, optionsOrCb);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
getCostAndUsageWithResources(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new GetCostAndUsageWithResourcesCommand_1.GetCostAndUsageWithResourcesCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
else if (typeof cb === "function") {
|
|
203
|
-
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return this.send(command, optionsOrCb);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
getCostCategories(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new GetCostCategoriesCommand_1.GetCostCategoriesCommand(args);
|
|
213
|
-
if (typeof optionsOrCb === "function") {
|
|
214
|
-
this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
else if (typeof cb === "function") {
|
|
217
|
-
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return this.send(command, optionsOrCb);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
getCostForecast(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new GetCostForecastCommand_1.GetCostForecastCommand(args);
|
|
227
|
-
if (typeof optionsOrCb === "function") {
|
|
228
|
-
this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
else if (typeof cb === "function") {
|
|
231
|
-
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
return this.send(command, optionsOrCb);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
getDimensionValues(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new GetDimensionValuesCommand_1.GetDimensionValuesCommand(args);
|
|
241
|
-
if (typeof optionsOrCb === "function") {
|
|
242
|
-
this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
else if (typeof cb === "function") {
|
|
245
|
-
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
return this.send(command, optionsOrCb);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
getReservationCoverage(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new GetReservationCoverageCommand_1.GetReservationCoverageCommand(args);
|
|
255
|
-
if (typeof optionsOrCb === "function") {
|
|
256
|
-
this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
else if (typeof cb === "function") {
|
|
259
|
-
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return this.send(command, optionsOrCb);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
getReservationPurchaseRecommendation(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new GetReservationPurchaseRecommendationCommand_1.GetReservationPurchaseRecommendationCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
else if (typeof cb === "function") {
|
|
273
|
-
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
return this.send(command, optionsOrCb);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
getReservationUtilization(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new GetReservationUtilizationCommand_1.GetReservationUtilizationCommand(args);
|
|
283
|
-
if (typeof optionsOrCb === "function") {
|
|
284
|
-
this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof cb === "function") {
|
|
287
|
-
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
return this.send(command, optionsOrCb);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
getRightsizingRecommendation(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new GetRightsizingRecommendationCommand_1.GetRightsizingRecommendationCommand(args);
|
|
297
|
-
if (typeof optionsOrCb === "function") {
|
|
298
|
-
this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
else if (typeof cb === "function") {
|
|
301
|
-
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
return this.send(command, optionsOrCb);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
getSavingsPlansCoverage(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new GetSavingsPlansCoverageCommand_1.GetSavingsPlansCoverageCommand(args);
|
|
311
|
-
if (typeof optionsOrCb === "function") {
|
|
312
|
-
this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
else if (typeof cb === "function") {
|
|
315
|
-
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return this.send(command, optionsOrCb);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
getSavingsPlansPurchaseRecommendation(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new GetSavingsPlansPurchaseRecommendationCommand_1.GetSavingsPlansPurchaseRecommendationCommand(args);
|
|
325
|
-
if (typeof optionsOrCb === "function") {
|
|
326
|
-
this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
else if (typeof cb === "function") {
|
|
329
|
-
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
getSavingsPlansUtilization(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new GetSavingsPlansUtilizationCommand_1.GetSavingsPlansUtilizationCommand(args);
|
|
339
|
-
if (typeof optionsOrCb === "function") {
|
|
340
|
-
this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
else if (typeof cb === "function") {
|
|
343
|
-
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
return this.send(command, optionsOrCb);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
getSavingsPlansUtilizationDetails(args, optionsOrCb, cb) {
|
|
352
|
-
const command = new GetSavingsPlansUtilizationDetailsCommand_1.GetSavingsPlansUtilizationDetailsCommand(args);
|
|
353
|
-
if (typeof optionsOrCb === "function") {
|
|
354
|
-
this.send(command, optionsOrCb);
|
|
355
|
-
}
|
|
356
|
-
else if (typeof cb === "function") {
|
|
357
|
-
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
return this.send(command, optionsOrCb);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
getTags(args, optionsOrCb, cb) {
|
|
366
|
-
const command = new GetTagsCommand_1.GetTagsCommand(args);
|
|
367
|
-
if (typeof optionsOrCb === "function") {
|
|
368
|
-
this.send(command, optionsOrCb);
|
|
369
|
-
}
|
|
370
|
-
else if (typeof cb === "function") {
|
|
371
|
-
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
return this.send(command, optionsOrCb);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
getUsageForecast(args, optionsOrCb, cb) {
|
|
380
|
-
const command = new GetUsageForecastCommand_1.GetUsageForecastCommand(args);
|
|
381
|
-
if (typeof optionsOrCb === "function") {
|
|
382
|
-
this.send(command, optionsOrCb);
|
|
383
|
-
}
|
|
384
|
-
else if (typeof cb === "function") {
|
|
385
|
-
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
387
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
390
|
-
return this.send(command, optionsOrCb);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
listCostAllocationTags(args, optionsOrCb, cb) {
|
|
394
|
-
const command = new ListCostAllocationTagsCommand_1.ListCostAllocationTagsCommand(args);
|
|
395
|
-
if (typeof optionsOrCb === "function") {
|
|
396
|
-
this.send(command, optionsOrCb);
|
|
397
|
-
}
|
|
398
|
-
else if (typeof cb === "function") {
|
|
399
|
-
if (typeof optionsOrCb !== "object")
|
|
400
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
401
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
return this.send(command, optionsOrCb);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
listCostCategoryDefinitions(args, optionsOrCb, cb) {
|
|
408
|
-
const command = new ListCostCategoryDefinitionsCommand_1.ListCostCategoryDefinitionsCommand(args);
|
|
409
|
-
if (typeof optionsOrCb === "function") {
|
|
410
|
-
this.send(command, optionsOrCb);
|
|
411
|
-
}
|
|
412
|
-
else if (typeof cb === "function") {
|
|
413
|
-
if (typeof optionsOrCb !== "object")
|
|
414
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
415
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
return this.send(command, optionsOrCb);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
listSavingsPlansPurchaseRecommendationGeneration(args, optionsOrCb, cb) {
|
|
422
|
-
const command = new ListSavingsPlansPurchaseRecommendationGenerationCommand_1.ListSavingsPlansPurchaseRecommendationGenerationCommand(args);
|
|
423
|
-
if (typeof optionsOrCb === "function") {
|
|
424
|
-
this.send(command, optionsOrCb);
|
|
425
|
-
}
|
|
426
|
-
else if (typeof cb === "function") {
|
|
427
|
-
if (typeof optionsOrCb !== "object")
|
|
428
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
429
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
430
|
-
}
|
|
431
|
-
else {
|
|
432
|
-
return this.send(command, optionsOrCb);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
436
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
437
|
-
if (typeof optionsOrCb === "function") {
|
|
438
|
-
this.send(command, optionsOrCb);
|
|
439
|
-
}
|
|
440
|
-
else if (typeof cb === "function") {
|
|
441
|
-
if (typeof optionsOrCb !== "object")
|
|
442
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
443
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
return this.send(command, optionsOrCb);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
provideAnomalyFeedback(args, optionsOrCb, cb) {
|
|
450
|
-
const command = new ProvideAnomalyFeedbackCommand_1.ProvideAnomalyFeedbackCommand(args);
|
|
451
|
-
if (typeof optionsOrCb === "function") {
|
|
452
|
-
this.send(command, optionsOrCb);
|
|
453
|
-
}
|
|
454
|
-
else if (typeof cb === "function") {
|
|
455
|
-
if (typeof optionsOrCb !== "object")
|
|
456
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
457
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
458
|
-
}
|
|
459
|
-
else {
|
|
460
|
-
return this.send(command, optionsOrCb);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
startSavingsPlansPurchaseRecommendationGeneration(args, optionsOrCb, cb) {
|
|
464
|
-
const command = new StartSavingsPlansPurchaseRecommendationGenerationCommand_1.StartSavingsPlansPurchaseRecommendationGenerationCommand(args);
|
|
465
|
-
if (typeof optionsOrCb === "function") {
|
|
466
|
-
this.send(command, optionsOrCb);
|
|
467
|
-
}
|
|
468
|
-
else if (typeof cb === "function") {
|
|
469
|
-
if (typeof optionsOrCb !== "object")
|
|
470
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
471
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
return this.send(command, optionsOrCb);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
tagResource(args, optionsOrCb, cb) {
|
|
478
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
479
|
-
if (typeof optionsOrCb === "function") {
|
|
480
|
-
this.send(command, optionsOrCb);
|
|
481
|
-
}
|
|
482
|
-
else if (typeof cb === "function") {
|
|
483
|
-
if (typeof optionsOrCb !== "object")
|
|
484
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
485
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
return this.send(command, optionsOrCb);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
untagResource(args, optionsOrCb, cb) {
|
|
492
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
493
|
-
if (typeof optionsOrCb === "function") {
|
|
494
|
-
this.send(command, optionsOrCb);
|
|
495
|
-
}
|
|
496
|
-
else if (typeof cb === "function") {
|
|
497
|
-
if (typeof optionsOrCb !== "object")
|
|
498
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
return this.send(command, optionsOrCb);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
updateAnomalyMonitor(args, optionsOrCb, cb) {
|
|
506
|
-
const command = new UpdateAnomalyMonitorCommand_1.UpdateAnomalyMonitorCommand(args);
|
|
507
|
-
if (typeof optionsOrCb === "function") {
|
|
508
|
-
this.send(command, optionsOrCb);
|
|
509
|
-
}
|
|
510
|
-
else if (typeof cb === "function") {
|
|
511
|
-
if (typeof optionsOrCb !== "object")
|
|
512
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
513
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
return this.send(command, optionsOrCb);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
updateAnomalySubscription(args, optionsOrCb, cb) {
|
|
520
|
-
const command = new UpdateAnomalySubscriptionCommand_1.UpdateAnomalySubscriptionCommand(args);
|
|
521
|
-
if (typeof optionsOrCb === "function") {
|
|
522
|
-
this.send(command, optionsOrCb);
|
|
523
|
-
}
|
|
524
|
-
else if (typeof cb === "function") {
|
|
525
|
-
if (typeof optionsOrCb !== "object")
|
|
526
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
527
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
return this.send(command, optionsOrCb);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
updateCostAllocationTagsStatus(args, optionsOrCb, cb) {
|
|
534
|
-
const command = new UpdateCostAllocationTagsStatusCommand_1.UpdateCostAllocationTagsStatusCommand(args);
|
|
535
|
-
if (typeof optionsOrCb === "function") {
|
|
536
|
-
this.send(command, optionsOrCb);
|
|
537
|
-
}
|
|
538
|
-
else if (typeof cb === "function") {
|
|
539
|
-
if (typeof optionsOrCb !== "object")
|
|
540
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
541
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
return this.send(command, optionsOrCb);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
updateCostCategoryDefinition(args, optionsOrCb, cb) {
|
|
548
|
-
const command = new UpdateCostCategoryDefinitionCommand_1.UpdateCostCategoryDefinitionCommand(args);
|
|
549
|
-
if (typeof optionsOrCb === "function") {
|
|
550
|
-
this.send(command, optionsOrCb);
|
|
551
|
-
}
|
|
552
|
-
else if (typeof cb === "function") {
|
|
553
|
-
if (typeof optionsOrCb !== "object")
|
|
554
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
555
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
556
|
-
}
|
|
557
|
-
else {
|
|
558
|
-
return this.send(command, optionsOrCb);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
83
|
}
|
|
562
84
|
exports.CostExplorer = CostExplorer;
|
|
85
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CostExplorer);
|