@aws-sdk/client-budgets 3.185.0 → 3.188.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 +16 -0
- package/dist-es/Budgets.js +94 -101
- package/dist-es/BudgetsClient.js +22 -28
- package/dist-es/commands/CreateBudgetActionCommand.js +21 -28
- package/dist-es/commands/CreateBudgetCommand.js +21 -28
- package/dist-es/commands/CreateNotificationCommand.js +21 -28
- package/dist-es/commands/CreateSubscriberCommand.js +21 -28
- package/dist-es/commands/DeleteBudgetActionCommand.js +21 -28
- package/dist-es/commands/DeleteBudgetCommand.js +21 -28
- package/dist-es/commands/DeleteNotificationCommand.js +21 -28
- package/dist-es/commands/DeleteSubscriberCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +21 -28
- package/dist-es/commands/DescribeBudgetsCommand.js +21 -28
- package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +21 -28
- package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +21 -28
- package/dist-es/commands/ExecuteBudgetActionCommand.js +21 -28
- package/dist-es/commands/UpdateBudgetActionCommand.js +21 -28
- package/dist-es/commands/UpdateBudgetCommand.js +21 -28
- package/dist-es/commands/UpdateNotificationCommand.js +21 -28
- package/dist-es/commands/UpdateSubscriberCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BudgetsServiceException.js +5 -10
- package/dist-es/models/models_0.js +340 -190
- package/dist-es/pagination/DescribeBudgetActionHistoriesPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetActionsForAccountPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetActionsForBudgetPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +25 -68
- package/dist-es/pagination/DescribeBudgetsPaginator.js +25 -68
- package/dist-es/pagination/DescribeNotificationsForBudgetPaginator.js +25 -68
- package/dist-es/pagination/DescribeSubscribersForNotificationPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1894 -2302
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
23
|
|
|
8
24
|
|
package/dist-es/Budgets.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { BudgetsClient } from "./BudgetsClient";
|
|
3
2
|
import { CreateBudgetActionCommand, } from "./commands/CreateBudgetActionCommand";
|
|
4
3
|
import { CreateBudgetCommand, } from "./commands/CreateBudgetCommand";
|
|
@@ -23,333 +22,327 @@ import { UpdateBudgetActionCommand, } from "./commands/UpdateBudgetActionCommand
|
|
|
23
22
|
import { UpdateBudgetCommand, } from "./commands/UpdateBudgetCommand";
|
|
24
23
|
import { UpdateNotificationCommand, } from "./commands/UpdateNotificationCommand";
|
|
25
24
|
import { UpdateSubscriberCommand, } from "./commands/UpdateSubscriberCommand";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
31
|
-
Budgets.prototype.createBudget = function (args, optionsOrCb, cb) {
|
|
32
|
-
var command = new CreateBudgetCommand(args);
|
|
25
|
+
export class Budgets extends BudgetsClient {
|
|
26
|
+
createBudget(args, optionsOrCb, cb) {
|
|
27
|
+
const command = new CreateBudgetCommand(args);
|
|
33
28
|
if (typeof optionsOrCb === "function") {
|
|
34
29
|
this.send(command, optionsOrCb);
|
|
35
30
|
}
|
|
36
31
|
else if (typeof cb === "function") {
|
|
37
32
|
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(
|
|
33
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
40
35
|
}
|
|
41
36
|
else {
|
|
42
37
|
return this.send(command, optionsOrCb);
|
|
43
38
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
}
|
|
40
|
+
createBudgetAction(args, optionsOrCb, cb) {
|
|
41
|
+
const command = new CreateBudgetActionCommand(args);
|
|
47
42
|
if (typeof optionsOrCb === "function") {
|
|
48
43
|
this.send(command, optionsOrCb);
|
|
49
44
|
}
|
|
50
45
|
else if (typeof cb === "function") {
|
|
51
46
|
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(
|
|
47
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
54
49
|
}
|
|
55
50
|
else {
|
|
56
51
|
return this.send(command, optionsOrCb);
|
|
57
52
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
}
|
|
54
|
+
createNotification(args, optionsOrCb, cb) {
|
|
55
|
+
const command = new CreateNotificationCommand(args);
|
|
61
56
|
if (typeof optionsOrCb === "function") {
|
|
62
57
|
this.send(command, optionsOrCb);
|
|
63
58
|
}
|
|
64
59
|
else if (typeof cb === "function") {
|
|
65
60
|
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(
|
|
61
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
68
63
|
}
|
|
69
64
|
else {
|
|
70
65
|
return this.send(command, optionsOrCb);
|
|
71
66
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
}
|
|
68
|
+
createSubscriber(args, optionsOrCb, cb) {
|
|
69
|
+
const command = new CreateSubscriberCommand(args);
|
|
75
70
|
if (typeof optionsOrCb === "function") {
|
|
76
71
|
this.send(command, optionsOrCb);
|
|
77
72
|
}
|
|
78
73
|
else if (typeof cb === "function") {
|
|
79
74
|
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(
|
|
75
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
76
|
this.send(command, optionsOrCb || {}, cb);
|
|
82
77
|
}
|
|
83
78
|
else {
|
|
84
79
|
return this.send(command, optionsOrCb);
|
|
85
80
|
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
}
|
|
82
|
+
deleteBudget(args, optionsOrCb, cb) {
|
|
83
|
+
const command = new DeleteBudgetCommand(args);
|
|
89
84
|
if (typeof optionsOrCb === "function") {
|
|
90
85
|
this.send(command, optionsOrCb);
|
|
91
86
|
}
|
|
92
87
|
else if (typeof cb === "function") {
|
|
93
88
|
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(
|
|
89
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
90
|
this.send(command, optionsOrCb || {}, cb);
|
|
96
91
|
}
|
|
97
92
|
else {
|
|
98
93
|
return this.send(command, optionsOrCb);
|
|
99
94
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
}
|
|
96
|
+
deleteBudgetAction(args, optionsOrCb, cb) {
|
|
97
|
+
const command = new DeleteBudgetActionCommand(args);
|
|
103
98
|
if (typeof optionsOrCb === "function") {
|
|
104
99
|
this.send(command, optionsOrCb);
|
|
105
100
|
}
|
|
106
101
|
else if (typeof cb === "function") {
|
|
107
102
|
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(
|
|
103
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
104
|
this.send(command, optionsOrCb || {}, cb);
|
|
110
105
|
}
|
|
111
106
|
else {
|
|
112
107
|
return this.send(command, optionsOrCb);
|
|
113
108
|
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
}
|
|
110
|
+
deleteNotification(args, optionsOrCb, cb) {
|
|
111
|
+
const command = new DeleteNotificationCommand(args);
|
|
117
112
|
if (typeof optionsOrCb === "function") {
|
|
118
113
|
this.send(command, optionsOrCb);
|
|
119
114
|
}
|
|
120
115
|
else if (typeof cb === "function") {
|
|
121
116
|
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(
|
|
117
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
118
|
this.send(command, optionsOrCb || {}, cb);
|
|
124
119
|
}
|
|
125
120
|
else {
|
|
126
121
|
return this.send(command, optionsOrCb);
|
|
127
122
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
}
|
|
124
|
+
deleteSubscriber(args, optionsOrCb, cb) {
|
|
125
|
+
const command = new DeleteSubscriberCommand(args);
|
|
131
126
|
if (typeof optionsOrCb === "function") {
|
|
132
127
|
this.send(command, optionsOrCb);
|
|
133
128
|
}
|
|
134
129
|
else if (typeof cb === "function") {
|
|
135
130
|
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(
|
|
131
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
132
|
this.send(command, optionsOrCb || {}, cb);
|
|
138
133
|
}
|
|
139
134
|
else {
|
|
140
135
|
return this.send(command, optionsOrCb);
|
|
141
136
|
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
}
|
|
138
|
+
describeBudget(args, optionsOrCb, cb) {
|
|
139
|
+
const command = new DescribeBudgetCommand(args);
|
|
145
140
|
if (typeof optionsOrCb === "function") {
|
|
146
141
|
this.send(command, optionsOrCb);
|
|
147
142
|
}
|
|
148
143
|
else if (typeof cb === "function") {
|
|
149
144
|
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(
|
|
145
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
146
|
this.send(command, optionsOrCb || {}, cb);
|
|
152
147
|
}
|
|
153
148
|
else {
|
|
154
149
|
return this.send(command, optionsOrCb);
|
|
155
150
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
}
|
|
152
|
+
describeBudgetAction(args, optionsOrCb, cb) {
|
|
153
|
+
const command = new DescribeBudgetActionCommand(args);
|
|
159
154
|
if (typeof optionsOrCb === "function") {
|
|
160
155
|
this.send(command, optionsOrCb);
|
|
161
156
|
}
|
|
162
157
|
else if (typeof cb === "function") {
|
|
163
158
|
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(
|
|
159
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
160
|
this.send(command, optionsOrCb || {}, cb);
|
|
166
161
|
}
|
|
167
162
|
else {
|
|
168
163
|
return this.send(command, optionsOrCb);
|
|
169
164
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
}
|
|
166
|
+
describeBudgetActionHistories(args, optionsOrCb, cb) {
|
|
167
|
+
const command = new DescribeBudgetActionHistoriesCommand(args);
|
|
173
168
|
if (typeof optionsOrCb === "function") {
|
|
174
169
|
this.send(command, optionsOrCb);
|
|
175
170
|
}
|
|
176
171
|
else if (typeof cb === "function") {
|
|
177
172
|
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(
|
|
173
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
174
|
this.send(command, optionsOrCb || {}, cb);
|
|
180
175
|
}
|
|
181
176
|
else {
|
|
182
177
|
return this.send(command, optionsOrCb);
|
|
183
178
|
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
}
|
|
180
|
+
describeBudgetActionsForAccount(args, optionsOrCb, cb) {
|
|
181
|
+
const command = new DescribeBudgetActionsForAccountCommand(args);
|
|
187
182
|
if (typeof optionsOrCb === "function") {
|
|
188
183
|
this.send(command, optionsOrCb);
|
|
189
184
|
}
|
|
190
185
|
else if (typeof cb === "function") {
|
|
191
186
|
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(
|
|
187
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
188
|
this.send(command, optionsOrCb || {}, cb);
|
|
194
189
|
}
|
|
195
190
|
else {
|
|
196
191
|
return this.send(command, optionsOrCb);
|
|
197
192
|
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
}
|
|
194
|
+
describeBudgetActionsForBudget(args, optionsOrCb, cb) {
|
|
195
|
+
const command = new DescribeBudgetActionsForBudgetCommand(args);
|
|
201
196
|
if (typeof optionsOrCb === "function") {
|
|
202
197
|
this.send(command, optionsOrCb);
|
|
203
198
|
}
|
|
204
199
|
else if (typeof cb === "function") {
|
|
205
200
|
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(
|
|
201
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
202
|
this.send(command, optionsOrCb || {}, cb);
|
|
208
203
|
}
|
|
209
204
|
else {
|
|
210
205
|
return this.send(command, optionsOrCb);
|
|
211
206
|
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
207
|
+
}
|
|
208
|
+
describeBudgetNotificationsForAccount(args, optionsOrCb, cb) {
|
|
209
|
+
const command = new DescribeBudgetNotificationsForAccountCommand(args);
|
|
215
210
|
if (typeof optionsOrCb === "function") {
|
|
216
211
|
this.send(command, optionsOrCb);
|
|
217
212
|
}
|
|
218
213
|
else if (typeof cb === "function") {
|
|
219
214
|
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(
|
|
215
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
221
216
|
this.send(command, optionsOrCb || {}, cb);
|
|
222
217
|
}
|
|
223
218
|
else {
|
|
224
219
|
return this.send(command, optionsOrCb);
|
|
225
220
|
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
}
|
|
222
|
+
describeBudgetPerformanceHistory(args, optionsOrCb, cb) {
|
|
223
|
+
const command = new DescribeBudgetPerformanceHistoryCommand(args);
|
|
229
224
|
if (typeof optionsOrCb === "function") {
|
|
230
225
|
this.send(command, optionsOrCb);
|
|
231
226
|
}
|
|
232
227
|
else if (typeof cb === "function") {
|
|
233
228
|
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(
|
|
229
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
230
|
this.send(command, optionsOrCb || {}, cb);
|
|
236
231
|
}
|
|
237
232
|
else {
|
|
238
233
|
return this.send(command, optionsOrCb);
|
|
239
234
|
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
}
|
|
236
|
+
describeBudgets(args, optionsOrCb, cb) {
|
|
237
|
+
const command = new DescribeBudgetsCommand(args);
|
|
243
238
|
if (typeof optionsOrCb === "function") {
|
|
244
239
|
this.send(command, optionsOrCb);
|
|
245
240
|
}
|
|
246
241
|
else if (typeof cb === "function") {
|
|
247
242
|
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(
|
|
243
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
244
|
this.send(command, optionsOrCb || {}, cb);
|
|
250
245
|
}
|
|
251
246
|
else {
|
|
252
247
|
return this.send(command, optionsOrCb);
|
|
253
248
|
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
249
|
+
}
|
|
250
|
+
describeNotificationsForBudget(args, optionsOrCb, cb) {
|
|
251
|
+
const command = new DescribeNotificationsForBudgetCommand(args);
|
|
257
252
|
if (typeof optionsOrCb === "function") {
|
|
258
253
|
this.send(command, optionsOrCb);
|
|
259
254
|
}
|
|
260
255
|
else if (typeof cb === "function") {
|
|
261
256
|
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(
|
|
257
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
258
|
this.send(command, optionsOrCb || {}, cb);
|
|
264
259
|
}
|
|
265
260
|
else {
|
|
266
261
|
return this.send(command, optionsOrCb);
|
|
267
262
|
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
263
|
+
}
|
|
264
|
+
describeSubscribersForNotification(args, optionsOrCb, cb) {
|
|
265
|
+
const command = new DescribeSubscribersForNotificationCommand(args);
|
|
271
266
|
if (typeof optionsOrCb === "function") {
|
|
272
267
|
this.send(command, optionsOrCb);
|
|
273
268
|
}
|
|
274
269
|
else if (typeof cb === "function") {
|
|
275
270
|
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(
|
|
271
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
277
272
|
this.send(command, optionsOrCb || {}, cb);
|
|
278
273
|
}
|
|
279
274
|
else {
|
|
280
275
|
return this.send(command, optionsOrCb);
|
|
281
276
|
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
277
|
+
}
|
|
278
|
+
executeBudgetAction(args, optionsOrCb, cb) {
|
|
279
|
+
const command = new ExecuteBudgetActionCommand(args);
|
|
285
280
|
if (typeof optionsOrCb === "function") {
|
|
286
281
|
this.send(command, optionsOrCb);
|
|
287
282
|
}
|
|
288
283
|
else if (typeof cb === "function") {
|
|
289
284
|
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(
|
|
285
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
291
286
|
this.send(command, optionsOrCb || {}, cb);
|
|
292
287
|
}
|
|
293
288
|
else {
|
|
294
289
|
return this.send(command, optionsOrCb);
|
|
295
290
|
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
291
|
+
}
|
|
292
|
+
updateBudget(args, optionsOrCb, cb) {
|
|
293
|
+
const command = new UpdateBudgetCommand(args);
|
|
299
294
|
if (typeof optionsOrCb === "function") {
|
|
300
295
|
this.send(command, optionsOrCb);
|
|
301
296
|
}
|
|
302
297
|
else if (typeof cb === "function") {
|
|
303
298
|
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(
|
|
299
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
300
|
this.send(command, optionsOrCb || {}, cb);
|
|
306
301
|
}
|
|
307
302
|
else {
|
|
308
303
|
return this.send(command, optionsOrCb);
|
|
309
304
|
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
305
|
+
}
|
|
306
|
+
updateBudgetAction(args, optionsOrCb, cb) {
|
|
307
|
+
const command = new UpdateBudgetActionCommand(args);
|
|
313
308
|
if (typeof optionsOrCb === "function") {
|
|
314
309
|
this.send(command, optionsOrCb);
|
|
315
310
|
}
|
|
316
311
|
else if (typeof cb === "function") {
|
|
317
312
|
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(
|
|
313
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
314
|
this.send(command, optionsOrCb || {}, cb);
|
|
320
315
|
}
|
|
321
316
|
else {
|
|
322
317
|
return this.send(command, optionsOrCb);
|
|
323
318
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
319
|
+
}
|
|
320
|
+
updateNotification(args, optionsOrCb, cb) {
|
|
321
|
+
const command = new UpdateNotificationCommand(args);
|
|
327
322
|
if (typeof optionsOrCb === "function") {
|
|
328
323
|
this.send(command, optionsOrCb);
|
|
329
324
|
}
|
|
330
325
|
else if (typeof cb === "function") {
|
|
331
326
|
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(
|
|
327
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
333
328
|
this.send(command, optionsOrCb || {}, cb);
|
|
334
329
|
}
|
|
335
330
|
else {
|
|
336
331
|
return this.send(command, optionsOrCb);
|
|
337
332
|
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
|
|
333
|
+
}
|
|
334
|
+
updateSubscriber(args, optionsOrCb, cb) {
|
|
335
|
+
const command = new UpdateSubscriberCommand(args);
|
|
341
336
|
if (typeof optionsOrCb === "function") {
|
|
342
337
|
this.send(command, optionsOrCb);
|
|
343
338
|
}
|
|
344
339
|
else if (typeof cb === "function") {
|
|
345
340
|
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(
|
|
341
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
342
|
this.send(command, optionsOrCb || {}, cb);
|
|
348
343
|
}
|
|
349
344
|
else {
|
|
350
345
|
return this.send(command, optionsOrCb);
|
|
351
346
|
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
}(BudgetsClient));
|
|
355
|
-
export { Budgets };
|
|
347
|
+
}
|
|
348
|
+
}
|
package/dist-es/BudgetsClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class BudgetsClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { BudgetsClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateBudgetActionRequestFilterSensitiveLog, CreateBudgetActionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1CreateBudgetActionCommand, serializeAws_json1_1CreateBudgetActionCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateBudgetActionCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "BudgetsClient";
|
|
15
|
+
const commandName = "CreateBudgetActionCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateBudgetActionRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateBudgetActionResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateBudgetActionCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1CreateBudgetActionCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateBudgetActionCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateBudgetActionCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateBudgetRequestFilterSensitiveLog, CreateBudgetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1CreateBudgetCommand, serializeAws_json1_1CreateBudgetCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateBudgetCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "BudgetsClient";
|
|
15
|
+
const commandName = "CreateBudgetCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateBudgetRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateBudgetResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateBudgetCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1CreateBudgetCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateBudgetCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateBudgetCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|