@aws-sdk/client-ssm-contacts 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +135 -228
- package/dist-es/protocols/Aws_json1_1.js +217 -229
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, ConflictException, DataEncryptionException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { SSMContactsServiceException as __BaseException } from "../models/SSMContactsServiceException";
|
|
@@ -320,7 +320,7 @@ export var deserializeAws_json1_1AcceptPageCommand = function (output, context)
|
|
|
320
320
|
});
|
|
321
321
|
}); };
|
|
322
322
|
var deserializeAws_json1_1AcceptPageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
-
var parsedOutput, _a,
|
|
323
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
324
324
|
var _c;
|
|
325
325
|
return __generator(this, function (_d) {
|
|
326
326
|
switch (_d.label) {
|
|
@@ -357,14 +357,14 @@ var deserializeAws_json1_1AcceptPageCommandError = function (output, context) {
|
|
|
357
357
|
case 11: throw _d.sent();
|
|
358
358
|
case 12:
|
|
359
359
|
parsedBody = parsedOutput.body;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
$metadata: $metadata,
|
|
360
|
+
throwDefaultError({
|
|
361
|
+
output: output,
|
|
362
|
+
parsedBody: parsedBody,
|
|
363
|
+
exceptionCtor: __BaseException,
|
|
364
|
+
errorCode: errorCode,
|
|
366
365
|
});
|
|
367
|
-
|
|
366
|
+
_d.label = 13;
|
|
367
|
+
case 13: return [2];
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
370
|
}); };
|
|
@@ -387,7 +387,7 @@ export var deserializeAws_json1_1ActivateContactChannelCommand = function (outpu
|
|
|
387
387
|
});
|
|
388
388
|
}); };
|
|
389
389
|
var deserializeAws_json1_1ActivateContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
390
|
-
var parsedOutput, _a,
|
|
390
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
391
391
|
var _c;
|
|
392
392
|
return __generator(this, function (_d) {
|
|
393
393
|
switch (_d.label) {
|
|
@@ -424,14 +424,14 @@ var deserializeAws_json1_1ActivateContactChannelCommandError = function (output,
|
|
|
424
424
|
case 11: throw _d.sent();
|
|
425
425
|
case 12:
|
|
426
426
|
parsedBody = parsedOutput.body;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
$metadata: $metadata,
|
|
427
|
+
throwDefaultError({
|
|
428
|
+
output: output,
|
|
429
|
+
parsedBody: parsedBody,
|
|
430
|
+
exceptionCtor: __BaseException,
|
|
431
|
+
errorCode: errorCode,
|
|
433
432
|
});
|
|
434
|
-
|
|
433
|
+
_d.label = 13;
|
|
434
|
+
case 13: return [2];
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}); };
|
|
@@ -454,7 +454,7 @@ export var deserializeAws_json1_1CreateContactCommand = function (output, contex
|
|
|
454
454
|
});
|
|
455
455
|
}); };
|
|
456
456
|
var deserializeAws_json1_1CreateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
457
|
-
var parsedOutput, _a,
|
|
457
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
458
458
|
var _c;
|
|
459
459
|
return __generator(this, function (_d) {
|
|
460
460
|
switch (_d.label) {
|
|
@@ -499,14 +499,14 @@ var deserializeAws_json1_1CreateContactCommandError = function (output, context)
|
|
|
499
499
|
case 15: throw _d.sent();
|
|
500
500
|
case 16:
|
|
501
501
|
parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
$metadata: $metadata,
|
|
502
|
+
throwDefaultError({
|
|
503
|
+
output: output,
|
|
504
|
+
parsedBody: parsedBody,
|
|
505
|
+
exceptionCtor: __BaseException,
|
|
506
|
+
errorCode: errorCode,
|
|
508
507
|
});
|
|
509
|
-
|
|
508
|
+
_d.label = 17;
|
|
509
|
+
case 17: return [2];
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
}); };
|
|
@@ -529,7 +529,7 @@ export var deserializeAws_json1_1CreateContactChannelCommand = function (output,
|
|
|
529
529
|
});
|
|
530
530
|
}); };
|
|
531
531
|
var deserializeAws_json1_1CreateContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
532
|
-
var parsedOutput, _a,
|
|
532
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
533
533
|
var _c;
|
|
534
534
|
return __generator(this, function (_d) {
|
|
535
535
|
switch (_d.label) {
|
|
@@ -570,14 +570,14 @@ var deserializeAws_json1_1CreateContactChannelCommandError = function (output, c
|
|
|
570
570
|
case 13: throw _d.sent();
|
|
571
571
|
case 14:
|
|
572
572
|
parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
$metadata: $metadata,
|
|
573
|
+
throwDefaultError({
|
|
574
|
+
output: output,
|
|
575
|
+
parsedBody: parsedBody,
|
|
576
|
+
exceptionCtor: __BaseException,
|
|
577
|
+
errorCode: errorCode,
|
|
579
578
|
});
|
|
580
|
-
|
|
579
|
+
_d.label = 15;
|
|
580
|
+
case 15: return [2];
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
}); };
|
|
@@ -600,7 +600,7 @@ export var deserializeAws_json1_1DeactivateContactChannelCommand = function (out
|
|
|
600
600
|
});
|
|
601
601
|
}); };
|
|
602
602
|
var deserializeAws_json1_1DeactivateContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
-
var parsedOutput, _a,
|
|
603
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
604
604
|
var _c;
|
|
605
605
|
return __generator(this, function (_d) {
|
|
606
606
|
switch (_d.label) {
|
|
@@ -637,14 +637,14 @@ var deserializeAws_json1_1DeactivateContactChannelCommandError = function (outpu
|
|
|
637
637
|
case 11: throw _d.sent();
|
|
638
638
|
case 12:
|
|
639
639
|
parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
$metadata: $metadata,
|
|
640
|
+
throwDefaultError({
|
|
641
|
+
output: output,
|
|
642
|
+
parsedBody: parsedBody,
|
|
643
|
+
exceptionCtor: __BaseException,
|
|
644
|
+
errorCode: errorCode,
|
|
646
645
|
});
|
|
647
|
-
|
|
646
|
+
_d.label = 13;
|
|
647
|
+
case 13: return [2];
|
|
648
648
|
}
|
|
649
649
|
});
|
|
650
650
|
}); };
|
|
@@ -667,7 +667,7 @@ export var deserializeAws_json1_1DeleteContactCommand = function (output, contex
|
|
|
667
667
|
});
|
|
668
668
|
}); };
|
|
669
669
|
var deserializeAws_json1_1DeleteContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
670
|
-
var parsedOutput, _a,
|
|
670
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
671
671
|
var _c;
|
|
672
672
|
return __generator(this, function (_d) {
|
|
673
673
|
switch (_d.label) {
|
|
@@ -704,14 +704,14 @@ var deserializeAws_json1_1DeleteContactCommandError = function (output, context)
|
|
|
704
704
|
case 11: throw _d.sent();
|
|
705
705
|
case 12:
|
|
706
706
|
parsedBody = parsedOutput.body;
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
$metadata: $metadata,
|
|
707
|
+
throwDefaultError({
|
|
708
|
+
output: output,
|
|
709
|
+
parsedBody: parsedBody,
|
|
710
|
+
exceptionCtor: __BaseException,
|
|
711
|
+
errorCode: errorCode,
|
|
713
712
|
});
|
|
714
|
-
|
|
713
|
+
_d.label = 13;
|
|
714
|
+
case 13: return [2];
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
717
|
}); };
|
|
@@ -734,7 +734,7 @@ export var deserializeAws_json1_1DeleteContactChannelCommand = function (output,
|
|
|
734
734
|
});
|
|
735
735
|
}); };
|
|
736
736
|
var deserializeAws_json1_1DeleteContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
737
|
-
var parsedOutput, _a,
|
|
737
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
738
738
|
var _c;
|
|
739
739
|
return __generator(this, function (_d) {
|
|
740
740
|
switch (_d.label) {
|
|
@@ -771,14 +771,14 @@ var deserializeAws_json1_1DeleteContactChannelCommandError = function (output, c
|
|
|
771
771
|
case 11: throw _d.sent();
|
|
772
772
|
case 12:
|
|
773
773
|
parsedBody = parsedOutput.body;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
$metadata: $metadata,
|
|
774
|
+
throwDefaultError({
|
|
775
|
+
output: output,
|
|
776
|
+
parsedBody: parsedBody,
|
|
777
|
+
exceptionCtor: __BaseException,
|
|
778
|
+
errorCode: errorCode,
|
|
780
779
|
});
|
|
781
|
-
|
|
780
|
+
_d.label = 13;
|
|
781
|
+
case 13: return [2];
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}); };
|
|
@@ -801,7 +801,7 @@ export var deserializeAws_json1_1DescribeEngagementCommand = function (output, c
|
|
|
801
801
|
});
|
|
802
802
|
}); };
|
|
803
803
|
var deserializeAws_json1_1DescribeEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
804
|
-
var parsedOutput, _a,
|
|
804
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
805
805
|
var _c;
|
|
806
806
|
return __generator(this, function (_d) {
|
|
807
807
|
switch (_d.label) {
|
|
@@ -842,14 +842,14 @@ var deserializeAws_json1_1DescribeEngagementCommandError = function (output, con
|
|
|
842
842
|
case 13: throw _d.sent();
|
|
843
843
|
case 14:
|
|
844
844
|
parsedBody = parsedOutput.body;
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
$metadata: $metadata,
|
|
845
|
+
throwDefaultError({
|
|
846
|
+
output: output,
|
|
847
|
+
parsedBody: parsedBody,
|
|
848
|
+
exceptionCtor: __BaseException,
|
|
849
|
+
errorCode: errorCode,
|
|
851
850
|
});
|
|
852
|
-
|
|
851
|
+
_d.label = 15;
|
|
852
|
+
case 15: return [2];
|
|
853
853
|
}
|
|
854
854
|
});
|
|
855
855
|
}); };
|
|
@@ -872,7 +872,7 @@ export var deserializeAws_json1_1DescribePageCommand = function (output, context
|
|
|
872
872
|
});
|
|
873
873
|
}); };
|
|
874
874
|
var deserializeAws_json1_1DescribePageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
875
|
-
var parsedOutput, _a,
|
|
875
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
876
876
|
var _c;
|
|
877
877
|
return __generator(this, function (_d) {
|
|
878
878
|
switch (_d.label) {
|
|
@@ -913,14 +913,14 @@ var deserializeAws_json1_1DescribePageCommandError = function (output, context)
|
|
|
913
913
|
case 13: throw _d.sent();
|
|
914
914
|
case 14:
|
|
915
915
|
parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
$metadata: $metadata,
|
|
916
|
+
throwDefaultError({
|
|
917
|
+
output: output,
|
|
918
|
+
parsedBody: parsedBody,
|
|
919
|
+
exceptionCtor: __BaseException,
|
|
920
|
+
errorCode: errorCode,
|
|
922
921
|
});
|
|
923
|
-
|
|
922
|
+
_d.label = 15;
|
|
923
|
+
case 15: return [2];
|
|
924
924
|
}
|
|
925
925
|
});
|
|
926
926
|
}); };
|
|
@@ -943,7 +943,7 @@ export var deserializeAws_json1_1GetContactCommand = function (output, context)
|
|
|
943
943
|
});
|
|
944
944
|
}); };
|
|
945
945
|
var deserializeAws_json1_1GetContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
946
|
-
var parsedOutput, _a,
|
|
946
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
947
947
|
var _c;
|
|
948
948
|
return __generator(this, function (_d) {
|
|
949
949
|
switch (_d.label) {
|
|
@@ -984,14 +984,14 @@ var deserializeAws_json1_1GetContactCommandError = function (output, context) {
|
|
|
984
984
|
case 13: throw _d.sent();
|
|
985
985
|
case 14:
|
|
986
986
|
parsedBody = parsedOutput.body;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
$metadata: $metadata,
|
|
987
|
+
throwDefaultError({
|
|
988
|
+
output: output,
|
|
989
|
+
parsedBody: parsedBody,
|
|
990
|
+
exceptionCtor: __BaseException,
|
|
991
|
+
errorCode: errorCode,
|
|
993
992
|
});
|
|
994
|
-
|
|
993
|
+
_d.label = 15;
|
|
994
|
+
case 15: return [2];
|
|
995
995
|
}
|
|
996
996
|
});
|
|
997
997
|
}); };
|
|
@@ -1014,7 +1014,7 @@ export var deserializeAws_json1_1GetContactChannelCommand = function (output, co
|
|
|
1014
1014
|
});
|
|
1015
1015
|
}); };
|
|
1016
1016
|
var deserializeAws_json1_1GetContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1017
|
-
var parsedOutput, _a,
|
|
1017
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1018
1018
|
var _c;
|
|
1019
1019
|
return __generator(this, function (_d) {
|
|
1020
1020
|
switch (_d.label) {
|
|
@@ -1055,14 +1055,14 @@ var deserializeAws_json1_1GetContactChannelCommandError = function (output, cont
|
|
|
1055
1055
|
case 13: throw _d.sent();
|
|
1056
1056
|
case 14:
|
|
1057
1057
|
parsedBody = parsedOutput.body;
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
$metadata: $metadata,
|
|
1058
|
+
throwDefaultError({
|
|
1059
|
+
output: output,
|
|
1060
|
+
parsedBody: parsedBody,
|
|
1061
|
+
exceptionCtor: __BaseException,
|
|
1062
|
+
errorCode: errorCode,
|
|
1064
1063
|
});
|
|
1065
|
-
|
|
1064
|
+
_d.label = 15;
|
|
1065
|
+
case 15: return [2];
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
1068
|
}); };
|
|
@@ -1085,7 +1085,7 @@ export var deserializeAws_json1_1GetContactPolicyCommand = function (output, con
|
|
|
1085
1085
|
});
|
|
1086
1086
|
}); };
|
|
1087
1087
|
var deserializeAws_json1_1GetContactPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1088
|
-
var parsedOutput, _a,
|
|
1088
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1089
1089
|
var _c;
|
|
1090
1090
|
return __generator(this, function (_d) {
|
|
1091
1091
|
switch (_d.label) {
|
|
@@ -1122,14 +1122,14 @@ var deserializeAws_json1_1GetContactPolicyCommandError = function (output, conte
|
|
|
1122
1122
|
case 11: throw _d.sent();
|
|
1123
1123
|
case 12:
|
|
1124
1124
|
parsedBody = parsedOutput.body;
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
$metadata: $metadata,
|
|
1125
|
+
throwDefaultError({
|
|
1126
|
+
output: output,
|
|
1127
|
+
parsedBody: parsedBody,
|
|
1128
|
+
exceptionCtor: __BaseException,
|
|
1129
|
+
errorCode: errorCode,
|
|
1131
1130
|
});
|
|
1132
|
-
|
|
1131
|
+
_d.label = 13;
|
|
1132
|
+
case 13: return [2];
|
|
1133
1133
|
}
|
|
1134
1134
|
});
|
|
1135
1135
|
}); };
|
|
@@ -1152,7 +1152,7 @@ export var deserializeAws_json1_1ListContactChannelsCommand = function (output,
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}); };
|
|
1154
1154
|
var deserializeAws_json1_1ListContactChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1155
|
-
var parsedOutput, _a,
|
|
1155
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1156
1156
|
var _c;
|
|
1157
1157
|
return __generator(this, function (_d) {
|
|
1158
1158
|
switch (_d.label) {
|
|
@@ -1193,14 +1193,14 @@ var deserializeAws_json1_1ListContactChannelsCommandError = function (output, co
|
|
|
1193
1193
|
case 13: throw _d.sent();
|
|
1194
1194
|
case 14:
|
|
1195
1195
|
parsedBody = parsedOutput.body;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
$metadata: $metadata,
|
|
1196
|
+
throwDefaultError({
|
|
1197
|
+
output: output,
|
|
1198
|
+
parsedBody: parsedBody,
|
|
1199
|
+
exceptionCtor: __BaseException,
|
|
1200
|
+
errorCode: errorCode,
|
|
1202
1201
|
});
|
|
1203
|
-
|
|
1202
|
+
_d.label = 15;
|
|
1203
|
+
case 15: return [2];
|
|
1204
1204
|
}
|
|
1205
1205
|
});
|
|
1206
1206
|
}); };
|
|
@@ -1223,7 +1223,7 @@ export var deserializeAws_json1_1ListContactsCommand = function (output, context
|
|
|
1223
1223
|
});
|
|
1224
1224
|
}); };
|
|
1225
1225
|
var deserializeAws_json1_1ListContactsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1226
|
-
var parsedOutput, _a,
|
|
1226
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1227
1227
|
var _c;
|
|
1228
1228
|
return __generator(this, function (_d) {
|
|
1229
1229
|
switch (_d.label) {
|
|
@@ -1256,14 +1256,14 @@ var deserializeAws_json1_1ListContactsCommandError = function (output, context)
|
|
|
1256
1256
|
case 9: throw _d.sent();
|
|
1257
1257
|
case 10:
|
|
1258
1258
|
parsedBody = parsedOutput.body;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
$metadata: $metadata,
|
|
1259
|
+
throwDefaultError({
|
|
1260
|
+
output: output,
|
|
1261
|
+
parsedBody: parsedBody,
|
|
1262
|
+
exceptionCtor: __BaseException,
|
|
1263
|
+
errorCode: errorCode,
|
|
1265
1264
|
});
|
|
1266
|
-
|
|
1265
|
+
_d.label = 11;
|
|
1266
|
+
case 11: return [2];
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
1269
1269
|
}); };
|
|
@@ -1286,7 +1286,7 @@ export var deserializeAws_json1_1ListEngagementsCommand = function (output, cont
|
|
|
1286
1286
|
});
|
|
1287
1287
|
}); };
|
|
1288
1288
|
var deserializeAws_json1_1ListEngagementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1289
|
-
var parsedOutput, _a,
|
|
1289
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1290
1290
|
var _c;
|
|
1291
1291
|
return __generator(this, function (_d) {
|
|
1292
1292
|
switch (_d.label) {
|
|
@@ -1319,14 +1319,14 @@ var deserializeAws_json1_1ListEngagementsCommandError = function (output, contex
|
|
|
1319
1319
|
case 9: throw _d.sent();
|
|
1320
1320
|
case 10:
|
|
1321
1321
|
parsedBody = parsedOutput.body;
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
$metadata: $metadata,
|
|
1322
|
+
throwDefaultError({
|
|
1323
|
+
output: output,
|
|
1324
|
+
parsedBody: parsedBody,
|
|
1325
|
+
exceptionCtor: __BaseException,
|
|
1326
|
+
errorCode: errorCode,
|
|
1328
1327
|
});
|
|
1329
|
-
|
|
1328
|
+
_d.label = 11;
|
|
1329
|
+
case 11: return [2];
|
|
1330
1330
|
}
|
|
1331
1331
|
});
|
|
1332
1332
|
}); };
|
|
@@ -1349,7 +1349,7 @@ export var deserializeAws_json1_1ListPageReceiptsCommand = function (output, con
|
|
|
1349
1349
|
});
|
|
1350
1350
|
}); };
|
|
1351
1351
|
var deserializeAws_json1_1ListPageReceiptsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1352
|
-
var parsedOutput, _a,
|
|
1352
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1353
1353
|
var _c;
|
|
1354
1354
|
return __generator(this, function (_d) {
|
|
1355
1355
|
switch (_d.label) {
|
|
@@ -1386,14 +1386,14 @@ var deserializeAws_json1_1ListPageReceiptsCommandError = function (output, conte
|
|
|
1386
1386
|
case 11: throw _d.sent();
|
|
1387
1387
|
case 12:
|
|
1388
1388
|
parsedBody = parsedOutput.body;
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
$metadata: $metadata,
|
|
1389
|
+
throwDefaultError({
|
|
1390
|
+
output: output,
|
|
1391
|
+
parsedBody: parsedBody,
|
|
1392
|
+
exceptionCtor: __BaseException,
|
|
1393
|
+
errorCode: errorCode,
|
|
1395
1394
|
});
|
|
1396
|
-
|
|
1395
|
+
_d.label = 13;
|
|
1396
|
+
case 13: return [2];
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
1399
|
}); };
|
|
@@ -1416,7 +1416,7 @@ export var deserializeAws_json1_1ListPagesByContactCommand = function (output, c
|
|
|
1416
1416
|
});
|
|
1417
1417
|
}); };
|
|
1418
1418
|
var deserializeAws_json1_1ListPagesByContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1419
|
-
var parsedOutput, _a,
|
|
1419
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1420
1420
|
var _c;
|
|
1421
1421
|
return __generator(this, function (_d) {
|
|
1422
1422
|
switch (_d.label) {
|
|
@@ -1453,14 +1453,14 @@ var deserializeAws_json1_1ListPagesByContactCommandError = function (output, con
|
|
|
1453
1453
|
case 11: throw _d.sent();
|
|
1454
1454
|
case 12:
|
|
1455
1455
|
parsedBody = parsedOutput.body;
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
$metadata: $metadata,
|
|
1456
|
+
throwDefaultError({
|
|
1457
|
+
output: output,
|
|
1458
|
+
parsedBody: parsedBody,
|
|
1459
|
+
exceptionCtor: __BaseException,
|
|
1460
|
+
errorCode: errorCode,
|
|
1462
1461
|
});
|
|
1463
|
-
|
|
1462
|
+
_d.label = 13;
|
|
1463
|
+
case 13: return [2];
|
|
1464
1464
|
}
|
|
1465
1465
|
});
|
|
1466
1466
|
}); };
|
|
@@ -1483,7 +1483,7 @@ export var deserializeAws_json1_1ListPagesByEngagementCommand = function (output
|
|
|
1483
1483
|
});
|
|
1484
1484
|
}); };
|
|
1485
1485
|
var deserializeAws_json1_1ListPagesByEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
|
-
var parsedOutput, _a,
|
|
1486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1487
1487
|
var _c;
|
|
1488
1488
|
return __generator(this, function (_d) {
|
|
1489
1489
|
switch (_d.label) {
|
|
@@ -1520,14 +1520,14 @@ var deserializeAws_json1_1ListPagesByEngagementCommandError = function (output,
|
|
|
1520
1520
|
case 11: throw _d.sent();
|
|
1521
1521
|
case 12:
|
|
1522
1522
|
parsedBody = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
$metadata: $metadata,
|
|
1523
|
+
throwDefaultError({
|
|
1524
|
+
output: output,
|
|
1525
|
+
parsedBody: parsedBody,
|
|
1526
|
+
exceptionCtor: __BaseException,
|
|
1527
|
+
errorCode: errorCode,
|
|
1529
1528
|
});
|
|
1530
|
-
|
|
1529
|
+
_d.label = 13;
|
|
1530
|
+
case 13: return [2];
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
}); };
|
|
@@ -1550,7 +1550,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1550
1550
|
});
|
|
1551
1551
|
}); };
|
|
1552
1552
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1553
|
-
var parsedOutput, _a,
|
|
1553
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1554
1554
|
var _c;
|
|
1555
1555
|
return __generator(this, function (_d) {
|
|
1556
1556
|
switch (_d.label) {
|
|
@@ -1587,14 +1587,14 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1587
1587
|
case 11: throw _d.sent();
|
|
1588
1588
|
case 12:
|
|
1589
1589
|
parsedBody = parsedOutput.body;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
$metadata: $metadata,
|
|
1590
|
+
throwDefaultError({
|
|
1591
|
+
output: output,
|
|
1592
|
+
parsedBody: parsedBody,
|
|
1593
|
+
exceptionCtor: __BaseException,
|
|
1594
|
+
errorCode: errorCode,
|
|
1596
1595
|
});
|
|
1597
|
-
|
|
1596
|
+
_d.label = 13;
|
|
1597
|
+
case 13: return [2];
|
|
1598
1598
|
}
|
|
1599
1599
|
});
|
|
1600
1600
|
}); };
|
|
@@ -1617,7 +1617,7 @@ export var deserializeAws_json1_1PutContactPolicyCommand = function (output, con
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}); };
|
|
1619
1619
|
var deserializeAws_json1_1PutContactPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1620
|
-
var parsedOutput, _a,
|
|
1620
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1621
1621
|
var _c;
|
|
1622
1622
|
return __generator(this, function (_d) {
|
|
1623
1623
|
switch (_d.label) {
|
|
@@ -1658,14 +1658,14 @@ var deserializeAws_json1_1PutContactPolicyCommandError = function (output, conte
|
|
|
1658
1658
|
case 13: throw _d.sent();
|
|
1659
1659
|
case 14:
|
|
1660
1660
|
parsedBody = parsedOutput.body;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
$metadata: $metadata,
|
|
1661
|
+
throwDefaultError({
|
|
1662
|
+
output: output,
|
|
1663
|
+
parsedBody: parsedBody,
|
|
1664
|
+
exceptionCtor: __BaseException,
|
|
1665
|
+
errorCode: errorCode,
|
|
1667
1666
|
});
|
|
1668
|
-
|
|
1667
|
+
_d.label = 15;
|
|
1668
|
+
case 15: return [2];
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
}); };
|
|
@@ -1688,7 +1688,7 @@ export var deserializeAws_json1_1SendActivationCodeCommand = function (output, c
|
|
|
1688
1688
|
});
|
|
1689
1689
|
}); };
|
|
1690
1690
|
var deserializeAws_json1_1SendActivationCodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1691
|
-
var parsedOutput, _a,
|
|
1691
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1692
1692
|
var _c;
|
|
1693
1693
|
return __generator(this, function (_d) {
|
|
1694
1694
|
switch (_d.label) {
|
|
@@ -1733,14 +1733,14 @@ var deserializeAws_json1_1SendActivationCodeCommandError = function (output, con
|
|
|
1733
1733
|
case 15: throw _d.sent();
|
|
1734
1734
|
case 16:
|
|
1735
1735
|
parsedBody = parsedOutput.body;
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
$metadata: $metadata,
|
|
1736
|
+
throwDefaultError({
|
|
1737
|
+
output: output,
|
|
1738
|
+
parsedBody: parsedBody,
|
|
1739
|
+
exceptionCtor: __BaseException,
|
|
1740
|
+
errorCode: errorCode,
|
|
1742
1741
|
});
|
|
1743
|
-
|
|
1742
|
+
_d.label = 17;
|
|
1743
|
+
case 17: return [2];
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
1746
1746
|
}); };
|
|
@@ -1763,7 +1763,7 @@ export var deserializeAws_json1_1StartEngagementCommand = function (output, cont
|
|
|
1763
1763
|
});
|
|
1764
1764
|
}); };
|
|
1765
1765
|
var deserializeAws_json1_1StartEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1766
|
-
var parsedOutput, _a,
|
|
1766
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1767
1767
|
var _c;
|
|
1768
1768
|
return __generator(this, function (_d) {
|
|
1769
1769
|
switch (_d.label) {
|
|
@@ -1804,14 +1804,14 @@ var deserializeAws_json1_1StartEngagementCommandError = function (output, contex
|
|
|
1804
1804
|
case 13: throw _d.sent();
|
|
1805
1805
|
case 14:
|
|
1806
1806
|
parsedBody = parsedOutput.body;
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
$metadata: $metadata,
|
|
1807
|
+
throwDefaultError({
|
|
1808
|
+
output: output,
|
|
1809
|
+
parsedBody: parsedBody,
|
|
1810
|
+
exceptionCtor: __BaseException,
|
|
1811
|
+
errorCode: errorCode,
|
|
1813
1812
|
});
|
|
1814
|
-
|
|
1813
|
+
_d.label = 15;
|
|
1814
|
+
case 15: return [2];
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
1817
|
}); };
|
|
@@ -1834,7 +1834,7 @@ export var deserializeAws_json1_1StopEngagementCommand = function (output, conte
|
|
|
1834
1834
|
});
|
|
1835
1835
|
}); };
|
|
1836
1836
|
var deserializeAws_json1_1StopEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1837
|
-
var parsedOutput, _a,
|
|
1837
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1838
1838
|
var _c;
|
|
1839
1839
|
return __generator(this, function (_d) {
|
|
1840
1840
|
switch (_d.label) {
|
|
@@ -1871,14 +1871,14 @@ var deserializeAws_json1_1StopEngagementCommandError = function (output, context
|
|
|
1871
1871
|
case 11: throw _d.sent();
|
|
1872
1872
|
case 12:
|
|
1873
1873
|
parsedBody = parsedOutput.body;
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
$metadata: $metadata,
|
|
1874
|
+
throwDefaultError({
|
|
1875
|
+
output: output,
|
|
1876
|
+
parsedBody: parsedBody,
|
|
1877
|
+
exceptionCtor: __BaseException,
|
|
1878
|
+
errorCode: errorCode,
|
|
1880
1879
|
});
|
|
1881
|
-
|
|
1880
|
+
_d.label = 13;
|
|
1881
|
+
case 13: return [2];
|
|
1882
1882
|
}
|
|
1883
1883
|
});
|
|
1884
1884
|
}); };
|
|
@@ -1901,7 +1901,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
1901
1901
|
});
|
|
1902
1902
|
}); };
|
|
1903
1903
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1904
|
-
var parsedOutput, _a,
|
|
1904
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1905
1905
|
var _c;
|
|
1906
1906
|
return __generator(this, function (_d) {
|
|
1907
1907
|
switch (_d.label) {
|
|
@@ -1942,14 +1942,14 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1942
1942
|
case 13: throw _d.sent();
|
|
1943
1943
|
case 14:
|
|
1944
1944
|
parsedBody = parsedOutput.body;
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
$metadata: $metadata,
|
|
1945
|
+
throwDefaultError({
|
|
1946
|
+
output: output,
|
|
1947
|
+
parsedBody: parsedBody,
|
|
1948
|
+
exceptionCtor: __BaseException,
|
|
1949
|
+
errorCode: errorCode,
|
|
1951
1950
|
});
|
|
1952
|
-
|
|
1951
|
+
_d.label = 15;
|
|
1952
|
+
case 15: return [2];
|
|
1953
1953
|
}
|
|
1954
1954
|
});
|
|
1955
1955
|
}); };
|
|
@@ -1972,7 +1972,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
1972
1972
|
});
|
|
1973
1973
|
}); };
|
|
1974
1974
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1975
|
-
var parsedOutput, _a,
|
|
1975
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1976
1976
|
var _c;
|
|
1977
1977
|
return __generator(this, function (_d) {
|
|
1978
1978
|
switch (_d.label) {
|
|
@@ -2009,14 +2009,14 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2009
2009
|
case 11: throw _d.sent();
|
|
2010
2010
|
case 12:
|
|
2011
2011
|
parsedBody = parsedOutput.body;
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
$metadata: $metadata,
|
|
2012
|
+
throwDefaultError({
|
|
2013
|
+
output: output,
|
|
2014
|
+
parsedBody: parsedBody,
|
|
2015
|
+
exceptionCtor: __BaseException,
|
|
2016
|
+
errorCode: errorCode,
|
|
2018
2017
|
});
|
|
2019
|
-
|
|
2018
|
+
_d.label = 13;
|
|
2019
|
+
case 13: return [2];
|
|
2020
2020
|
}
|
|
2021
2021
|
});
|
|
2022
2022
|
}); };
|
|
@@ -2039,7 +2039,7 @@ export var deserializeAws_json1_1UpdateContactCommand = function (output, contex
|
|
|
2039
2039
|
});
|
|
2040
2040
|
}); };
|
|
2041
2041
|
var deserializeAws_json1_1UpdateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2042
|
-
var parsedOutput, _a,
|
|
2042
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2043
2043
|
var _c;
|
|
2044
2044
|
return __generator(this, function (_d) {
|
|
2045
2045
|
switch (_d.label) {
|
|
@@ -2084,14 +2084,14 @@ var deserializeAws_json1_1UpdateContactCommandError = function (output, context)
|
|
|
2084
2084
|
case 15: throw _d.sent();
|
|
2085
2085
|
case 16:
|
|
2086
2086
|
parsedBody = parsedOutput.body;
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
$metadata: $metadata,
|
|
2087
|
+
throwDefaultError({
|
|
2088
|
+
output: output,
|
|
2089
|
+
parsedBody: parsedBody,
|
|
2090
|
+
exceptionCtor: __BaseException,
|
|
2091
|
+
errorCode: errorCode,
|
|
2093
2092
|
});
|
|
2094
|
-
|
|
2093
|
+
_d.label = 17;
|
|
2094
|
+
case 17: return [2];
|
|
2095
2095
|
}
|
|
2096
2096
|
});
|
|
2097
2097
|
}); };
|
|
@@ -2114,7 +2114,7 @@ export var deserializeAws_json1_1UpdateContactChannelCommand = function (output,
|
|
|
2114
2114
|
});
|
|
2115
2115
|
}); };
|
|
2116
2116
|
var deserializeAws_json1_1UpdateContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2117
|
-
var parsedOutput, _a,
|
|
2117
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2118
2118
|
var _c;
|
|
2119
2119
|
return __generator(this, function (_d) {
|
|
2120
2120
|
switch (_d.label) {
|
|
@@ -2159,14 +2159,14 @@ var deserializeAws_json1_1UpdateContactChannelCommandError = function (output, c
|
|
|
2159
2159
|
case 15: throw _d.sent();
|
|
2160
2160
|
case 16:
|
|
2161
2161
|
parsedBody = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
$metadata: $metadata,
|
|
2162
|
+
throwDefaultError({
|
|
2163
|
+
output: output,
|
|
2164
|
+
parsedBody: parsedBody,
|
|
2165
|
+
exceptionCtor: __BaseException,
|
|
2166
|
+
errorCode: errorCode,
|
|
2168
2167
|
});
|
|
2169
|
-
|
|
2168
|
+
_d.label = 17;
|
|
2169
|
+
case 17: return [2];
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
2172
2172
|
}); };
|
|
@@ -2330,9 +2330,6 @@ var serializeAws_json1_1StagesList = function (input, context) {
|
|
|
2330
2330
|
return input
|
|
2331
2331
|
.filter(function (e) { return e != null; })
|
|
2332
2332
|
.map(function (entry) {
|
|
2333
|
-
if (entry === null) {
|
|
2334
|
-
return null;
|
|
2335
|
-
}
|
|
2336
2333
|
return serializeAws_json1_1Stage(entry, context);
|
|
2337
2334
|
});
|
|
2338
2335
|
};
|
|
@@ -2350,9 +2347,6 @@ var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
|
2350
2347
|
return input
|
|
2351
2348
|
.filter(function (e) { return e != null; })
|
|
2352
2349
|
.map(function (entry) {
|
|
2353
|
-
if (entry === null) {
|
|
2354
|
-
return null;
|
|
2355
|
-
}
|
|
2356
2350
|
return entry;
|
|
2357
2351
|
});
|
|
2358
2352
|
};
|
|
@@ -2363,9 +2357,6 @@ var serializeAws_json1_1TagsList = function (input, context) {
|
|
|
2363
2357
|
return input
|
|
2364
2358
|
.filter(function (e) { return e != null; })
|
|
2365
2359
|
.map(function (entry) {
|
|
2366
|
-
if (entry === null) {
|
|
2367
|
-
return null;
|
|
2368
|
-
}
|
|
2369
2360
|
return serializeAws_json1_1Tag(entry, context);
|
|
2370
2361
|
});
|
|
2371
2362
|
};
|
|
@@ -2380,9 +2371,6 @@ var serializeAws_json1_1TargetsList = function (input, context) {
|
|
|
2380
2371
|
return input
|
|
2381
2372
|
.filter(function (e) { return e != null; })
|
|
2382
2373
|
.map(function (entry) {
|
|
2383
|
-
if (entry === null) {
|
|
2384
|
-
return null;
|
|
2385
|
-
}
|
|
2386
2374
|
return serializeAws_json1_1Target(entry, context);
|
|
2387
2375
|
});
|
|
2388
2376
|
};
|