@aws-sdk/client-budgets 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +320 -849
- package/dist-es/protocols/Aws_json1_1.js +321 -850
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BudgetsServiceException as __BaseException } from "../models/BudgetsServiceException";
|
|
4
4
|
import { AccessDeniedException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateBudgetCommand = async (input, context) => {
|
|
@@ -29,13 +29,13 @@ export const se_CreateSubscriberCommand = async (input, context) => {
|
|
|
29
29
|
export const se_DeleteBudgetCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteBudget");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteBudgetAction");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DeleteNotificationCommand = async (input, context) => {
|
|
@@ -53,13 +53,13 @@ export const se_DeleteSubscriberCommand = async (input, context) => {
|
|
|
53
53
|
export const se_DescribeBudgetCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DescribeBudget");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DescribeBudgetAction");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
@@ -71,19 +71,19 @@ export const se_DescribeBudgetActionHistoriesCommand = async (input, context) =>
|
|
|
71
71
|
export const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
@@ -95,13 +95,13 @@ export const se_DescribeBudgetPerformanceHistoryCommand = async (input, context)
|
|
|
95
95
|
export const se_DescribeBudgetsCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("DescribeBudgets");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
@@ -113,7 +113,7 @@ export const se_DescribeSubscribersForNotificationCommand = async (input, contex
|
|
|
113
113
|
export const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_UpdateBudgetCommand = async (input, context) => {
|
|
@@ -146,12 +146,12 @@ export const de_CreateBudgetCommand = async (output, context) => {
|
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
149
|
-
contents =
|
|
149
|
+
contents = _json(data);
|
|
150
150
|
const response = {
|
|
151
151
|
$metadata: deserializeMetadata(output),
|
|
152
152
|
...contents,
|
|
153
153
|
};
|
|
154
|
-
return
|
|
154
|
+
return response;
|
|
155
155
|
};
|
|
156
156
|
const de_CreateBudgetCommandError = async (output, context) => {
|
|
157
157
|
const parsedOutput = {
|
|
@@ -180,10 +180,9 @@ const de_CreateBudgetCommandError = async (output, context) => {
|
|
|
180
180
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
181
181
|
default:
|
|
182
182
|
const parsedBody = parsedOutput.body;
|
|
183
|
-
throwDefaultError({
|
|
183
|
+
return throwDefaultError({
|
|
184
184
|
output,
|
|
185
185
|
parsedBody,
|
|
186
|
-
exceptionCtor: __BaseException,
|
|
187
186
|
errorCode,
|
|
188
187
|
});
|
|
189
188
|
}
|
|
@@ -194,12 +193,12 @@ export const de_CreateBudgetActionCommand = async (output, context) => {
|
|
|
194
193
|
}
|
|
195
194
|
const data = await parseBody(output.body, context);
|
|
196
195
|
let contents = {};
|
|
197
|
-
contents =
|
|
196
|
+
contents = _json(data);
|
|
198
197
|
const response = {
|
|
199
198
|
$metadata: deserializeMetadata(output),
|
|
200
199
|
...contents,
|
|
201
200
|
};
|
|
202
|
-
return
|
|
201
|
+
return response;
|
|
203
202
|
};
|
|
204
203
|
const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
205
204
|
const parsedOutput = {
|
|
@@ -231,10 +230,9 @@ const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
|
231
230
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
232
231
|
default:
|
|
233
232
|
const parsedBody = parsedOutput.body;
|
|
234
|
-
throwDefaultError({
|
|
233
|
+
return throwDefaultError({
|
|
235
234
|
output,
|
|
236
235
|
parsedBody,
|
|
237
|
-
exceptionCtor: __BaseException,
|
|
238
236
|
errorCode,
|
|
239
237
|
});
|
|
240
238
|
}
|
|
@@ -245,12 +243,12 @@ export const de_CreateNotificationCommand = async (output, context) => {
|
|
|
245
243
|
}
|
|
246
244
|
const data = await parseBody(output.body, context);
|
|
247
245
|
let contents = {};
|
|
248
|
-
contents =
|
|
246
|
+
contents = _json(data);
|
|
249
247
|
const response = {
|
|
250
248
|
$metadata: deserializeMetadata(output),
|
|
251
249
|
...contents,
|
|
252
250
|
};
|
|
253
|
-
return
|
|
251
|
+
return response;
|
|
254
252
|
};
|
|
255
253
|
const de_CreateNotificationCommandError = async (output, context) => {
|
|
256
254
|
const parsedOutput = {
|
|
@@ -282,10 +280,9 @@ const de_CreateNotificationCommandError = async (output, context) => {
|
|
|
282
280
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
283
281
|
default:
|
|
284
282
|
const parsedBody = parsedOutput.body;
|
|
285
|
-
throwDefaultError({
|
|
283
|
+
return throwDefaultError({
|
|
286
284
|
output,
|
|
287
285
|
parsedBody,
|
|
288
|
-
exceptionCtor: __BaseException,
|
|
289
286
|
errorCode,
|
|
290
287
|
});
|
|
291
288
|
}
|
|
@@ -296,12 +293,12 @@ export const de_CreateSubscriberCommand = async (output, context) => {
|
|
|
296
293
|
}
|
|
297
294
|
const data = await parseBody(output.body, context);
|
|
298
295
|
let contents = {};
|
|
299
|
-
contents =
|
|
296
|
+
contents = _json(data);
|
|
300
297
|
const response = {
|
|
301
298
|
$metadata: deserializeMetadata(output),
|
|
302
299
|
...contents,
|
|
303
300
|
};
|
|
304
|
-
return
|
|
301
|
+
return response;
|
|
305
302
|
};
|
|
306
303
|
const de_CreateSubscriberCommandError = async (output, context) => {
|
|
307
304
|
const parsedOutput = {
|
|
@@ -333,10 +330,9 @@ const de_CreateSubscriberCommandError = async (output, context) => {
|
|
|
333
330
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
334
331
|
default:
|
|
335
332
|
const parsedBody = parsedOutput.body;
|
|
336
|
-
throwDefaultError({
|
|
333
|
+
return throwDefaultError({
|
|
337
334
|
output,
|
|
338
335
|
parsedBody,
|
|
339
|
-
exceptionCtor: __BaseException,
|
|
340
336
|
errorCode,
|
|
341
337
|
});
|
|
342
338
|
}
|
|
@@ -347,12 +343,12 @@ export const de_DeleteBudgetCommand = async (output, context) => {
|
|
|
347
343
|
}
|
|
348
344
|
const data = await parseBody(output.body, context);
|
|
349
345
|
let contents = {};
|
|
350
|
-
contents =
|
|
346
|
+
contents = _json(data);
|
|
351
347
|
const response = {
|
|
352
348
|
$metadata: deserializeMetadata(output),
|
|
353
349
|
...contents,
|
|
354
350
|
};
|
|
355
|
-
return
|
|
351
|
+
return response;
|
|
356
352
|
};
|
|
357
353
|
const de_DeleteBudgetCommandError = async (output, context) => {
|
|
358
354
|
const parsedOutput = {
|
|
@@ -378,10 +374,9 @@ const de_DeleteBudgetCommandError = async (output, context) => {
|
|
|
378
374
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
379
375
|
default:
|
|
380
376
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
throwDefaultError({
|
|
377
|
+
return throwDefaultError({
|
|
382
378
|
output,
|
|
383
379
|
parsedBody,
|
|
384
|
-
exceptionCtor: __BaseException,
|
|
385
380
|
errorCode,
|
|
386
381
|
});
|
|
387
382
|
}
|
|
@@ -397,7 +392,7 @@ export const de_DeleteBudgetActionCommand = async (output, context) => {
|
|
|
397
392
|
$metadata: deserializeMetadata(output),
|
|
398
393
|
...contents,
|
|
399
394
|
};
|
|
400
|
-
return
|
|
395
|
+
return response;
|
|
401
396
|
};
|
|
402
397
|
const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
403
398
|
const parsedOutput = {
|
|
@@ -426,10 +421,9 @@ const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
|
426
421
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
427
422
|
default:
|
|
428
423
|
const parsedBody = parsedOutput.body;
|
|
429
|
-
throwDefaultError({
|
|
424
|
+
return throwDefaultError({
|
|
430
425
|
output,
|
|
431
426
|
parsedBody,
|
|
432
|
-
exceptionCtor: __BaseException,
|
|
433
427
|
errorCode,
|
|
434
428
|
});
|
|
435
429
|
}
|
|
@@ -440,12 +434,12 @@ export const de_DeleteNotificationCommand = async (output, context) => {
|
|
|
440
434
|
}
|
|
441
435
|
const data = await parseBody(output.body, context);
|
|
442
436
|
let contents = {};
|
|
443
|
-
contents =
|
|
437
|
+
contents = _json(data);
|
|
444
438
|
const response = {
|
|
445
439
|
$metadata: deserializeMetadata(output),
|
|
446
440
|
...contents,
|
|
447
441
|
};
|
|
448
|
-
return
|
|
442
|
+
return response;
|
|
449
443
|
};
|
|
450
444
|
const de_DeleteNotificationCommandError = async (output, context) => {
|
|
451
445
|
const parsedOutput = {
|
|
@@ -471,10 +465,9 @@ const de_DeleteNotificationCommandError = async (output, context) => {
|
|
|
471
465
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
472
466
|
default:
|
|
473
467
|
const parsedBody = parsedOutput.body;
|
|
474
|
-
throwDefaultError({
|
|
468
|
+
return throwDefaultError({
|
|
475
469
|
output,
|
|
476
470
|
parsedBody,
|
|
477
|
-
exceptionCtor: __BaseException,
|
|
478
471
|
errorCode,
|
|
479
472
|
});
|
|
480
473
|
}
|
|
@@ -485,12 +478,12 @@ export const de_DeleteSubscriberCommand = async (output, context) => {
|
|
|
485
478
|
}
|
|
486
479
|
const data = await parseBody(output.body, context);
|
|
487
480
|
let contents = {};
|
|
488
|
-
contents =
|
|
481
|
+
contents = _json(data);
|
|
489
482
|
const response = {
|
|
490
483
|
$metadata: deserializeMetadata(output),
|
|
491
484
|
...contents,
|
|
492
485
|
};
|
|
493
|
-
return
|
|
486
|
+
return response;
|
|
494
487
|
};
|
|
495
488
|
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
496
489
|
const parsedOutput = {
|
|
@@ -516,10 +509,9 @@ const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
|
516
509
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
517
510
|
default:
|
|
518
511
|
const parsedBody = parsedOutput.body;
|
|
519
|
-
throwDefaultError({
|
|
512
|
+
return throwDefaultError({
|
|
520
513
|
output,
|
|
521
514
|
parsedBody,
|
|
522
|
-
exceptionCtor: __BaseException,
|
|
523
515
|
errorCode,
|
|
524
516
|
});
|
|
525
517
|
}
|
|
@@ -535,7 +527,7 @@ export const de_DescribeBudgetCommand = async (output, context) => {
|
|
|
535
527
|
$metadata: deserializeMetadata(output),
|
|
536
528
|
...contents,
|
|
537
529
|
};
|
|
538
|
-
return
|
|
530
|
+
return response;
|
|
539
531
|
};
|
|
540
532
|
const de_DescribeBudgetCommandError = async (output, context) => {
|
|
541
533
|
const parsedOutput = {
|
|
@@ -561,10 +553,9 @@ const de_DescribeBudgetCommandError = async (output, context) => {
|
|
|
561
553
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
562
554
|
default:
|
|
563
555
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
throwDefaultError({
|
|
556
|
+
return throwDefaultError({
|
|
565
557
|
output,
|
|
566
558
|
parsedBody,
|
|
567
|
-
exceptionCtor: __BaseException,
|
|
568
559
|
errorCode,
|
|
569
560
|
});
|
|
570
561
|
}
|
|
@@ -580,7 +571,7 @@ export const de_DescribeBudgetActionCommand = async (output, context) => {
|
|
|
580
571
|
$metadata: deserializeMetadata(output),
|
|
581
572
|
...contents,
|
|
582
573
|
};
|
|
583
|
-
return
|
|
574
|
+
return response;
|
|
584
575
|
};
|
|
585
576
|
const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
586
577
|
const parsedOutput = {
|
|
@@ -606,10 +597,9 @@ const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
|
606
597
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
607
598
|
default:
|
|
608
599
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
throwDefaultError({
|
|
600
|
+
return throwDefaultError({
|
|
610
601
|
output,
|
|
611
602
|
parsedBody,
|
|
612
|
-
exceptionCtor: __BaseException,
|
|
613
603
|
errorCode,
|
|
614
604
|
});
|
|
615
605
|
}
|
|
@@ -625,7 +615,7 @@ export const de_DescribeBudgetActionHistoriesCommand = async (output, context) =
|
|
|
625
615
|
$metadata: deserializeMetadata(output),
|
|
626
616
|
...contents,
|
|
627
617
|
};
|
|
628
|
-
return
|
|
618
|
+
return response;
|
|
629
619
|
};
|
|
630
620
|
const de_DescribeBudgetActionHistoriesCommandError = async (output, context) => {
|
|
631
621
|
const parsedOutput = {
|
|
@@ -654,10 +644,9 @@ const de_DescribeBudgetActionHistoriesCommandError = async (output, context) =>
|
|
|
654
644
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
655
645
|
default:
|
|
656
646
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
throwDefaultError({
|
|
647
|
+
return throwDefaultError({
|
|
658
648
|
output,
|
|
659
649
|
parsedBody,
|
|
660
|
-
exceptionCtor: __BaseException,
|
|
661
650
|
errorCode,
|
|
662
651
|
});
|
|
663
652
|
}
|
|
@@ -673,7 +662,7 @@ export const de_DescribeBudgetActionsForAccountCommand = async (output, context)
|
|
|
673
662
|
$metadata: deserializeMetadata(output),
|
|
674
663
|
...contents,
|
|
675
664
|
};
|
|
676
|
-
return
|
|
665
|
+
return response;
|
|
677
666
|
};
|
|
678
667
|
const de_DescribeBudgetActionsForAccountCommandError = async (output, context) => {
|
|
679
668
|
const parsedOutput = {
|
|
@@ -699,10 +688,9 @@ const de_DescribeBudgetActionsForAccountCommandError = async (output, context) =
|
|
|
699
688
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
689
|
default:
|
|
701
690
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
691
|
+
return throwDefaultError({
|
|
703
692
|
output,
|
|
704
693
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
694
|
errorCode,
|
|
707
695
|
});
|
|
708
696
|
}
|
|
@@ -718,7 +706,7 @@ export const de_DescribeBudgetActionsForBudgetCommand = async (output, context)
|
|
|
718
706
|
$metadata: deserializeMetadata(output),
|
|
719
707
|
...contents,
|
|
720
708
|
};
|
|
721
|
-
return
|
|
709
|
+
return response;
|
|
722
710
|
};
|
|
723
711
|
const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) => {
|
|
724
712
|
const parsedOutput = {
|
|
@@ -747,10 +735,9 @@ const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) =>
|
|
|
747
735
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
748
736
|
default:
|
|
749
737
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
throwDefaultError({
|
|
738
|
+
return throwDefaultError({
|
|
751
739
|
output,
|
|
752
740
|
parsedBody,
|
|
753
|
-
exceptionCtor: __BaseException,
|
|
754
741
|
errorCode,
|
|
755
742
|
});
|
|
756
743
|
}
|
|
@@ -766,7 +753,7 @@ export const de_DescribeBudgetNotificationsForAccountCommand = async (output, co
|
|
|
766
753
|
$metadata: deserializeMetadata(output),
|
|
767
754
|
...contents,
|
|
768
755
|
};
|
|
769
|
-
return
|
|
756
|
+
return response;
|
|
770
757
|
};
|
|
771
758
|
const de_DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
772
759
|
const parsedOutput = {
|
|
@@ -798,10 +785,9 @@ const de_DescribeBudgetNotificationsForAccountCommandError = async (output, cont
|
|
|
798
785
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
799
786
|
default:
|
|
800
787
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
throwDefaultError({
|
|
788
|
+
return throwDefaultError({
|
|
802
789
|
output,
|
|
803
790
|
parsedBody,
|
|
804
|
-
exceptionCtor: __BaseException,
|
|
805
791
|
errorCode,
|
|
806
792
|
});
|
|
807
793
|
}
|
|
@@ -817,7 +803,7 @@ export const de_DescribeBudgetPerformanceHistoryCommand = async (output, context
|
|
|
817
803
|
$metadata: deserializeMetadata(output),
|
|
818
804
|
...contents,
|
|
819
805
|
};
|
|
820
|
-
return
|
|
806
|
+
return response;
|
|
821
807
|
};
|
|
822
808
|
const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context) => {
|
|
823
809
|
const parsedOutput = {
|
|
@@ -849,10 +835,9 @@ const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context)
|
|
|
849
835
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
850
836
|
default:
|
|
851
837
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
throwDefaultError({
|
|
838
|
+
return throwDefaultError({
|
|
853
839
|
output,
|
|
854
840
|
parsedBody,
|
|
855
|
-
exceptionCtor: __BaseException,
|
|
856
841
|
errorCode,
|
|
857
842
|
});
|
|
858
843
|
}
|
|
@@ -868,7 +853,7 @@ export const de_DescribeBudgetsCommand = async (output, context) => {
|
|
|
868
853
|
$metadata: deserializeMetadata(output),
|
|
869
854
|
...contents,
|
|
870
855
|
};
|
|
871
|
-
return
|
|
856
|
+
return response;
|
|
872
857
|
};
|
|
873
858
|
const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
874
859
|
const parsedOutput = {
|
|
@@ -900,10 +885,9 @@ const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
|
900
885
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
901
886
|
default:
|
|
902
887
|
const parsedBody = parsedOutput.body;
|
|
903
|
-
throwDefaultError({
|
|
888
|
+
return throwDefaultError({
|
|
904
889
|
output,
|
|
905
890
|
parsedBody,
|
|
906
|
-
exceptionCtor: __BaseException,
|
|
907
891
|
errorCode,
|
|
908
892
|
});
|
|
909
893
|
}
|
|
@@ -919,7 +903,7 @@ export const de_DescribeNotificationsForBudgetCommand = async (output, context)
|
|
|
919
903
|
$metadata: deserializeMetadata(output),
|
|
920
904
|
...contents,
|
|
921
905
|
};
|
|
922
|
-
return
|
|
906
|
+
return response;
|
|
923
907
|
};
|
|
924
908
|
const de_DescribeNotificationsForBudgetCommandError = async (output, context) => {
|
|
925
909
|
const parsedOutput = {
|
|
@@ -951,10 +935,9 @@ const de_DescribeNotificationsForBudgetCommandError = async (output, context) =>
|
|
|
951
935
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
952
936
|
default:
|
|
953
937
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
throwDefaultError({
|
|
938
|
+
return throwDefaultError({
|
|
955
939
|
output,
|
|
956
940
|
parsedBody,
|
|
957
|
-
exceptionCtor: __BaseException,
|
|
958
941
|
errorCode,
|
|
959
942
|
});
|
|
960
943
|
}
|
|
@@ -965,12 +948,12 @@ export const de_DescribeSubscribersForNotificationCommand = async (output, conte
|
|
|
965
948
|
}
|
|
966
949
|
const data = await parseBody(output.body, context);
|
|
967
950
|
let contents = {};
|
|
968
|
-
contents =
|
|
951
|
+
contents = _json(data);
|
|
969
952
|
const response = {
|
|
970
953
|
$metadata: deserializeMetadata(output),
|
|
971
954
|
...contents,
|
|
972
955
|
};
|
|
973
|
-
return
|
|
956
|
+
return response;
|
|
974
957
|
};
|
|
975
958
|
const de_DescribeSubscribersForNotificationCommandError = async (output, context) => {
|
|
976
959
|
const parsedOutput = {
|
|
@@ -1002,10 +985,9 @@ const de_DescribeSubscribersForNotificationCommandError = async (output, context
|
|
|
1002
985
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1003
986
|
default:
|
|
1004
987
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
throwDefaultError({
|
|
988
|
+
return throwDefaultError({
|
|
1006
989
|
output,
|
|
1007
990
|
parsedBody,
|
|
1008
|
-
exceptionCtor: __BaseException,
|
|
1009
991
|
errorCode,
|
|
1010
992
|
});
|
|
1011
993
|
}
|
|
@@ -1016,12 +998,12 @@ export const de_ExecuteBudgetActionCommand = async (output, context) => {
|
|
|
1016
998
|
}
|
|
1017
999
|
const data = await parseBody(output.body, context);
|
|
1018
1000
|
let contents = {};
|
|
1019
|
-
contents =
|
|
1001
|
+
contents = _json(data);
|
|
1020
1002
|
const response = {
|
|
1021
1003
|
$metadata: deserializeMetadata(output),
|
|
1022
1004
|
...contents,
|
|
1023
1005
|
};
|
|
1024
|
-
return
|
|
1006
|
+
return response;
|
|
1025
1007
|
};
|
|
1026
1008
|
const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
1027
1009
|
const parsedOutput = {
|
|
@@ -1050,10 +1032,9 @@ const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
|
1050
1032
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1051
1033
|
default:
|
|
1052
1034
|
const parsedBody = parsedOutput.body;
|
|
1053
|
-
throwDefaultError({
|
|
1035
|
+
return throwDefaultError({
|
|
1054
1036
|
output,
|
|
1055
1037
|
parsedBody,
|
|
1056
|
-
exceptionCtor: __BaseException,
|
|
1057
1038
|
errorCode,
|
|
1058
1039
|
});
|
|
1059
1040
|
}
|
|
@@ -1064,12 +1045,12 @@ export const de_UpdateBudgetCommand = async (output, context) => {
|
|
|
1064
1045
|
}
|
|
1065
1046
|
const data = await parseBody(output.body, context);
|
|
1066
1047
|
let contents = {};
|
|
1067
|
-
contents =
|
|
1048
|
+
contents = _json(data);
|
|
1068
1049
|
const response = {
|
|
1069
1050
|
$metadata: deserializeMetadata(output),
|
|
1070
1051
|
...contents,
|
|
1071
1052
|
};
|
|
1072
|
-
return
|
|
1053
|
+
return response;
|
|
1073
1054
|
};
|
|
1074
1055
|
const de_UpdateBudgetCommandError = async (output, context) => {
|
|
1075
1056
|
const parsedOutput = {
|
|
@@ -1095,10 +1076,9 @@ const de_UpdateBudgetCommandError = async (output, context) => {
|
|
|
1095
1076
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1096
1077
|
default:
|
|
1097
1078
|
const parsedBody = parsedOutput.body;
|
|
1098
|
-
throwDefaultError({
|
|
1079
|
+
return throwDefaultError({
|
|
1099
1080
|
output,
|
|
1100
1081
|
parsedBody,
|
|
1101
|
-
exceptionCtor: __BaseException,
|
|
1102
1082
|
errorCode,
|
|
1103
1083
|
});
|
|
1104
1084
|
}
|
|
@@ -1114,7 +1094,7 @@ export const de_UpdateBudgetActionCommand = async (output, context) => {
|
|
|
1114
1094
|
$metadata: deserializeMetadata(output),
|
|
1115
1095
|
...contents,
|
|
1116
1096
|
};
|
|
1117
|
-
return
|
|
1097
|
+
return response;
|
|
1118
1098
|
};
|
|
1119
1099
|
const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
1120
1100
|
const parsedOutput = {
|
|
@@ -1143,10 +1123,9 @@ const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
|
1143
1123
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1144
1124
|
default:
|
|
1145
1125
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
throwDefaultError({
|
|
1126
|
+
return throwDefaultError({
|
|
1147
1127
|
output,
|
|
1148
1128
|
parsedBody,
|
|
1149
|
-
exceptionCtor: __BaseException,
|
|
1150
1129
|
errorCode,
|
|
1151
1130
|
});
|
|
1152
1131
|
}
|
|
@@ -1157,12 +1136,12 @@ export const de_UpdateNotificationCommand = async (output, context) => {
|
|
|
1157
1136
|
}
|
|
1158
1137
|
const data = await parseBody(output.body, context);
|
|
1159
1138
|
let contents = {};
|
|
1160
|
-
contents =
|
|
1139
|
+
contents = _json(data);
|
|
1161
1140
|
const response = {
|
|
1162
1141
|
$metadata: deserializeMetadata(output),
|
|
1163
1142
|
...contents,
|
|
1164
1143
|
};
|
|
1165
|
-
return
|
|
1144
|
+
return response;
|
|
1166
1145
|
};
|
|
1167
1146
|
const de_UpdateNotificationCommandError = async (output, context) => {
|
|
1168
1147
|
const parsedOutput = {
|
|
@@ -1191,10 +1170,9 @@ const de_UpdateNotificationCommandError = async (output, context) => {
|
|
|
1191
1170
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1192
1171
|
default:
|
|
1193
1172
|
const parsedBody = parsedOutput.body;
|
|
1194
|
-
throwDefaultError({
|
|
1173
|
+
return throwDefaultError({
|
|
1195
1174
|
output,
|
|
1196
1175
|
parsedBody,
|
|
1197
|
-
exceptionCtor: __BaseException,
|
|
1198
1176
|
errorCode,
|
|
1199
1177
|
});
|
|
1200
1178
|
}
|
|
@@ -1205,12 +1183,12 @@ export const de_UpdateSubscriberCommand = async (output, context) => {
|
|
|
1205
1183
|
}
|
|
1206
1184
|
const data = await parseBody(output.body, context);
|
|
1207
1185
|
let contents = {};
|
|
1208
|
-
contents =
|
|
1186
|
+
contents = _json(data);
|
|
1209
1187
|
const response = {
|
|
1210
1188
|
$metadata: deserializeMetadata(output),
|
|
1211
1189
|
...contents,
|
|
1212
1190
|
};
|
|
1213
|
-
return
|
|
1191
|
+
return response;
|
|
1214
1192
|
};
|
|
1215
1193
|
const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
1216
1194
|
const parsedOutput = {
|
|
@@ -1239,17 +1217,16 @@ const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
|
1239
1217
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1240
1218
|
default:
|
|
1241
1219
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
throwDefaultError({
|
|
1220
|
+
return throwDefaultError({
|
|
1243
1221
|
output,
|
|
1244
1222
|
parsedBody,
|
|
1245
|
-
exceptionCtor: __BaseException,
|
|
1246
1223
|
errorCode,
|
|
1247
1224
|
});
|
|
1248
1225
|
}
|
|
1249
1226
|
};
|
|
1250
1227
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1251
1228
|
const body = parsedOutput.body;
|
|
1252
|
-
const deserialized =
|
|
1229
|
+
const deserialized = _json(body);
|
|
1253
1230
|
const exception = new AccessDeniedException({
|
|
1254
1231
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
1232
|
...deserialized,
|
|
@@ -1258,7 +1235,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1258
1235
|
};
|
|
1259
1236
|
const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1260
1237
|
const body = parsedOutput.body;
|
|
1261
|
-
const deserialized =
|
|
1238
|
+
const deserialized = _json(body);
|
|
1262
1239
|
const exception = new CreationLimitExceededException({
|
|
1263
1240
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
1241
|
...deserialized,
|
|
@@ -1267,7 +1244,7 @@ const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1267
1244
|
};
|
|
1268
1245
|
const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
1269
1246
|
const body = parsedOutput.body;
|
|
1270
|
-
const deserialized =
|
|
1247
|
+
const deserialized = _json(body);
|
|
1271
1248
|
const exception = new DuplicateRecordException({
|
|
1272
1249
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1273
1250
|
...deserialized,
|
|
@@ -1276,7 +1253,7 @@ const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
|
1276
1253
|
};
|
|
1277
1254
|
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1278
1255
|
const body = parsedOutput.body;
|
|
1279
|
-
const deserialized =
|
|
1256
|
+
const deserialized = _json(body);
|
|
1280
1257
|
const exception = new ExpiredNextTokenException({
|
|
1281
1258
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
1259
|
...deserialized,
|
|
@@ -1285,7 +1262,7 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1285
1262
|
};
|
|
1286
1263
|
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1287
1264
|
const body = parsedOutput.body;
|
|
1288
|
-
const deserialized =
|
|
1265
|
+
const deserialized = _json(body);
|
|
1289
1266
|
const exception = new InternalErrorException({
|
|
1290
1267
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1291
1268
|
...deserialized,
|
|
@@ -1294,7 +1271,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1294
1271
|
};
|
|
1295
1272
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1296
1273
|
const body = parsedOutput.body;
|
|
1297
|
-
const deserialized =
|
|
1274
|
+
const deserialized = _json(body);
|
|
1298
1275
|
const exception = new InvalidNextTokenException({
|
|
1299
1276
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
1277
|
...deserialized,
|
|
@@ -1303,7 +1280,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1303
1280
|
};
|
|
1304
1281
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1305
1282
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1283
|
+
const deserialized = _json(body);
|
|
1307
1284
|
const exception = new InvalidParameterException({
|
|
1308
1285
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1286
|
...deserialized,
|
|
@@ -1312,7 +1289,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1312
1289
|
};
|
|
1313
1290
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1314
1291
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1292
|
+
const deserialized = _json(body);
|
|
1316
1293
|
const exception = new NotFoundException({
|
|
1317
1294
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1295
|
...deserialized,
|
|
@@ -1321,7 +1298,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1321
1298
|
};
|
|
1322
1299
|
const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
1323
1300
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1301
|
+
const deserialized = _json(body);
|
|
1325
1302
|
const exception = new ResourceLockedException({
|
|
1326
1303
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1304
|
...deserialized,
|
|
@@ -1330,7 +1307,7 @@ const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
|
1330
1307
|
};
|
|
1331
1308
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1332
1309
|
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized =
|
|
1310
|
+
const deserialized = _json(body);
|
|
1334
1311
|
const exception = new ThrottlingException({
|
|
1335
1312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
1313
|
...deserialized,
|
|
@@ -1338,283 +1315,126 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1338
1315
|
return __decorateServiceException(exception, body);
|
|
1339
1316
|
};
|
|
1340
1317
|
const se_ActionThreshold = (input, context) => {
|
|
1341
|
-
return {
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
};
|
|
1318
|
+
return take(input, {
|
|
1319
|
+
ActionThresholdType: [],
|
|
1320
|
+
ActionThresholdValue: __serializeFloat,
|
|
1321
|
+
});
|
|
1345
1322
|
};
|
|
1346
1323
|
const se_AutoAdjustData = (input, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
...(input.LastAutoAdjustTime != null && {
|
|
1353
|
-
LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
|
|
1354
|
-
}),
|
|
1355
|
-
};
|
|
1324
|
+
return take(input, {
|
|
1325
|
+
AutoAdjustType: [],
|
|
1326
|
+
HistoricalOptions: _json,
|
|
1327
|
+
LastAutoAdjustTime: (_) => Math.round(_.getTime() / 1000),
|
|
1328
|
+
});
|
|
1356
1329
|
};
|
|
1357
1330
|
const se_Budget = (input, context) => {
|
|
1358
|
-
return {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
const se_CalculatedSpend = (input, context) => {
|
|
1375
|
-
return {
|
|
1376
|
-
...(input.ActualSpend != null && { ActualSpend: se_Spend(input.ActualSpend, context) }),
|
|
1377
|
-
...(input.ForecastedSpend != null && { ForecastedSpend: se_Spend(input.ForecastedSpend, context) }),
|
|
1378
|
-
};
|
|
1379
|
-
};
|
|
1380
|
-
const se_CostFilters = (input, context) => {
|
|
1381
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1382
|
-
if (value === null) {
|
|
1383
|
-
return acc;
|
|
1384
|
-
}
|
|
1385
|
-
acc[key] = se_DimensionValues(value, context);
|
|
1386
|
-
return acc;
|
|
1387
|
-
}, {});
|
|
1388
|
-
};
|
|
1389
|
-
const se_CostTypes = (input, context) => {
|
|
1390
|
-
return {
|
|
1391
|
-
...(input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit }),
|
|
1392
|
-
...(input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount }),
|
|
1393
|
-
...(input.IncludeOtherSubscription != null && { IncludeOtherSubscription: input.IncludeOtherSubscription }),
|
|
1394
|
-
...(input.IncludeRecurring != null && { IncludeRecurring: input.IncludeRecurring }),
|
|
1395
|
-
...(input.IncludeRefund != null && { IncludeRefund: input.IncludeRefund }),
|
|
1396
|
-
...(input.IncludeSubscription != null && { IncludeSubscription: input.IncludeSubscription }),
|
|
1397
|
-
...(input.IncludeSupport != null && { IncludeSupport: input.IncludeSupport }),
|
|
1398
|
-
...(input.IncludeTax != null && { IncludeTax: input.IncludeTax }),
|
|
1399
|
-
...(input.IncludeUpfront != null && { IncludeUpfront: input.IncludeUpfront }),
|
|
1400
|
-
...(input.UseAmortized != null && { UseAmortized: input.UseAmortized }),
|
|
1401
|
-
...(input.UseBlended != null && { UseBlended: input.UseBlended }),
|
|
1402
|
-
};
|
|
1331
|
+
return take(input, {
|
|
1332
|
+
AutoAdjustData: (_) => se_AutoAdjustData(_, context),
|
|
1333
|
+
BudgetLimit: _json,
|
|
1334
|
+
BudgetName: [],
|
|
1335
|
+
BudgetType: [],
|
|
1336
|
+
CalculatedSpend: _json,
|
|
1337
|
+
CostFilters: _json,
|
|
1338
|
+
CostTypes: _json,
|
|
1339
|
+
LastUpdatedTime: (_) => Math.round(_.getTime() / 1000),
|
|
1340
|
+
PlannedBudgetLimits: _json,
|
|
1341
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1342
|
+
TimeUnit: [],
|
|
1343
|
+
});
|
|
1403
1344
|
};
|
|
1404
1345
|
const se_CreateBudgetActionRequest = (input, context) => {
|
|
1405
|
-
return {
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
};
|
|
1346
|
+
return take(input, {
|
|
1347
|
+
AccountId: [],
|
|
1348
|
+
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1349
|
+
ActionType: [],
|
|
1350
|
+
ApprovalModel: [],
|
|
1351
|
+
BudgetName: [],
|
|
1352
|
+
Definition: _json,
|
|
1353
|
+
ExecutionRoleArn: [],
|
|
1354
|
+
NotificationType: [],
|
|
1355
|
+
Subscribers: _json,
|
|
1356
|
+
});
|
|
1416
1357
|
};
|
|
1417
1358
|
const se_CreateBudgetRequest = (input, context) => {
|
|
1418
|
-
return {
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
}),
|
|
1424
|
-
};
|
|
1359
|
+
return take(input, {
|
|
1360
|
+
AccountId: [],
|
|
1361
|
+
Budget: (_) => se_Budget(_, context),
|
|
1362
|
+
NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
|
|
1363
|
+
});
|
|
1425
1364
|
};
|
|
1426
1365
|
const se_CreateNotificationRequest = (input, context) => {
|
|
1427
|
-
return {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
};
|
|
1366
|
+
return take(input, {
|
|
1367
|
+
AccountId: [],
|
|
1368
|
+
BudgetName: [],
|
|
1369
|
+
Notification: (_) => se_Notification(_, context),
|
|
1370
|
+
Subscribers: _json,
|
|
1371
|
+
});
|
|
1433
1372
|
};
|
|
1434
1373
|
const se_CreateSubscriberRequest = (input, context) => {
|
|
1435
|
-
return {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
const se_Definition = (input, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
...(input.IamActionDefinition != null && {
|
|
1445
|
-
IamActionDefinition: se_IamActionDefinition(input.IamActionDefinition, context),
|
|
1446
|
-
}),
|
|
1447
|
-
...(input.ScpActionDefinition != null && {
|
|
1448
|
-
ScpActionDefinition: se_ScpActionDefinition(input.ScpActionDefinition, context),
|
|
1449
|
-
}),
|
|
1450
|
-
...(input.SsmActionDefinition != null && {
|
|
1451
|
-
SsmActionDefinition: se_SsmActionDefinition(input.SsmActionDefinition, context),
|
|
1452
|
-
}),
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
const se_DeleteBudgetActionRequest = (input, context) => {
|
|
1456
|
-
return {
|
|
1457
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1458
|
-
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1459
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1460
|
-
};
|
|
1461
|
-
};
|
|
1462
|
-
const se_DeleteBudgetRequest = (input, context) => {
|
|
1463
|
-
return {
|
|
1464
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1465
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1466
|
-
};
|
|
1374
|
+
return take(input, {
|
|
1375
|
+
AccountId: [],
|
|
1376
|
+
BudgetName: [],
|
|
1377
|
+
Notification: (_) => se_Notification(_, context),
|
|
1378
|
+
Subscriber: _json,
|
|
1379
|
+
});
|
|
1467
1380
|
};
|
|
1468
1381
|
const se_DeleteNotificationRequest = (input, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
};
|
|
1382
|
+
return take(input, {
|
|
1383
|
+
AccountId: [],
|
|
1384
|
+
BudgetName: [],
|
|
1385
|
+
Notification: (_) => se_Notification(_, context),
|
|
1386
|
+
});
|
|
1474
1387
|
};
|
|
1475
1388
|
const se_DeleteSubscriberRequest = (input, context) => {
|
|
1476
|
-
return {
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
};
|
|
1389
|
+
return take(input, {
|
|
1390
|
+
AccountId: [],
|
|
1391
|
+
BudgetName: [],
|
|
1392
|
+
Notification: (_) => se_Notification(_, context),
|
|
1393
|
+
Subscriber: _json,
|
|
1394
|
+
});
|
|
1482
1395
|
};
|
|
1483
1396
|
const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
1484
|
-
return {
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
};
|
|
1492
|
-
};
|
|
1493
|
-
const se_DescribeBudgetActionRequest = (input, context) => {
|
|
1494
|
-
return {
|
|
1495
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1496
|
-
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1497
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
const se_DescribeBudgetActionsForAccountRequest = (input, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1503
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1504
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_DescribeBudgetActionsForBudgetRequest = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1510
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1511
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1512
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
const se_DescribeBudgetNotificationsForAccountRequest = (input, context) => {
|
|
1516
|
-
return {
|
|
1517
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1518
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1519
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1520
|
-
};
|
|
1521
|
-
};
|
|
1522
|
-
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1523
|
-
return {
|
|
1524
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1525
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1526
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1527
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1528
|
-
...(input.TimePeriod != null && { TimePeriod: se_TimePeriod(input.TimePeriod, context) }),
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
const se_DescribeBudgetRequest = (input, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1534
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
const se_DescribeBudgetsRequest = (input, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1540
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1541
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1542
|
-
};
|
|
1543
|
-
};
|
|
1544
|
-
const se_DescribeNotificationsForBudgetRequest = (input, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1547
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1548
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1549
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1553
|
-
return {
|
|
1554
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1555
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1556
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1557
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1558
|
-
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1559
|
-
};
|
|
1560
|
-
};
|
|
1561
|
-
const se_DimensionValues = (input, context) => {
|
|
1562
|
-
return input
|
|
1563
|
-
.filter((e) => e != null)
|
|
1564
|
-
.map((entry) => {
|
|
1565
|
-
return entry;
|
|
1397
|
+
return take(input, {
|
|
1398
|
+
AccountId: [],
|
|
1399
|
+
ActionId: [],
|
|
1400
|
+
BudgetName: [],
|
|
1401
|
+
MaxResults: [],
|
|
1402
|
+
NextToken: [],
|
|
1403
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1566
1404
|
});
|
|
1567
1405
|
};
|
|
1568
|
-
const
|
|
1569
|
-
return {
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
};
|
|
1576
|
-
const se_Groups = (input, context) => {
|
|
1577
|
-
return input
|
|
1578
|
-
.filter((e) => e != null)
|
|
1579
|
-
.map((entry) => {
|
|
1580
|
-
return entry;
|
|
1406
|
+
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1407
|
+
return take(input, {
|
|
1408
|
+
AccountId: [],
|
|
1409
|
+
BudgetName: [],
|
|
1410
|
+
MaxResults: [],
|
|
1411
|
+
NextToken: [],
|
|
1412
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1581
1413
|
});
|
|
1582
1414
|
};
|
|
1583
|
-
const
|
|
1584
|
-
return {
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
return {
|
|
1591
|
-
...(input.Groups != null && { Groups: se_Groups(input.Groups, context) }),
|
|
1592
|
-
...(input.PolicyArn != null && { PolicyArn: input.PolicyArn }),
|
|
1593
|
-
...(input.Roles != null && { Roles: se_Roles(input.Roles, context) }),
|
|
1594
|
-
...(input.Users != null && { Users: se_Users(input.Users, context) }),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const se_InstanceIds = (input, context) => {
|
|
1598
|
-
return input
|
|
1599
|
-
.filter((e) => e != null)
|
|
1600
|
-
.map((entry) => {
|
|
1601
|
-
return entry;
|
|
1415
|
+
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1416
|
+
return take(input, {
|
|
1417
|
+
AccountId: [],
|
|
1418
|
+
BudgetName: [],
|
|
1419
|
+
MaxResults: [],
|
|
1420
|
+
NextToken: [],
|
|
1421
|
+
Notification: (_) => se_Notification(_, context),
|
|
1602
1422
|
});
|
|
1603
1423
|
};
|
|
1604
1424
|
const se_Notification = (input, context) => {
|
|
1605
|
-
return {
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
};
|
|
1425
|
+
return take(input, {
|
|
1426
|
+
ComparisonOperator: [],
|
|
1427
|
+
NotificationState: [],
|
|
1428
|
+
NotificationType: [],
|
|
1429
|
+
Threshold: __serializeFloat,
|
|
1430
|
+
ThresholdType: [],
|
|
1431
|
+
});
|
|
1612
1432
|
};
|
|
1613
1433
|
const se_NotificationWithSubscribers = (input, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
};
|
|
1434
|
+
return take(input, {
|
|
1435
|
+
Notification: (_) => se_Notification(_, context),
|
|
1436
|
+
Subscribers: _json,
|
|
1437
|
+
});
|
|
1618
1438
|
};
|
|
1619
1439
|
const se_NotificationWithSubscribersList = (input, context) => {
|
|
1620
1440
|
return input
|
|
@@ -1623,608 +1443,258 @@ const se_NotificationWithSubscribersList = (input, context) => {
|
|
|
1623
1443
|
return se_NotificationWithSubscribers(entry, context);
|
|
1624
1444
|
});
|
|
1625
1445
|
};
|
|
1626
|
-
const se_PlannedBudgetLimits = (input, context) => {
|
|
1627
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1628
|
-
if (value === null) {
|
|
1629
|
-
return acc;
|
|
1630
|
-
}
|
|
1631
|
-
acc[key] = se_Spend(value, context);
|
|
1632
|
-
return acc;
|
|
1633
|
-
}, {});
|
|
1634
|
-
};
|
|
1635
|
-
const se_Roles = (input, context) => {
|
|
1636
|
-
return input
|
|
1637
|
-
.filter((e) => e != null)
|
|
1638
|
-
.map((entry) => {
|
|
1639
|
-
return entry;
|
|
1640
|
-
});
|
|
1641
|
-
};
|
|
1642
|
-
const se_ScpActionDefinition = (input, context) => {
|
|
1643
|
-
return {
|
|
1644
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1645
|
-
...(input.TargetIds != null && { TargetIds: se_TargetIds(input.TargetIds, context) }),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
const se_Spend = (input, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
...(input.Amount != null && { Amount: input.Amount }),
|
|
1651
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
const se_SsmActionDefinition = (input, context) => {
|
|
1655
|
-
return {
|
|
1656
|
-
...(input.ActionSubType != null && { ActionSubType: input.ActionSubType }),
|
|
1657
|
-
...(input.InstanceIds != null && { InstanceIds: se_InstanceIds(input.InstanceIds, context) }),
|
|
1658
|
-
...(input.Region != null && { Region: input.Region }),
|
|
1659
|
-
};
|
|
1660
|
-
};
|
|
1661
|
-
const se_Subscriber = (input, context) => {
|
|
1662
|
-
return {
|
|
1663
|
-
...(input.Address != null && { Address: input.Address }),
|
|
1664
|
-
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
const se_Subscribers = (input, context) => {
|
|
1668
|
-
return input
|
|
1669
|
-
.filter((e) => e != null)
|
|
1670
|
-
.map((entry) => {
|
|
1671
|
-
return se_Subscriber(entry, context);
|
|
1672
|
-
});
|
|
1673
|
-
};
|
|
1674
|
-
const se_TargetIds = (input, context) => {
|
|
1675
|
-
return input
|
|
1676
|
-
.filter((e) => e != null)
|
|
1677
|
-
.map((entry) => {
|
|
1678
|
-
return entry;
|
|
1679
|
-
});
|
|
1680
|
-
};
|
|
1681
1446
|
const se_TimePeriod = (input, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
};
|
|
1447
|
+
return take(input, {
|
|
1448
|
+
End: (_) => Math.round(_.getTime() / 1000),
|
|
1449
|
+
Start: (_) => Math.round(_.getTime() / 1000),
|
|
1450
|
+
});
|
|
1686
1451
|
};
|
|
1687
1452
|
const se_UpdateBudgetActionRequest = (input, context) => {
|
|
1688
|
-
return {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
};
|
|
1453
|
+
return take(input, {
|
|
1454
|
+
AccountId: [],
|
|
1455
|
+
ActionId: [],
|
|
1456
|
+
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1457
|
+
ApprovalModel: [],
|
|
1458
|
+
BudgetName: [],
|
|
1459
|
+
Definition: _json,
|
|
1460
|
+
ExecutionRoleArn: [],
|
|
1461
|
+
NotificationType: [],
|
|
1462
|
+
Subscribers: _json,
|
|
1463
|
+
});
|
|
1699
1464
|
};
|
|
1700
1465
|
const se_UpdateBudgetRequest = (input, context) => {
|
|
1701
|
-
return {
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
};
|
|
1466
|
+
return take(input, {
|
|
1467
|
+
AccountId: [],
|
|
1468
|
+
NewBudget: (_) => se_Budget(_, context),
|
|
1469
|
+
});
|
|
1705
1470
|
};
|
|
1706
1471
|
const se_UpdateNotificationRequest = (input, context) => {
|
|
1707
|
-
return {
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
};
|
|
1472
|
+
return take(input, {
|
|
1473
|
+
AccountId: [],
|
|
1474
|
+
BudgetName: [],
|
|
1475
|
+
NewNotification: (_) => se_Notification(_, context),
|
|
1476
|
+
OldNotification: (_) => se_Notification(_, context),
|
|
1477
|
+
});
|
|
1713
1478
|
};
|
|
1714
1479
|
const se_UpdateSubscriberRequest = (input, context) => {
|
|
1715
|
-
return {
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
const se_Users = (input, context) => {
|
|
1724
|
-
return input
|
|
1725
|
-
.filter((e) => e != null)
|
|
1726
|
-
.map((entry) => {
|
|
1727
|
-
return entry;
|
|
1480
|
+
return take(input, {
|
|
1481
|
+
AccountId: [],
|
|
1482
|
+
BudgetName: [],
|
|
1483
|
+
NewSubscriber: _json,
|
|
1484
|
+
Notification: (_) => se_Notification(_, context),
|
|
1485
|
+
OldSubscriber: _json,
|
|
1728
1486
|
});
|
|
1729
1487
|
};
|
|
1730
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1731
|
-
return {
|
|
1732
|
-
Message: __expectString(output.Message),
|
|
1733
|
-
};
|
|
1734
|
-
};
|
|
1735
1488
|
const de_Action = (output, context) => {
|
|
1736
|
-
return {
|
|
1737
|
-
ActionId: __expectString
|
|
1738
|
-
ActionThreshold:
|
|
1739
|
-
ActionType: __expectString
|
|
1740
|
-
ApprovalModel: __expectString
|
|
1741
|
-
BudgetName: __expectString
|
|
1742
|
-
Definition:
|
|
1743
|
-
ExecutionRoleArn: __expectString
|
|
1744
|
-
NotificationType: __expectString
|
|
1745
|
-
Status: __expectString
|
|
1746
|
-
Subscribers:
|
|
1747
|
-
};
|
|
1489
|
+
return take(output, {
|
|
1490
|
+
ActionId: __expectString,
|
|
1491
|
+
ActionThreshold: (_) => de_ActionThreshold(_, context),
|
|
1492
|
+
ActionType: __expectString,
|
|
1493
|
+
ApprovalModel: __expectString,
|
|
1494
|
+
BudgetName: __expectString,
|
|
1495
|
+
Definition: _json,
|
|
1496
|
+
ExecutionRoleArn: __expectString,
|
|
1497
|
+
NotificationType: __expectString,
|
|
1498
|
+
Status: __expectString,
|
|
1499
|
+
Subscribers: _json,
|
|
1500
|
+
});
|
|
1748
1501
|
};
|
|
1749
1502
|
const de_ActionHistories = (output, context) => {
|
|
1750
1503
|
const retVal = (output || [])
|
|
1751
1504
|
.filter((e) => e != null)
|
|
1752
1505
|
.map((entry) => {
|
|
1753
|
-
if (entry === null) {
|
|
1754
|
-
return null;
|
|
1755
|
-
}
|
|
1756
1506
|
return de_ActionHistory(entry, context);
|
|
1757
1507
|
});
|
|
1758
1508
|
return retVal;
|
|
1759
1509
|
};
|
|
1760
1510
|
const de_ActionHistory = (output, context) => {
|
|
1761
|
-
return {
|
|
1762
|
-
ActionHistoryDetails:
|
|
1763
|
-
EventType: __expectString
|
|
1764
|
-
Status: __expectString
|
|
1765
|
-
Timestamp:
|
|
1766
|
-
};
|
|
1511
|
+
return take(output, {
|
|
1512
|
+
ActionHistoryDetails: (_) => de_ActionHistoryDetails(_, context),
|
|
1513
|
+
EventType: __expectString,
|
|
1514
|
+
Status: __expectString,
|
|
1515
|
+
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1516
|
+
});
|
|
1767
1517
|
};
|
|
1768
1518
|
const de_ActionHistoryDetails = (output, context) => {
|
|
1769
|
-
return {
|
|
1770
|
-
Action:
|
|
1771
|
-
Message: __expectString
|
|
1772
|
-
};
|
|
1519
|
+
return take(output, {
|
|
1520
|
+
Action: (_) => de_Action(_, context),
|
|
1521
|
+
Message: __expectString,
|
|
1522
|
+
});
|
|
1773
1523
|
};
|
|
1774
1524
|
const de_Actions = (output, context) => {
|
|
1775
1525
|
const retVal = (output || [])
|
|
1776
1526
|
.filter((e) => e != null)
|
|
1777
1527
|
.map((entry) => {
|
|
1778
|
-
if (entry === null) {
|
|
1779
|
-
return null;
|
|
1780
|
-
}
|
|
1781
1528
|
return de_Action(entry, context);
|
|
1782
1529
|
});
|
|
1783
1530
|
return retVal;
|
|
1784
1531
|
};
|
|
1785
1532
|
const de_ActionThreshold = (output, context) => {
|
|
1786
|
-
return {
|
|
1787
|
-
ActionThresholdType: __expectString
|
|
1788
|
-
ActionThresholdValue: __limitedParseDouble
|
|
1789
|
-
};
|
|
1533
|
+
return take(output, {
|
|
1534
|
+
ActionThresholdType: __expectString,
|
|
1535
|
+
ActionThresholdValue: __limitedParseDouble,
|
|
1536
|
+
});
|
|
1790
1537
|
};
|
|
1791
1538
|
const de_AutoAdjustData = (output, context) => {
|
|
1792
|
-
return {
|
|
1793
|
-
AutoAdjustType: __expectString
|
|
1794
|
-
HistoricalOptions:
|
|
1795
|
-
LastAutoAdjustTime:
|
|
1796
|
-
|
|
1797
|
-
: undefined,
|
|
1798
|
-
};
|
|
1539
|
+
return take(output, {
|
|
1540
|
+
AutoAdjustType: __expectString,
|
|
1541
|
+
HistoricalOptions: _json,
|
|
1542
|
+
LastAutoAdjustTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1543
|
+
});
|
|
1799
1544
|
};
|
|
1800
1545
|
const de_Budget = (output, context) => {
|
|
1801
|
-
return {
|
|
1802
|
-
AutoAdjustData:
|
|
1803
|
-
BudgetLimit:
|
|
1804
|
-
BudgetName: __expectString
|
|
1805
|
-
BudgetType: __expectString
|
|
1806
|
-
CalculatedSpend:
|
|
1807
|
-
CostFilters:
|
|
1808
|
-
CostTypes:
|
|
1809
|
-
LastUpdatedTime:
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
TimeUnit: __expectString(output.TimeUnit),
|
|
1815
|
-
};
|
|
1546
|
+
return take(output, {
|
|
1547
|
+
AutoAdjustData: (_) => de_AutoAdjustData(_, context),
|
|
1548
|
+
BudgetLimit: _json,
|
|
1549
|
+
BudgetName: __expectString,
|
|
1550
|
+
BudgetType: __expectString,
|
|
1551
|
+
CalculatedSpend: _json,
|
|
1552
|
+
CostFilters: _json,
|
|
1553
|
+
CostTypes: _json,
|
|
1554
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1555
|
+
PlannedBudgetLimits: _json,
|
|
1556
|
+
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1557
|
+
TimeUnit: __expectString,
|
|
1558
|
+
});
|
|
1816
1559
|
};
|
|
1817
1560
|
const de_BudgetedAndActualAmounts = (output, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
ActualAmount:
|
|
1820
|
-
BudgetedAmount:
|
|
1821
|
-
TimePeriod:
|
|
1822
|
-
};
|
|
1561
|
+
return take(output, {
|
|
1562
|
+
ActualAmount: _json,
|
|
1563
|
+
BudgetedAmount: _json,
|
|
1564
|
+
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1565
|
+
});
|
|
1823
1566
|
};
|
|
1824
1567
|
const de_BudgetedAndActualAmountsList = (output, context) => {
|
|
1825
1568
|
const retVal = (output || [])
|
|
1826
1569
|
.filter((e) => e != null)
|
|
1827
1570
|
.map((entry) => {
|
|
1828
|
-
if (entry === null) {
|
|
1829
|
-
return null;
|
|
1830
|
-
}
|
|
1831
1571
|
return de_BudgetedAndActualAmounts(entry, context);
|
|
1832
1572
|
});
|
|
1833
1573
|
return retVal;
|
|
1834
1574
|
};
|
|
1835
1575
|
const de_BudgetNotificationsForAccount = (output, context) => {
|
|
1836
|
-
return {
|
|
1837
|
-
BudgetName: __expectString
|
|
1838
|
-
Notifications:
|
|
1839
|
-
};
|
|
1576
|
+
return take(output, {
|
|
1577
|
+
BudgetName: __expectString,
|
|
1578
|
+
Notifications: (_) => de_Notifications(_, context),
|
|
1579
|
+
});
|
|
1840
1580
|
};
|
|
1841
1581
|
const de_BudgetNotificationsForAccountList = (output, context) => {
|
|
1842
1582
|
const retVal = (output || [])
|
|
1843
1583
|
.filter((e) => e != null)
|
|
1844
1584
|
.map((entry) => {
|
|
1845
|
-
if (entry === null) {
|
|
1846
|
-
return null;
|
|
1847
|
-
}
|
|
1848
1585
|
return de_BudgetNotificationsForAccount(entry, context);
|
|
1849
1586
|
});
|
|
1850
1587
|
return retVal;
|
|
1851
1588
|
};
|
|
1852
1589
|
const de_BudgetPerformanceHistory = (output, context) => {
|
|
1853
|
-
return {
|
|
1854
|
-
BudgetName: __expectString
|
|
1855
|
-
BudgetType: __expectString
|
|
1856
|
-
BudgetedAndActualAmountsList:
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
TimeUnit: __expectString(output.TimeUnit),
|
|
1862
|
-
};
|
|
1590
|
+
return take(output, {
|
|
1591
|
+
BudgetName: __expectString,
|
|
1592
|
+
BudgetType: __expectString,
|
|
1593
|
+
BudgetedAndActualAmountsList: (_) => de_BudgetedAndActualAmountsList(_, context),
|
|
1594
|
+
CostFilters: _json,
|
|
1595
|
+
CostTypes: _json,
|
|
1596
|
+
TimeUnit: __expectString,
|
|
1597
|
+
});
|
|
1863
1598
|
};
|
|
1864
1599
|
const de_Budgets = (output, context) => {
|
|
1865
1600
|
const retVal = (output || [])
|
|
1866
1601
|
.filter((e) => e != null)
|
|
1867
1602
|
.map((entry) => {
|
|
1868
|
-
if (entry === null) {
|
|
1869
|
-
return null;
|
|
1870
|
-
}
|
|
1871
1603
|
return de_Budget(entry, context);
|
|
1872
1604
|
});
|
|
1873
1605
|
return retVal;
|
|
1874
1606
|
};
|
|
1875
|
-
const de_CalculatedSpend = (output, context) => {
|
|
1876
|
-
return {
|
|
1877
|
-
ActualSpend: output.ActualSpend != null ? de_Spend(output.ActualSpend, context) : undefined,
|
|
1878
|
-
ForecastedSpend: output.ForecastedSpend != null ? de_Spend(output.ForecastedSpend, context) : undefined,
|
|
1879
|
-
};
|
|
1880
|
-
};
|
|
1881
|
-
const de_CostFilters = (output, context) => {
|
|
1882
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1883
|
-
if (value === null) {
|
|
1884
|
-
return acc;
|
|
1885
|
-
}
|
|
1886
|
-
acc[key] = de_DimensionValues(value, context);
|
|
1887
|
-
return acc;
|
|
1888
|
-
}, {});
|
|
1889
|
-
};
|
|
1890
|
-
const de_CostTypes = (output, context) => {
|
|
1891
|
-
return {
|
|
1892
|
-
IncludeCredit: __expectBoolean(output.IncludeCredit),
|
|
1893
|
-
IncludeDiscount: __expectBoolean(output.IncludeDiscount),
|
|
1894
|
-
IncludeOtherSubscription: __expectBoolean(output.IncludeOtherSubscription),
|
|
1895
|
-
IncludeRecurring: __expectBoolean(output.IncludeRecurring),
|
|
1896
|
-
IncludeRefund: __expectBoolean(output.IncludeRefund),
|
|
1897
|
-
IncludeSubscription: __expectBoolean(output.IncludeSubscription),
|
|
1898
|
-
IncludeSupport: __expectBoolean(output.IncludeSupport),
|
|
1899
|
-
IncludeTax: __expectBoolean(output.IncludeTax),
|
|
1900
|
-
IncludeUpfront: __expectBoolean(output.IncludeUpfront),
|
|
1901
|
-
UseAmortized: __expectBoolean(output.UseAmortized),
|
|
1902
|
-
UseBlended: __expectBoolean(output.UseBlended),
|
|
1903
|
-
};
|
|
1904
|
-
};
|
|
1905
|
-
const de_CreateBudgetActionResponse = (output, context) => {
|
|
1906
|
-
return {
|
|
1907
|
-
AccountId: __expectString(output.AccountId),
|
|
1908
|
-
ActionId: __expectString(output.ActionId),
|
|
1909
|
-
BudgetName: __expectString(output.BudgetName),
|
|
1910
|
-
};
|
|
1911
|
-
};
|
|
1912
|
-
const de_CreateBudgetResponse = (output, context) => {
|
|
1913
|
-
return {};
|
|
1914
|
-
};
|
|
1915
|
-
const de_CreateNotificationResponse = (output, context) => {
|
|
1916
|
-
return {};
|
|
1917
|
-
};
|
|
1918
|
-
const de_CreateSubscriberResponse = (output, context) => {
|
|
1919
|
-
return {};
|
|
1920
|
-
};
|
|
1921
|
-
const de_CreationLimitExceededException = (output, context) => {
|
|
1922
|
-
return {
|
|
1923
|
-
Message: __expectString(output.Message),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const de_Definition = (output, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
IamActionDefinition: output.IamActionDefinition != null ? de_IamActionDefinition(output.IamActionDefinition, context) : undefined,
|
|
1929
|
-
ScpActionDefinition: output.ScpActionDefinition != null ? de_ScpActionDefinition(output.ScpActionDefinition, context) : undefined,
|
|
1930
|
-
SsmActionDefinition: output.SsmActionDefinition != null ? de_SsmActionDefinition(output.SsmActionDefinition, context) : undefined,
|
|
1931
|
-
};
|
|
1932
|
-
};
|
|
1933
1607
|
const de_DeleteBudgetActionResponse = (output, context) => {
|
|
1934
|
-
return {
|
|
1935
|
-
AccountId: __expectString
|
|
1936
|
-
Action:
|
|
1937
|
-
BudgetName: __expectString
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
const de_DeleteBudgetResponse = (output, context) => {
|
|
1941
|
-
return {};
|
|
1942
|
-
};
|
|
1943
|
-
const de_DeleteNotificationResponse = (output, context) => {
|
|
1944
|
-
return {};
|
|
1945
|
-
};
|
|
1946
|
-
const de_DeleteSubscriberResponse = (output, context) => {
|
|
1947
|
-
return {};
|
|
1608
|
+
return take(output, {
|
|
1609
|
+
AccountId: __expectString,
|
|
1610
|
+
Action: (_) => de_Action(_, context),
|
|
1611
|
+
BudgetName: __expectString,
|
|
1612
|
+
});
|
|
1948
1613
|
};
|
|
1949
1614
|
const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
1950
|
-
return {
|
|
1951
|
-
ActionHistories:
|
|
1952
|
-
NextToken: __expectString
|
|
1953
|
-
};
|
|
1615
|
+
return take(output, {
|
|
1616
|
+
ActionHistories: (_) => de_ActionHistories(_, context),
|
|
1617
|
+
NextToken: __expectString,
|
|
1618
|
+
});
|
|
1954
1619
|
};
|
|
1955
1620
|
const de_DescribeBudgetActionResponse = (output, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
AccountId: __expectString
|
|
1958
|
-
Action:
|
|
1959
|
-
BudgetName: __expectString
|
|
1960
|
-
};
|
|
1621
|
+
return take(output, {
|
|
1622
|
+
AccountId: __expectString,
|
|
1623
|
+
Action: (_) => de_Action(_, context),
|
|
1624
|
+
BudgetName: __expectString,
|
|
1625
|
+
});
|
|
1961
1626
|
};
|
|
1962
1627
|
const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
1963
|
-
return {
|
|
1964
|
-
Actions:
|
|
1965
|
-
NextToken: __expectString
|
|
1966
|
-
};
|
|
1628
|
+
return take(output, {
|
|
1629
|
+
Actions: (_) => de_Actions(_, context),
|
|
1630
|
+
NextToken: __expectString,
|
|
1631
|
+
});
|
|
1967
1632
|
};
|
|
1968
1633
|
const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
1969
|
-
return {
|
|
1970
|
-
Actions:
|
|
1971
|
-
NextToken: __expectString
|
|
1972
|
-
};
|
|
1634
|
+
return take(output, {
|
|
1635
|
+
Actions: (_) => de_Actions(_, context),
|
|
1636
|
+
NextToken: __expectString,
|
|
1637
|
+
});
|
|
1973
1638
|
};
|
|
1974
1639
|
const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
1975
|
-
return {
|
|
1976
|
-
BudgetNotificationsForAccount:
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
NextToken: __expectString(output.NextToken),
|
|
1980
|
-
};
|
|
1640
|
+
return take(output, {
|
|
1641
|
+
BudgetNotificationsForAccount: (_) => de_BudgetNotificationsForAccountList(_, context),
|
|
1642
|
+
NextToken: __expectString,
|
|
1643
|
+
});
|
|
1981
1644
|
};
|
|
1982
1645
|
const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
BudgetPerformanceHistory:
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
NextToken: __expectString(output.NextToken),
|
|
1988
|
-
};
|
|
1646
|
+
return take(output, {
|
|
1647
|
+
BudgetPerformanceHistory: (_) => de_BudgetPerformanceHistory(_, context),
|
|
1648
|
+
NextToken: __expectString,
|
|
1649
|
+
});
|
|
1989
1650
|
};
|
|
1990
1651
|
const de_DescribeBudgetResponse = (output, context) => {
|
|
1991
|
-
return {
|
|
1992
|
-
Budget:
|
|
1993
|
-
};
|
|
1994
|
-
};
|
|
1995
|
-
const de_DescribeBudgetsResponse = (output, context) => {
|
|
1996
|
-
return {
|
|
1997
|
-
Budgets: output.Budgets != null ? de_Budgets(output.Budgets, context) : undefined,
|
|
1998
|
-
NextToken: __expectString(output.NextToken),
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
2002
|
-
return {
|
|
2003
|
-
NextToken: __expectString(output.NextToken),
|
|
2004
|
-
Notifications: output.Notifications != null ? de_Notifications(output.Notifications, context) : undefined,
|
|
2005
|
-
};
|
|
2006
|
-
};
|
|
2007
|
-
const de_DescribeSubscribersForNotificationResponse = (output, context) => {
|
|
2008
|
-
return {
|
|
2009
|
-
NextToken: __expectString(output.NextToken),
|
|
2010
|
-
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
2011
|
-
};
|
|
2012
|
-
};
|
|
2013
|
-
const de_DimensionValues = (output, context) => {
|
|
2014
|
-
const retVal = (output || [])
|
|
2015
|
-
.filter((e) => e != null)
|
|
2016
|
-
.map((entry) => {
|
|
2017
|
-
if (entry === null) {
|
|
2018
|
-
return null;
|
|
2019
|
-
}
|
|
2020
|
-
return __expectString(entry);
|
|
1652
|
+
return take(output, {
|
|
1653
|
+
Budget: (_) => de_Budget(_, context),
|
|
2021
1654
|
});
|
|
2022
|
-
return retVal;
|
|
2023
|
-
};
|
|
2024
|
-
const de_DuplicateRecordException = (output, context) => {
|
|
2025
|
-
return {
|
|
2026
|
-
Message: __expectString(output.Message),
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const de_ExecuteBudgetActionResponse = (output, context) => {
|
|
2030
|
-
return {
|
|
2031
|
-
AccountId: __expectString(output.AccountId),
|
|
2032
|
-
ActionId: __expectString(output.ActionId),
|
|
2033
|
-
BudgetName: __expectString(output.BudgetName),
|
|
2034
|
-
ExecutionType: __expectString(output.ExecutionType),
|
|
2035
|
-
};
|
|
2036
1655
|
};
|
|
2037
|
-
const
|
|
2038
|
-
return {
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
};
|
|
2042
|
-
const de_Groups = (output, context) => {
|
|
2043
|
-
const retVal = (output || [])
|
|
2044
|
-
.filter((e) => e != null)
|
|
2045
|
-
.map((entry) => {
|
|
2046
|
-
if (entry === null) {
|
|
2047
|
-
return null;
|
|
2048
|
-
}
|
|
2049
|
-
return __expectString(entry);
|
|
1656
|
+
const de_DescribeBudgetsResponse = (output, context) => {
|
|
1657
|
+
return take(output, {
|
|
1658
|
+
Budgets: (_) => de_Budgets(_, context),
|
|
1659
|
+
NextToken: __expectString,
|
|
2050
1660
|
});
|
|
2051
|
-
return retVal;
|
|
2052
|
-
};
|
|
2053
|
-
const de_HistoricalOptions = (output, context) => {
|
|
2054
|
-
return {
|
|
2055
|
-
BudgetAdjustmentPeriod: __expectInt32(output.BudgetAdjustmentPeriod),
|
|
2056
|
-
LookBackAvailablePeriods: __expectInt32(output.LookBackAvailablePeriods),
|
|
2057
|
-
};
|
|
2058
1661
|
};
|
|
2059
|
-
const
|
|
2060
|
-
return {
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
Roles: output.Roles != null ? de_Roles(output.Roles, context) : undefined,
|
|
2064
|
-
Users: output.Users != null ? de_Users(output.Users, context) : undefined,
|
|
2065
|
-
};
|
|
2066
|
-
};
|
|
2067
|
-
const de_InstanceIds = (output, context) => {
|
|
2068
|
-
const retVal = (output || [])
|
|
2069
|
-
.filter((e) => e != null)
|
|
2070
|
-
.map((entry) => {
|
|
2071
|
-
if (entry === null) {
|
|
2072
|
-
return null;
|
|
2073
|
-
}
|
|
2074
|
-
return __expectString(entry);
|
|
1662
|
+
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
1663
|
+
return take(output, {
|
|
1664
|
+
NextToken: __expectString,
|
|
1665
|
+
Notifications: (_) => de_Notifications(_, context),
|
|
2075
1666
|
});
|
|
2076
|
-
return retVal;
|
|
2077
|
-
};
|
|
2078
|
-
const de_InternalErrorException = (output, context) => {
|
|
2079
|
-
return {
|
|
2080
|
-
Message: __expectString(output.Message),
|
|
2081
|
-
};
|
|
2082
|
-
};
|
|
2083
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
2084
|
-
return {
|
|
2085
|
-
Message: __expectString(output.Message),
|
|
2086
|
-
};
|
|
2087
|
-
};
|
|
2088
|
-
const de_InvalidParameterException = (output, context) => {
|
|
2089
|
-
return {
|
|
2090
|
-
Message: __expectString(output.Message),
|
|
2091
|
-
};
|
|
2092
|
-
};
|
|
2093
|
-
const de_NotFoundException = (output, context) => {
|
|
2094
|
-
return {
|
|
2095
|
-
Message: __expectString(output.Message),
|
|
2096
|
-
};
|
|
2097
1667
|
};
|
|
2098
1668
|
const de_Notification = (output, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
ComparisonOperator: __expectString
|
|
2101
|
-
NotificationState: __expectString
|
|
2102
|
-
NotificationType: __expectString
|
|
2103
|
-
Threshold: __limitedParseDouble
|
|
2104
|
-
ThresholdType: __expectString
|
|
2105
|
-
};
|
|
1669
|
+
return take(output, {
|
|
1670
|
+
ComparisonOperator: __expectString,
|
|
1671
|
+
NotificationState: __expectString,
|
|
1672
|
+
NotificationType: __expectString,
|
|
1673
|
+
Threshold: __limitedParseDouble,
|
|
1674
|
+
ThresholdType: __expectString,
|
|
1675
|
+
});
|
|
2106
1676
|
};
|
|
2107
1677
|
const de_Notifications = (output, context) => {
|
|
2108
1678
|
const retVal = (output || [])
|
|
2109
1679
|
.filter((e) => e != null)
|
|
2110
1680
|
.map((entry) => {
|
|
2111
|
-
if (entry === null) {
|
|
2112
|
-
return null;
|
|
2113
|
-
}
|
|
2114
1681
|
return de_Notification(entry, context);
|
|
2115
1682
|
});
|
|
2116
1683
|
return retVal;
|
|
2117
1684
|
};
|
|
2118
|
-
const de_PlannedBudgetLimits = (output, context) => {
|
|
2119
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2120
|
-
if (value === null) {
|
|
2121
|
-
return acc;
|
|
2122
|
-
}
|
|
2123
|
-
acc[key] = de_Spend(value, context);
|
|
2124
|
-
return acc;
|
|
2125
|
-
}, {});
|
|
2126
|
-
};
|
|
2127
|
-
const de_ResourceLockedException = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
Message: __expectString(output.Message),
|
|
2130
|
-
};
|
|
2131
|
-
};
|
|
2132
|
-
const de_Roles = (output, context) => {
|
|
2133
|
-
const retVal = (output || [])
|
|
2134
|
-
.filter((e) => e != null)
|
|
2135
|
-
.map((entry) => {
|
|
2136
|
-
if (entry === null) {
|
|
2137
|
-
return null;
|
|
2138
|
-
}
|
|
2139
|
-
return __expectString(entry);
|
|
2140
|
-
});
|
|
2141
|
-
return retVal;
|
|
2142
|
-
};
|
|
2143
|
-
const de_ScpActionDefinition = (output, context) => {
|
|
2144
|
-
return {
|
|
2145
|
-
PolicyId: __expectString(output.PolicyId),
|
|
2146
|
-
TargetIds: output.TargetIds != null ? de_TargetIds(output.TargetIds, context) : undefined,
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
const de_Spend = (output, context) => {
|
|
2150
|
-
return {
|
|
2151
|
-
Amount: __expectString(output.Amount),
|
|
2152
|
-
Unit: __expectString(output.Unit),
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
const de_SsmActionDefinition = (output, context) => {
|
|
2156
|
-
return {
|
|
2157
|
-
ActionSubType: __expectString(output.ActionSubType),
|
|
2158
|
-
InstanceIds: output.InstanceIds != null ? de_InstanceIds(output.InstanceIds, context) : undefined,
|
|
2159
|
-
Region: __expectString(output.Region),
|
|
2160
|
-
};
|
|
2161
|
-
};
|
|
2162
|
-
const de_Subscriber = (output, context) => {
|
|
2163
|
-
return {
|
|
2164
|
-
Address: __expectString(output.Address),
|
|
2165
|
-
SubscriptionType: __expectString(output.SubscriptionType),
|
|
2166
|
-
};
|
|
2167
|
-
};
|
|
2168
|
-
const de_Subscribers = (output, context) => {
|
|
2169
|
-
const retVal = (output || [])
|
|
2170
|
-
.filter((e) => e != null)
|
|
2171
|
-
.map((entry) => {
|
|
2172
|
-
if (entry === null) {
|
|
2173
|
-
return null;
|
|
2174
|
-
}
|
|
2175
|
-
return de_Subscriber(entry, context);
|
|
2176
|
-
});
|
|
2177
|
-
return retVal;
|
|
2178
|
-
};
|
|
2179
|
-
const de_TargetIds = (output, context) => {
|
|
2180
|
-
const retVal = (output || [])
|
|
2181
|
-
.filter((e) => e != null)
|
|
2182
|
-
.map((entry) => {
|
|
2183
|
-
if (entry === null) {
|
|
2184
|
-
return null;
|
|
2185
|
-
}
|
|
2186
|
-
return __expectString(entry);
|
|
2187
|
-
});
|
|
2188
|
-
return retVal;
|
|
2189
|
-
};
|
|
2190
|
-
const de_ThrottlingException = (output, context) => {
|
|
2191
|
-
return {
|
|
2192
|
-
Message: __expectString(output.Message),
|
|
2193
|
-
};
|
|
2194
|
-
};
|
|
2195
1685
|
const de_TimePeriod = (output, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
End:
|
|
2198
|
-
Start:
|
|
2199
|
-
};
|
|
1686
|
+
return take(output, {
|
|
1687
|
+
End: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1688
|
+
Start: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1689
|
+
});
|
|
2200
1690
|
};
|
|
2201
1691
|
const de_UpdateBudgetActionResponse = (output, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
AccountId: __expectString
|
|
2204
|
-
BudgetName: __expectString
|
|
2205
|
-
NewAction:
|
|
2206
|
-
OldAction:
|
|
2207
|
-
};
|
|
2208
|
-
};
|
|
2209
|
-
const de_UpdateBudgetResponse = (output, context) => {
|
|
2210
|
-
return {};
|
|
2211
|
-
};
|
|
2212
|
-
const de_UpdateNotificationResponse = (output, context) => {
|
|
2213
|
-
return {};
|
|
2214
|
-
};
|
|
2215
|
-
const de_UpdateSubscriberResponse = (output, context) => {
|
|
2216
|
-
return {};
|
|
2217
|
-
};
|
|
2218
|
-
const de_Users = (output, context) => {
|
|
2219
|
-
const retVal = (output || [])
|
|
2220
|
-
.filter((e) => e != null)
|
|
2221
|
-
.map((entry) => {
|
|
2222
|
-
if (entry === null) {
|
|
2223
|
-
return null;
|
|
2224
|
-
}
|
|
2225
|
-
return __expectString(entry);
|
|
1692
|
+
return take(output, {
|
|
1693
|
+
AccountId: __expectString,
|
|
1694
|
+
BudgetName: __expectString,
|
|
1695
|
+
NewAction: (_) => de_Action(_, context),
|
|
1696
|
+
OldAction: (_) => de_Action(_, context),
|
|
2226
1697
|
});
|
|
2227
|
-
return retVal;
|
|
2228
1698
|
};
|
|
2229
1699
|
const deserializeMetadata = (output) => ({
|
|
2230
1700
|
httpStatusCode: output.statusCode,
|
|
@@ -2239,6 +1709,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2239
1709
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2240
1710
|
};
|
|
2241
1711
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1712
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2242
1713
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2243
1714
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2244
1715
|
const contents = {
|