@aws-sdk/client-budgets 3.927.0 → 3.928.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/index.js +1045 -1442
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/BudgetsClient.js +2 -0
- package/dist-es/commands/CreateBudgetActionCommand.js +3 -10
- package/dist-es/commands/CreateBudgetCommand.js +3 -10
- package/dist-es/commands/CreateNotificationCommand.js +3 -10
- package/dist-es/commands/CreateSubscriberCommand.js +3 -10
- package/dist-es/commands/DeleteBudgetActionCommand.js +3 -10
- package/dist-es/commands/DeleteBudgetCommand.js +3 -9
- package/dist-es/commands/DeleteNotificationCommand.js +3 -9
- package/dist-es/commands/DeleteSubscriberCommand.js +3 -10
- package/dist-es/commands/DescribeBudgetActionCommand.js +3 -10
- package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +3 -10
- package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +3 -10
- package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +3 -10
- package/dist-es/commands/DescribeBudgetCommand.js +3 -9
- package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +3 -9
- package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +3 -9
- package/dist-es/commands/DescribeBudgetsCommand.js +3 -9
- package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +3 -9
- package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +3 -10
- package/dist-es/commands/ExecuteBudgetActionCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateBudgetActionCommand.js +3 -10
- package/dist-es/commands/UpdateBudgetCommand.js +3 -9
- package/dist-es/commands/UpdateNotificationCommand.js +3 -9
- package/dist-es/commands/UpdateSubscriberCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -77
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +967 -0
- package/dist-types/BudgetsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -76
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +143 -0
- package/dist-types/ts3.4/BudgetsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -53
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +150 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1133
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -236
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -317
|
@@ -1,1133 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { BudgetsServiceException as __BaseException } from "../models/BudgetsServiceException";
|
|
5
|
-
import { AccessDeniedException, BillingViewHealthStatusException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ServiceQuotaExceededException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateBudgetCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateBudget");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateBudgetActionCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateBudgetAction");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateNotificationCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateNotification");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateSubscriberCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateSubscriber");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteBudgetCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteBudget");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteBudgetAction");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteNotificationCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteNotification");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteSubscriberCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DeleteSubscriber");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeBudgetCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeBudget");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeBudgetAction");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeBudgetActionHistories");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DescribeBudgetsCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DescribeBudgets");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DescribeSubscribersForNotification");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("TagResource");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("UntagResource");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_UpdateBudgetCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("UpdateBudget");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("UpdateBudgetAction");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_UpdateNotificationCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("UpdateNotification");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_UpdateSubscriberCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("UpdateSubscriber");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const de_CreateBudgetCommand = async (output, context) => {
|
|
163
|
-
if (output.statusCode >= 300) {
|
|
164
|
-
return de_CommandError(output, context);
|
|
165
|
-
}
|
|
166
|
-
const data = await parseBody(output.body, context);
|
|
167
|
-
let contents = {};
|
|
168
|
-
contents = _json(data);
|
|
169
|
-
const response = {
|
|
170
|
-
$metadata: deserializeMetadata(output),
|
|
171
|
-
...contents,
|
|
172
|
-
};
|
|
173
|
-
return response;
|
|
174
|
-
};
|
|
175
|
-
export const de_CreateBudgetActionCommand = async (output, context) => {
|
|
176
|
-
if (output.statusCode >= 300) {
|
|
177
|
-
return de_CommandError(output, context);
|
|
178
|
-
}
|
|
179
|
-
const data = await parseBody(output.body, context);
|
|
180
|
-
let contents = {};
|
|
181
|
-
contents = _json(data);
|
|
182
|
-
const response = {
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
...contents,
|
|
185
|
-
};
|
|
186
|
-
return response;
|
|
187
|
-
};
|
|
188
|
-
export const de_CreateNotificationCommand = async (output, context) => {
|
|
189
|
-
if (output.statusCode >= 300) {
|
|
190
|
-
return de_CommandError(output, context);
|
|
191
|
-
}
|
|
192
|
-
const data = await parseBody(output.body, context);
|
|
193
|
-
let contents = {};
|
|
194
|
-
contents = _json(data);
|
|
195
|
-
const response = {
|
|
196
|
-
$metadata: deserializeMetadata(output),
|
|
197
|
-
...contents,
|
|
198
|
-
};
|
|
199
|
-
return response;
|
|
200
|
-
};
|
|
201
|
-
export const de_CreateSubscriberCommand = async (output, context) => {
|
|
202
|
-
if (output.statusCode >= 300) {
|
|
203
|
-
return de_CommandError(output, context);
|
|
204
|
-
}
|
|
205
|
-
const data = await parseBody(output.body, context);
|
|
206
|
-
let contents = {};
|
|
207
|
-
contents = _json(data);
|
|
208
|
-
const response = {
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
...contents,
|
|
211
|
-
};
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
export const de_DeleteBudgetCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode >= 300) {
|
|
216
|
-
return de_CommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const data = await parseBody(output.body, context);
|
|
219
|
-
let contents = {};
|
|
220
|
-
contents = _json(data);
|
|
221
|
-
const response = {
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
...contents,
|
|
224
|
-
};
|
|
225
|
-
return response;
|
|
226
|
-
};
|
|
227
|
-
export const de_DeleteBudgetActionCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const data = await parseBody(output.body, context);
|
|
232
|
-
let contents = {};
|
|
233
|
-
contents = de_DeleteBudgetActionResponse(data, context);
|
|
234
|
-
const response = {
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
...contents,
|
|
237
|
-
};
|
|
238
|
-
return response;
|
|
239
|
-
};
|
|
240
|
-
export const de_DeleteNotificationCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await parseBody(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = _json(data);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
export const de_DeleteSubscriberCommand = async (output, context) => {
|
|
254
|
-
if (output.statusCode >= 300) {
|
|
255
|
-
return de_CommandError(output, context);
|
|
256
|
-
}
|
|
257
|
-
const data = await parseBody(output.body, context);
|
|
258
|
-
let contents = {};
|
|
259
|
-
contents = _json(data);
|
|
260
|
-
const response = {
|
|
261
|
-
$metadata: deserializeMetadata(output),
|
|
262
|
-
...contents,
|
|
263
|
-
};
|
|
264
|
-
return response;
|
|
265
|
-
};
|
|
266
|
-
export const de_DescribeBudgetCommand = async (output, context) => {
|
|
267
|
-
if (output.statusCode >= 300) {
|
|
268
|
-
return de_CommandError(output, context);
|
|
269
|
-
}
|
|
270
|
-
const data = await parseBody(output.body, context);
|
|
271
|
-
let contents = {};
|
|
272
|
-
contents = de_DescribeBudgetResponse(data, context);
|
|
273
|
-
const response = {
|
|
274
|
-
$metadata: deserializeMetadata(output),
|
|
275
|
-
...contents,
|
|
276
|
-
};
|
|
277
|
-
return response;
|
|
278
|
-
};
|
|
279
|
-
export const de_DescribeBudgetActionCommand = async (output, context) => {
|
|
280
|
-
if (output.statusCode >= 300) {
|
|
281
|
-
return de_CommandError(output, context);
|
|
282
|
-
}
|
|
283
|
-
const data = await parseBody(output.body, context);
|
|
284
|
-
let contents = {};
|
|
285
|
-
contents = de_DescribeBudgetActionResponse(data, context);
|
|
286
|
-
const response = {
|
|
287
|
-
$metadata: deserializeMetadata(output),
|
|
288
|
-
...contents,
|
|
289
|
-
};
|
|
290
|
-
return response;
|
|
291
|
-
};
|
|
292
|
-
export const de_DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
293
|
-
if (output.statusCode >= 300) {
|
|
294
|
-
return de_CommandError(output, context);
|
|
295
|
-
}
|
|
296
|
-
const data = await parseBody(output.body, context);
|
|
297
|
-
let contents = {};
|
|
298
|
-
contents = de_DescribeBudgetActionHistoriesResponse(data, context);
|
|
299
|
-
const response = {
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
...contents,
|
|
302
|
-
};
|
|
303
|
-
return response;
|
|
304
|
-
};
|
|
305
|
-
export const de_DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const data = await parseBody(output.body, context);
|
|
310
|
-
let contents = {};
|
|
311
|
-
contents = de_DescribeBudgetActionsForAccountResponse(data, context);
|
|
312
|
-
const response = {
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
...contents,
|
|
315
|
-
};
|
|
316
|
-
return response;
|
|
317
|
-
};
|
|
318
|
-
export const de_DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
319
|
-
if (output.statusCode >= 300) {
|
|
320
|
-
return de_CommandError(output, context);
|
|
321
|
-
}
|
|
322
|
-
const data = await parseBody(output.body, context);
|
|
323
|
-
let contents = {};
|
|
324
|
-
contents = de_DescribeBudgetActionsForBudgetResponse(data, context);
|
|
325
|
-
const response = {
|
|
326
|
-
$metadata: deserializeMetadata(output),
|
|
327
|
-
...contents,
|
|
328
|
-
};
|
|
329
|
-
return response;
|
|
330
|
-
};
|
|
331
|
-
export const de_DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const data = await parseBody(output.body, context);
|
|
336
|
-
let contents = {};
|
|
337
|
-
contents = de_DescribeBudgetNotificationsForAccountResponse(data, context);
|
|
338
|
-
const response = {
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
...contents,
|
|
341
|
-
};
|
|
342
|
-
return response;
|
|
343
|
-
};
|
|
344
|
-
export const de_DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
345
|
-
if (output.statusCode >= 300) {
|
|
346
|
-
return de_CommandError(output, context);
|
|
347
|
-
}
|
|
348
|
-
const data = await parseBody(output.body, context);
|
|
349
|
-
let contents = {};
|
|
350
|
-
contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
351
|
-
const response = {
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
...contents,
|
|
354
|
-
};
|
|
355
|
-
return response;
|
|
356
|
-
};
|
|
357
|
-
export const de_DescribeBudgetsCommand = async (output, context) => {
|
|
358
|
-
if (output.statusCode >= 300) {
|
|
359
|
-
return de_CommandError(output, context);
|
|
360
|
-
}
|
|
361
|
-
const data = await parseBody(output.body, context);
|
|
362
|
-
let contents = {};
|
|
363
|
-
contents = de_DescribeBudgetsResponse(data, context);
|
|
364
|
-
const response = {
|
|
365
|
-
$metadata: deserializeMetadata(output),
|
|
366
|
-
...contents,
|
|
367
|
-
};
|
|
368
|
-
return response;
|
|
369
|
-
};
|
|
370
|
-
export const de_DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
371
|
-
if (output.statusCode >= 300) {
|
|
372
|
-
return de_CommandError(output, context);
|
|
373
|
-
}
|
|
374
|
-
const data = await parseBody(output.body, context);
|
|
375
|
-
let contents = {};
|
|
376
|
-
contents = de_DescribeNotificationsForBudgetResponse(data, context);
|
|
377
|
-
const response = {
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
...contents,
|
|
380
|
-
};
|
|
381
|
-
return response;
|
|
382
|
-
};
|
|
383
|
-
export const de_DescribeSubscribersForNotificationCommand = async (output, context) => {
|
|
384
|
-
if (output.statusCode >= 300) {
|
|
385
|
-
return de_CommandError(output, context);
|
|
386
|
-
}
|
|
387
|
-
const data = await parseBody(output.body, context);
|
|
388
|
-
let contents = {};
|
|
389
|
-
contents = _json(data);
|
|
390
|
-
const response = {
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
...contents,
|
|
393
|
-
};
|
|
394
|
-
return response;
|
|
395
|
-
};
|
|
396
|
-
export const de_ExecuteBudgetActionCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode >= 300) {
|
|
398
|
-
return de_CommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const data = await parseBody(output.body, context);
|
|
401
|
-
let contents = {};
|
|
402
|
-
contents = _json(data);
|
|
403
|
-
const response = {
|
|
404
|
-
$metadata: deserializeMetadata(output),
|
|
405
|
-
...contents,
|
|
406
|
-
};
|
|
407
|
-
return response;
|
|
408
|
-
};
|
|
409
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode >= 300) {
|
|
411
|
-
return de_CommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const data = await parseBody(output.body, context);
|
|
414
|
-
let contents = {};
|
|
415
|
-
contents = _json(data);
|
|
416
|
-
const response = {
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
...contents,
|
|
419
|
-
};
|
|
420
|
-
return response;
|
|
421
|
-
};
|
|
422
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
423
|
-
if (output.statusCode >= 300) {
|
|
424
|
-
return de_CommandError(output, context);
|
|
425
|
-
}
|
|
426
|
-
const data = await parseBody(output.body, context);
|
|
427
|
-
let contents = {};
|
|
428
|
-
contents = _json(data);
|
|
429
|
-
const response = {
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
...contents,
|
|
432
|
-
};
|
|
433
|
-
return response;
|
|
434
|
-
};
|
|
435
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
436
|
-
if (output.statusCode >= 300) {
|
|
437
|
-
return de_CommandError(output, context);
|
|
438
|
-
}
|
|
439
|
-
const data = await parseBody(output.body, context);
|
|
440
|
-
let contents = {};
|
|
441
|
-
contents = _json(data);
|
|
442
|
-
const response = {
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
...contents,
|
|
445
|
-
};
|
|
446
|
-
return response;
|
|
447
|
-
};
|
|
448
|
-
export const de_UpdateBudgetCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const data = await parseBody(output.body, context);
|
|
453
|
-
let contents = {};
|
|
454
|
-
contents = _json(data);
|
|
455
|
-
const response = {
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
...contents,
|
|
458
|
-
};
|
|
459
|
-
return response;
|
|
460
|
-
};
|
|
461
|
-
export const de_UpdateBudgetActionCommand = async (output, context) => {
|
|
462
|
-
if (output.statusCode >= 300) {
|
|
463
|
-
return de_CommandError(output, context);
|
|
464
|
-
}
|
|
465
|
-
const data = await parseBody(output.body, context);
|
|
466
|
-
let contents = {};
|
|
467
|
-
contents = de_UpdateBudgetActionResponse(data, context);
|
|
468
|
-
const response = {
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
...contents,
|
|
471
|
-
};
|
|
472
|
-
return response;
|
|
473
|
-
};
|
|
474
|
-
export const de_UpdateNotificationCommand = async (output, context) => {
|
|
475
|
-
if (output.statusCode >= 300) {
|
|
476
|
-
return de_CommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const data = await parseBody(output.body, context);
|
|
479
|
-
let contents = {};
|
|
480
|
-
contents = _json(data);
|
|
481
|
-
const response = {
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
...contents,
|
|
484
|
-
};
|
|
485
|
-
return response;
|
|
486
|
-
};
|
|
487
|
-
export const de_UpdateSubscriberCommand = async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_CommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await parseBody(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = _json(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents,
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
};
|
|
500
|
-
const de_CommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "BillingViewHealthStatusException":
|
|
511
|
-
case "com.amazonaws.budgets#BillingViewHealthStatusException":
|
|
512
|
-
throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
|
|
513
|
-
case "CreationLimitExceededException":
|
|
514
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
515
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
516
|
-
case "DuplicateRecordException":
|
|
517
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
518
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InternalErrorException":
|
|
520
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
521
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
522
|
-
case "InvalidParameterException":
|
|
523
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
524
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
525
|
-
case "NotFoundException":
|
|
526
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
527
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ServiceQuotaExceededException":
|
|
529
|
-
case "com.amazonaws.budgets#ServiceQuotaExceededException":
|
|
530
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ThrottlingException":
|
|
532
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
533
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ResourceLockedException":
|
|
535
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
536
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
537
|
-
case "InvalidNextTokenException":
|
|
538
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
539
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ExpiredNextTokenException":
|
|
541
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
542
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
543
|
-
default:
|
|
544
|
-
const parsedBody = parsedOutput.body;
|
|
545
|
-
return throwDefaultError({
|
|
546
|
-
output,
|
|
547
|
-
parsedBody,
|
|
548
|
-
errorCode,
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
553
|
-
const body = parsedOutput.body;
|
|
554
|
-
const deserialized = _json(body);
|
|
555
|
-
const exception = new AccessDeniedException({
|
|
556
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
557
|
-
...deserialized,
|
|
558
|
-
});
|
|
559
|
-
return __decorateServiceException(exception, body);
|
|
560
|
-
};
|
|
561
|
-
const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
|
|
562
|
-
const body = parsedOutput.body;
|
|
563
|
-
const deserialized = _json(body);
|
|
564
|
-
const exception = new BillingViewHealthStatusException({
|
|
565
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
566
|
-
...deserialized,
|
|
567
|
-
});
|
|
568
|
-
return __decorateServiceException(exception, body);
|
|
569
|
-
};
|
|
570
|
-
const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
571
|
-
const body = parsedOutput.body;
|
|
572
|
-
const deserialized = _json(body);
|
|
573
|
-
const exception = new CreationLimitExceededException({
|
|
574
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
575
|
-
...deserialized,
|
|
576
|
-
});
|
|
577
|
-
return __decorateServiceException(exception, body);
|
|
578
|
-
};
|
|
579
|
-
const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
580
|
-
const body = parsedOutput.body;
|
|
581
|
-
const deserialized = _json(body);
|
|
582
|
-
const exception = new DuplicateRecordException({
|
|
583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
584
|
-
...deserialized,
|
|
585
|
-
});
|
|
586
|
-
return __decorateServiceException(exception, body);
|
|
587
|
-
};
|
|
588
|
-
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
589
|
-
const body = parsedOutput.body;
|
|
590
|
-
const deserialized = _json(body);
|
|
591
|
-
const exception = new ExpiredNextTokenException({
|
|
592
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
593
|
-
...deserialized,
|
|
594
|
-
});
|
|
595
|
-
return __decorateServiceException(exception, body);
|
|
596
|
-
};
|
|
597
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
598
|
-
const body = parsedOutput.body;
|
|
599
|
-
const deserialized = _json(body);
|
|
600
|
-
const exception = new InternalErrorException({
|
|
601
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
602
|
-
...deserialized,
|
|
603
|
-
});
|
|
604
|
-
return __decorateServiceException(exception, body);
|
|
605
|
-
};
|
|
606
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
607
|
-
const body = parsedOutput.body;
|
|
608
|
-
const deserialized = _json(body);
|
|
609
|
-
const exception = new InvalidNextTokenException({
|
|
610
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
-
...deserialized,
|
|
612
|
-
});
|
|
613
|
-
return __decorateServiceException(exception, body);
|
|
614
|
-
};
|
|
615
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
616
|
-
const body = parsedOutput.body;
|
|
617
|
-
const deserialized = _json(body);
|
|
618
|
-
const exception = new InvalidParameterException({
|
|
619
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
620
|
-
...deserialized,
|
|
621
|
-
});
|
|
622
|
-
return __decorateServiceException(exception, body);
|
|
623
|
-
};
|
|
624
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
625
|
-
const body = parsedOutput.body;
|
|
626
|
-
const deserialized = _json(body);
|
|
627
|
-
const exception = new NotFoundException({
|
|
628
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
629
|
-
...deserialized,
|
|
630
|
-
});
|
|
631
|
-
return __decorateServiceException(exception, body);
|
|
632
|
-
};
|
|
633
|
-
const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
634
|
-
const body = parsedOutput.body;
|
|
635
|
-
const deserialized = _json(body);
|
|
636
|
-
const exception = new ResourceLockedException({
|
|
637
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
638
|
-
...deserialized,
|
|
639
|
-
});
|
|
640
|
-
return __decorateServiceException(exception, body);
|
|
641
|
-
};
|
|
642
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
643
|
-
const body = parsedOutput.body;
|
|
644
|
-
const deserialized = _json(body);
|
|
645
|
-
const exception = new ServiceQuotaExceededException({
|
|
646
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
647
|
-
...deserialized,
|
|
648
|
-
});
|
|
649
|
-
return __decorateServiceException(exception, body);
|
|
650
|
-
};
|
|
651
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
652
|
-
const body = parsedOutput.body;
|
|
653
|
-
const deserialized = _json(body);
|
|
654
|
-
const exception = new ThrottlingException({
|
|
655
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
656
|
-
...deserialized,
|
|
657
|
-
});
|
|
658
|
-
return __decorateServiceException(exception, body);
|
|
659
|
-
};
|
|
660
|
-
const se_ActionThreshold = (input, context) => {
|
|
661
|
-
return take(input, {
|
|
662
|
-
ActionThresholdType: [],
|
|
663
|
-
ActionThresholdValue: __serializeFloat,
|
|
664
|
-
});
|
|
665
|
-
};
|
|
666
|
-
const se_AutoAdjustData = (input, context) => {
|
|
667
|
-
return take(input, {
|
|
668
|
-
AutoAdjustType: [],
|
|
669
|
-
HistoricalOptions: _json,
|
|
670
|
-
LastAutoAdjustTime: (_) => _.getTime() / 1_000,
|
|
671
|
-
});
|
|
672
|
-
};
|
|
673
|
-
const se_Budget = (input, context) => {
|
|
674
|
-
return take(input, {
|
|
675
|
-
AutoAdjustData: (_) => se_AutoAdjustData(_, context),
|
|
676
|
-
BillingViewArn: [],
|
|
677
|
-
BudgetLimit: _json,
|
|
678
|
-
BudgetName: [],
|
|
679
|
-
BudgetType: [],
|
|
680
|
-
CalculatedSpend: _json,
|
|
681
|
-
CostFilters: _json,
|
|
682
|
-
CostTypes: _json,
|
|
683
|
-
FilterExpression: (_) => se_Expression(_, context),
|
|
684
|
-
HealthStatus: (_) => se_HealthStatus(_, context),
|
|
685
|
-
LastUpdatedTime: (_) => _.getTime() / 1_000,
|
|
686
|
-
Metrics: _json,
|
|
687
|
-
PlannedBudgetLimits: _json,
|
|
688
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
689
|
-
TimeUnit: [],
|
|
690
|
-
});
|
|
691
|
-
};
|
|
692
|
-
const se_CreateBudgetActionRequest = (input, context) => {
|
|
693
|
-
return take(input, {
|
|
694
|
-
AccountId: [],
|
|
695
|
-
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
696
|
-
ActionType: [],
|
|
697
|
-
ApprovalModel: [],
|
|
698
|
-
BudgetName: [],
|
|
699
|
-
Definition: _json,
|
|
700
|
-
ExecutionRoleArn: [],
|
|
701
|
-
NotificationType: [],
|
|
702
|
-
ResourceTags: _json,
|
|
703
|
-
Subscribers: _json,
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
|
-
const se_CreateBudgetRequest = (input, context) => {
|
|
707
|
-
return take(input, {
|
|
708
|
-
AccountId: [],
|
|
709
|
-
Budget: (_) => se_Budget(_, context),
|
|
710
|
-
NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
|
|
711
|
-
ResourceTags: _json,
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
const se_CreateNotificationRequest = (input, context) => {
|
|
715
|
-
return take(input, {
|
|
716
|
-
AccountId: [],
|
|
717
|
-
BudgetName: [],
|
|
718
|
-
Notification: (_) => se_Notification(_, context),
|
|
719
|
-
Subscribers: _json,
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
const se_CreateSubscriberRequest = (input, context) => {
|
|
723
|
-
return take(input, {
|
|
724
|
-
AccountId: [],
|
|
725
|
-
BudgetName: [],
|
|
726
|
-
Notification: (_) => se_Notification(_, context),
|
|
727
|
-
Subscriber: _json,
|
|
728
|
-
});
|
|
729
|
-
};
|
|
730
|
-
const se_DeleteNotificationRequest = (input, context) => {
|
|
731
|
-
return take(input, {
|
|
732
|
-
AccountId: [],
|
|
733
|
-
BudgetName: [],
|
|
734
|
-
Notification: (_) => se_Notification(_, context),
|
|
735
|
-
});
|
|
736
|
-
};
|
|
737
|
-
const se_DeleteSubscriberRequest = (input, context) => {
|
|
738
|
-
return take(input, {
|
|
739
|
-
AccountId: [],
|
|
740
|
-
BudgetName: [],
|
|
741
|
-
Notification: (_) => se_Notification(_, context),
|
|
742
|
-
Subscriber: _json,
|
|
743
|
-
});
|
|
744
|
-
};
|
|
745
|
-
const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
746
|
-
return take(input, {
|
|
747
|
-
AccountId: [],
|
|
748
|
-
ActionId: [],
|
|
749
|
-
BudgetName: [],
|
|
750
|
-
MaxResults: [],
|
|
751
|
-
NextToken: [],
|
|
752
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
753
|
-
});
|
|
754
|
-
};
|
|
755
|
-
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
756
|
-
return take(input, {
|
|
757
|
-
AccountId: [],
|
|
758
|
-
BudgetName: [],
|
|
759
|
-
MaxResults: [],
|
|
760
|
-
NextToken: [],
|
|
761
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
762
|
-
});
|
|
763
|
-
};
|
|
764
|
-
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
765
|
-
return take(input, {
|
|
766
|
-
AccountId: [],
|
|
767
|
-
BudgetName: [],
|
|
768
|
-
MaxResults: [],
|
|
769
|
-
NextToken: [],
|
|
770
|
-
Notification: (_) => se_Notification(_, context),
|
|
771
|
-
});
|
|
772
|
-
};
|
|
773
|
-
const se_Expression = (input, context) => {
|
|
774
|
-
return take(input, {
|
|
775
|
-
And: (_) => se_Expressions(_, context),
|
|
776
|
-
CostCategories: _json,
|
|
777
|
-
Dimensions: _json,
|
|
778
|
-
Not: (_) => se_Expression(_, context),
|
|
779
|
-
Or: (_) => se_Expressions(_, context),
|
|
780
|
-
Tags: _json,
|
|
781
|
-
});
|
|
782
|
-
};
|
|
783
|
-
const se_Expressions = (input, context) => {
|
|
784
|
-
return input
|
|
785
|
-
.filter((e) => e != null)
|
|
786
|
-
.map((entry) => {
|
|
787
|
-
return se_Expression(entry, context);
|
|
788
|
-
});
|
|
789
|
-
};
|
|
790
|
-
const se_HealthStatus = (input, context) => {
|
|
791
|
-
return take(input, {
|
|
792
|
-
LastUpdatedTime: (_) => _.getTime() / 1_000,
|
|
793
|
-
Status: [],
|
|
794
|
-
StatusReason: [],
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
const se_Notification = (input, context) => {
|
|
798
|
-
return take(input, {
|
|
799
|
-
ComparisonOperator: [],
|
|
800
|
-
NotificationState: [],
|
|
801
|
-
NotificationType: [],
|
|
802
|
-
Threshold: __serializeFloat,
|
|
803
|
-
ThresholdType: [],
|
|
804
|
-
});
|
|
805
|
-
};
|
|
806
|
-
const se_NotificationWithSubscribers = (input, context) => {
|
|
807
|
-
return take(input, {
|
|
808
|
-
Notification: (_) => se_Notification(_, context),
|
|
809
|
-
Subscribers: _json,
|
|
810
|
-
});
|
|
811
|
-
};
|
|
812
|
-
const se_NotificationWithSubscribersList = (input, context) => {
|
|
813
|
-
return input
|
|
814
|
-
.filter((e) => e != null)
|
|
815
|
-
.map((entry) => {
|
|
816
|
-
return se_NotificationWithSubscribers(entry, context);
|
|
817
|
-
});
|
|
818
|
-
};
|
|
819
|
-
const se_TimePeriod = (input, context) => {
|
|
820
|
-
return take(input, {
|
|
821
|
-
End: (_) => _.getTime() / 1_000,
|
|
822
|
-
Start: (_) => _.getTime() / 1_000,
|
|
823
|
-
});
|
|
824
|
-
};
|
|
825
|
-
const se_UpdateBudgetActionRequest = (input, context) => {
|
|
826
|
-
return take(input, {
|
|
827
|
-
AccountId: [],
|
|
828
|
-
ActionId: [],
|
|
829
|
-
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
830
|
-
ApprovalModel: [],
|
|
831
|
-
BudgetName: [],
|
|
832
|
-
Definition: _json,
|
|
833
|
-
ExecutionRoleArn: [],
|
|
834
|
-
NotificationType: [],
|
|
835
|
-
Subscribers: _json,
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
const se_UpdateBudgetRequest = (input, context) => {
|
|
839
|
-
return take(input, {
|
|
840
|
-
AccountId: [],
|
|
841
|
-
NewBudget: (_) => se_Budget(_, context),
|
|
842
|
-
});
|
|
843
|
-
};
|
|
844
|
-
const se_UpdateNotificationRequest = (input, context) => {
|
|
845
|
-
return take(input, {
|
|
846
|
-
AccountId: [],
|
|
847
|
-
BudgetName: [],
|
|
848
|
-
NewNotification: (_) => se_Notification(_, context),
|
|
849
|
-
OldNotification: (_) => se_Notification(_, context),
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
const se_UpdateSubscriberRequest = (input, context) => {
|
|
853
|
-
return take(input, {
|
|
854
|
-
AccountId: [],
|
|
855
|
-
BudgetName: [],
|
|
856
|
-
NewSubscriber: _json,
|
|
857
|
-
Notification: (_) => se_Notification(_, context),
|
|
858
|
-
OldSubscriber: _json,
|
|
859
|
-
});
|
|
860
|
-
};
|
|
861
|
-
const de_Action = (output, context) => {
|
|
862
|
-
return take(output, {
|
|
863
|
-
ActionId: __expectString,
|
|
864
|
-
ActionThreshold: (_) => de_ActionThreshold(_, context),
|
|
865
|
-
ActionType: __expectString,
|
|
866
|
-
ApprovalModel: __expectString,
|
|
867
|
-
BudgetName: __expectString,
|
|
868
|
-
Definition: _json,
|
|
869
|
-
ExecutionRoleArn: __expectString,
|
|
870
|
-
NotificationType: __expectString,
|
|
871
|
-
Status: __expectString,
|
|
872
|
-
Subscribers: _json,
|
|
873
|
-
});
|
|
874
|
-
};
|
|
875
|
-
const de_ActionHistories = (output, context) => {
|
|
876
|
-
const retVal = (output || [])
|
|
877
|
-
.filter((e) => e != null)
|
|
878
|
-
.map((entry) => {
|
|
879
|
-
return de_ActionHistory(entry, context);
|
|
880
|
-
});
|
|
881
|
-
return retVal;
|
|
882
|
-
};
|
|
883
|
-
const de_ActionHistory = (output, context) => {
|
|
884
|
-
return take(output, {
|
|
885
|
-
ActionHistoryDetails: (_) => de_ActionHistoryDetails(_, context),
|
|
886
|
-
EventType: __expectString,
|
|
887
|
-
Status: __expectString,
|
|
888
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
889
|
-
});
|
|
890
|
-
};
|
|
891
|
-
const de_ActionHistoryDetails = (output, context) => {
|
|
892
|
-
return take(output, {
|
|
893
|
-
Action: (_) => de_Action(_, context),
|
|
894
|
-
Message: __expectString,
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
const de_Actions = (output, context) => {
|
|
898
|
-
const retVal = (output || [])
|
|
899
|
-
.filter((e) => e != null)
|
|
900
|
-
.map((entry) => {
|
|
901
|
-
return de_Action(entry, context);
|
|
902
|
-
});
|
|
903
|
-
return retVal;
|
|
904
|
-
};
|
|
905
|
-
const de_ActionThreshold = (output, context) => {
|
|
906
|
-
return take(output, {
|
|
907
|
-
ActionThresholdType: __expectString,
|
|
908
|
-
ActionThresholdValue: __limitedParseDouble,
|
|
909
|
-
});
|
|
910
|
-
};
|
|
911
|
-
const de_AutoAdjustData = (output, context) => {
|
|
912
|
-
return take(output, {
|
|
913
|
-
AutoAdjustType: __expectString,
|
|
914
|
-
HistoricalOptions: _json,
|
|
915
|
-
LastAutoAdjustTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
916
|
-
});
|
|
917
|
-
};
|
|
918
|
-
const de_Budget = (output, context) => {
|
|
919
|
-
return take(output, {
|
|
920
|
-
AutoAdjustData: (_) => de_AutoAdjustData(_, context),
|
|
921
|
-
BillingViewArn: __expectString,
|
|
922
|
-
BudgetLimit: _json,
|
|
923
|
-
BudgetName: __expectString,
|
|
924
|
-
BudgetType: __expectString,
|
|
925
|
-
CalculatedSpend: _json,
|
|
926
|
-
CostFilters: _json,
|
|
927
|
-
CostTypes: _json,
|
|
928
|
-
FilterExpression: (_) => de_Expression(_, context),
|
|
929
|
-
HealthStatus: (_) => de_HealthStatus(_, context),
|
|
930
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
931
|
-
Metrics: _json,
|
|
932
|
-
PlannedBudgetLimits: _json,
|
|
933
|
-
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
934
|
-
TimeUnit: __expectString,
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
const de_BudgetedAndActualAmounts = (output, context) => {
|
|
938
|
-
return take(output, {
|
|
939
|
-
ActualAmount: _json,
|
|
940
|
-
BudgetedAmount: _json,
|
|
941
|
-
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
942
|
-
});
|
|
943
|
-
};
|
|
944
|
-
const de_BudgetedAndActualAmountsList = (output, context) => {
|
|
945
|
-
const retVal = (output || [])
|
|
946
|
-
.filter((e) => e != null)
|
|
947
|
-
.map((entry) => {
|
|
948
|
-
return de_BudgetedAndActualAmounts(entry, context);
|
|
949
|
-
});
|
|
950
|
-
return retVal;
|
|
951
|
-
};
|
|
952
|
-
const de_BudgetNotificationsForAccount = (output, context) => {
|
|
953
|
-
return take(output, {
|
|
954
|
-
BudgetName: __expectString,
|
|
955
|
-
Notifications: (_) => de_Notifications(_, context),
|
|
956
|
-
});
|
|
957
|
-
};
|
|
958
|
-
const de_BudgetNotificationsForAccountList = (output, context) => {
|
|
959
|
-
const retVal = (output || [])
|
|
960
|
-
.filter((e) => e != null)
|
|
961
|
-
.map((entry) => {
|
|
962
|
-
return de_BudgetNotificationsForAccount(entry, context);
|
|
963
|
-
});
|
|
964
|
-
return retVal;
|
|
965
|
-
};
|
|
966
|
-
const de_BudgetPerformanceHistory = (output, context) => {
|
|
967
|
-
return take(output, {
|
|
968
|
-
BillingViewArn: __expectString,
|
|
969
|
-
BudgetName: __expectString,
|
|
970
|
-
BudgetType: __expectString,
|
|
971
|
-
BudgetedAndActualAmountsList: (_) => de_BudgetedAndActualAmountsList(_, context),
|
|
972
|
-
CostFilters: _json,
|
|
973
|
-
CostTypes: _json,
|
|
974
|
-
TimeUnit: __expectString,
|
|
975
|
-
});
|
|
976
|
-
};
|
|
977
|
-
const de_Budgets = (output, context) => {
|
|
978
|
-
const retVal = (output || [])
|
|
979
|
-
.filter((e) => e != null)
|
|
980
|
-
.map((entry) => {
|
|
981
|
-
return de_Budget(entry, context);
|
|
982
|
-
});
|
|
983
|
-
return retVal;
|
|
984
|
-
};
|
|
985
|
-
const de_DeleteBudgetActionResponse = (output, context) => {
|
|
986
|
-
return take(output, {
|
|
987
|
-
AccountId: __expectString,
|
|
988
|
-
Action: (_) => de_Action(_, context),
|
|
989
|
-
BudgetName: __expectString,
|
|
990
|
-
});
|
|
991
|
-
};
|
|
992
|
-
const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
993
|
-
return take(output, {
|
|
994
|
-
ActionHistories: (_) => de_ActionHistories(_, context),
|
|
995
|
-
NextToken: __expectString,
|
|
996
|
-
});
|
|
997
|
-
};
|
|
998
|
-
const de_DescribeBudgetActionResponse = (output, context) => {
|
|
999
|
-
return take(output, {
|
|
1000
|
-
AccountId: __expectString,
|
|
1001
|
-
Action: (_) => de_Action(_, context),
|
|
1002
|
-
BudgetName: __expectString,
|
|
1003
|
-
});
|
|
1004
|
-
};
|
|
1005
|
-
const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
1006
|
-
return take(output, {
|
|
1007
|
-
Actions: (_) => de_Actions(_, context),
|
|
1008
|
-
NextToken: __expectString,
|
|
1009
|
-
});
|
|
1010
|
-
};
|
|
1011
|
-
const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
1012
|
-
return take(output, {
|
|
1013
|
-
Actions: (_) => de_Actions(_, context),
|
|
1014
|
-
NextToken: __expectString,
|
|
1015
|
-
});
|
|
1016
|
-
};
|
|
1017
|
-
const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
1018
|
-
return take(output, {
|
|
1019
|
-
BudgetNotificationsForAccount: (_) => de_BudgetNotificationsForAccountList(_, context),
|
|
1020
|
-
NextToken: __expectString,
|
|
1021
|
-
});
|
|
1022
|
-
};
|
|
1023
|
-
const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
1024
|
-
return take(output, {
|
|
1025
|
-
BudgetPerformanceHistory: (_) => de_BudgetPerformanceHistory(_, context),
|
|
1026
|
-
NextToken: __expectString,
|
|
1027
|
-
});
|
|
1028
|
-
};
|
|
1029
|
-
const de_DescribeBudgetResponse = (output, context) => {
|
|
1030
|
-
return take(output, {
|
|
1031
|
-
Budget: (_) => de_Budget(_, context),
|
|
1032
|
-
});
|
|
1033
|
-
};
|
|
1034
|
-
const de_DescribeBudgetsResponse = (output, context) => {
|
|
1035
|
-
return take(output, {
|
|
1036
|
-
Budgets: (_) => de_Budgets(_, context),
|
|
1037
|
-
NextToken: __expectString,
|
|
1038
|
-
});
|
|
1039
|
-
};
|
|
1040
|
-
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
1041
|
-
return take(output, {
|
|
1042
|
-
NextToken: __expectString,
|
|
1043
|
-
Notifications: (_) => de_Notifications(_, context),
|
|
1044
|
-
});
|
|
1045
|
-
};
|
|
1046
|
-
const de_Expression = (output, context) => {
|
|
1047
|
-
return take(output, {
|
|
1048
|
-
And: (_) => de_Expressions(_, context),
|
|
1049
|
-
CostCategories: _json,
|
|
1050
|
-
Dimensions: _json,
|
|
1051
|
-
Not: (_) => de_Expression(_, context),
|
|
1052
|
-
Or: (_) => de_Expressions(_, context),
|
|
1053
|
-
Tags: _json,
|
|
1054
|
-
});
|
|
1055
|
-
};
|
|
1056
|
-
const de_Expressions = (output, context) => {
|
|
1057
|
-
const retVal = (output || [])
|
|
1058
|
-
.filter((e) => e != null)
|
|
1059
|
-
.map((entry) => {
|
|
1060
|
-
return de_Expression(entry, context);
|
|
1061
|
-
});
|
|
1062
|
-
return retVal;
|
|
1063
|
-
};
|
|
1064
|
-
const de_HealthStatus = (output, context) => {
|
|
1065
|
-
return take(output, {
|
|
1066
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1067
|
-
Status: __expectString,
|
|
1068
|
-
StatusReason: __expectString,
|
|
1069
|
-
});
|
|
1070
|
-
};
|
|
1071
|
-
const de_Notification = (output, context) => {
|
|
1072
|
-
return take(output, {
|
|
1073
|
-
ComparisonOperator: __expectString,
|
|
1074
|
-
NotificationState: __expectString,
|
|
1075
|
-
NotificationType: __expectString,
|
|
1076
|
-
Threshold: __limitedParseDouble,
|
|
1077
|
-
ThresholdType: __expectString,
|
|
1078
|
-
});
|
|
1079
|
-
};
|
|
1080
|
-
const de_Notifications = (output, context) => {
|
|
1081
|
-
const retVal = (output || [])
|
|
1082
|
-
.filter((e) => e != null)
|
|
1083
|
-
.map((entry) => {
|
|
1084
|
-
return de_Notification(entry, context);
|
|
1085
|
-
});
|
|
1086
|
-
return retVal;
|
|
1087
|
-
};
|
|
1088
|
-
const de_TimePeriod = (output, context) => {
|
|
1089
|
-
return take(output, {
|
|
1090
|
-
End: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1091
|
-
Start: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
|
-
const de_UpdateBudgetActionResponse = (output, context) => {
|
|
1095
|
-
return take(output, {
|
|
1096
|
-
AccountId: __expectString,
|
|
1097
|
-
BudgetName: __expectString,
|
|
1098
|
-
NewAction: (_) => de_Action(_, context),
|
|
1099
|
-
OldAction: (_) => de_Action(_, context),
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
const deserializeMetadata = (output) => ({
|
|
1103
|
-
httpStatusCode: output.statusCode,
|
|
1104
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1105
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1106
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1107
|
-
});
|
|
1108
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1109
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1110
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1111
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1112
|
-
const contents = {
|
|
1113
|
-
protocol,
|
|
1114
|
-
hostname,
|
|
1115
|
-
port,
|
|
1116
|
-
method: "POST",
|
|
1117
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1118
|
-
headers,
|
|
1119
|
-
};
|
|
1120
|
-
if (resolvedHostname !== undefined) {
|
|
1121
|
-
contents.hostname = resolvedHostname;
|
|
1122
|
-
}
|
|
1123
|
-
if (body !== undefined) {
|
|
1124
|
-
contents.body = body;
|
|
1125
|
-
}
|
|
1126
|
-
return new __HttpRequest(contents);
|
|
1127
|
-
};
|
|
1128
|
-
function sharedHeaders(operation) {
|
|
1129
|
-
return {
|
|
1130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1131
|
-
"x-amz-target": `AWSBudgetServiceGateway.${operation}`,
|
|
1132
|
-
};
|
|
1133
|
-
}
|