@aws-sdk/client-budgets 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/BudgetsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +129 -2
- package/dist-cjs/protocols/Aws_json1_1.js +263 -984
- package/dist-es/index.js +1 -0
- package/dist-es/models/BudgetsServiceException.js +12 -0
- package/dist-es/models/models_0.js +119 -1
- package/dist-es/protocols/Aws_json1_1.js +564 -1059
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/BudgetsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +65 -28
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/BudgetsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -28
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UpdateSubscriberCommand = exports.deserializeAws_json1_1UpdateNotificationCommand = exports.deserializeAws_json1_1UpdateBudgetActionCommand = exports.deserializeAws_json1_1UpdateBudgetCommand = exports.deserializeAws_json1_1ExecuteBudgetActionCommand = exports.deserializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.deserializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetsCommand = exports.deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.deserializeAws_json1_1DescribeBudgetActionCommand = exports.deserializeAws_json1_1DescribeBudgetCommand = exports.deserializeAws_json1_1DeleteSubscriberCommand = exports.deserializeAws_json1_1DeleteNotificationCommand = exports.deserializeAws_json1_1DeleteBudgetActionCommand = exports.deserializeAws_json1_1DeleteBudgetCommand = exports.deserializeAws_json1_1CreateSubscriberCommand = exports.deserializeAws_json1_1CreateNotificationCommand = exports.deserializeAws_json1_1CreateBudgetActionCommand = exports.deserializeAws_json1_1CreateBudgetCommand = exports.serializeAws_json1_1UpdateSubscriberCommand = exports.serializeAws_json1_1UpdateNotificationCommand = exports.serializeAws_json1_1UpdateBudgetActionCommand = exports.serializeAws_json1_1UpdateBudgetCommand = exports.serializeAws_json1_1ExecuteBudgetActionCommand = exports.serializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.serializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetsCommand = exports.serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = exports.serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.serializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.serializeAws_json1_1DescribeBudgetActionCommand = exports.serializeAws_json1_1DescribeBudgetCommand = exports.serializeAws_json1_1DeleteSubscriberCommand = exports.serializeAws_json1_1DeleteNotificationCommand = exports.serializeAws_json1_1DeleteBudgetActionCommand = exports.serializeAws_json1_1DeleteBudgetCommand = exports.serializeAws_json1_1CreateSubscriberCommand = exports.serializeAws_json1_1CreateNotificationCommand = exports.serializeAws_json1_1CreateBudgetActionCommand = exports.serializeAws_json1_1CreateBudgetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const BudgetsServiceException_1 = require("../models/BudgetsServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1CreateBudgetCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -258,59 +260,28 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
258
260
|
switch (errorCode) {
|
|
259
261
|
case "AccessDeniedException":
|
|
260
262
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
261
|
-
|
|
262
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
263
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
267
264
|
case "CreationLimitExceededException":
|
|
268
265
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
269
|
-
|
|
270
|
-
...(await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)),
|
|
271
|
-
name: errorCode,
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
};
|
|
274
|
-
break;
|
|
266
|
+
throw await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context);
|
|
275
267
|
case "DuplicateRecordException":
|
|
276
268
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
277
|
-
|
|
278
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
279
|
-
name: errorCode,
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
};
|
|
282
|
-
break;
|
|
269
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
283
270
|
case "InternalErrorException":
|
|
284
271
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
285
|
-
|
|
286
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
287
|
-
name: errorCode,
|
|
288
|
-
$metadata: deserializeMetadata(output),
|
|
289
|
-
};
|
|
290
|
-
break;
|
|
272
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
291
273
|
case "InvalidParameterException":
|
|
292
274
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
293
|
-
|
|
294
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
295
|
-
name: errorCode,
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
};
|
|
298
|
-
break;
|
|
275
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
299
276
|
default:
|
|
300
277
|
const parsedBody = parsedOutput.body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
...parsedBody,
|
|
304
|
-
name: `${errorCode}`,
|
|
305
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
278
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
279
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
306
280
|
$fault: "client",
|
|
307
281
|
$metadata: deserializeMetadata(output),
|
|
308
|
-
};
|
|
282
|
+
});
|
|
283
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
309
284
|
}
|
|
310
|
-
const message = response.message || response.Message || errorCode;
|
|
311
|
-
response.message = message;
|
|
312
|
-
delete response.Message;
|
|
313
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
314
285
|
};
|
|
315
286
|
const deserializeAws_json1_1CreateBudgetActionCommand = async (output, context) => {
|
|
316
287
|
if (output.statusCode >= 300) {
|
|
@@ -337,67 +308,31 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
337
308
|
switch (errorCode) {
|
|
338
309
|
case "AccessDeniedException":
|
|
339
310
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
340
|
-
|
|
341
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
342
|
-
name: errorCode,
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
break;
|
|
311
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
346
312
|
case "CreationLimitExceededException":
|
|
347
313
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
348
|
-
|
|
349
|
-
...(await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)),
|
|
350
|
-
name: errorCode,
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
314
|
+
throw await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context);
|
|
354
315
|
case "DuplicateRecordException":
|
|
355
316
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
356
|
-
|
|
357
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
358
|
-
name: errorCode,
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
};
|
|
361
|
-
break;
|
|
317
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
362
318
|
case "InternalErrorException":
|
|
363
319
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
364
|
-
|
|
365
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
366
|
-
name: errorCode,
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
};
|
|
369
|
-
break;
|
|
320
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
370
321
|
case "InvalidParameterException":
|
|
371
322
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
372
|
-
|
|
373
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
374
|
-
name: errorCode,
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
};
|
|
377
|
-
break;
|
|
323
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
378
324
|
case "NotFoundException":
|
|
379
325
|
case "com.amazonaws.budgets#NotFoundException":
|
|
380
|
-
|
|
381
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
382
|
-
name: errorCode,
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
};
|
|
385
|
-
break;
|
|
326
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
386
327
|
default:
|
|
387
328
|
const parsedBody = parsedOutput.body;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
...parsedBody,
|
|
391
|
-
name: `${errorCode}`,
|
|
392
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
329
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
330
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
393
331
|
$fault: "client",
|
|
394
332
|
$metadata: deserializeMetadata(output),
|
|
395
|
-
};
|
|
333
|
+
});
|
|
334
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
396
335
|
}
|
|
397
|
-
const message = response.message || response.Message || errorCode;
|
|
398
|
-
response.message = message;
|
|
399
|
-
delete response.Message;
|
|
400
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
401
336
|
};
|
|
402
337
|
const deserializeAws_json1_1CreateNotificationCommand = async (output, context) => {
|
|
403
338
|
if (output.statusCode >= 300) {
|
|
@@ -424,67 +359,31 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
424
359
|
switch (errorCode) {
|
|
425
360
|
case "AccessDeniedException":
|
|
426
361
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
427
|
-
|
|
428
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
429
|
-
name: errorCode,
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
};
|
|
432
|
-
break;
|
|
362
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
433
363
|
case "CreationLimitExceededException":
|
|
434
364
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
435
|
-
|
|
436
|
-
...(await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)),
|
|
437
|
-
name: errorCode,
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
};
|
|
440
|
-
break;
|
|
365
|
+
throw await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context);
|
|
441
366
|
case "DuplicateRecordException":
|
|
442
367
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
443
|
-
|
|
444
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
445
|
-
name: errorCode,
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
};
|
|
448
|
-
break;
|
|
368
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
449
369
|
case "InternalErrorException":
|
|
450
370
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
451
|
-
|
|
452
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
453
|
-
name: errorCode,
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
break;
|
|
371
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
457
372
|
case "InvalidParameterException":
|
|
458
373
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
459
|
-
|
|
460
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
461
|
-
name: errorCode,
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
464
|
-
break;
|
|
374
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
465
375
|
case "NotFoundException":
|
|
466
376
|
case "com.amazonaws.budgets#NotFoundException":
|
|
467
|
-
|
|
468
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
469
|
-
name: errorCode,
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
};
|
|
472
|
-
break;
|
|
377
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
473
378
|
default:
|
|
474
379
|
const parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
...parsedBody,
|
|
478
|
-
name: `${errorCode}`,
|
|
479
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
380
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
480
382
|
$fault: "client",
|
|
481
383
|
$metadata: deserializeMetadata(output),
|
|
482
|
-
};
|
|
384
|
+
});
|
|
385
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
483
386
|
}
|
|
484
|
-
const message = response.message || response.Message || errorCode;
|
|
485
|
-
response.message = message;
|
|
486
|
-
delete response.Message;
|
|
487
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
488
387
|
};
|
|
489
388
|
const deserializeAws_json1_1CreateSubscriberCommand = async (output, context) => {
|
|
490
389
|
if (output.statusCode >= 300) {
|
|
@@ -511,67 +410,31 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
511
410
|
switch (errorCode) {
|
|
512
411
|
case "AccessDeniedException":
|
|
513
412
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
514
|
-
|
|
515
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
516
|
-
name: errorCode,
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
};
|
|
519
|
-
break;
|
|
413
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
520
414
|
case "CreationLimitExceededException":
|
|
521
415
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
522
|
-
|
|
523
|
-
...(await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)),
|
|
524
|
-
name: errorCode,
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
};
|
|
527
|
-
break;
|
|
416
|
+
throw await deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context);
|
|
528
417
|
case "DuplicateRecordException":
|
|
529
418
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
530
|
-
|
|
531
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
532
|
-
name: errorCode,
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
535
|
-
break;
|
|
419
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
536
420
|
case "InternalErrorException":
|
|
537
421
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
538
|
-
|
|
539
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
540
|
-
name: errorCode,
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
};
|
|
543
|
-
break;
|
|
422
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
544
423
|
case "InvalidParameterException":
|
|
545
424
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
546
|
-
|
|
547
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
548
|
-
name: errorCode,
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
};
|
|
551
|
-
break;
|
|
425
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
552
426
|
case "NotFoundException":
|
|
553
427
|
case "com.amazonaws.budgets#NotFoundException":
|
|
554
|
-
|
|
555
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
556
|
-
name: errorCode,
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
};
|
|
559
|
-
break;
|
|
428
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
560
429
|
default:
|
|
561
430
|
const parsedBody = parsedOutput.body;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
...parsedBody,
|
|
565
|
-
name: `${errorCode}`,
|
|
566
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
431
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
432
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
567
433
|
$fault: "client",
|
|
568
434
|
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
435
|
+
});
|
|
436
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
570
437
|
}
|
|
571
|
-
const message = response.message || response.Message || errorCode;
|
|
572
|
-
response.message = message;
|
|
573
|
-
delete response.Message;
|
|
574
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
575
438
|
};
|
|
576
439
|
const deserializeAws_json1_1DeleteBudgetCommand = async (output, context) => {
|
|
577
440
|
if (output.statusCode >= 300) {
|
|
@@ -598,51 +461,25 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
598
461
|
switch (errorCode) {
|
|
599
462
|
case "AccessDeniedException":
|
|
600
463
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
601
|
-
|
|
602
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
603
|
-
name: errorCode,
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
};
|
|
606
|
-
break;
|
|
464
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
607
465
|
case "InternalErrorException":
|
|
608
466
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
609
|
-
|
|
610
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
611
|
-
name: errorCode,
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
614
|
-
break;
|
|
467
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
615
468
|
case "InvalidParameterException":
|
|
616
469
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
617
|
-
|
|
618
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
619
|
-
name: errorCode,
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
};
|
|
622
|
-
break;
|
|
470
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
623
471
|
case "NotFoundException":
|
|
624
472
|
case "com.amazonaws.budgets#NotFoundException":
|
|
625
|
-
|
|
626
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
627
|
-
name: errorCode,
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
};
|
|
630
|
-
break;
|
|
473
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
631
474
|
default:
|
|
632
475
|
const parsedBody = parsedOutput.body;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
...parsedBody,
|
|
636
|
-
name: `${errorCode}`,
|
|
637
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
476
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
477
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
638
478
|
$fault: "client",
|
|
639
479
|
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
480
|
+
});
|
|
481
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
641
482
|
}
|
|
642
|
-
const message = response.message || response.Message || errorCode;
|
|
643
|
-
response.message = message;
|
|
644
|
-
delete response.Message;
|
|
645
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
646
483
|
};
|
|
647
484
|
const deserializeAws_json1_1DeleteBudgetActionCommand = async (output, context) => {
|
|
648
485
|
if (output.statusCode >= 300) {
|
|
@@ -669,59 +506,28 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
669
506
|
switch (errorCode) {
|
|
670
507
|
case "AccessDeniedException":
|
|
671
508
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
672
|
-
|
|
673
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
674
|
-
name: errorCode,
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
};
|
|
677
|
-
break;
|
|
509
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
678
510
|
case "InternalErrorException":
|
|
679
511
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
680
|
-
|
|
681
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
682
|
-
name: errorCode,
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
};
|
|
685
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
686
513
|
case "InvalidParameterException":
|
|
687
514
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
688
|
-
|
|
689
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
690
|
-
name: errorCode,
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
};
|
|
693
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
694
516
|
case "NotFoundException":
|
|
695
517
|
case "com.amazonaws.budgets#NotFoundException":
|
|
696
|
-
|
|
697
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
698
|
-
name: errorCode,
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
701
|
-
break;
|
|
518
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
702
519
|
case "ResourceLockedException":
|
|
703
520
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
704
|
-
|
|
705
|
-
...(await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)),
|
|
706
|
-
name: errorCode,
|
|
707
|
-
$metadata: deserializeMetadata(output),
|
|
708
|
-
};
|
|
709
|
-
break;
|
|
521
|
+
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
|
|
710
522
|
default:
|
|
711
523
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
...parsedBody,
|
|
715
|
-
name: `${errorCode}`,
|
|
716
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
524
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
525
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
717
526
|
$fault: "client",
|
|
718
527
|
$metadata: deserializeMetadata(output),
|
|
719
|
-
};
|
|
528
|
+
});
|
|
529
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
720
530
|
}
|
|
721
|
-
const message = response.message || response.Message || errorCode;
|
|
722
|
-
response.message = message;
|
|
723
|
-
delete response.Message;
|
|
724
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
725
531
|
};
|
|
726
532
|
const deserializeAws_json1_1DeleteNotificationCommand = async (output, context) => {
|
|
727
533
|
if (output.statusCode >= 300) {
|
|
@@ -748,51 +554,25 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
748
554
|
switch (errorCode) {
|
|
749
555
|
case "AccessDeniedException":
|
|
750
556
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
751
|
-
|
|
752
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
753
|
-
name: errorCode,
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
break;
|
|
557
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
757
558
|
case "InternalErrorException":
|
|
758
559
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
759
|
-
|
|
760
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
761
|
-
name: errorCode,
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
764
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
765
561
|
case "InvalidParameterException":
|
|
766
562
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
767
|
-
|
|
768
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
769
|
-
name: errorCode,
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
};
|
|
772
|
-
break;
|
|
563
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
773
564
|
case "NotFoundException":
|
|
774
565
|
case "com.amazonaws.budgets#NotFoundException":
|
|
775
|
-
|
|
776
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
777
|
-
name: errorCode,
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
780
|
-
break;
|
|
566
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
781
567
|
default:
|
|
782
568
|
const parsedBody = parsedOutput.body;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
...parsedBody,
|
|
786
|
-
name: `${errorCode}`,
|
|
787
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
569
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
570
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
788
571
|
$fault: "client",
|
|
789
572
|
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
573
|
+
});
|
|
574
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
791
575
|
}
|
|
792
|
-
const message = response.message || response.Message || errorCode;
|
|
793
|
-
response.message = message;
|
|
794
|
-
delete response.Message;
|
|
795
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
796
576
|
};
|
|
797
577
|
const deserializeAws_json1_1DeleteSubscriberCommand = async (output, context) => {
|
|
798
578
|
if (output.statusCode >= 300) {
|
|
@@ -819,51 +599,25 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
819
599
|
switch (errorCode) {
|
|
820
600
|
case "AccessDeniedException":
|
|
821
601
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
822
|
-
|
|
823
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
602
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
828
603
|
case "InternalErrorException":
|
|
829
604
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
830
|
-
|
|
831
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
832
|
-
name: errorCode,
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
};
|
|
835
|
-
break;
|
|
605
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
836
606
|
case "InvalidParameterException":
|
|
837
607
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
838
|
-
|
|
839
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
840
|
-
name: errorCode,
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
};
|
|
843
|
-
break;
|
|
608
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
844
609
|
case "NotFoundException":
|
|
845
610
|
case "com.amazonaws.budgets#NotFoundException":
|
|
846
|
-
|
|
847
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
848
|
-
name: errorCode,
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
};
|
|
851
|
-
break;
|
|
611
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
852
612
|
default:
|
|
853
613
|
const parsedBody = parsedOutput.body;
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
...parsedBody,
|
|
857
|
-
name: `${errorCode}`,
|
|
858
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
614
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
615
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
859
616
|
$fault: "client",
|
|
860
617
|
$metadata: deserializeMetadata(output),
|
|
861
|
-
};
|
|
618
|
+
});
|
|
619
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
862
620
|
}
|
|
863
|
-
const message = response.message || response.Message || errorCode;
|
|
864
|
-
response.message = message;
|
|
865
|
-
delete response.Message;
|
|
866
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
867
621
|
};
|
|
868
622
|
const deserializeAws_json1_1DescribeBudgetCommand = async (output, context) => {
|
|
869
623
|
if (output.statusCode >= 300) {
|
|
@@ -890,51 +644,25 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
890
644
|
switch (errorCode) {
|
|
891
645
|
case "AccessDeniedException":
|
|
892
646
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
893
|
-
|
|
894
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
895
|
-
name: errorCode,
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
898
|
-
break;
|
|
647
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
899
648
|
case "InternalErrorException":
|
|
900
649
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
901
|
-
|
|
902
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
903
|
-
name: errorCode,
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
};
|
|
906
|
-
break;
|
|
650
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
907
651
|
case "InvalidParameterException":
|
|
908
652
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
909
|
-
|
|
910
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
653
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
915
654
|
case "NotFoundException":
|
|
916
655
|
case "com.amazonaws.budgets#NotFoundException":
|
|
917
|
-
|
|
918
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
919
|
-
name: errorCode,
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
922
|
-
break;
|
|
656
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
923
657
|
default:
|
|
924
658
|
const parsedBody = parsedOutput.body;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
...parsedBody,
|
|
928
|
-
name: `${errorCode}`,
|
|
929
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
659
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
930
661
|
$fault: "client",
|
|
931
662
|
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
663
|
+
});
|
|
664
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
933
665
|
}
|
|
934
|
-
const message = response.message || response.Message || errorCode;
|
|
935
|
-
response.message = message;
|
|
936
|
-
delete response.Message;
|
|
937
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
938
666
|
};
|
|
939
667
|
const deserializeAws_json1_1DescribeBudgetActionCommand = async (output, context) => {
|
|
940
668
|
if (output.statusCode >= 300) {
|
|
@@ -961,51 +689,25 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
961
689
|
switch (errorCode) {
|
|
962
690
|
case "AccessDeniedException":
|
|
963
691
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
964
|
-
|
|
965
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
966
|
-
name: errorCode,
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
969
|
-
break;
|
|
692
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
970
693
|
case "InternalErrorException":
|
|
971
694
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
972
|
-
|
|
973
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
974
|
-
name: errorCode,
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
977
|
-
break;
|
|
695
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
978
696
|
case "InvalidParameterException":
|
|
979
697
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
980
|
-
|
|
981
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
982
|
-
name: errorCode,
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
};
|
|
985
|
-
break;
|
|
698
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
986
699
|
case "NotFoundException":
|
|
987
700
|
case "com.amazonaws.budgets#NotFoundException":
|
|
988
|
-
|
|
989
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
701
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
994
702
|
default:
|
|
995
703
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
...parsedBody,
|
|
999
|
-
name: `${errorCode}`,
|
|
1000
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
704
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
705
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1001
706
|
$fault: "client",
|
|
1002
707
|
$metadata: deserializeMetadata(output),
|
|
1003
|
-
};
|
|
708
|
+
});
|
|
709
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1004
710
|
}
|
|
1005
|
-
const message = response.message || response.Message || errorCode;
|
|
1006
|
-
response.message = message;
|
|
1007
|
-
delete response.Message;
|
|
1008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1009
711
|
};
|
|
1010
712
|
const deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
1011
713
|
if (output.statusCode >= 300) {
|
|
@@ -1032,59 +734,28 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
1032
734
|
switch (errorCode) {
|
|
1033
735
|
case "AccessDeniedException":
|
|
1034
736
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1035
|
-
|
|
1036
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
737
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1041
738
|
case "InternalErrorException":
|
|
1042
739
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1043
|
-
|
|
1044
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1045
|
-
name: errorCode,
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
1048
|
-
break;
|
|
740
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1049
741
|
case "InvalidNextTokenException":
|
|
1050
742
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1051
|
-
|
|
1052
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1053
|
-
name: errorCode,
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
};
|
|
1056
|
-
break;
|
|
743
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1057
744
|
case "InvalidParameterException":
|
|
1058
745
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1059
|
-
|
|
1060
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1061
|
-
name: errorCode,
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
};
|
|
1064
|
-
break;
|
|
746
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1065
747
|
case "NotFoundException":
|
|
1066
748
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1067
|
-
|
|
1068
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1069
|
-
name: errorCode,
|
|
1070
|
-
$metadata: deserializeMetadata(output),
|
|
1071
|
-
};
|
|
1072
|
-
break;
|
|
749
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1073
750
|
default:
|
|
1074
751
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
...parsedBody,
|
|
1078
|
-
name: `${errorCode}`,
|
|
1079
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
752
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
753
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1080
754
|
$fault: "client",
|
|
1081
755
|
$metadata: deserializeMetadata(output),
|
|
1082
|
-
};
|
|
756
|
+
});
|
|
757
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1083
758
|
}
|
|
1084
|
-
const message = response.message || response.Message || errorCode;
|
|
1085
|
-
response.message = message;
|
|
1086
|
-
delete response.Message;
|
|
1087
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1088
759
|
};
|
|
1089
760
|
const deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
1090
761
|
if (output.statusCode >= 300) {
|
|
@@ -1111,51 +782,25 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
1111
782
|
switch (errorCode) {
|
|
1112
783
|
case "AccessDeniedException":
|
|
1113
784
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1114
|
-
|
|
1115
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1116
|
-
name: errorCode,
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
break;
|
|
785
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1120
786
|
case "InternalErrorException":
|
|
1121
787
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1122
|
-
|
|
1123
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1124
|
-
name: errorCode,
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
};
|
|
1127
|
-
break;
|
|
788
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1128
789
|
case "InvalidNextTokenException":
|
|
1129
790
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1130
|
-
|
|
1131
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1132
|
-
name: errorCode,
|
|
1133
|
-
$metadata: deserializeMetadata(output),
|
|
1134
|
-
};
|
|
1135
|
-
break;
|
|
791
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1136
792
|
case "InvalidParameterException":
|
|
1137
793
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1138
|
-
|
|
1139
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1140
|
-
name: errorCode,
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1143
|
-
break;
|
|
794
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1144
795
|
default:
|
|
1145
796
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
...parsedBody,
|
|
1149
|
-
name: `${errorCode}`,
|
|
1150
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
797
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
798
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1151
799
|
$fault: "client",
|
|
1152
800
|
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
801
|
+
});
|
|
802
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1154
803
|
}
|
|
1155
|
-
const message = response.message || response.Message || errorCode;
|
|
1156
|
-
response.message = message;
|
|
1157
|
-
delete response.Message;
|
|
1158
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1159
804
|
};
|
|
1160
805
|
const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
1161
806
|
if (output.statusCode >= 300) {
|
|
@@ -1182,59 +827,28 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
1182
827
|
switch (errorCode) {
|
|
1183
828
|
case "AccessDeniedException":
|
|
1184
829
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1185
|
-
|
|
1186
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1187
|
-
name: errorCode,
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
};
|
|
1190
|
-
break;
|
|
830
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1191
831
|
case "InternalErrorException":
|
|
1192
832
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1193
|
-
|
|
1194
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1195
|
-
name: errorCode,
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
};
|
|
1198
|
-
break;
|
|
833
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1199
834
|
case "InvalidNextTokenException":
|
|
1200
835
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1201
|
-
|
|
1202
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1203
|
-
name: errorCode,
|
|
1204
|
-
$metadata: deserializeMetadata(output),
|
|
1205
|
-
};
|
|
1206
|
-
break;
|
|
836
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1207
837
|
case "InvalidParameterException":
|
|
1208
838
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1209
|
-
|
|
1210
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1211
|
-
name: errorCode,
|
|
1212
|
-
$metadata: deserializeMetadata(output),
|
|
1213
|
-
};
|
|
1214
|
-
break;
|
|
839
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1215
840
|
case "NotFoundException":
|
|
1216
841
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1217
|
-
|
|
1218
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1219
|
-
name: errorCode,
|
|
1220
|
-
$metadata: deserializeMetadata(output),
|
|
1221
|
-
};
|
|
1222
|
-
break;
|
|
842
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1223
843
|
default:
|
|
1224
844
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
...parsedBody,
|
|
1228
|
-
name: `${errorCode}`,
|
|
1229
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
845
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
846
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1230
847
|
$fault: "client",
|
|
1231
848
|
$metadata: deserializeMetadata(output),
|
|
1232
|
-
};
|
|
849
|
+
});
|
|
850
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1233
851
|
}
|
|
1234
|
-
const message = response.message || response.Message || errorCode;
|
|
1235
|
-
response.message = message;
|
|
1236
|
-
delete response.Message;
|
|
1237
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1238
852
|
};
|
|
1239
853
|
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
1240
854
|
if (output.statusCode >= 300) {
|
|
@@ -1261,67 +875,31 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
1261
875
|
switch (errorCode) {
|
|
1262
876
|
case "AccessDeniedException":
|
|
1263
877
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1264
|
-
|
|
1265
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1266
|
-
name: errorCode,
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
};
|
|
1269
|
-
break;
|
|
878
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1270
879
|
case "ExpiredNextTokenException":
|
|
1271
880
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1272
|
-
|
|
1273
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1274
|
-
name: errorCode,
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
};
|
|
1277
|
-
break;
|
|
881
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1278
882
|
case "InternalErrorException":
|
|
1279
883
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1280
|
-
|
|
1281
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1282
|
-
name: errorCode,
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
1285
|
-
break;
|
|
884
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1286
885
|
case "InvalidNextTokenException":
|
|
1287
886
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1288
|
-
|
|
1289
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1290
|
-
name: errorCode,
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
1293
|
-
break;
|
|
887
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1294
888
|
case "InvalidParameterException":
|
|
1295
889
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1296
|
-
|
|
1297
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1298
|
-
name: errorCode,
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
};
|
|
1301
|
-
break;
|
|
890
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1302
891
|
case "NotFoundException":
|
|
1303
892
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1304
|
-
|
|
1305
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1306
|
-
name: errorCode,
|
|
1307
|
-
$metadata: deserializeMetadata(output),
|
|
1308
|
-
};
|
|
1309
|
-
break;
|
|
893
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1310
894
|
default:
|
|
1311
895
|
const parsedBody = parsedOutput.body;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
...parsedBody,
|
|
1315
|
-
name: `${errorCode}`,
|
|
1316
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
896
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
897
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1317
898
|
$fault: "client",
|
|
1318
899
|
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
900
|
+
});
|
|
901
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1320
902
|
}
|
|
1321
|
-
const message = response.message || response.Message || errorCode;
|
|
1322
|
-
response.message = message;
|
|
1323
|
-
delete response.Message;
|
|
1324
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1325
903
|
};
|
|
1326
904
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
1327
905
|
if (output.statusCode >= 300) {
|
|
@@ -1348,67 +926,31 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
1348
926
|
switch (errorCode) {
|
|
1349
927
|
case "AccessDeniedException":
|
|
1350
928
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1351
|
-
|
|
1352
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1353
|
-
name: errorCode,
|
|
1354
|
-
$metadata: deserializeMetadata(output),
|
|
1355
|
-
};
|
|
1356
|
-
break;
|
|
929
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1357
930
|
case "ExpiredNextTokenException":
|
|
1358
931
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1359
|
-
|
|
1360
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1361
|
-
name: errorCode,
|
|
1362
|
-
$metadata: deserializeMetadata(output),
|
|
1363
|
-
};
|
|
1364
|
-
break;
|
|
932
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1365
933
|
case "InternalErrorException":
|
|
1366
934
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1367
|
-
|
|
1368
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1369
|
-
name: errorCode,
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
};
|
|
1372
|
-
break;
|
|
935
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1373
936
|
case "InvalidNextTokenException":
|
|
1374
937
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1375
|
-
|
|
1376
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1377
|
-
name: errorCode,
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
};
|
|
1380
|
-
break;
|
|
938
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1381
939
|
case "InvalidParameterException":
|
|
1382
940
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1383
|
-
|
|
1384
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1385
|
-
name: errorCode,
|
|
1386
|
-
$metadata: deserializeMetadata(output),
|
|
1387
|
-
};
|
|
1388
|
-
break;
|
|
941
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1389
942
|
case "NotFoundException":
|
|
1390
943
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1391
|
-
|
|
1392
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1393
|
-
name: errorCode,
|
|
1394
|
-
$metadata: deserializeMetadata(output),
|
|
1395
|
-
};
|
|
1396
|
-
break;
|
|
944
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1397
945
|
default:
|
|
1398
946
|
const parsedBody = parsedOutput.body;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
...parsedBody,
|
|
1402
|
-
name: `${errorCode}`,
|
|
1403
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
947
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1404
949
|
$fault: "client",
|
|
1405
950
|
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
951
|
+
});
|
|
952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1407
953
|
}
|
|
1408
|
-
const message = response.message || response.Message || errorCode;
|
|
1409
|
-
response.message = message;
|
|
1410
|
-
delete response.Message;
|
|
1411
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1412
954
|
};
|
|
1413
955
|
const deserializeAws_json1_1DescribeBudgetsCommand = async (output, context) => {
|
|
1414
956
|
if (output.statusCode >= 300) {
|
|
@@ -1435,67 +977,31 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
1435
977
|
switch (errorCode) {
|
|
1436
978
|
case "AccessDeniedException":
|
|
1437
979
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1438
|
-
|
|
1439
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1440
|
-
name: errorCode,
|
|
1441
|
-
$metadata: deserializeMetadata(output),
|
|
1442
|
-
};
|
|
1443
|
-
break;
|
|
980
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1444
981
|
case "ExpiredNextTokenException":
|
|
1445
982
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1446
|
-
|
|
1447
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1448
|
-
name: errorCode,
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
};
|
|
1451
|
-
break;
|
|
983
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1452
984
|
case "InternalErrorException":
|
|
1453
985
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1454
|
-
|
|
1455
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1456
|
-
name: errorCode,
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1459
|
-
break;
|
|
986
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1460
987
|
case "InvalidNextTokenException":
|
|
1461
988
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1462
|
-
|
|
1463
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1464
|
-
name: errorCode,
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
};
|
|
1467
|
-
break;
|
|
989
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1468
990
|
case "InvalidParameterException":
|
|
1469
991
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1470
|
-
|
|
1471
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1472
|
-
name: errorCode,
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
break;
|
|
992
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1476
993
|
case "NotFoundException":
|
|
1477
994
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
995
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1484
996
|
default:
|
|
1485
997
|
const parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
...parsedBody,
|
|
1489
|
-
name: `${errorCode}`,
|
|
1490
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
998
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
999
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
1000
|
$fault: "client",
|
|
1492
1001
|
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1002
|
+
});
|
|
1003
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1494
1004
|
}
|
|
1495
|
-
const message = response.message || response.Message || errorCode;
|
|
1496
|
-
response.message = message;
|
|
1497
|
-
delete response.Message;
|
|
1498
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1499
1005
|
};
|
|
1500
1006
|
const deserializeAws_json1_1DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
1501
1007
|
if (output.statusCode >= 300) {
|
|
@@ -1522,67 +1028,31 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1522
1028
|
switch (errorCode) {
|
|
1523
1029
|
case "AccessDeniedException":
|
|
1524
1030
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1525
|
-
|
|
1526
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1527
|
-
name: errorCode,
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
};
|
|
1530
|
-
break;
|
|
1031
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1531
1032
|
case "ExpiredNextTokenException":
|
|
1532
1033
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1533
|
-
|
|
1534
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1535
|
-
name: errorCode,
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1538
|
-
break;
|
|
1034
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1539
1035
|
case "InternalErrorException":
|
|
1540
1036
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1541
|
-
|
|
1542
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1543
|
-
name: errorCode,
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1037
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1547
1038
|
case "InvalidNextTokenException":
|
|
1548
1039
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1549
|
-
|
|
1550
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1551
|
-
name: errorCode,
|
|
1552
|
-
$metadata: deserializeMetadata(output),
|
|
1553
|
-
};
|
|
1554
|
-
break;
|
|
1040
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1555
1041
|
case "InvalidParameterException":
|
|
1556
1042
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1557
|
-
|
|
1558
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1559
|
-
name: errorCode,
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
};
|
|
1562
|
-
break;
|
|
1043
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1563
1044
|
case "NotFoundException":
|
|
1564
1045
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1565
|
-
|
|
1566
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1567
|
-
name: errorCode,
|
|
1568
|
-
$metadata: deserializeMetadata(output),
|
|
1569
|
-
};
|
|
1570
|
-
break;
|
|
1046
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1571
1047
|
default:
|
|
1572
1048
|
const parsedBody = parsedOutput.body;
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
...parsedBody,
|
|
1576
|
-
name: `${errorCode}`,
|
|
1577
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1049
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1050
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1578
1051
|
$fault: "client",
|
|
1579
1052
|
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1053
|
+
});
|
|
1054
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1581
1055
|
}
|
|
1582
|
-
const message = response.message || response.Message || errorCode;
|
|
1583
|
-
response.message = message;
|
|
1584
|
-
delete response.Message;
|
|
1585
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1586
1056
|
};
|
|
1587
1057
|
const deserializeAws_json1_1DescribeSubscribersForNotificationCommand = async (output, context) => {
|
|
1588
1058
|
if (output.statusCode >= 300) {
|
|
@@ -1609,67 +1079,31 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1609
1079
|
switch (errorCode) {
|
|
1610
1080
|
case "AccessDeniedException":
|
|
1611
1081
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1612
|
-
|
|
1613
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1614
|
-
name: errorCode,
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1617
|
-
break;
|
|
1082
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1618
1083
|
case "ExpiredNextTokenException":
|
|
1619
1084
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1620
|
-
|
|
1621
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1622
|
-
name: errorCode,
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1625
|
-
break;
|
|
1085
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
1626
1086
|
case "InternalErrorException":
|
|
1627
1087
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1628
|
-
|
|
1629
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1630
|
-
name: errorCode,
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1633
|
-
break;
|
|
1088
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1634
1089
|
case "InvalidNextTokenException":
|
|
1635
1090
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1636
|
-
|
|
1637
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1091
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1642
1092
|
case "InvalidParameterException":
|
|
1643
1093
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1644
|
-
|
|
1645
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1646
|
-
name: errorCode,
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
};
|
|
1649
|
-
break;
|
|
1094
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1650
1095
|
case "NotFoundException":
|
|
1651
1096
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1652
|
-
|
|
1653
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1654
|
-
name: errorCode,
|
|
1655
|
-
$metadata: deserializeMetadata(output),
|
|
1656
|
-
};
|
|
1657
|
-
break;
|
|
1097
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1658
1098
|
default:
|
|
1659
1099
|
const parsedBody = parsedOutput.body;
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
...parsedBody,
|
|
1663
|
-
name: `${errorCode}`,
|
|
1664
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1100
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1101
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1665
1102
|
$fault: "client",
|
|
1666
1103
|
$metadata: deserializeMetadata(output),
|
|
1667
|
-
};
|
|
1104
|
+
});
|
|
1105
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1668
1106
|
}
|
|
1669
|
-
const message = response.message || response.Message || errorCode;
|
|
1670
|
-
response.message = message;
|
|
1671
|
-
delete response.Message;
|
|
1672
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1673
1107
|
};
|
|
1674
1108
|
const deserializeAws_json1_1ExecuteBudgetActionCommand = async (output, context) => {
|
|
1675
1109
|
if (output.statusCode >= 300) {
|
|
@@ -1696,59 +1130,28 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1696
1130
|
switch (errorCode) {
|
|
1697
1131
|
case "AccessDeniedException":
|
|
1698
1132
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1699
|
-
|
|
1700
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1701
|
-
name: errorCode,
|
|
1702
|
-
$metadata: deserializeMetadata(output),
|
|
1703
|
-
};
|
|
1704
|
-
break;
|
|
1133
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1705
1134
|
case "InternalErrorException":
|
|
1706
1135
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1707
|
-
|
|
1708
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1709
|
-
name: errorCode,
|
|
1710
|
-
$metadata: deserializeMetadata(output),
|
|
1711
|
-
};
|
|
1712
|
-
break;
|
|
1136
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1713
1137
|
case "InvalidParameterException":
|
|
1714
1138
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1715
|
-
|
|
1716
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1717
|
-
name: errorCode,
|
|
1718
|
-
$metadata: deserializeMetadata(output),
|
|
1719
|
-
};
|
|
1720
|
-
break;
|
|
1139
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1721
1140
|
case "NotFoundException":
|
|
1722
1141
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1723
|
-
|
|
1724
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1725
|
-
name: errorCode,
|
|
1726
|
-
$metadata: deserializeMetadata(output),
|
|
1727
|
-
};
|
|
1728
|
-
break;
|
|
1142
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1729
1143
|
case "ResourceLockedException":
|
|
1730
1144
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1731
|
-
|
|
1732
|
-
...(await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)),
|
|
1733
|
-
name: errorCode,
|
|
1734
|
-
$metadata: deserializeMetadata(output),
|
|
1735
|
-
};
|
|
1736
|
-
break;
|
|
1145
|
+
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
|
|
1737
1146
|
default:
|
|
1738
1147
|
const parsedBody = parsedOutput.body;
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
...parsedBody,
|
|
1742
|
-
name: `${errorCode}`,
|
|
1743
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1148
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1744
1150
|
$fault: "client",
|
|
1745
1151
|
$metadata: deserializeMetadata(output),
|
|
1746
|
-
};
|
|
1152
|
+
});
|
|
1153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1747
1154
|
}
|
|
1748
|
-
const message = response.message || response.Message || errorCode;
|
|
1749
|
-
response.message = message;
|
|
1750
|
-
delete response.Message;
|
|
1751
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1752
1155
|
};
|
|
1753
1156
|
const deserializeAws_json1_1UpdateBudgetCommand = async (output, context) => {
|
|
1754
1157
|
if (output.statusCode >= 300) {
|
|
@@ -1775,51 +1178,25 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1775
1178
|
switch (errorCode) {
|
|
1776
1179
|
case "AccessDeniedException":
|
|
1777
1180
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1778
|
-
|
|
1779
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1780
|
-
name: errorCode,
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
};
|
|
1783
|
-
break;
|
|
1181
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1784
1182
|
case "InternalErrorException":
|
|
1785
1183
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1786
|
-
|
|
1787
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1788
|
-
name: errorCode,
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1791
|
-
break;
|
|
1184
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1792
1185
|
case "InvalidParameterException":
|
|
1793
1186
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1794
|
-
|
|
1795
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1796
|
-
name: errorCode,
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
};
|
|
1799
|
-
break;
|
|
1187
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1800
1188
|
case "NotFoundException":
|
|
1801
1189
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1802
|
-
|
|
1803
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1804
|
-
name: errorCode,
|
|
1805
|
-
$metadata: deserializeMetadata(output),
|
|
1806
|
-
};
|
|
1807
|
-
break;
|
|
1190
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1808
1191
|
default:
|
|
1809
1192
|
const parsedBody = parsedOutput.body;
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
...parsedBody,
|
|
1813
|
-
name: `${errorCode}`,
|
|
1814
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1193
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1194
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1815
1195
|
$fault: "client",
|
|
1816
1196
|
$metadata: deserializeMetadata(output),
|
|
1817
|
-
};
|
|
1197
|
+
});
|
|
1198
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1818
1199
|
}
|
|
1819
|
-
const message = response.message || response.Message || errorCode;
|
|
1820
|
-
response.message = message;
|
|
1821
|
-
delete response.Message;
|
|
1822
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1823
1200
|
};
|
|
1824
1201
|
const deserializeAws_json1_1UpdateBudgetActionCommand = async (output, context) => {
|
|
1825
1202
|
if (output.statusCode >= 300) {
|
|
@@ -1846,59 +1223,28 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1846
1223
|
switch (errorCode) {
|
|
1847
1224
|
case "AccessDeniedException":
|
|
1848
1225
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1849
|
-
|
|
1850
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1851
|
-
name: errorCode,
|
|
1852
|
-
$metadata: deserializeMetadata(output),
|
|
1853
|
-
};
|
|
1854
|
-
break;
|
|
1226
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1855
1227
|
case "InternalErrorException":
|
|
1856
1228
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1857
|
-
|
|
1858
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1859
|
-
name: errorCode,
|
|
1860
|
-
$metadata: deserializeMetadata(output),
|
|
1861
|
-
};
|
|
1862
|
-
break;
|
|
1229
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1863
1230
|
case "InvalidParameterException":
|
|
1864
1231
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1865
|
-
|
|
1866
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1867
|
-
name: errorCode,
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
};
|
|
1870
|
-
break;
|
|
1232
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1871
1233
|
case "NotFoundException":
|
|
1872
1234
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1873
|
-
|
|
1874
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1875
|
-
name: errorCode,
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
};
|
|
1878
|
-
break;
|
|
1235
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1879
1236
|
case "ResourceLockedException":
|
|
1880
1237
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1881
|
-
|
|
1882
|
-
...(await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)),
|
|
1883
|
-
name: errorCode,
|
|
1884
|
-
$metadata: deserializeMetadata(output),
|
|
1885
|
-
};
|
|
1886
|
-
break;
|
|
1238
|
+
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
|
|
1887
1239
|
default:
|
|
1888
1240
|
const parsedBody = parsedOutput.body;
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
...parsedBody,
|
|
1892
|
-
name: `${errorCode}`,
|
|
1893
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1241
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1242
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1894
1243
|
$fault: "client",
|
|
1895
1244
|
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1245
|
+
});
|
|
1246
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1897
1247
|
}
|
|
1898
|
-
const message = response.message || response.Message || errorCode;
|
|
1899
|
-
response.message = message;
|
|
1900
|
-
delete response.Message;
|
|
1901
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1902
1248
|
};
|
|
1903
1249
|
const deserializeAws_json1_1UpdateNotificationCommand = async (output, context) => {
|
|
1904
1250
|
if (output.statusCode >= 300) {
|
|
@@ -1925,59 +1271,28 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1925
1271
|
switch (errorCode) {
|
|
1926
1272
|
case "AccessDeniedException":
|
|
1927
1273
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1928
|
-
|
|
1929
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1930
|
-
name: errorCode,
|
|
1931
|
-
$metadata: deserializeMetadata(output),
|
|
1932
|
-
};
|
|
1933
|
-
break;
|
|
1274
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1934
1275
|
case "DuplicateRecordException":
|
|
1935
1276
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1936
|
-
|
|
1937
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
1938
|
-
name: errorCode,
|
|
1939
|
-
$metadata: deserializeMetadata(output),
|
|
1940
|
-
};
|
|
1941
|
-
break;
|
|
1277
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
1942
1278
|
case "InternalErrorException":
|
|
1943
1279
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1944
|
-
|
|
1945
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1946
|
-
name: errorCode,
|
|
1947
|
-
$metadata: deserializeMetadata(output),
|
|
1948
|
-
};
|
|
1949
|
-
break;
|
|
1280
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1950
1281
|
case "InvalidParameterException":
|
|
1951
1282
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1952
|
-
|
|
1953
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1954
|
-
name: errorCode,
|
|
1955
|
-
$metadata: deserializeMetadata(output),
|
|
1956
|
-
};
|
|
1957
|
-
break;
|
|
1283
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1958
1284
|
case "NotFoundException":
|
|
1959
1285
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1960
|
-
|
|
1961
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1962
|
-
name: errorCode,
|
|
1963
|
-
$metadata: deserializeMetadata(output),
|
|
1964
|
-
};
|
|
1965
|
-
break;
|
|
1286
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1966
1287
|
default:
|
|
1967
1288
|
const parsedBody = parsedOutput.body;
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
...parsedBody,
|
|
1971
|
-
name: `${errorCode}`,
|
|
1972
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1289
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1290
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1973
1291
|
$fault: "client",
|
|
1974
1292
|
$metadata: deserializeMetadata(output),
|
|
1975
|
-
};
|
|
1293
|
+
});
|
|
1294
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1976
1295
|
}
|
|
1977
|
-
const message = response.message || response.Message || errorCode;
|
|
1978
|
-
response.message = message;
|
|
1979
|
-
delete response.Message;
|
|
1980
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1981
1296
|
};
|
|
1982
1297
|
const deserializeAws_json1_1UpdateSubscriberCommand = async (output, context) => {
|
|
1983
1298
|
if (output.statusCode >= 300) {
|
|
@@ -2004,158 +1319,109 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
2004
1319
|
switch (errorCode) {
|
|
2005
1320
|
case "AccessDeniedException":
|
|
2006
1321
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
2007
|
-
|
|
2008
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2009
|
-
name: errorCode,
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
};
|
|
2012
|
-
break;
|
|
1322
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2013
1323
|
case "DuplicateRecordException":
|
|
2014
1324
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
2015
|
-
|
|
2016
|
-
...(await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)),
|
|
2017
|
-
name: errorCode,
|
|
2018
|
-
$metadata: deserializeMetadata(output),
|
|
2019
|
-
};
|
|
2020
|
-
break;
|
|
1325
|
+
throw await deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context);
|
|
2021
1326
|
case "InternalErrorException":
|
|
2022
1327
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
2023
|
-
|
|
2024
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
2025
|
-
name: errorCode,
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
};
|
|
2028
|
-
break;
|
|
1328
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
2029
1329
|
case "InvalidParameterException":
|
|
2030
1330
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
2031
|
-
|
|
2032
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2033
|
-
name: errorCode,
|
|
2034
|
-
$metadata: deserializeMetadata(output),
|
|
2035
|
-
};
|
|
2036
|
-
break;
|
|
1331
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2037
1332
|
case "NotFoundException":
|
|
2038
1333
|
case "com.amazonaws.budgets#NotFoundException":
|
|
2039
|
-
|
|
2040
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2041
|
-
name: errorCode,
|
|
2042
|
-
$metadata: deserializeMetadata(output),
|
|
2043
|
-
};
|
|
2044
|
-
break;
|
|
1334
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2045
1335
|
default:
|
|
2046
1336
|
const parsedBody = parsedOutput.body;
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
...parsedBody,
|
|
2050
|
-
name: `${errorCode}`,
|
|
2051
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1337
|
+
response = new BudgetsServiceException_1.BudgetsServiceException({
|
|
1338
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2052
1339
|
$fault: "client",
|
|
2053
1340
|
$metadata: deserializeMetadata(output),
|
|
2054
|
-
};
|
|
1341
|
+
});
|
|
1342
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2055
1343
|
}
|
|
2056
|
-
const message = response.message || response.Message || errorCode;
|
|
2057
|
-
response.message = message;
|
|
2058
|
-
delete response.Message;
|
|
2059
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2060
1344
|
};
|
|
2061
1345
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2062
1346
|
const body = parsedOutput.body;
|
|
2063
1347
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2064
|
-
const
|
|
2065
|
-
name: "AccessDeniedException",
|
|
2066
|
-
$fault: "client",
|
|
1348
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2067
1349
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2068
1350
|
...deserialized,
|
|
2069
|
-
};
|
|
2070
|
-
return
|
|
1351
|
+
});
|
|
1352
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2071
1353
|
};
|
|
2072
1354
|
const deserializeAws_json1_1CreationLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2073
1355
|
const body = parsedOutput.body;
|
|
2074
1356
|
const deserialized = deserializeAws_json1_1CreationLimitExceededException(body, context);
|
|
2075
|
-
const
|
|
2076
|
-
name: "CreationLimitExceededException",
|
|
2077
|
-
$fault: "client",
|
|
1357
|
+
const exception = new models_0_1.CreationLimitExceededException({
|
|
2078
1358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2079
1359
|
...deserialized,
|
|
2080
|
-
};
|
|
2081
|
-
return
|
|
1360
|
+
});
|
|
1361
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2082
1362
|
};
|
|
2083
1363
|
const deserializeAws_json1_1DuplicateRecordExceptionResponse = async (parsedOutput, context) => {
|
|
2084
1364
|
const body = parsedOutput.body;
|
|
2085
1365
|
const deserialized = deserializeAws_json1_1DuplicateRecordException(body, context);
|
|
2086
|
-
const
|
|
2087
|
-
name: "DuplicateRecordException",
|
|
2088
|
-
$fault: "client",
|
|
1366
|
+
const exception = new models_0_1.DuplicateRecordException({
|
|
2089
1367
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2090
1368
|
...deserialized,
|
|
2091
|
-
};
|
|
2092
|
-
return
|
|
1369
|
+
});
|
|
1370
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2093
1371
|
};
|
|
2094
1372
|
const deserializeAws_json1_1ExpiredNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2095
1373
|
const body = parsedOutput.body;
|
|
2096
1374
|
const deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
|
|
2097
|
-
const
|
|
2098
|
-
name: "ExpiredNextTokenException",
|
|
2099
|
-
$fault: "client",
|
|
1375
|
+
const exception = new models_0_1.ExpiredNextTokenException({
|
|
2100
1376
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2101
1377
|
...deserialized,
|
|
2102
|
-
};
|
|
2103
|
-
return
|
|
1378
|
+
});
|
|
1379
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2104
1380
|
};
|
|
2105
1381
|
const deserializeAws_json1_1InternalErrorExceptionResponse = async (parsedOutput, context) => {
|
|
2106
1382
|
const body = parsedOutput.body;
|
|
2107
1383
|
const deserialized = deserializeAws_json1_1InternalErrorException(body, context);
|
|
2108
|
-
const
|
|
2109
|
-
name: "InternalErrorException",
|
|
2110
|
-
$fault: "server",
|
|
1384
|
+
const exception = new models_0_1.InternalErrorException({
|
|
2111
1385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2112
1386
|
...deserialized,
|
|
2113
|
-
};
|
|
2114
|
-
return
|
|
1387
|
+
});
|
|
1388
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2115
1389
|
};
|
|
2116
1390
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2117
1391
|
const body = parsedOutput.body;
|
|
2118
1392
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2119
|
-
const
|
|
2120
|
-
name: "InvalidNextTokenException",
|
|
2121
|
-
$fault: "client",
|
|
1393
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
2122
1394
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2123
1395
|
...deserialized,
|
|
2124
|
-
};
|
|
2125
|
-
return
|
|
1396
|
+
});
|
|
1397
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2126
1398
|
};
|
|
2127
1399
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2128
1400
|
const body = parsedOutput.body;
|
|
2129
1401
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2130
|
-
const
|
|
2131
|
-
name: "InvalidParameterException",
|
|
2132
|
-
$fault: "client",
|
|
1402
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
2133
1403
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2134
1404
|
...deserialized,
|
|
2135
|
-
};
|
|
2136
|
-
return
|
|
1405
|
+
});
|
|
1406
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2137
1407
|
};
|
|
2138
1408
|
const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2139
1409
|
const body = parsedOutput.body;
|
|
2140
1410
|
const deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
2141
|
-
const
|
|
2142
|
-
name: "NotFoundException",
|
|
2143
|
-
$fault: "client",
|
|
1411
|
+
const exception = new models_0_1.NotFoundException({
|
|
2144
1412
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2145
1413
|
...deserialized,
|
|
2146
|
-
};
|
|
2147
|
-
return
|
|
1414
|
+
});
|
|
1415
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2148
1416
|
};
|
|
2149
1417
|
const deserializeAws_json1_1ResourceLockedExceptionResponse = async (parsedOutput, context) => {
|
|
2150
1418
|
const body = parsedOutput.body;
|
|
2151
1419
|
const deserialized = deserializeAws_json1_1ResourceLockedException(body, context);
|
|
2152
|
-
const
|
|
2153
|
-
name: "ResourceLockedException",
|
|
2154
|
-
$fault: "client",
|
|
1420
|
+
const exception = new models_0_1.ResourceLockedException({
|
|
2155
1421
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2156
1422
|
...deserialized,
|
|
2157
|
-
};
|
|
2158
|
-
return
|
|
1423
|
+
});
|
|
1424
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2159
1425
|
};
|
|
2160
1426
|
const serializeAws_json1_1ActionThreshold = (input, context) => {
|
|
2161
1427
|
return {
|
|
@@ -2678,7 +1944,7 @@ const deserializeAws_json1_1Action = (output, context) => {
|
|
|
2678
1944
|
};
|
|
2679
1945
|
};
|
|
2680
1946
|
const deserializeAws_json1_1ActionHistories = (output, context) => {
|
|
2681
|
-
|
|
1947
|
+
const retVal = (output || [])
|
|
2682
1948
|
.filter((e) => e != null)
|
|
2683
1949
|
.map((entry) => {
|
|
2684
1950
|
if (entry === null) {
|
|
@@ -2686,6 +1952,7 @@ const deserializeAws_json1_1ActionHistories = (output, context) => {
|
|
|
2686
1952
|
}
|
|
2687
1953
|
return deserializeAws_json1_1ActionHistory(entry, context);
|
|
2688
1954
|
});
|
|
1955
|
+
return retVal;
|
|
2689
1956
|
};
|
|
2690
1957
|
const deserializeAws_json1_1ActionHistory = (output, context) => {
|
|
2691
1958
|
return {
|
|
@@ -2708,7 +1975,7 @@ const deserializeAws_json1_1ActionHistoryDetails = (output, context) => {
|
|
|
2708
1975
|
};
|
|
2709
1976
|
};
|
|
2710
1977
|
const deserializeAws_json1_1Actions = (output, context) => {
|
|
2711
|
-
|
|
1978
|
+
const retVal = (output || [])
|
|
2712
1979
|
.filter((e) => e != null)
|
|
2713
1980
|
.map((entry) => {
|
|
2714
1981
|
if (entry === null) {
|
|
@@ -2716,6 +1983,7 @@ const deserializeAws_json1_1Actions = (output, context) => {
|
|
|
2716
1983
|
}
|
|
2717
1984
|
return deserializeAws_json1_1Action(entry, context);
|
|
2718
1985
|
});
|
|
1986
|
+
return retVal;
|
|
2719
1987
|
};
|
|
2720
1988
|
const deserializeAws_json1_1ActionThreshold = (output, context) => {
|
|
2721
1989
|
return {
|
|
@@ -2779,7 +2047,7 @@ const deserializeAws_json1_1BudgetedAndActualAmounts = (output, context) => {
|
|
|
2779
2047
|
};
|
|
2780
2048
|
};
|
|
2781
2049
|
const deserializeAws_json1_1BudgetedAndActualAmountsList = (output, context) => {
|
|
2782
|
-
|
|
2050
|
+
const retVal = (output || [])
|
|
2783
2051
|
.filter((e) => e != null)
|
|
2784
2052
|
.map((entry) => {
|
|
2785
2053
|
if (entry === null) {
|
|
@@ -2787,6 +2055,7 @@ const deserializeAws_json1_1BudgetedAndActualAmountsList = (output, context) =>
|
|
|
2787
2055
|
}
|
|
2788
2056
|
return deserializeAws_json1_1BudgetedAndActualAmounts(entry, context);
|
|
2789
2057
|
});
|
|
2058
|
+
return retVal;
|
|
2790
2059
|
};
|
|
2791
2060
|
const deserializeAws_json1_1BudgetNotificationsForAccount = (output, context) => {
|
|
2792
2061
|
return {
|
|
@@ -2797,7 +2066,7 @@ const deserializeAws_json1_1BudgetNotificationsForAccount = (output, context) =>
|
|
|
2797
2066
|
};
|
|
2798
2067
|
};
|
|
2799
2068
|
const deserializeAws_json1_1BudgetNotificationsForAccountList = (output, context) => {
|
|
2800
|
-
|
|
2069
|
+
const retVal = (output || [])
|
|
2801
2070
|
.filter((e) => e != null)
|
|
2802
2071
|
.map((entry) => {
|
|
2803
2072
|
if (entry === null) {
|
|
@@ -2805,6 +2074,7 @@ const deserializeAws_json1_1BudgetNotificationsForAccountList = (output, context
|
|
|
2805
2074
|
}
|
|
2806
2075
|
return deserializeAws_json1_1BudgetNotificationsForAccount(entry, context);
|
|
2807
2076
|
});
|
|
2077
|
+
return retVal;
|
|
2808
2078
|
};
|
|
2809
2079
|
const deserializeAws_json1_1BudgetPerformanceHistory = (output, context) => {
|
|
2810
2080
|
return {
|
|
@@ -2823,7 +2093,7 @@ const deserializeAws_json1_1BudgetPerformanceHistory = (output, context) => {
|
|
|
2823
2093
|
};
|
|
2824
2094
|
};
|
|
2825
2095
|
const deserializeAws_json1_1Budgets = (output, context) => {
|
|
2826
|
-
|
|
2096
|
+
const retVal = (output || [])
|
|
2827
2097
|
.filter((e) => e != null)
|
|
2828
2098
|
.map((entry) => {
|
|
2829
2099
|
if (entry === null) {
|
|
@@ -2831,6 +2101,7 @@ const deserializeAws_json1_1Budgets = (output, context) => {
|
|
|
2831
2101
|
}
|
|
2832
2102
|
return deserializeAws_json1_1Budget(entry, context);
|
|
2833
2103
|
});
|
|
2104
|
+
return retVal;
|
|
2834
2105
|
};
|
|
2835
2106
|
const deserializeAws_json1_1CalculatedSpend = (output, context) => {
|
|
2836
2107
|
return {
|
|
@@ -3001,7 +2272,7 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationResponse = (output
|
|
|
3001
2272
|
};
|
|
3002
2273
|
};
|
|
3003
2274
|
const deserializeAws_json1_1DimensionValues = (output, context) => {
|
|
3004
|
-
|
|
2275
|
+
const retVal = (output || [])
|
|
3005
2276
|
.filter((e) => e != null)
|
|
3006
2277
|
.map((entry) => {
|
|
3007
2278
|
if (entry === null) {
|
|
@@ -3009,6 +2280,7 @@ const deserializeAws_json1_1DimensionValues = (output, context) => {
|
|
|
3009
2280
|
}
|
|
3010
2281
|
return smithy_client_1.expectString(entry);
|
|
3011
2282
|
});
|
|
2283
|
+
return retVal;
|
|
3012
2284
|
};
|
|
3013
2285
|
const deserializeAws_json1_1DuplicateRecordException = (output, context) => {
|
|
3014
2286
|
return {
|
|
@@ -3029,7 +2301,7 @@ const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
|
|
|
3029
2301
|
};
|
|
3030
2302
|
};
|
|
3031
2303
|
const deserializeAws_json1_1Groups = (output, context) => {
|
|
3032
|
-
|
|
2304
|
+
const retVal = (output || [])
|
|
3033
2305
|
.filter((e) => e != null)
|
|
3034
2306
|
.map((entry) => {
|
|
3035
2307
|
if (entry === null) {
|
|
@@ -3037,6 +2309,7 @@ const deserializeAws_json1_1Groups = (output, context) => {
|
|
|
3037
2309
|
}
|
|
3038
2310
|
return smithy_client_1.expectString(entry);
|
|
3039
2311
|
});
|
|
2312
|
+
return retVal;
|
|
3040
2313
|
};
|
|
3041
2314
|
const deserializeAws_json1_1HistoricalOptions = (output, context) => {
|
|
3042
2315
|
return {
|
|
@@ -3059,7 +2332,7 @@ const deserializeAws_json1_1IamActionDefinition = (output, context) => {
|
|
|
3059
2332
|
};
|
|
3060
2333
|
};
|
|
3061
2334
|
const deserializeAws_json1_1InstanceIds = (output, context) => {
|
|
3062
|
-
|
|
2335
|
+
const retVal = (output || [])
|
|
3063
2336
|
.filter((e) => e != null)
|
|
3064
2337
|
.map((entry) => {
|
|
3065
2338
|
if (entry === null) {
|
|
@@ -3067,6 +2340,7 @@ const deserializeAws_json1_1InstanceIds = (output, context) => {
|
|
|
3067
2340
|
}
|
|
3068
2341
|
return smithy_client_1.expectString(entry);
|
|
3069
2342
|
});
|
|
2343
|
+
return retVal;
|
|
3070
2344
|
};
|
|
3071
2345
|
const deserializeAws_json1_1InternalErrorException = (output, context) => {
|
|
3072
2346
|
return {
|
|
@@ -3098,7 +2372,7 @@ const deserializeAws_json1_1Notification = (output, context) => {
|
|
|
3098
2372
|
};
|
|
3099
2373
|
};
|
|
3100
2374
|
const deserializeAws_json1_1Notifications = (output, context) => {
|
|
3101
|
-
|
|
2375
|
+
const retVal = (output || [])
|
|
3102
2376
|
.filter((e) => e != null)
|
|
3103
2377
|
.map((entry) => {
|
|
3104
2378
|
if (entry === null) {
|
|
@@ -3106,6 +2380,7 @@ const deserializeAws_json1_1Notifications = (output, context) => {
|
|
|
3106
2380
|
}
|
|
3107
2381
|
return deserializeAws_json1_1Notification(entry, context);
|
|
3108
2382
|
});
|
|
2383
|
+
return retVal;
|
|
3109
2384
|
};
|
|
3110
2385
|
const deserializeAws_json1_1PlannedBudgetLimits = (output, context) => {
|
|
3111
2386
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3124,7 +2399,7 @@ const deserializeAws_json1_1ResourceLockedException = (output, context) => {
|
|
|
3124
2399
|
};
|
|
3125
2400
|
};
|
|
3126
2401
|
const deserializeAws_json1_1Roles = (output, context) => {
|
|
3127
|
-
|
|
2402
|
+
const retVal = (output || [])
|
|
3128
2403
|
.filter((e) => e != null)
|
|
3129
2404
|
.map((entry) => {
|
|
3130
2405
|
if (entry === null) {
|
|
@@ -3132,6 +2407,7 @@ const deserializeAws_json1_1Roles = (output, context) => {
|
|
|
3132
2407
|
}
|
|
3133
2408
|
return smithy_client_1.expectString(entry);
|
|
3134
2409
|
});
|
|
2410
|
+
return retVal;
|
|
3135
2411
|
};
|
|
3136
2412
|
const deserializeAws_json1_1ScpActionDefinition = (output, context) => {
|
|
3137
2413
|
return {
|
|
@@ -3163,7 +2439,7 @@ const deserializeAws_json1_1Subscriber = (output, context) => {
|
|
|
3163
2439
|
};
|
|
3164
2440
|
};
|
|
3165
2441
|
const deserializeAws_json1_1Subscribers = (output, context) => {
|
|
3166
|
-
|
|
2442
|
+
const retVal = (output || [])
|
|
3167
2443
|
.filter((e) => e != null)
|
|
3168
2444
|
.map((entry) => {
|
|
3169
2445
|
if (entry === null) {
|
|
@@ -3171,9 +2447,10 @@ const deserializeAws_json1_1Subscribers = (output, context) => {
|
|
|
3171
2447
|
}
|
|
3172
2448
|
return deserializeAws_json1_1Subscriber(entry, context);
|
|
3173
2449
|
});
|
|
2450
|
+
return retVal;
|
|
3174
2451
|
};
|
|
3175
2452
|
const deserializeAws_json1_1TargetIds = (output, context) => {
|
|
3176
|
-
|
|
2453
|
+
const retVal = (output || [])
|
|
3177
2454
|
.filter((e) => e != null)
|
|
3178
2455
|
.map((entry) => {
|
|
3179
2456
|
if (entry === null) {
|
|
@@ -3181,6 +2458,7 @@ const deserializeAws_json1_1TargetIds = (output, context) => {
|
|
|
3181
2458
|
}
|
|
3182
2459
|
return smithy_client_1.expectString(entry);
|
|
3183
2460
|
});
|
|
2461
|
+
return retVal;
|
|
3184
2462
|
};
|
|
3185
2463
|
const deserializeAws_json1_1TimePeriod = (output, context) => {
|
|
3186
2464
|
return {
|
|
@@ -3214,7 +2492,7 @@ const deserializeAws_json1_1UpdateSubscriberResponse = (output, context) => {
|
|
|
3214
2492
|
return {};
|
|
3215
2493
|
};
|
|
3216
2494
|
const deserializeAws_json1_1Users = (output, context) => {
|
|
3217
|
-
|
|
2495
|
+
const retVal = (output || [])
|
|
3218
2496
|
.filter((e) => e != null)
|
|
3219
2497
|
.map((entry) => {
|
|
3220
2498
|
if (entry === null) {
|
|
@@ -3222,6 +2500,7 @@ const deserializeAws_json1_1Users = (output, context) => {
|
|
|
3222
2500
|
}
|
|
3223
2501
|
return smithy_client_1.expectString(entry);
|
|
3224
2502
|
});
|
|
2503
|
+
return retVal;
|
|
3225
2504
|
};
|
|
3226
2505
|
const deserializeMetadata = (output) => {
|
|
3227
2506
|
var _a;
|