@aws-sdk/client-codestar-notifications 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/CodestarNotificationsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +114 -1
- package/dist-cjs/protocols/Aws_restJson1.js +139 -375
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodestarNotificationsServiceException.js +12 -0
- package/dist-es/models/models_0.js +106 -1
- package/dist-es/protocols/Aws_restJson1.js +259 -436
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodestarNotificationsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -25
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CodestarNotificationsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -25
- package/package.json +25 -25
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1UpdateNotificationRuleCommand = exports.deserial
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
|
+
const CodestarNotificationsServiceException_1 = require("../models/CodestarNotificationsServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CreateNotificationRuleCommand = async (input, context) => {
|
|
8
10
|
var _a;
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -341,67 +343,31 @@ const deserializeAws_restJson1CreateNotificationRuleCommandError = async (output
|
|
|
341
343
|
switch (errorCode) {
|
|
342
344
|
case "AccessDeniedException":
|
|
343
345
|
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
344
|
-
|
|
345
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
346
|
-
name: errorCode,
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
};
|
|
349
|
-
break;
|
|
346
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
350
347
|
case "ConcurrentModificationException":
|
|
351
348
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
352
|
-
|
|
353
|
-
...(await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
354
|
-
name: errorCode,
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
};
|
|
357
|
-
break;
|
|
349
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
358
350
|
case "ConfigurationException":
|
|
359
351
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
360
|
-
|
|
361
|
-
...(await deserializeAws_restJson1ConfigurationExceptionResponse(parsedOutput, context)),
|
|
362
|
-
name: errorCode,
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
};
|
|
365
|
-
break;
|
|
352
|
+
throw await deserializeAws_restJson1ConfigurationExceptionResponse(parsedOutput, context);
|
|
366
353
|
case "LimitExceededException":
|
|
367
354
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
368
|
-
|
|
369
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
370
|
-
name: errorCode,
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
};
|
|
373
|
-
break;
|
|
355
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
374
356
|
case "ResourceAlreadyExistsException":
|
|
375
357
|
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
376
|
-
|
|
377
|
-
...(await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
378
|
-
name: errorCode,
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
};
|
|
381
|
-
break;
|
|
358
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
382
359
|
case "ValidationException":
|
|
383
360
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
384
|
-
|
|
385
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
386
|
-
name: errorCode,
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
};
|
|
389
|
-
break;
|
|
361
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
390
362
|
default:
|
|
391
363
|
const parsedBody = parsedOutput.body;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
...parsedBody,
|
|
395
|
-
name: `${errorCode}`,
|
|
396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
364
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
397
366
|
$fault: "client",
|
|
398
367
|
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
368
|
+
});
|
|
369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
400
370
|
}
|
|
401
|
-
const message = response.message || response.Message || errorCode;
|
|
402
|
-
response.message = message;
|
|
403
|
-
delete response.Message;
|
|
404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
405
371
|
};
|
|
406
372
|
const deserializeAws_restJson1DeleteNotificationRuleCommand = async (output, context) => {
|
|
407
373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -429,43 +395,22 @@ const deserializeAws_restJson1DeleteNotificationRuleCommandError = async (output
|
|
|
429
395
|
switch (errorCode) {
|
|
430
396
|
case "ConcurrentModificationException":
|
|
431
397
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
432
|
-
|
|
433
|
-
...(await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
434
|
-
name: errorCode,
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
};
|
|
437
|
-
break;
|
|
398
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
438
399
|
case "LimitExceededException":
|
|
439
400
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
440
|
-
|
|
441
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
442
|
-
name: errorCode,
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
};
|
|
445
|
-
break;
|
|
401
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
446
402
|
case "ValidationException":
|
|
447
403
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
448
|
-
|
|
449
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
450
|
-
name: errorCode,
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
};
|
|
453
|
-
break;
|
|
404
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
454
405
|
default:
|
|
455
406
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
...parsedBody,
|
|
459
|
-
name: `${errorCode}`,
|
|
460
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
407
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
408
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
461
409
|
$fault: "client",
|
|
462
410
|
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
411
|
+
});
|
|
412
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
464
413
|
}
|
|
465
|
-
const message = response.message || response.Message || errorCode;
|
|
466
|
-
response.message = message;
|
|
467
|
-
delete response.Message;
|
|
468
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
469
414
|
};
|
|
470
415
|
const deserializeAws_restJson1DeleteTargetCommand = async (output, context) => {
|
|
471
416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -489,27 +434,16 @@ const deserializeAws_restJson1DeleteTargetCommandError = async (output, context)
|
|
|
489
434
|
switch (errorCode) {
|
|
490
435
|
case "ValidationException":
|
|
491
436
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
492
|
-
|
|
493
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
494
|
-
name: errorCode,
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
};
|
|
497
|
-
break;
|
|
437
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
498
438
|
default:
|
|
499
439
|
const parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
...parsedBody,
|
|
503
|
-
name: `${errorCode}`,
|
|
504
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
440
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
441
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
505
442
|
$fault: "client",
|
|
506
443
|
$metadata: deserializeMetadata(output),
|
|
507
|
-
};
|
|
444
|
+
});
|
|
445
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
508
446
|
}
|
|
509
|
-
const message = response.message || response.Message || errorCode;
|
|
510
|
-
response.message = message;
|
|
511
|
-
delete response.Message;
|
|
512
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
513
447
|
};
|
|
514
448
|
const deserializeAws_restJson1DescribeNotificationRuleCommand = async (output, context) => {
|
|
515
449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -577,35 +511,19 @@ const deserializeAws_restJson1DescribeNotificationRuleCommandError = async (outp
|
|
|
577
511
|
switch (errorCode) {
|
|
578
512
|
case "ResourceNotFoundException":
|
|
579
513
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
580
|
-
|
|
581
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
582
|
-
name: errorCode,
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
};
|
|
585
|
-
break;
|
|
514
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
586
515
|
case "ValidationException":
|
|
587
516
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
588
|
-
|
|
589
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
590
|
-
name: errorCode,
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
};
|
|
593
|
-
break;
|
|
517
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
594
518
|
default:
|
|
595
519
|
const parsedBody = parsedOutput.body;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
...parsedBody,
|
|
599
|
-
name: `${errorCode}`,
|
|
600
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
520
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
521
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
601
522
|
$fault: "client",
|
|
602
523
|
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
524
|
+
});
|
|
525
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
604
526
|
}
|
|
605
|
-
const message = response.message || response.Message || errorCode;
|
|
606
|
-
response.message = message;
|
|
607
|
-
delete response.Message;
|
|
608
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
609
527
|
};
|
|
610
528
|
const deserializeAws_restJson1ListEventTypesCommand = async (output, context) => {
|
|
611
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -637,35 +555,19 @@ const deserializeAws_restJson1ListEventTypesCommandError = async (output, contex
|
|
|
637
555
|
switch (errorCode) {
|
|
638
556
|
case "InvalidNextTokenException":
|
|
639
557
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
640
|
-
|
|
641
|
-
...(await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
642
|
-
name: errorCode,
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
};
|
|
645
|
-
break;
|
|
558
|
+
throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
646
559
|
case "ValidationException":
|
|
647
560
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
648
|
-
|
|
649
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
561
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
654
562
|
default:
|
|
655
563
|
const parsedBody = parsedOutput.body;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
...parsedBody,
|
|
659
|
-
name: `${errorCode}`,
|
|
660
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
564
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
565
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
661
566
|
$fault: "client",
|
|
662
567
|
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
568
|
+
});
|
|
569
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
664
570
|
}
|
|
665
|
-
const message = response.message || response.Message || errorCode;
|
|
666
|
-
response.message = message;
|
|
667
|
-
delete response.Message;
|
|
668
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
669
571
|
};
|
|
670
572
|
const deserializeAws_restJson1ListNotificationRulesCommand = async (output, context) => {
|
|
671
573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -697,35 +599,19 @@ const deserializeAws_restJson1ListNotificationRulesCommandError = async (output,
|
|
|
697
599
|
switch (errorCode) {
|
|
698
600
|
case "InvalidNextTokenException":
|
|
699
601
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
700
|
-
|
|
701
|
-
...(await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
702
|
-
name: errorCode,
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
705
|
-
break;
|
|
602
|
+
throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
706
603
|
case "ValidationException":
|
|
707
604
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
708
|
-
|
|
709
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
710
|
-
name: errorCode,
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
};
|
|
713
|
-
break;
|
|
605
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
714
606
|
default:
|
|
715
607
|
const parsedBody = parsedOutput.body;
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
...parsedBody,
|
|
719
|
-
name: `${errorCode}`,
|
|
720
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
608
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
609
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
721
610
|
$fault: "client",
|
|
722
611
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
612
|
+
});
|
|
613
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
724
614
|
}
|
|
725
|
-
const message = response.message || response.Message || errorCode;
|
|
726
|
-
response.message = message;
|
|
727
|
-
delete response.Message;
|
|
728
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
729
615
|
};
|
|
730
616
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
731
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -753,35 +639,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
753
639
|
switch (errorCode) {
|
|
754
640
|
case "ResourceNotFoundException":
|
|
755
641
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
756
|
-
|
|
757
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
758
|
-
name: errorCode,
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
761
|
-
break;
|
|
642
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
762
643
|
case "ValidationException":
|
|
763
644
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
645
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
770
646
|
default:
|
|
771
647
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
...parsedBody,
|
|
775
|
-
name: `${errorCode}`,
|
|
776
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
648
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
777
650
|
$fault: "client",
|
|
778
651
|
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
652
|
+
});
|
|
653
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
780
654
|
}
|
|
781
|
-
const message = response.message || response.Message || errorCode;
|
|
782
|
-
response.message = message;
|
|
783
|
-
delete response.Message;
|
|
784
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
785
655
|
};
|
|
786
656
|
const deserializeAws_restJson1ListTargetsCommand = async (output, context) => {
|
|
787
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -813,35 +683,19 @@ const deserializeAws_restJson1ListTargetsCommandError = async (output, context)
|
|
|
813
683
|
switch (errorCode) {
|
|
814
684
|
case "InvalidNextTokenException":
|
|
815
685
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
816
|
-
|
|
817
|
-
...(await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
818
|
-
name: errorCode,
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
};
|
|
821
|
-
break;
|
|
686
|
+
throw await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
822
687
|
case "ValidationException":
|
|
823
688
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
824
|
-
|
|
825
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
826
|
-
name: errorCode,
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
};
|
|
829
|
-
break;
|
|
689
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
830
690
|
default:
|
|
831
691
|
const parsedBody = parsedOutput.body;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
...parsedBody,
|
|
835
|
-
name: `${errorCode}`,
|
|
836
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
692
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
693
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
837
694
|
$fault: "client",
|
|
838
695
|
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
696
|
+
});
|
|
697
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
840
698
|
}
|
|
841
|
-
const message = response.message || response.Message || errorCode;
|
|
842
|
-
response.message = message;
|
|
843
|
-
delete response.Message;
|
|
844
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
845
699
|
};
|
|
846
700
|
const deserializeAws_restJson1SubscribeCommand = async (output, context) => {
|
|
847
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -869,35 +723,19 @@ const deserializeAws_restJson1SubscribeCommandError = async (output, context) =>
|
|
|
869
723
|
switch (errorCode) {
|
|
870
724
|
case "ResourceNotFoundException":
|
|
871
725
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
872
|
-
|
|
873
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
874
|
-
name: errorCode,
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
};
|
|
877
|
-
break;
|
|
726
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
878
727
|
case "ValidationException":
|
|
879
728
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
880
|
-
|
|
881
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
882
|
-
name: errorCode,
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
};
|
|
885
|
-
break;
|
|
729
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
886
730
|
default:
|
|
887
731
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
...parsedBody,
|
|
891
|
-
name: `${errorCode}`,
|
|
892
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
732
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
733
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
893
734
|
$fault: "client",
|
|
894
735
|
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
736
|
+
});
|
|
737
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
896
738
|
}
|
|
897
|
-
const message = response.message || response.Message || errorCode;
|
|
898
|
-
response.message = message;
|
|
899
|
-
delete response.Message;
|
|
900
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
901
739
|
};
|
|
902
740
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
903
741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -925,43 +763,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
925
763
|
switch (errorCode) {
|
|
926
764
|
case "ConcurrentModificationException":
|
|
927
765
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
928
|
-
|
|
929
|
-
...(await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
930
|
-
name: errorCode,
|
|
931
|
-
$metadata: deserializeMetadata(output),
|
|
932
|
-
};
|
|
933
|
-
break;
|
|
766
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
934
767
|
case "ResourceNotFoundException":
|
|
935
768
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
936
|
-
|
|
937
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
769
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
942
770
|
case "ValidationException":
|
|
943
771
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
944
|
-
|
|
945
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
946
|
-
name: errorCode,
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
949
|
-
break;
|
|
772
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
950
773
|
default:
|
|
951
774
|
const parsedBody = parsedOutput.body;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
...parsedBody,
|
|
955
|
-
name: `${errorCode}`,
|
|
956
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
775
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
776
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
957
777
|
$fault: "client",
|
|
958
778
|
$metadata: deserializeMetadata(output),
|
|
959
|
-
};
|
|
779
|
+
});
|
|
780
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
960
781
|
}
|
|
961
|
-
const message = response.message || response.Message || errorCode;
|
|
962
|
-
response.message = message;
|
|
963
|
-
delete response.Message;
|
|
964
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
965
782
|
};
|
|
966
783
|
const deserializeAws_restJson1UnsubscribeCommand = async (output, context) => {
|
|
967
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -989,27 +806,16 @@ const deserializeAws_restJson1UnsubscribeCommandError = async (output, context)
|
|
|
989
806
|
switch (errorCode) {
|
|
990
807
|
case "ValidationException":
|
|
991
808
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
992
|
-
|
|
993
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
994
|
-
name: errorCode,
|
|
995
|
-
$metadata: deserializeMetadata(output),
|
|
996
|
-
};
|
|
997
|
-
break;
|
|
809
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
998
810
|
default:
|
|
999
811
|
const parsedBody = parsedOutput.body;
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
...parsedBody,
|
|
1003
|
-
name: `${errorCode}`,
|
|
1004
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
812
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
813
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1005
814
|
$fault: "client",
|
|
1006
815
|
$metadata: deserializeMetadata(output),
|
|
1007
|
-
};
|
|
816
|
+
});
|
|
817
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1008
818
|
}
|
|
1009
|
-
const message = response.message || response.Message || errorCode;
|
|
1010
|
-
response.message = message;
|
|
1011
|
-
delete response.Message;
|
|
1012
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1013
819
|
};
|
|
1014
820
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1015
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1033,43 +839,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1033
839
|
switch (errorCode) {
|
|
1034
840
|
case "ConcurrentModificationException":
|
|
1035
841
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
1036
|
-
|
|
1037
|
-
...(await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1038
|
-
name: errorCode,
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
};
|
|
1041
|
-
break;
|
|
842
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1042
843
|
case "ResourceNotFoundException":
|
|
1043
844
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
1044
|
-
|
|
1045
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1046
|
-
name: errorCode,
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
};
|
|
1049
|
-
break;
|
|
845
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1050
846
|
case "ValidationException":
|
|
1051
847
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1052
|
-
|
|
1053
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1054
|
-
name: errorCode,
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
};
|
|
1057
|
-
break;
|
|
848
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1058
849
|
default:
|
|
1059
850
|
const parsedBody = parsedOutput.body;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
...parsedBody,
|
|
1063
|
-
name: `${errorCode}`,
|
|
1064
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
851
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
852
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1065
853
|
$fault: "client",
|
|
1066
854
|
$metadata: deserializeMetadata(output),
|
|
1067
|
-
};
|
|
855
|
+
});
|
|
856
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1068
857
|
}
|
|
1069
|
-
const message = response.message || response.Message || errorCode;
|
|
1070
|
-
response.message = message;
|
|
1071
|
-
delete response.Message;
|
|
1072
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1073
858
|
};
|
|
1074
859
|
const deserializeAws_restJson1UpdateNotificationRuleCommand = async (output, context) => {
|
|
1075
860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1093,139 +878,115 @@ const deserializeAws_restJson1UpdateNotificationRuleCommandError = async (output
|
|
|
1093
878
|
switch (errorCode) {
|
|
1094
879
|
case "ResourceNotFoundException":
|
|
1095
880
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
1096
|
-
|
|
1097
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1098
|
-
name: errorCode,
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
};
|
|
1101
|
-
break;
|
|
881
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1102
882
|
case "ValidationException":
|
|
1103
883
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1104
|
-
|
|
1105
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1106
|
-
name: errorCode,
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
};
|
|
1109
|
-
break;
|
|
884
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1110
885
|
default:
|
|
1111
886
|
const parsedBody = parsedOutput.body;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
...parsedBody,
|
|
1115
|
-
name: `${errorCode}`,
|
|
1116
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
887
|
+
response = new CodestarNotificationsServiceException_1.CodestarNotificationsServiceException({
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1117
889
|
$fault: "client",
|
|
1118
890
|
$metadata: deserializeMetadata(output),
|
|
1119
|
-
};
|
|
891
|
+
});
|
|
892
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1120
893
|
}
|
|
1121
|
-
const message = response.message || response.Message || errorCode;
|
|
1122
|
-
response.message = message;
|
|
1123
|
-
delete response.Message;
|
|
1124
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1125
894
|
};
|
|
1126
895
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1127
|
-
const contents = {
|
|
1128
|
-
name: "AccessDeniedException",
|
|
1129
|
-
$fault: "client",
|
|
1130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1131
|
-
Message: undefined,
|
|
1132
|
-
};
|
|
896
|
+
const contents = {};
|
|
1133
897
|
const data = parsedOutput.body;
|
|
1134
898
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1135
899
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1136
900
|
}
|
|
1137
|
-
|
|
901
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
902
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
903
|
+
...contents,
|
|
904
|
+
});
|
|
905
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1138
906
|
};
|
|
1139
907
|
const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
1140
|
-
const contents = {
|
|
1141
|
-
name: "ConcurrentModificationException",
|
|
1142
|
-
$fault: "client",
|
|
1143
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1144
|
-
Message: undefined,
|
|
1145
|
-
};
|
|
908
|
+
const contents = {};
|
|
1146
909
|
const data = parsedOutput.body;
|
|
1147
910
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1148
911
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1149
912
|
}
|
|
1150
|
-
|
|
913
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
914
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
915
|
+
...contents,
|
|
916
|
+
});
|
|
917
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1151
918
|
};
|
|
1152
919
|
const deserializeAws_restJson1ConfigurationExceptionResponse = async (parsedOutput, context) => {
|
|
1153
|
-
const contents = {
|
|
1154
|
-
name: "ConfigurationException",
|
|
1155
|
-
$fault: "client",
|
|
1156
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1157
|
-
Message: undefined,
|
|
1158
|
-
};
|
|
920
|
+
const contents = {};
|
|
1159
921
|
const data = parsedOutput.body;
|
|
1160
922
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1161
923
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1162
924
|
}
|
|
1163
|
-
|
|
925
|
+
const exception = new models_0_1.ConfigurationException({
|
|
926
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
927
|
+
...contents,
|
|
928
|
+
});
|
|
929
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1164
930
|
};
|
|
1165
931
|
const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1166
|
-
const contents = {
|
|
1167
|
-
name: "InvalidNextTokenException",
|
|
1168
|
-
$fault: "client",
|
|
1169
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1170
|
-
Message: undefined,
|
|
1171
|
-
};
|
|
932
|
+
const contents = {};
|
|
1172
933
|
const data = parsedOutput.body;
|
|
1173
934
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1174
935
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1175
936
|
}
|
|
1176
|
-
|
|
937
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
938
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
939
|
+
...contents,
|
|
940
|
+
});
|
|
941
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1177
942
|
};
|
|
1178
943
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1179
|
-
const contents = {
|
|
1180
|
-
name: "LimitExceededException",
|
|
1181
|
-
$fault: "client",
|
|
1182
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1183
|
-
Message: undefined,
|
|
1184
|
-
};
|
|
944
|
+
const contents = {};
|
|
1185
945
|
const data = parsedOutput.body;
|
|
1186
946
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1187
947
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1188
948
|
}
|
|
1189
|
-
|
|
949
|
+
const exception = new models_0_1.LimitExceededException({
|
|
950
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
951
|
+
...contents,
|
|
952
|
+
});
|
|
953
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1190
954
|
};
|
|
1191
955
|
const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1192
|
-
const contents = {
|
|
1193
|
-
name: "ResourceAlreadyExistsException",
|
|
1194
|
-
$fault: "client",
|
|
1195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1196
|
-
Message: undefined,
|
|
1197
|
-
};
|
|
956
|
+
const contents = {};
|
|
1198
957
|
const data = parsedOutput.body;
|
|
1199
958
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1200
959
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1201
960
|
}
|
|
1202
|
-
|
|
961
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
962
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
963
|
+
...contents,
|
|
964
|
+
});
|
|
965
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1203
966
|
};
|
|
1204
967
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1205
|
-
const contents = {
|
|
1206
|
-
name: "ResourceNotFoundException",
|
|
1207
|
-
$fault: "client",
|
|
1208
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1209
|
-
Message: undefined,
|
|
1210
|
-
};
|
|
968
|
+
const contents = {};
|
|
1211
969
|
const data = parsedOutput.body;
|
|
1212
970
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1213
971
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1214
972
|
}
|
|
1215
|
-
|
|
973
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
974
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
975
|
+
...contents,
|
|
976
|
+
});
|
|
977
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1216
978
|
};
|
|
1217
979
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1218
|
-
const contents = {
|
|
1219
|
-
name: "ValidationException",
|
|
1220
|
-
$fault: "client",
|
|
1221
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
-
Message: undefined,
|
|
1223
|
-
};
|
|
980
|
+
const contents = {};
|
|
1224
981
|
const data = parsedOutput.body;
|
|
1225
982
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1226
983
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1227
984
|
}
|
|
1228
|
-
|
|
985
|
+
const exception = new models_0_1.ValidationException({
|
|
986
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
987
|
+
...contents,
|
|
988
|
+
});
|
|
989
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1229
990
|
};
|
|
1230
991
|
const serializeAws_restJson1EventTypeIds = (input, context) => {
|
|
1231
992
|
return input
|
|
@@ -1323,7 +1084,7 @@ const serializeAws_restJson1Targets = (input, context) => {
|
|
|
1323
1084
|
});
|
|
1324
1085
|
};
|
|
1325
1086
|
const deserializeAws_restJson1EventTypeBatch = (output, context) => {
|
|
1326
|
-
|
|
1087
|
+
const retVal = (output || [])
|
|
1327
1088
|
.filter((e) => e != null)
|
|
1328
1089
|
.map((entry) => {
|
|
1329
1090
|
if (entry === null) {
|
|
@@ -1331,6 +1092,7 @@ const deserializeAws_restJson1EventTypeBatch = (output, context) => {
|
|
|
1331
1092
|
}
|
|
1332
1093
|
return deserializeAws_restJson1EventTypeSummary(entry, context);
|
|
1333
1094
|
});
|
|
1095
|
+
return retVal;
|
|
1334
1096
|
};
|
|
1335
1097
|
const deserializeAws_restJson1EventTypeSummary = (output, context) => {
|
|
1336
1098
|
return {
|
|
@@ -1341,7 +1103,7 @@ const deserializeAws_restJson1EventTypeSummary = (output, context) => {
|
|
|
1341
1103
|
};
|
|
1342
1104
|
};
|
|
1343
1105
|
const deserializeAws_restJson1NotificationRuleBatch = (output, context) => {
|
|
1344
|
-
|
|
1106
|
+
const retVal = (output || [])
|
|
1345
1107
|
.filter((e) => e != null)
|
|
1346
1108
|
.map((entry) => {
|
|
1347
1109
|
if (entry === null) {
|
|
@@ -1349,6 +1111,7 @@ const deserializeAws_restJson1NotificationRuleBatch = (output, context) => {
|
|
|
1349
1111
|
}
|
|
1350
1112
|
return deserializeAws_restJson1NotificationRuleSummary(entry, context);
|
|
1351
1113
|
});
|
|
1114
|
+
return retVal;
|
|
1352
1115
|
};
|
|
1353
1116
|
const deserializeAws_restJson1NotificationRuleSummary = (output, context) => {
|
|
1354
1117
|
return {
|
|
@@ -1368,7 +1131,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
1368
1131
|
}, {});
|
|
1369
1132
|
};
|
|
1370
1133
|
const deserializeAws_restJson1TargetsBatch = (output, context) => {
|
|
1371
|
-
|
|
1134
|
+
const retVal = (output || [])
|
|
1372
1135
|
.filter((e) => e != null)
|
|
1373
1136
|
.map((entry) => {
|
|
1374
1137
|
if (entry === null) {
|
|
@@ -1376,6 +1139,7 @@ const deserializeAws_restJson1TargetsBatch = (output, context) => {
|
|
|
1376
1139
|
}
|
|
1377
1140
|
return deserializeAws_restJson1TargetSummary(entry, context);
|
|
1378
1141
|
});
|
|
1142
|
+
return retVal;
|
|
1379
1143
|
};
|
|
1380
1144
|
const deserializeAws_restJson1TargetSummary = (output, context) => {
|
|
1381
1145
|
return {
|