@aws-sdk/client-budgets 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/Budgets.js +27 -322
- package/dist-cjs/protocols/Aws_json1_1.js +320 -849
- package/dist-es/Budgets.js +27 -322
- package/dist-es/protocols/Aws_json1_1.js +321 -850
- package/dist-types/Budgets.d.ts +72 -132
- package/dist-types/ts3.4/Budgets.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/Budgets.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Budgets = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BudgetsClient_1 = require("./BudgetsClient");
|
|
5
6
|
const CreateBudgetActionCommand_1 = require("./commands/CreateBudgetActionCommand");
|
|
6
7
|
const CreateBudgetCommand_1 = require("./commands/CreateBudgetCommand");
|
|
@@ -25,328 +26,32 @@ const UpdateBudgetActionCommand_1 = require("./commands/UpdateBudgetActionComman
|
|
|
25
26
|
const UpdateBudgetCommand_1 = require("./commands/UpdateBudgetCommand");
|
|
26
27
|
const UpdateNotificationCommand_1 = require("./commands/UpdateNotificationCommand");
|
|
27
28
|
const UpdateSubscriberCommand_1 = require("./commands/UpdateSubscriberCommand");
|
|
29
|
+
const commands = {
|
|
30
|
+
CreateBudgetCommand: CreateBudgetCommand_1.CreateBudgetCommand,
|
|
31
|
+
CreateBudgetActionCommand: CreateBudgetActionCommand_1.CreateBudgetActionCommand,
|
|
32
|
+
CreateNotificationCommand: CreateNotificationCommand_1.CreateNotificationCommand,
|
|
33
|
+
CreateSubscriberCommand: CreateSubscriberCommand_1.CreateSubscriberCommand,
|
|
34
|
+
DeleteBudgetCommand: DeleteBudgetCommand_1.DeleteBudgetCommand,
|
|
35
|
+
DeleteBudgetActionCommand: DeleteBudgetActionCommand_1.DeleteBudgetActionCommand,
|
|
36
|
+
DeleteNotificationCommand: DeleteNotificationCommand_1.DeleteNotificationCommand,
|
|
37
|
+
DeleteSubscriberCommand: DeleteSubscriberCommand_1.DeleteSubscriberCommand,
|
|
38
|
+
DescribeBudgetCommand: DescribeBudgetCommand_1.DescribeBudgetCommand,
|
|
39
|
+
DescribeBudgetActionCommand: DescribeBudgetActionCommand_1.DescribeBudgetActionCommand,
|
|
40
|
+
DescribeBudgetActionHistoriesCommand: DescribeBudgetActionHistoriesCommand_1.DescribeBudgetActionHistoriesCommand,
|
|
41
|
+
DescribeBudgetActionsForAccountCommand: DescribeBudgetActionsForAccountCommand_1.DescribeBudgetActionsForAccountCommand,
|
|
42
|
+
DescribeBudgetActionsForBudgetCommand: DescribeBudgetActionsForBudgetCommand_1.DescribeBudgetActionsForBudgetCommand,
|
|
43
|
+
DescribeBudgetNotificationsForAccountCommand: DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand,
|
|
44
|
+
DescribeBudgetPerformanceHistoryCommand: DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand,
|
|
45
|
+
DescribeBudgetsCommand: DescribeBudgetsCommand_1.DescribeBudgetsCommand,
|
|
46
|
+
DescribeNotificationsForBudgetCommand: DescribeNotificationsForBudgetCommand_1.DescribeNotificationsForBudgetCommand,
|
|
47
|
+
DescribeSubscribersForNotificationCommand: DescribeSubscribersForNotificationCommand_1.DescribeSubscribersForNotificationCommand,
|
|
48
|
+
ExecuteBudgetActionCommand: ExecuteBudgetActionCommand_1.ExecuteBudgetActionCommand,
|
|
49
|
+
UpdateBudgetCommand: UpdateBudgetCommand_1.UpdateBudgetCommand,
|
|
50
|
+
UpdateBudgetActionCommand: UpdateBudgetActionCommand_1.UpdateBudgetActionCommand,
|
|
51
|
+
UpdateNotificationCommand: UpdateNotificationCommand_1.UpdateNotificationCommand,
|
|
52
|
+
UpdateSubscriberCommand: UpdateSubscriberCommand_1.UpdateSubscriberCommand,
|
|
53
|
+
};
|
|
28
54
|
class Budgets extends BudgetsClient_1.BudgetsClient {
|
|
29
|
-
createBudget(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new CreateBudgetCommand_1.CreateBudgetCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
createBudgetAction(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new CreateBudgetActionCommand_1.CreateBudgetActionCommand(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
|
-
createNotification(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new CreateNotificationCommand_1.CreateNotificationCommand(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
|
-
createSubscriber(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new CreateSubscriberCommand_1.CreateSubscriberCommand(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
|
-
deleteBudget(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DeleteBudgetCommand_1.DeleteBudgetCommand(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
|
-
deleteBudgetAction(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new DeleteBudgetActionCommand_1.DeleteBudgetActionCommand(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
|
-
deleteNotification(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new DeleteNotificationCommand_1.DeleteNotificationCommand(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
|
-
deleteSubscriber(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new DeleteSubscriberCommand_1.DeleteSubscriberCommand(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
|
-
describeBudget(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new DescribeBudgetCommand_1.DescribeBudgetCommand(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
|
-
describeBudgetAction(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new DescribeBudgetActionCommand_1.DescribeBudgetActionCommand(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
|
-
describeBudgetActionHistories(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new DescribeBudgetActionHistoriesCommand_1.DescribeBudgetActionHistoriesCommand(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
|
-
describeBudgetActionsForAccount(args, optionsOrCb, cb) {
|
|
184
|
-
const command = new DescribeBudgetActionsForAccountCommand_1.DescribeBudgetActionsForAccountCommand(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
|
-
describeBudgetActionsForBudget(args, optionsOrCb, cb) {
|
|
198
|
-
const command = new DescribeBudgetActionsForBudgetCommand_1.DescribeBudgetActionsForBudgetCommand(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
|
-
describeBudgetNotificationsForAccount(args, optionsOrCb, cb) {
|
|
212
|
-
const command = new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(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
|
-
describeBudgetPerformanceHistory(args, optionsOrCb, cb) {
|
|
226
|
-
const command = new DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand(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
|
-
describeBudgets(args, optionsOrCb, cb) {
|
|
240
|
-
const command = new DescribeBudgetsCommand_1.DescribeBudgetsCommand(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
|
-
describeNotificationsForBudget(args, optionsOrCb, cb) {
|
|
254
|
-
const command = new DescribeNotificationsForBudgetCommand_1.DescribeNotificationsForBudgetCommand(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
|
-
describeSubscribersForNotification(args, optionsOrCb, cb) {
|
|
268
|
-
const command = new DescribeSubscribersForNotificationCommand_1.DescribeSubscribersForNotificationCommand(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
|
-
executeBudgetAction(args, optionsOrCb, cb) {
|
|
282
|
-
const command = new ExecuteBudgetActionCommand_1.ExecuteBudgetActionCommand(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
|
-
updateBudget(args, optionsOrCb, cb) {
|
|
296
|
-
const command = new UpdateBudgetCommand_1.UpdateBudgetCommand(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
|
-
updateBudgetAction(args, optionsOrCb, cb) {
|
|
310
|
-
const command = new UpdateBudgetActionCommand_1.UpdateBudgetActionCommand(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
|
-
updateNotification(args, optionsOrCb, cb) {
|
|
324
|
-
const command = new UpdateNotificationCommand_1.UpdateNotificationCommand(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
|
-
updateSubscriber(args, optionsOrCb, cb) {
|
|
338
|
-
const command = new UpdateSubscriberCommand_1.UpdateSubscriberCommand(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
55
|
}
|
|
352
56
|
exports.Budgets = Budgets;
|
|
57
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Budgets);
|