@aws-sdk/client-workmail 3.118.1 → 3.128.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 +28 -0
- package/dist-cjs/WorkMail.js +75 -0
- package/dist-cjs/commands/CreateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAvailabilityConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/TestAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +106 -12
- package/dist-cjs/pagination/ListAvailabilityConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1023 -710
- package/dist-es/WorkMail.js +75 -0
- package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +39 -0
- package/dist-es/commands/TestAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +69 -8
- package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +944 -573
- package/dist-types/WorkMail.d.ts +43 -0
- package/dist-types/WorkMailClient.d.ts +7 -2
- package/dist-types/commands/CreateAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListAvailabilityConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/TestAvailabilityConfigurationCommand.d.ts +42 -0
- package/dist-types/commands/UpdateAvailabilityConfigurationCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +286 -12
- package/dist-types/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/WorkMail.d.ts +25 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailabilityConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TestAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +168 -8
- package/dist-types/ts3.4/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +26 -26
|
@@ -48,6 +48,17 @@ export var serializeAws_json1_1CreateAliasCommand = function (input, context) {
|
|
|
48
48
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
49
49
|
});
|
|
50
50
|
}); };
|
|
51
|
+
export var serializeAws_json1_1CreateAvailabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
+
var headers, body;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
headers = {
|
|
55
|
+
"content-type": "application/x-amz-json-1.1",
|
|
56
|
+
"x-amz-target": "WorkMailService.CreateAvailabilityConfiguration",
|
|
57
|
+
};
|
|
58
|
+
body = JSON.stringify(serializeAws_json1_1CreateAvailabilityConfigurationRequest(input, context));
|
|
59
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
60
|
+
});
|
|
61
|
+
}); };
|
|
51
62
|
export var serializeAws_json1_1CreateGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
63
|
var headers, body;
|
|
53
64
|
return __generator(this, function (_a) {
|
|
@@ -125,6 +136,17 @@ export var serializeAws_json1_1DeleteAliasCommand = function (input, context) {
|
|
|
125
136
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
126
137
|
});
|
|
127
138
|
}); };
|
|
139
|
+
export var serializeAws_json1_1DeleteAvailabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
+
var headers, body;
|
|
141
|
+
return __generator(this, function (_a) {
|
|
142
|
+
headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "WorkMailService.DeleteAvailabilityConfiguration",
|
|
145
|
+
};
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAvailabilityConfigurationRequest(input, context));
|
|
147
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
148
|
+
});
|
|
149
|
+
}); };
|
|
128
150
|
export var serializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
151
|
var headers, body;
|
|
130
152
|
return __generator(this, function (_a) {
|
|
@@ -433,6 +455,17 @@ export var serializeAws_json1_1ListAliasesCommand = function (input, context) {
|
|
|
433
455
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
434
456
|
});
|
|
435
457
|
}); };
|
|
458
|
+
export var serializeAws_json1_1ListAvailabilityConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
459
|
+
var headers, body;
|
|
460
|
+
return __generator(this, function (_a) {
|
|
461
|
+
headers = {
|
|
462
|
+
"content-type": "application/x-amz-json-1.1",
|
|
463
|
+
"x-amz-target": "WorkMailService.ListAvailabilityConfigurations",
|
|
464
|
+
};
|
|
465
|
+
body = JSON.stringify(serializeAws_json1_1ListAvailabilityConfigurationsRequest(input, context));
|
|
466
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
467
|
+
});
|
|
468
|
+
}); };
|
|
436
469
|
export var serializeAws_json1_1ListGroupMembersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
437
470
|
var headers, body;
|
|
438
471
|
return __generator(this, function (_a) {
|
|
@@ -686,6 +719,17 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
686
719
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
687
720
|
});
|
|
688
721
|
}); };
|
|
722
|
+
export var serializeAws_json1_1TestAvailabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
723
|
+
var headers, body;
|
|
724
|
+
return __generator(this, function (_a) {
|
|
725
|
+
headers = {
|
|
726
|
+
"content-type": "application/x-amz-json-1.1",
|
|
727
|
+
"x-amz-target": "WorkMailService.TestAvailabilityConfiguration",
|
|
728
|
+
};
|
|
729
|
+
body = JSON.stringify(serializeAws_json1_1TestAvailabilityConfigurationRequest(input, context));
|
|
730
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
731
|
+
});
|
|
732
|
+
}); };
|
|
689
733
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
690
734
|
var headers, body;
|
|
691
735
|
return __generator(this, function (_a) {
|
|
@@ -697,6 +741,17 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
697
741
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
698
742
|
});
|
|
699
743
|
}); };
|
|
744
|
+
export var serializeAws_json1_1UpdateAvailabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
745
|
+
var headers, body;
|
|
746
|
+
return __generator(this, function (_a) {
|
|
747
|
+
headers = {
|
|
748
|
+
"content-type": "application/x-amz-json-1.1",
|
|
749
|
+
"x-amz-target": "WorkMailService.UpdateAvailabilityConfiguration",
|
|
750
|
+
};
|
|
751
|
+
body = JSON.stringify(serializeAws_json1_1UpdateAvailabilityConfigurationRequest(input, context));
|
|
752
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
753
|
+
});
|
|
754
|
+
}); };
|
|
700
755
|
export var serializeAws_json1_1UpdateDefaultMailDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
756
|
var headers, body;
|
|
702
757
|
return __generator(this, function (_a) {
|
|
@@ -771,7 +826,7 @@ export var deserializeAws_json1_1AssociateDelegateToResourceCommand = function (
|
|
|
771
826
|
});
|
|
772
827
|
}); };
|
|
773
828
|
var deserializeAws_json1_1AssociateDelegateToResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
829
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
775
830
|
var _c;
|
|
776
831
|
return __generator(this, function (_d) {
|
|
777
832
|
switch (_d.label) {
|
|
@@ -781,7 +836,6 @@ var deserializeAws_json1_1AssociateDelegateToResourceCommandError = function (ou
|
|
|
781
836
|
return [4, parseBody(output.body, context)];
|
|
782
837
|
case 1:
|
|
783
838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
784
|
-
errorCode = "UnknownError";
|
|
785
839
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
840
|
_b = errorCode;
|
|
787
841
|
switch (_b) {
|
|
@@ -809,10 +863,12 @@ var deserializeAws_json1_1AssociateDelegateToResourceCommandError = function (ou
|
|
|
809
863
|
case 11: throw _d.sent();
|
|
810
864
|
case 12:
|
|
811
865
|
parsedBody = parsedOutput.body;
|
|
866
|
+
$metadata = deserializeMetadata(output);
|
|
867
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
812
868
|
response = new __BaseException({
|
|
813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
814
870
|
$fault: "client",
|
|
815
|
-
$metadata:
|
|
871
|
+
$metadata: $metadata,
|
|
816
872
|
});
|
|
817
873
|
throw __decorateServiceException(response, parsedBody);
|
|
818
874
|
}
|
|
@@ -837,7 +893,7 @@ export var deserializeAws_json1_1AssociateMemberToGroupCommand = function (outpu
|
|
|
837
893
|
});
|
|
838
894
|
}); };
|
|
839
895
|
var deserializeAws_json1_1AssociateMemberToGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
896
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
841
897
|
var _c;
|
|
842
898
|
return __generator(this, function (_d) {
|
|
843
899
|
switch (_d.label) {
|
|
@@ -847,7 +903,6 @@ var deserializeAws_json1_1AssociateMemberToGroupCommandError = function (output,
|
|
|
847
903
|
return [4, parseBody(output.body, context)];
|
|
848
904
|
case 1:
|
|
849
905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
850
|
-
errorCode = "UnknownError";
|
|
851
906
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
907
|
_b = errorCode;
|
|
853
908
|
switch (_b) {
|
|
@@ -887,10 +942,12 @@ var deserializeAws_json1_1AssociateMemberToGroupCommandError = function (output,
|
|
|
887
942
|
case 17: throw _d.sent();
|
|
888
943
|
case 18:
|
|
889
944
|
parsedBody = parsedOutput.body;
|
|
945
|
+
$metadata = deserializeMetadata(output);
|
|
946
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
890
947
|
response = new __BaseException({
|
|
891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
892
949
|
$fault: "client",
|
|
893
|
-
$metadata:
|
|
950
|
+
$metadata: $metadata,
|
|
894
951
|
});
|
|
895
952
|
throw __decorateServiceException(response, parsedBody);
|
|
896
953
|
}
|
|
@@ -915,7 +972,7 @@ export var deserializeAws_json1_1CancelMailboxExportJobCommand = function (outpu
|
|
|
915
972
|
});
|
|
916
973
|
}); };
|
|
917
974
|
var deserializeAws_json1_1CancelMailboxExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
918
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
975
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
919
976
|
var _c;
|
|
920
977
|
return __generator(this, function (_d) {
|
|
921
978
|
switch (_d.label) {
|
|
@@ -925,7 +982,6 @@ var deserializeAws_json1_1CancelMailboxExportJobCommandError = function (output,
|
|
|
925
982
|
return [4, parseBody(output.body, context)];
|
|
926
983
|
case 1:
|
|
927
984
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
928
|
-
errorCode = "UnknownError";
|
|
929
985
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
986
|
_b = errorCode;
|
|
931
987
|
switch (_b) {
|
|
@@ -949,10 +1005,12 @@ var deserializeAws_json1_1CancelMailboxExportJobCommandError = function (output,
|
|
|
949
1005
|
case 9: throw _d.sent();
|
|
950
1006
|
case 10:
|
|
951
1007
|
parsedBody = parsedOutput.body;
|
|
1008
|
+
$metadata = deserializeMetadata(output);
|
|
1009
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
1010
|
response = new __BaseException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1011
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
1012
|
$fault: "client",
|
|
955
|
-
$metadata:
|
|
1013
|
+
$metadata: $metadata,
|
|
956
1014
|
});
|
|
957
1015
|
throw __decorateServiceException(response, parsedBody);
|
|
958
1016
|
}
|
|
@@ -977,7 +1035,7 @@ export var deserializeAws_json1_1CreateAliasCommand = function (output, context)
|
|
|
977
1035
|
});
|
|
978
1036
|
}); };
|
|
979
1037
|
var deserializeAws_json1_1CreateAliasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
980
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1038
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
981
1039
|
var _c;
|
|
982
1040
|
return __generator(this, function (_d) {
|
|
983
1041
|
switch (_d.label) {
|
|
@@ -987,7 +1045,6 @@ var deserializeAws_json1_1CreateAliasCommandError = function (output, context) {
|
|
|
987
1045
|
return [4, parseBody(output.body, context)];
|
|
988
1046
|
case 1:
|
|
989
1047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
990
|
-
errorCode = "UnknownError";
|
|
991
1048
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
1049
|
_b = errorCode;
|
|
993
1050
|
switch (_b) {
|
|
@@ -1031,10 +1088,79 @@ var deserializeAws_json1_1CreateAliasCommandError = function (output, context) {
|
|
|
1031
1088
|
case 19: throw _d.sent();
|
|
1032
1089
|
case 20:
|
|
1033
1090
|
parsedBody = parsedOutput.body;
|
|
1091
|
+
$metadata = deserializeMetadata(output);
|
|
1092
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1034
1093
|
response = new __BaseException({
|
|
1035
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1036
1095
|
$fault: "client",
|
|
1037
|
-
$metadata:
|
|
1096
|
+
$metadata: $metadata,
|
|
1097
|
+
});
|
|
1098
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
}); };
|
|
1102
|
+
export var deserializeAws_json1_1CreateAvailabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1103
|
+
var data, contents, response;
|
|
1104
|
+
return __generator(this, function (_a) {
|
|
1105
|
+
switch (_a.label) {
|
|
1106
|
+
case 0:
|
|
1107
|
+
if (output.statusCode >= 300) {
|
|
1108
|
+
return [2, deserializeAws_json1_1CreateAvailabilityConfigurationCommandError(output, context)];
|
|
1109
|
+
}
|
|
1110
|
+
return [4, parseBody(output.body, context)];
|
|
1111
|
+
case 1:
|
|
1112
|
+
data = _a.sent();
|
|
1113
|
+
contents = {};
|
|
1114
|
+
contents = deserializeAws_json1_1CreateAvailabilityConfigurationResponse(data, context);
|
|
1115
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1116
|
+
return [2, Promise.resolve(response)];
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
}); };
|
|
1120
|
+
var deserializeAws_json1_1CreateAvailabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1121
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1122
|
+
var _c;
|
|
1123
|
+
return __generator(this, function (_d) {
|
|
1124
|
+
switch (_d.label) {
|
|
1125
|
+
case 0:
|
|
1126
|
+
_a = [__assign({}, output)];
|
|
1127
|
+
_c = {};
|
|
1128
|
+
return [4, parseBody(output.body, context)];
|
|
1129
|
+
case 1:
|
|
1130
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1131
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
|
+
_b = errorCode;
|
|
1133
|
+
switch (_b) {
|
|
1134
|
+
case "InvalidParameterException": return [3, 2];
|
|
1135
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
1136
|
+
case "LimitExceededException": return [3, 4];
|
|
1137
|
+
case "com.amazonaws.workmail#LimitExceededException": return [3, 4];
|
|
1138
|
+
case "NameAvailabilityException": return [3, 6];
|
|
1139
|
+
case "com.amazonaws.workmail#NameAvailabilityException": return [3, 6];
|
|
1140
|
+
case "OrganizationNotFoundException": return [3, 8];
|
|
1141
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 8];
|
|
1142
|
+
case "OrganizationStateException": return [3, 10];
|
|
1143
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 10];
|
|
1144
|
+
}
|
|
1145
|
+
return [3, 12];
|
|
1146
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1147
|
+
case 3: throw _d.sent();
|
|
1148
|
+
case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1149
|
+
case 5: throw _d.sent();
|
|
1150
|
+
case 6: return [4, deserializeAws_json1_1NameAvailabilityExceptionResponse(parsedOutput, context)];
|
|
1151
|
+
case 7: throw _d.sent();
|
|
1152
|
+
case 8: return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
1153
|
+
case 9: throw _d.sent();
|
|
1154
|
+
case 10: return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
1155
|
+
case 11: throw _d.sent();
|
|
1156
|
+
case 12:
|
|
1157
|
+
parsedBody = parsedOutput.body;
|
|
1158
|
+
$metadata = deserializeMetadata(output);
|
|
1159
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1160
|
+
response = new __BaseException({
|
|
1161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1162
|
+
$fault: "client",
|
|
1163
|
+
$metadata: $metadata,
|
|
1038
1164
|
});
|
|
1039
1165
|
throw __decorateServiceException(response, parsedBody);
|
|
1040
1166
|
}
|
|
@@ -1059,7 +1185,7 @@ export var deserializeAws_json1_1CreateGroupCommand = function (output, context)
|
|
|
1059
1185
|
});
|
|
1060
1186
|
}); };
|
|
1061
1187
|
var deserializeAws_json1_1CreateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1062
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1188
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1063
1189
|
var _c;
|
|
1064
1190
|
return __generator(this, function (_d) {
|
|
1065
1191
|
switch (_d.label) {
|
|
@@ -1069,7 +1195,6 @@ var deserializeAws_json1_1CreateGroupCommandError = function (output, context) {
|
|
|
1069
1195
|
return [4, parseBody(output.body, context)];
|
|
1070
1196
|
case 1:
|
|
1071
1197
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1072
|
-
errorCode = "UnknownError";
|
|
1073
1198
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
1199
|
_b = errorCode;
|
|
1075
1200
|
switch (_b) {
|
|
@@ -1109,10 +1234,12 @@ var deserializeAws_json1_1CreateGroupCommandError = function (output, context) {
|
|
|
1109
1234
|
case 17: throw _d.sent();
|
|
1110
1235
|
case 18:
|
|
1111
1236
|
parsedBody = parsedOutput.body;
|
|
1237
|
+
$metadata = deserializeMetadata(output);
|
|
1238
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1112
1239
|
response = new __BaseException({
|
|
1113
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1240
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1114
1241
|
$fault: "client",
|
|
1115
|
-
$metadata:
|
|
1242
|
+
$metadata: $metadata,
|
|
1116
1243
|
});
|
|
1117
1244
|
throw __decorateServiceException(response, parsedBody);
|
|
1118
1245
|
}
|
|
@@ -1137,7 +1264,7 @@ export var deserializeAws_json1_1CreateMobileDeviceAccessRuleCommand = function
|
|
|
1137
1264
|
});
|
|
1138
1265
|
}); };
|
|
1139
1266
|
var deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1140
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1267
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1141
1268
|
var _c;
|
|
1142
1269
|
return __generator(this, function (_d) {
|
|
1143
1270
|
switch (_d.label) {
|
|
@@ -1147,7 +1274,6 @@ var deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = function (o
|
|
|
1147
1274
|
return [4, parseBody(output.body, context)];
|
|
1148
1275
|
case 1:
|
|
1149
1276
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1150
|
-
errorCode = "UnknownError";
|
|
1151
1277
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1278
|
_b = errorCode;
|
|
1153
1279
|
switch (_b) {
|
|
@@ -1171,10 +1297,12 @@ var deserializeAws_json1_1CreateMobileDeviceAccessRuleCommandError = function (o
|
|
|
1171
1297
|
case 9: throw _d.sent();
|
|
1172
1298
|
case 10:
|
|
1173
1299
|
parsedBody = parsedOutput.body;
|
|
1300
|
+
$metadata = deserializeMetadata(output);
|
|
1301
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1174
1302
|
response = new __BaseException({
|
|
1175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1303
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1176
1304
|
$fault: "client",
|
|
1177
|
-
$metadata:
|
|
1305
|
+
$metadata: $metadata,
|
|
1178
1306
|
});
|
|
1179
1307
|
throw __decorateServiceException(response, parsedBody);
|
|
1180
1308
|
}
|
|
@@ -1199,7 +1327,7 @@ export var deserializeAws_json1_1CreateOrganizationCommand = function (output, c
|
|
|
1199
1327
|
});
|
|
1200
1328
|
}); };
|
|
1201
1329
|
var deserializeAws_json1_1CreateOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1202
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1330
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1203
1331
|
var _c;
|
|
1204
1332
|
return __generator(this, function (_d) {
|
|
1205
1333
|
switch (_d.label) {
|
|
@@ -1209,7 +1337,6 @@ var deserializeAws_json1_1CreateOrganizationCommandError = function (output, con
|
|
|
1209
1337
|
return [4, parseBody(output.body, context)];
|
|
1210
1338
|
case 1:
|
|
1211
1339
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1212
|
-
errorCode = "UnknownError";
|
|
1213
1340
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1341
|
_b = errorCode;
|
|
1215
1342
|
switch (_b) {
|
|
@@ -1237,10 +1364,12 @@ var deserializeAws_json1_1CreateOrganizationCommandError = function (output, con
|
|
|
1237
1364
|
case 11: throw _d.sent();
|
|
1238
1365
|
case 12:
|
|
1239
1366
|
parsedBody = parsedOutput.body;
|
|
1367
|
+
$metadata = deserializeMetadata(output);
|
|
1368
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1240
1369
|
response = new __BaseException({
|
|
1241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1242
1371
|
$fault: "client",
|
|
1243
|
-
$metadata:
|
|
1372
|
+
$metadata: $metadata,
|
|
1244
1373
|
});
|
|
1245
1374
|
throw __decorateServiceException(response, parsedBody);
|
|
1246
1375
|
}
|
|
@@ -1265,7 +1394,7 @@ export var deserializeAws_json1_1CreateResourceCommand = function (output, conte
|
|
|
1265
1394
|
});
|
|
1266
1395
|
}); };
|
|
1267
1396
|
var deserializeAws_json1_1CreateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1268
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1397
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1269
1398
|
var _c;
|
|
1270
1399
|
return __generator(this, function (_d) {
|
|
1271
1400
|
switch (_d.label) {
|
|
@@ -1275,7 +1404,6 @@ var deserializeAws_json1_1CreateResourceCommandError = function (output, context
|
|
|
1275
1404
|
return [4, parseBody(output.body, context)];
|
|
1276
1405
|
case 1:
|
|
1277
1406
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1278
|
-
errorCode = "UnknownError";
|
|
1279
1407
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1408
|
_b = errorCode;
|
|
1281
1409
|
switch (_b) {
|
|
@@ -1311,10 +1439,12 @@ var deserializeAws_json1_1CreateResourceCommandError = function (output, context
|
|
|
1311
1439
|
case 15: throw _d.sent();
|
|
1312
1440
|
case 16:
|
|
1313
1441
|
parsedBody = parsedOutput.body;
|
|
1442
|
+
$metadata = deserializeMetadata(output);
|
|
1443
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1314
1444
|
response = new __BaseException({
|
|
1315
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1316
1446
|
$fault: "client",
|
|
1317
|
-
$metadata:
|
|
1447
|
+
$metadata: $metadata,
|
|
1318
1448
|
});
|
|
1319
1449
|
throw __decorateServiceException(response, parsedBody);
|
|
1320
1450
|
}
|
|
@@ -1339,7 +1469,7 @@ export var deserializeAws_json1_1CreateUserCommand = function (output, context)
|
|
|
1339
1469
|
});
|
|
1340
1470
|
}); };
|
|
1341
1471
|
var deserializeAws_json1_1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1342
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1472
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1343
1473
|
var _c;
|
|
1344
1474
|
return __generator(this, function (_d) {
|
|
1345
1475
|
switch (_d.label) {
|
|
@@ -1349,7 +1479,6 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
|
|
|
1349
1479
|
return [4, parseBody(output.body, context)];
|
|
1350
1480
|
case 1:
|
|
1351
1481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1352
|
-
errorCode = "UnknownError";
|
|
1353
1482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1483
|
_b = errorCode;
|
|
1355
1484
|
switch (_b) {
|
|
@@ -1393,10 +1522,12 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
|
|
|
1393
1522
|
case 19: throw _d.sent();
|
|
1394
1523
|
case 20:
|
|
1395
1524
|
parsedBody = parsedOutput.body;
|
|
1525
|
+
$metadata = deserializeMetadata(output);
|
|
1526
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1396
1527
|
response = new __BaseException({
|
|
1397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1398
1529
|
$fault: "client",
|
|
1399
|
-
$metadata:
|
|
1530
|
+
$metadata: $metadata,
|
|
1400
1531
|
});
|
|
1401
1532
|
throw __decorateServiceException(response, parsedBody);
|
|
1402
1533
|
}
|
|
@@ -1421,7 +1552,7 @@ export var deserializeAws_json1_1DeleteAccessControlRuleCommand = function (outp
|
|
|
1421
1552
|
});
|
|
1422
1553
|
}); };
|
|
1423
1554
|
var deserializeAws_json1_1DeleteAccessControlRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1424
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1555
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1425
1556
|
var _c;
|
|
1426
1557
|
return __generator(this, function (_d) {
|
|
1427
1558
|
switch (_d.label) {
|
|
@@ -1431,7 +1562,6 @@ var deserializeAws_json1_1DeleteAccessControlRuleCommandError = function (output
|
|
|
1431
1562
|
return [4, parseBody(output.body, context)];
|
|
1432
1563
|
case 1:
|
|
1433
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1434
|
-
errorCode = "UnknownError";
|
|
1435
1565
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1566
|
_b = errorCode;
|
|
1437
1567
|
switch (_b) {
|
|
@@ -1447,10 +1577,12 @@ var deserializeAws_json1_1DeleteAccessControlRuleCommandError = function (output
|
|
|
1447
1577
|
case 5: throw _d.sent();
|
|
1448
1578
|
case 6:
|
|
1449
1579
|
parsedBody = parsedOutput.body;
|
|
1580
|
+
$metadata = deserializeMetadata(output);
|
|
1581
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1450
1582
|
response = new __BaseException({
|
|
1451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1452
1584
|
$fault: "client",
|
|
1453
|
-
$metadata:
|
|
1585
|
+
$metadata: $metadata,
|
|
1454
1586
|
});
|
|
1455
1587
|
throw __decorateServiceException(response, parsedBody);
|
|
1456
1588
|
}
|
|
@@ -1475,7 +1607,7 @@ export var deserializeAws_json1_1DeleteAliasCommand = function (output, context)
|
|
|
1475
1607
|
});
|
|
1476
1608
|
}); };
|
|
1477
1609
|
var deserializeAws_json1_1DeleteAliasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1478
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1610
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1479
1611
|
var _c;
|
|
1480
1612
|
return __generator(this, function (_d) {
|
|
1481
1613
|
switch (_d.label) {
|
|
@@ -1485,7 +1617,6 @@ var deserializeAws_json1_1DeleteAliasCommandError = function (output, context) {
|
|
|
1485
1617
|
return [4, parseBody(output.body, context)];
|
|
1486
1618
|
case 1:
|
|
1487
1619
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1488
|
-
errorCode = "UnknownError";
|
|
1489
1620
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
1621
|
_b = errorCode;
|
|
1491
1622
|
switch (_b) {
|
|
@@ -1513,10 +1644,67 @@ var deserializeAws_json1_1DeleteAliasCommandError = function (output, context) {
|
|
|
1513
1644
|
case 11: throw _d.sent();
|
|
1514
1645
|
case 12:
|
|
1515
1646
|
parsedBody = parsedOutput.body;
|
|
1647
|
+
$metadata = deserializeMetadata(output);
|
|
1648
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1516
1649
|
response = new __BaseException({
|
|
1517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1518
1651
|
$fault: "client",
|
|
1519
|
-
$metadata:
|
|
1652
|
+
$metadata: $metadata,
|
|
1653
|
+
});
|
|
1654
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
}); };
|
|
1658
|
+
export var deserializeAws_json1_1DeleteAvailabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1659
|
+
var data, contents, response;
|
|
1660
|
+
return __generator(this, function (_a) {
|
|
1661
|
+
switch (_a.label) {
|
|
1662
|
+
case 0:
|
|
1663
|
+
if (output.statusCode >= 300) {
|
|
1664
|
+
return [2, deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError(output, context)];
|
|
1665
|
+
}
|
|
1666
|
+
return [4, parseBody(output.body, context)];
|
|
1667
|
+
case 1:
|
|
1668
|
+
data = _a.sent();
|
|
1669
|
+
contents = {};
|
|
1670
|
+
contents = deserializeAws_json1_1DeleteAvailabilityConfigurationResponse(data, context);
|
|
1671
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1672
|
+
return [2, Promise.resolve(response)];
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
}); };
|
|
1676
|
+
var deserializeAws_json1_1DeleteAvailabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1678
|
+
var _c;
|
|
1679
|
+
return __generator(this, function (_d) {
|
|
1680
|
+
switch (_d.label) {
|
|
1681
|
+
case 0:
|
|
1682
|
+
_a = [__assign({}, output)];
|
|
1683
|
+
_c = {};
|
|
1684
|
+
return [4, parseBody(output.body, context)];
|
|
1685
|
+
case 1:
|
|
1686
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1687
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
+
_b = errorCode;
|
|
1689
|
+
switch (_b) {
|
|
1690
|
+
case "OrganizationNotFoundException": return [3, 2];
|
|
1691
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 2];
|
|
1692
|
+
case "OrganizationStateException": return [3, 4];
|
|
1693
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 4];
|
|
1694
|
+
}
|
|
1695
|
+
return [3, 6];
|
|
1696
|
+
case 2: return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
1697
|
+
case 3: throw _d.sent();
|
|
1698
|
+
case 4: return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
1699
|
+
case 5: throw _d.sent();
|
|
1700
|
+
case 6:
|
|
1701
|
+
parsedBody = parsedOutput.body;
|
|
1702
|
+
$metadata = deserializeMetadata(output);
|
|
1703
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1704
|
+
response = new __BaseException({
|
|
1705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1706
|
+
$fault: "client",
|
|
1707
|
+
$metadata: $metadata,
|
|
1520
1708
|
});
|
|
1521
1709
|
throw __decorateServiceException(response, parsedBody);
|
|
1522
1710
|
}
|
|
@@ -1541,7 +1729,7 @@ export var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = fun
|
|
|
1541
1729
|
});
|
|
1542
1730
|
}); };
|
|
1543
1731
|
var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1544
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1545
1733
|
var _c;
|
|
1546
1734
|
return __generator(this, function (_d) {
|
|
1547
1735
|
switch (_d.label) {
|
|
@@ -1551,7 +1739,6 @@ var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = funct
|
|
|
1551
1739
|
return [4, parseBody(output.body, context)];
|
|
1552
1740
|
case 1:
|
|
1553
1741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1554
|
-
errorCode = "UnknownError";
|
|
1555
1742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1743
|
_b = errorCode;
|
|
1557
1744
|
switch (_b) {
|
|
@@ -1571,10 +1758,12 @@ var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = funct
|
|
|
1571
1758
|
case 7: throw _d.sent();
|
|
1572
1759
|
case 8:
|
|
1573
1760
|
parsedBody = parsedOutput.body;
|
|
1761
|
+
$metadata = deserializeMetadata(output);
|
|
1762
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1574
1763
|
response = new __BaseException({
|
|
1575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1576
1765
|
$fault: "client",
|
|
1577
|
-
$metadata:
|
|
1766
|
+
$metadata: $metadata,
|
|
1578
1767
|
});
|
|
1579
1768
|
throw __decorateServiceException(response, parsedBody);
|
|
1580
1769
|
}
|
|
@@ -1599,7 +1788,7 @@ export var deserializeAws_json1_1DeleteGroupCommand = function (output, context)
|
|
|
1599
1788
|
});
|
|
1600
1789
|
}); };
|
|
1601
1790
|
var deserializeAws_json1_1DeleteGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1791
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1603
1792
|
var _c;
|
|
1604
1793
|
return __generator(this, function (_d) {
|
|
1605
1794
|
switch (_d.label) {
|
|
@@ -1609,7 +1798,6 @@ var deserializeAws_json1_1DeleteGroupCommandError = function (output, context) {
|
|
|
1609
1798
|
return [4, parseBody(output.body, context)];
|
|
1610
1799
|
case 1:
|
|
1611
1800
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1612
|
-
errorCode = "UnknownError";
|
|
1613
1801
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
1802
|
_b = errorCode;
|
|
1615
1803
|
switch (_b) {
|
|
@@ -1645,10 +1833,12 @@ var deserializeAws_json1_1DeleteGroupCommandError = function (output, context) {
|
|
|
1645
1833
|
case 15: throw _d.sent();
|
|
1646
1834
|
case 16:
|
|
1647
1835
|
parsedBody = parsedOutput.body;
|
|
1836
|
+
$metadata = deserializeMetadata(output);
|
|
1837
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1838
|
response = new __BaseException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1839
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1840
|
$fault: "client",
|
|
1651
|
-
$metadata:
|
|
1841
|
+
$metadata: $metadata,
|
|
1652
1842
|
});
|
|
1653
1843
|
throw __decorateServiceException(response, parsedBody);
|
|
1654
1844
|
}
|
|
@@ -1673,7 +1863,7 @@ export var deserializeAws_json1_1DeleteMailboxPermissionsCommand = function (out
|
|
|
1673
1863
|
});
|
|
1674
1864
|
}); };
|
|
1675
1865
|
var deserializeAws_json1_1DeleteMailboxPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1866
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1677
1867
|
var _c;
|
|
1678
1868
|
return __generator(this, function (_d) {
|
|
1679
1869
|
switch (_d.label) {
|
|
@@ -1683,7 +1873,6 @@ var deserializeAws_json1_1DeleteMailboxPermissionsCommandError = function (outpu
|
|
|
1683
1873
|
return [4, parseBody(output.body, context)];
|
|
1684
1874
|
case 1:
|
|
1685
1875
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1686
|
-
errorCode = "UnknownError";
|
|
1687
1876
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
1877
|
_b = errorCode;
|
|
1689
1878
|
switch (_b) {
|
|
@@ -1711,10 +1900,12 @@ var deserializeAws_json1_1DeleteMailboxPermissionsCommandError = function (outpu
|
|
|
1711
1900
|
case 11: throw _d.sent();
|
|
1712
1901
|
case 12:
|
|
1713
1902
|
parsedBody = parsedOutput.body;
|
|
1903
|
+
$metadata = deserializeMetadata(output);
|
|
1904
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1714
1905
|
response = new __BaseException({
|
|
1715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1716
1907
|
$fault: "client",
|
|
1717
|
-
$metadata:
|
|
1908
|
+
$metadata: $metadata,
|
|
1718
1909
|
});
|
|
1719
1910
|
throw __decorateServiceException(response, parsedBody);
|
|
1720
1911
|
}
|
|
@@ -1739,7 +1930,7 @@ export var deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommand = funct
|
|
|
1739
1930
|
});
|
|
1740
1931
|
}); };
|
|
1741
1932
|
var deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1742
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1933
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1743
1934
|
var _c;
|
|
1744
1935
|
return __generator(this, function (_d) {
|
|
1745
1936
|
switch (_d.label) {
|
|
@@ -1749,7 +1940,6 @@ var deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = functio
|
|
|
1749
1940
|
return [4, parseBody(output.body, context)];
|
|
1750
1941
|
case 1:
|
|
1751
1942
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1752
|
-
errorCode = "UnknownError";
|
|
1753
1943
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1944
|
_b = errorCode;
|
|
1755
1945
|
switch (_b) {
|
|
@@ -1773,10 +1963,12 @@ var deserializeAws_json1_1DeleteMobileDeviceAccessOverrideCommandError = functio
|
|
|
1773
1963
|
case 9: throw _d.sent();
|
|
1774
1964
|
case 10:
|
|
1775
1965
|
parsedBody = parsedOutput.body;
|
|
1966
|
+
$metadata = deserializeMetadata(output);
|
|
1967
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1776
1968
|
response = new __BaseException({
|
|
1777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1778
1970
|
$fault: "client",
|
|
1779
|
-
$metadata:
|
|
1971
|
+
$metadata: $metadata,
|
|
1780
1972
|
});
|
|
1781
1973
|
throw __decorateServiceException(response, parsedBody);
|
|
1782
1974
|
}
|
|
@@ -1801,7 +1993,7 @@ export var deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommand = function
|
|
|
1801
1993
|
});
|
|
1802
1994
|
}); };
|
|
1803
1995
|
var deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1804
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1996
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1805
1997
|
var _c;
|
|
1806
1998
|
return __generator(this, function (_d) {
|
|
1807
1999
|
switch (_d.label) {
|
|
@@ -1811,7 +2003,6 @@ var deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = function (o
|
|
|
1811
2003
|
return [4, parseBody(output.body, context)];
|
|
1812
2004
|
case 1:
|
|
1813
2005
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1814
|
-
errorCode = "UnknownError";
|
|
1815
2006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
2007
|
_b = errorCode;
|
|
1817
2008
|
switch (_b) {
|
|
@@ -1831,10 +2022,12 @@ var deserializeAws_json1_1DeleteMobileDeviceAccessRuleCommandError = function (o
|
|
|
1831
2022
|
case 7: throw _d.sent();
|
|
1832
2023
|
case 8:
|
|
1833
2024
|
parsedBody = parsedOutput.body;
|
|
2025
|
+
$metadata = deserializeMetadata(output);
|
|
2026
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1834
2027
|
response = new __BaseException({
|
|
1835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1836
2029
|
$fault: "client",
|
|
1837
|
-
$metadata:
|
|
2030
|
+
$metadata: $metadata,
|
|
1838
2031
|
});
|
|
1839
2032
|
throw __decorateServiceException(response, parsedBody);
|
|
1840
2033
|
}
|
|
@@ -1859,7 +2052,7 @@ export var deserializeAws_json1_1DeleteOrganizationCommand = function (output, c
|
|
|
1859
2052
|
});
|
|
1860
2053
|
}); };
|
|
1861
2054
|
var deserializeAws_json1_1DeleteOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1862
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2055
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1863
2056
|
var _c;
|
|
1864
2057
|
return __generator(this, function (_d) {
|
|
1865
2058
|
switch (_d.label) {
|
|
@@ -1869,7 +2062,6 @@ var deserializeAws_json1_1DeleteOrganizationCommandError = function (output, con
|
|
|
1869
2062
|
return [4, parseBody(output.body, context)];
|
|
1870
2063
|
case 1:
|
|
1871
2064
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1872
|
-
errorCode = "UnknownError";
|
|
1873
2065
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
2066
|
_b = errorCode;
|
|
1875
2067
|
switch (_b) {
|
|
@@ -1889,10 +2081,12 @@ var deserializeAws_json1_1DeleteOrganizationCommandError = function (output, con
|
|
|
1889
2081
|
case 7: throw _d.sent();
|
|
1890
2082
|
case 8:
|
|
1891
2083
|
parsedBody = parsedOutput.body;
|
|
2084
|
+
$metadata = deserializeMetadata(output);
|
|
2085
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1892
2086
|
response = new __BaseException({
|
|
1893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1894
2088
|
$fault: "client",
|
|
1895
|
-
$metadata:
|
|
2089
|
+
$metadata: $metadata,
|
|
1896
2090
|
});
|
|
1897
2091
|
throw __decorateServiceException(response, parsedBody);
|
|
1898
2092
|
}
|
|
@@ -1917,7 +2111,7 @@ export var deserializeAws_json1_1DeleteResourceCommand = function (output, conte
|
|
|
1917
2111
|
});
|
|
1918
2112
|
}); };
|
|
1919
2113
|
var deserializeAws_json1_1DeleteResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1920
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1921
2115
|
var _c;
|
|
1922
2116
|
return __generator(this, function (_d) {
|
|
1923
2117
|
switch (_d.label) {
|
|
@@ -1927,7 +2121,6 @@ var deserializeAws_json1_1DeleteResourceCommandError = function (output, context
|
|
|
1927
2121
|
return [4, parseBody(output.body, context)];
|
|
1928
2122
|
case 1:
|
|
1929
2123
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1930
|
-
errorCode = "UnknownError";
|
|
1931
2124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
2125
|
_b = errorCode;
|
|
1933
2126
|
switch (_b) {
|
|
@@ -1951,10 +2144,12 @@ var deserializeAws_json1_1DeleteResourceCommandError = function (output, context
|
|
|
1951
2144
|
case 9: throw _d.sent();
|
|
1952
2145
|
case 10:
|
|
1953
2146
|
parsedBody = parsedOutput.body;
|
|
2147
|
+
$metadata = deserializeMetadata(output);
|
|
2148
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1954
2149
|
response = new __BaseException({
|
|
1955
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1956
2151
|
$fault: "client",
|
|
1957
|
-
$metadata:
|
|
2152
|
+
$metadata: $metadata,
|
|
1958
2153
|
});
|
|
1959
2154
|
throw __decorateServiceException(response, parsedBody);
|
|
1960
2155
|
}
|
|
@@ -1979,7 +2174,7 @@ export var deserializeAws_json1_1DeleteRetentionPolicyCommand = function (output
|
|
|
1979
2174
|
});
|
|
1980
2175
|
}); };
|
|
1981
2176
|
var deserializeAws_json1_1DeleteRetentionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1982
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2177
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1983
2178
|
var _c;
|
|
1984
2179
|
return __generator(this, function (_d) {
|
|
1985
2180
|
switch (_d.label) {
|
|
@@ -1989,7 +2184,6 @@ var deserializeAws_json1_1DeleteRetentionPolicyCommandError = function (output,
|
|
|
1989
2184
|
return [4, parseBody(output.body, context)];
|
|
1990
2185
|
case 1:
|
|
1991
2186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1992
|
-
errorCode = "UnknownError";
|
|
1993
2187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
2188
|
_b = errorCode;
|
|
1995
2189
|
switch (_b) {
|
|
@@ -2009,10 +2203,12 @@ var deserializeAws_json1_1DeleteRetentionPolicyCommandError = function (output,
|
|
|
2009
2203
|
case 7: throw _d.sent();
|
|
2010
2204
|
case 8:
|
|
2011
2205
|
parsedBody = parsedOutput.body;
|
|
2206
|
+
$metadata = deserializeMetadata(output);
|
|
2207
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2012
2208
|
response = new __BaseException({
|
|
2013
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2014
2210
|
$fault: "client",
|
|
2015
|
-
$metadata:
|
|
2211
|
+
$metadata: $metadata,
|
|
2016
2212
|
});
|
|
2017
2213
|
throw __decorateServiceException(response, parsedBody);
|
|
2018
2214
|
}
|
|
@@ -2037,7 +2233,7 @@ export var deserializeAws_json1_1DeleteUserCommand = function (output, context)
|
|
|
2037
2233
|
});
|
|
2038
2234
|
}); };
|
|
2039
2235
|
var deserializeAws_json1_1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2040
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2236
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2041
2237
|
var _c;
|
|
2042
2238
|
return __generator(this, function (_d) {
|
|
2043
2239
|
switch (_d.label) {
|
|
@@ -2047,7 +2243,6 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
|
|
|
2047
2243
|
return [4, parseBody(output.body, context)];
|
|
2048
2244
|
case 1:
|
|
2049
2245
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2050
|
-
errorCode = "UnknownError";
|
|
2051
2246
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
2247
|
_b = errorCode;
|
|
2053
2248
|
switch (_b) {
|
|
@@ -2083,10 +2278,12 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
|
|
|
2083
2278
|
case 15: throw _d.sent();
|
|
2084
2279
|
case 16:
|
|
2085
2280
|
parsedBody = parsedOutput.body;
|
|
2281
|
+
$metadata = deserializeMetadata(output);
|
|
2282
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2086
2283
|
response = new __BaseException({
|
|
2087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2088
2285
|
$fault: "client",
|
|
2089
|
-
$metadata:
|
|
2286
|
+
$metadata: $metadata,
|
|
2090
2287
|
});
|
|
2091
2288
|
throw __decorateServiceException(response, parsedBody);
|
|
2092
2289
|
}
|
|
@@ -2111,7 +2308,7 @@ export var deserializeAws_json1_1DeregisterFromWorkMailCommand = function (outpu
|
|
|
2111
2308
|
});
|
|
2112
2309
|
}); };
|
|
2113
2310
|
var deserializeAws_json1_1DeregisterFromWorkMailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2114
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2311
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2115
2312
|
var _c;
|
|
2116
2313
|
return __generator(this, function (_d) {
|
|
2117
2314
|
switch (_d.label) {
|
|
@@ -2121,7 +2318,6 @@ var deserializeAws_json1_1DeregisterFromWorkMailCommandError = function (output,
|
|
|
2121
2318
|
return [4, parseBody(output.body, context)];
|
|
2122
2319
|
case 1:
|
|
2123
2320
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2124
|
-
errorCode = "UnknownError";
|
|
2125
2321
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2322
|
_b = errorCode;
|
|
2127
2323
|
switch (_b) {
|
|
@@ -2149,10 +2345,12 @@ var deserializeAws_json1_1DeregisterFromWorkMailCommandError = function (output,
|
|
|
2149
2345
|
case 11: throw _d.sent();
|
|
2150
2346
|
case 12:
|
|
2151
2347
|
parsedBody = parsedOutput.body;
|
|
2348
|
+
$metadata = deserializeMetadata(output);
|
|
2349
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2152
2350
|
response = new __BaseException({
|
|
2153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2154
2352
|
$fault: "client",
|
|
2155
|
-
$metadata:
|
|
2353
|
+
$metadata: $metadata,
|
|
2156
2354
|
});
|
|
2157
2355
|
throw __decorateServiceException(response, parsedBody);
|
|
2158
2356
|
}
|
|
@@ -2177,7 +2375,7 @@ export var deserializeAws_json1_1DeregisterMailDomainCommand = function (output,
|
|
|
2177
2375
|
});
|
|
2178
2376
|
}); };
|
|
2179
2377
|
var deserializeAws_json1_1DeregisterMailDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2180
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2378
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2181
2379
|
var _c;
|
|
2182
2380
|
return __generator(this, function (_d) {
|
|
2183
2381
|
switch (_d.label) {
|
|
@@ -2187,7 +2385,6 @@ var deserializeAws_json1_1DeregisterMailDomainCommandError = function (output, c
|
|
|
2187
2385
|
return [4, parseBody(output.body, context)];
|
|
2188
2386
|
case 1:
|
|
2189
2387
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2190
|
-
errorCode = "UnknownError";
|
|
2191
2388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
2389
|
_b = errorCode;
|
|
2193
2390
|
switch (_b) {
|
|
@@ -2215,10 +2412,12 @@ var deserializeAws_json1_1DeregisterMailDomainCommandError = function (output, c
|
|
|
2215
2412
|
case 11: throw _d.sent();
|
|
2216
2413
|
case 12:
|
|
2217
2414
|
parsedBody = parsedOutput.body;
|
|
2415
|
+
$metadata = deserializeMetadata(output);
|
|
2416
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2218
2417
|
response = new __BaseException({
|
|
2219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2220
2419
|
$fault: "client",
|
|
2221
|
-
$metadata:
|
|
2420
|
+
$metadata: $metadata,
|
|
2222
2421
|
});
|
|
2223
2422
|
throw __decorateServiceException(response, parsedBody);
|
|
2224
2423
|
}
|
|
@@ -2243,7 +2442,7 @@ export var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = f
|
|
|
2243
2442
|
});
|
|
2244
2443
|
}); };
|
|
2245
2444
|
var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2246
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2445
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2247
2446
|
var _c;
|
|
2248
2447
|
return __generator(this, function (_d) {
|
|
2249
2448
|
switch (_d.label) {
|
|
@@ -2253,7 +2452,6 @@ var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = fun
|
|
|
2253
2452
|
return [4, parseBody(output.body, context)];
|
|
2254
2453
|
case 1:
|
|
2255
2454
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2256
|
-
errorCode = "UnknownError";
|
|
2257
2455
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2258
2456
|
_b = errorCode;
|
|
2259
2457
|
switch (_b) {
|
|
@@ -2277,10 +2475,12 @@ var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = fun
|
|
|
2277
2475
|
case 9: throw _d.sent();
|
|
2278
2476
|
case 10:
|
|
2279
2477
|
parsedBody = parsedOutput.body;
|
|
2478
|
+
$metadata = deserializeMetadata(output);
|
|
2479
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2280
2480
|
response = new __BaseException({
|
|
2281
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2481
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2282
2482
|
$fault: "client",
|
|
2283
|
-
$metadata:
|
|
2483
|
+
$metadata: $metadata,
|
|
2284
2484
|
});
|
|
2285
2485
|
throw __decorateServiceException(response, parsedBody);
|
|
2286
2486
|
}
|
|
@@ -2305,7 +2505,7 @@ export var deserializeAws_json1_1DescribeGroupCommand = function (output, contex
|
|
|
2305
2505
|
});
|
|
2306
2506
|
}); };
|
|
2307
2507
|
var deserializeAws_json1_1DescribeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2308
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2508
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2309
2509
|
var _c;
|
|
2310
2510
|
return __generator(this, function (_d) {
|
|
2311
2511
|
switch (_d.label) {
|
|
@@ -2315,7 +2515,6 @@ var deserializeAws_json1_1DescribeGroupCommandError = function (output, context)
|
|
|
2315
2515
|
return [4, parseBody(output.body, context)];
|
|
2316
2516
|
case 1:
|
|
2317
2517
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2318
|
-
errorCode = "UnknownError";
|
|
2319
2518
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2519
|
_b = errorCode;
|
|
2321
2520
|
switch (_b) {
|
|
@@ -2339,10 +2538,12 @@ var deserializeAws_json1_1DescribeGroupCommandError = function (output, context)
|
|
|
2339
2538
|
case 9: throw _d.sent();
|
|
2340
2539
|
case 10:
|
|
2341
2540
|
parsedBody = parsedOutput.body;
|
|
2541
|
+
$metadata = deserializeMetadata(output);
|
|
2542
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2342
2543
|
response = new __BaseException({
|
|
2343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2544
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2344
2545
|
$fault: "client",
|
|
2345
|
-
$metadata:
|
|
2546
|
+
$metadata: $metadata,
|
|
2346
2547
|
});
|
|
2347
2548
|
throw __decorateServiceException(response, parsedBody);
|
|
2348
2549
|
}
|
|
@@ -2367,7 +2568,7 @@ export var deserializeAws_json1_1DescribeInboundDmarcSettingsCommand = function
|
|
|
2367
2568
|
});
|
|
2368
2569
|
}); };
|
|
2369
2570
|
var deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2370
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2571
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2371
2572
|
var _c;
|
|
2372
2573
|
return __generator(this, function (_d) {
|
|
2373
2574
|
switch (_d.label) {
|
|
@@ -2377,7 +2578,6 @@ var deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = function (o
|
|
|
2377
2578
|
return [4, parseBody(output.body, context)];
|
|
2378
2579
|
case 1:
|
|
2379
2580
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2380
|
-
errorCode = "UnknownError";
|
|
2381
2581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2382
2582
|
_b = errorCode;
|
|
2383
2583
|
switch (_b) {
|
|
@@ -2393,10 +2593,12 @@ var deserializeAws_json1_1DescribeInboundDmarcSettingsCommandError = function (o
|
|
|
2393
2593
|
case 5: throw _d.sent();
|
|
2394
2594
|
case 6:
|
|
2395
2595
|
parsedBody = parsedOutput.body;
|
|
2596
|
+
$metadata = deserializeMetadata(output);
|
|
2597
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2396
2598
|
response = new __BaseException({
|
|
2397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2398
2600
|
$fault: "client",
|
|
2399
|
-
$metadata:
|
|
2601
|
+
$metadata: $metadata,
|
|
2400
2602
|
});
|
|
2401
2603
|
throw __decorateServiceException(response, parsedBody);
|
|
2402
2604
|
}
|
|
@@ -2421,7 +2623,7 @@ export var deserializeAws_json1_1DescribeMailboxExportJobCommand = function (out
|
|
|
2421
2623
|
});
|
|
2422
2624
|
}); };
|
|
2423
2625
|
var deserializeAws_json1_1DescribeMailboxExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2424
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2626
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2425
2627
|
var _c;
|
|
2426
2628
|
return __generator(this, function (_d) {
|
|
2427
2629
|
switch (_d.label) {
|
|
@@ -2431,7 +2633,6 @@ var deserializeAws_json1_1DescribeMailboxExportJobCommandError = function (outpu
|
|
|
2431
2633
|
return [4, parseBody(output.body, context)];
|
|
2432
2634
|
case 1:
|
|
2433
2635
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2434
|
-
errorCode = "UnknownError";
|
|
2435
2636
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2637
|
_b = errorCode;
|
|
2437
2638
|
switch (_b) {
|
|
@@ -2455,10 +2656,12 @@ var deserializeAws_json1_1DescribeMailboxExportJobCommandError = function (outpu
|
|
|
2455
2656
|
case 9: throw _d.sent();
|
|
2456
2657
|
case 10:
|
|
2457
2658
|
parsedBody = parsedOutput.body;
|
|
2659
|
+
$metadata = deserializeMetadata(output);
|
|
2660
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2458
2661
|
response = new __BaseException({
|
|
2459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2460
2663
|
$fault: "client",
|
|
2461
|
-
$metadata:
|
|
2664
|
+
$metadata: $metadata,
|
|
2462
2665
|
});
|
|
2463
2666
|
throw __decorateServiceException(response, parsedBody);
|
|
2464
2667
|
}
|
|
@@ -2483,7 +2686,7 @@ export var deserializeAws_json1_1DescribeOrganizationCommand = function (output,
|
|
|
2483
2686
|
});
|
|
2484
2687
|
}); };
|
|
2485
2688
|
var deserializeAws_json1_1DescribeOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2486
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2689
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2487
2690
|
var _c;
|
|
2488
2691
|
return __generator(this, function (_d) {
|
|
2489
2692
|
switch (_d.label) {
|
|
@@ -2493,7 +2696,6 @@ var deserializeAws_json1_1DescribeOrganizationCommandError = function (output, c
|
|
|
2493
2696
|
return [4, parseBody(output.body, context)];
|
|
2494
2697
|
case 1:
|
|
2495
2698
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2496
|
-
errorCode = "UnknownError";
|
|
2497
2699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2498
2700
|
_b = errorCode;
|
|
2499
2701
|
switch (_b) {
|
|
@@ -2509,10 +2711,12 @@ var deserializeAws_json1_1DescribeOrganizationCommandError = function (output, c
|
|
|
2509
2711
|
case 5: throw _d.sent();
|
|
2510
2712
|
case 6:
|
|
2511
2713
|
parsedBody = parsedOutput.body;
|
|
2714
|
+
$metadata = deserializeMetadata(output);
|
|
2715
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2512
2716
|
response = new __BaseException({
|
|
2513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2514
2718
|
$fault: "client",
|
|
2515
|
-
$metadata:
|
|
2719
|
+
$metadata: $metadata,
|
|
2516
2720
|
});
|
|
2517
2721
|
throw __decorateServiceException(response, parsedBody);
|
|
2518
2722
|
}
|
|
@@ -2537,7 +2741,7 @@ export var deserializeAws_json1_1DescribeResourceCommand = function (output, con
|
|
|
2537
2741
|
});
|
|
2538
2742
|
}); };
|
|
2539
2743
|
var deserializeAws_json1_1DescribeResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2540
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2744
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2541
2745
|
var _c;
|
|
2542
2746
|
return __generator(this, function (_d) {
|
|
2543
2747
|
switch (_d.label) {
|
|
@@ -2547,7 +2751,6 @@ var deserializeAws_json1_1DescribeResourceCommandError = function (output, conte
|
|
|
2547
2751
|
return [4, parseBody(output.body, context)];
|
|
2548
2752
|
case 1:
|
|
2549
2753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2550
|
-
errorCode = "UnknownError";
|
|
2551
2754
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2755
|
_b = errorCode;
|
|
2553
2756
|
switch (_b) {
|
|
@@ -2571,10 +2774,12 @@ var deserializeAws_json1_1DescribeResourceCommandError = function (output, conte
|
|
|
2571
2774
|
case 9: throw _d.sent();
|
|
2572
2775
|
case 10:
|
|
2573
2776
|
parsedBody = parsedOutput.body;
|
|
2777
|
+
$metadata = deserializeMetadata(output);
|
|
2778
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2574
2779
|
response = new __BaseException({
|
|
2575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2576
2781
|
$fault: "client",
|
|
2577
|
-
$metadata:
|
|
2782
|
+
$metadata: $metadata,
|
|
2578
2783
|
});
|
|
2579
2784
|
throw __decorateServiceException(response, parsedBody);
|
|
2580
2785
|
}
|
|
@@ -2599,7 +2804,7 @@ export var deserializeAws_json1_1DescribeUserCommand = function (output, context
|
|
|
2599
2804
|
});
|
|
2600
2805
|
}); };
|
|
2601
2806
|
var deserializeAws_json1_1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2602
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2807
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2603
2808
|
var _c;
|
|
2604
2809
|
return __generator(this, function (_d) {
|
|
2605
2810
|
switch (_d.label) {
|
|
@@ -2609,7 +2814,6 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
|
|
|
2609
2814
|
return [4, parseBody(output.body, context)];
|
|
2610
2815
|
case 1:
|
|
2611
2816
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2612
|
-
errorCode = "UnknownError";
|
|
2613
2817
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2614
2818
|
_b = errorCode;
|
|
2615
2819
|
switch (_b) {
|
|
@@ -2633,10 +2837,12 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
|
|
|
2633
2837
|
case 9: throw _d.sent();
|
|
2634
2838
|
case 10:
|
|
2635
2839
|
parsedBody = parsedOutput.body;
|
|
2840
|
+
$metadata = deserializeMetadata(output);
|
|
2841
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2636
2842
|
response = new __BaseException({
|
|
2637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2638
2844
|
$fault: "client",
|
|
2639
|
-
$metadata:
|
|
2845
|
+
$metadata: $metadata,
|
|
2640
2846
|
});
|
|
2641
2847
|
throw __decorateServiceException(response, parsedBody);
|
|
2642
2848
|
}
|
|
@@ -2661,7 +2867,7 @@ export var deserializeAws_json1_1DisassociateDelegateFromResourceCommand = funct
|
|
|
2661
2867
|
});
|
|
2662
2868
|
}); };
|
|
2663
2869
|
var deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2664
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2870
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2665
2871
|
var _c;
|
|
2666
2872
|
return __generator(this, function (_d) {
|
|
2667
2873
|
switch (_d.label) {
|
|
@@ -2671,7 +2877,6 @@ var deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = functio
|
|
|
2671
2877
|
return [4, parseBody(output.body, context)];
|
|
2672
2878
|
case 1:
|
|
2673
2879
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2674
|
-
errorCode = "UnknownError";
|
|
2675
2880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
2881
|
_b = errorCode;
|
|
2677
2882
|
switch (_b) {
|
|
@@ -2699,10 +2904,12 @@ var deserializeAws_json1_1DisassociateDelegateFromResourceCommandError = functio
|
|
|
2699
2904
|
case 11: throw _d.sent();
|
|
2700
2905
|
case 12:
|
|
2701
2906
|
parsedBody = parsedOutput.body;
|
|
2907
|
+
$metadata = deserializeMetadata(output);
|
|
2908
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2702
2909
|
response = new __BaseException({
|
|
2703
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2910
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2704
2911
|
$fault: "client",
|
|
2705
|
-
$metadata:
|
|
2912
|
+
$metadata: $metadata,
|
|
2706
2913
|
});
|
|
2707
2914
|
throw __decorateServiceException(response, parsedBody);
|
|
2708
2915
|
}
|
|
@@ -2727,7 +2934,7 @@ export var deserializeAws_json1_1DisassociateMemberFromGroupCommand = function (
|
|
|
2727
2934
|
});
|
|
2728
2935
|
}); };
|
|
2729
2936
|
var deserializeAws_json1_1DisassociateMemberFromGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2730
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2937
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2731
2938
|
var _c;
|
|
2732
2939
|
return __generator(this, function (_d) {
|
|
2733
2940
|
switch (_d.label) {
|
|
@@ -2737,7 +2944,6 @@ var deserializeAws_json1_1DisassociateMemberFromGroupCommandError = function (ou
|
|
|
2737
2944
|
return [4, parseBody(output.body, context)];
|
|
2738
2945
|
case 1:
|
|
2739
2946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2740
|
-
errorCode = "UnknownError";
|
|
2741
2947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2742
2948
|
_b = errorCode;
|
|
2743
2949
|
switch (_b) {
|
|
@@ -2777,10 +2983,12 @@ var deserializeAws_json1_1DisassociateMemberFromGroupCommandError = function (ou
|
|
|
2777
2983
|
case 17: throw _d.sent();
|
|
2778
2984
|
case 18:
|
|
2779
2985
|
parsedBody = parsedOutput.body;
|
|
2986
|
+
$metadata = deserializeMetadata(output);
|
|
2987
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2780
2988
|
response = new __BaseException({
|
|
2781
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2782
2990
|
$fault: "client",
|
|
2783
|
-
$metadata:
|
|
2991
|
+
$metadata: $metadata,
|
|
2784
2992
|
});
|
|
2785
2993
|
throw __decorateServiceException(response, parsedBody);
|
|
2786
2994
|
}
|
|
@@ -2805,7 +3013,7 @@ export var deserializeAws_json1_1GetAccessControlEffectCommand = function (outpu
|
|
|
2805
3013
|
});
|
|
2806
3014
|
}); };
|
|
2807
3015
|
var deserializeAws_json1_1GetAccessControlEffectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2808
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3016
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2809
3017
|
var _c;
|
|
2810
3018
|
return __generator(this, function (_d) {
|
|
2811
3019
|
switch (_d.label) {
|
|
@@ -2815,7 +3023,6 @@ var deserializeAws_json1_1GetAccessControlEffectCommandError = function (output,
|
|
|
2815
3023
|
return [4, parseBody(output.body, context)];
|
|
2816
3024
|
case 1:
|
|
2817
3025
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2818
|
-
errorCode = "UnknownError";
|
|
2819
3026
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
3027
|
_b = errorCode;
|
|
2821
3028
|
switch (_b) {
|
|
@@ -2839,10 +3046,12 @@ var deserializeAws_json1_1GetAccessControlEffectCommandError = function (output,
|
|
|
2839
3046
|
case 9: throw _d.sent();
|
|
2840
3047
|
case 10:
|
|
2841
3048
|
parsedBody = parsedOutput.body;
|
|
3049
|
+
$metadata = deserializeMetadata(output);
|
|
3050
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2842
3051
|
response = new __BaseException({
|
|
2843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2844
3053
|
$fault: "client",
|
|
2845
|
-
$metadata:
|
|
3054
|
+
$metadata: $metadata,
|
|
2846
3055
|
});
|
|
2847
3056
|
throw __decorateServiceException(response, parsedBody);
|
|
2848
3057
|
}
|
|
@@ -2867,7 +3076,7 @@ export var deserializeAws_json1_1GetDefaultRetentionPolicyCommand = function (ou
|
|
|
2867
3076
|
});
|
|
2868
3077
|
}); };
|
|
2869
3078
|
var deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2870
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3079
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2871
3080
|
var _c;
|
|
2872
3081
|
return __generator(this, function (_d) {
|
|
2873
3082
|
switch (_d.label) {
|
|
@@ -2877,7 +3086,6 @@ var deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = function (outp
|
|
|
2877
3086
|
return [4, parseBody(output.body, context)];
|
|
2878
3087
|
case 1:
|
|
2879
3088
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2880
|
-
errorCode = "UnknownError";
|
|
2881
3089
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
3090
|
_b = errorCode;
|
|
2883
3091
|
switch (_b) {
|
|
@@ -2901,10 +3109,12 @@ var deserializeAws_json1_1GetDefaultRetentionPolicyCommandError = function (outp
|
|
|
2901
3109
|
case 9: throw _d.sent();
|
|
2902
3110
|
case 10:
|
|
2903
3111
|
parsedBody = parsedOutput.body;
|
|
3112
|
+
$metadata = deserializeMetadata(output);
|
|
3113
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2904
3114
|
response = new __BaseException({
|
|
2905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2906
3116
|
$fault: "client",
|
|
2907
|
-
$metadata:
|
|
3117
|
+
$metadata: $metadata,
|
|
2908
3118
|
});
|
|
2909
3119
|
throw __decorateServiceException(response, parsedBody);
|
|
2910
3120
|
}
|
|
@@ -2929,7 +3139,7 @@ export var deserializeAws_json1_1GetMailboxDetailsCommand = function (output, co
|
|
|
2929
3139
|
});
|
|
2930
3140
|
}); };
|
|
2931
3141
|
var deserializeAws_json1_1GetMailboxDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2932
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3142
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2933
3143
|
var _c;
|
|
2934
3144
|
return __generator(this, function (_d) {
|
|
2935
3145
|
switch (_d.label) {
|
|
@@ -2939,7 +3149,6 @@ var deserializeAws_json1_1GetMailboxDetailsCommandError = function (output, cont
|
|
|
2939
3149
|
return [4, parseBody(output.body, context)];
|
|
2940
3150
|
case 1:
|
|
2941
3151
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2942
|
-
errorCode = "UnknownError";
|
|
2943
3152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
3153
|
_b = errorCode;
|
|
2945
3154
|
switch (_b) {
|
|
@@ -2959,10 +3168,12 @@ var deserializeAws_json1_1GetMailboxDetailsCommandError = function (output, cont
|
|
|
2959
3168
|
case 7: throw _d.sent();
|
|
2960
3169
|
case 8:
|
|
2961
3170
|
parsedBody = parsedOutput.body;
|
|
3171
|
+
$metadata = deserializeMetadata(output);
|
|
3172
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2962
3173
|
response = new __BaseException({
|
|
2963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2964
3175
|
$fault: "client",
|
|
2965
|
-
$metadata:
|
|
3176
|
+
$metadata: $metadata,
|
|
2966
3177
|
});
|
|
2967
3178
|
throw __decorateServiceException(response, parsedBody);
|
|
2968
3179
|
}
|
|
@@ -2987,7 +3198,7 @@ export var deserializeAws_json1_1GetMailDomainCommand = function (output, contex
|
|
|
2987
3198
|
});
|
|
2988
3199
|
}); };
|
|
2989
3200
|
var deserializeAws_json1_1GetMailDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2990
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3201
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2991
3202
|
var _c;
|
|
2992
3203
|
return __generator(this, function (_d) {
|
|
2993
3204
|
switch (_d.label) {
|
|
@@ -2997,7 +3208,6 @@ var deserializeAws_json1_1GetMailDomainCommandError = function (output, context)
|
|
|
2997
3208
|
return [4, parseBody(output.body, context)];
|
|
2998
3209
|
case 1:
|
|
2999
3210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3000
|
-
errorCode = "UnknownError";
|
|
3001
3211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
3212
|
_b = errorCode;
|
|
3003
3213
|
switch (_b) {
|
|
@@ -3021,10 +3231,12 @@ var deserializeAws_json1_1GetMailDomainCommandError = function (output, context)
|
|
|
3021
3231
|
case 9: throw _d.sent();
|
|
3022
3232
|
case 10:
|
|
3023
3233
|
parsedBody = parsedOutput.body;
|
|
3234
|
+
$metadata = deserializeMetadata(output);
|
|
3235
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3024
3236
|
response = new __BaseException({
|
|
3025
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3237
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3026
3238
|
$fault: "client",
|
|
3027
|
-
$metadata:
|
|
3239
|
+
$metadata: $metadata,
|
|
3028
3240
|
});
|
|
3029
3241
|
throw __decorateServiceException(response, parsedBody);
|
|
3030
3242
|
}
|
|
@@ -3049,7 +3261,7 @@ export var deserializeAws_json1_1GetMobileDeviceAccessEffectCommand = function (
|
|
|
3049
3261
|
});
|
|
3050
3262
|
}); };
|
|
3051
3263
|
var deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3052
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3264
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3053
3265
|
var _c;
|
|
3054
3266
|
return __generator(this, function (_d) {
|
|
3055
3267
|
switch (_d.label) {
|
|
@@ -3059,7 +3271,6 @@ var deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = function (ou
|
|
|
3059
3271
|
return [4, parseBody(output.body, context)];
|
|
3060
3272
|
case 1:
|
|
3061
3273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3062
|
-
errorCode = "UnknownError";
|
|
3063
3274
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
3275
|
_b = errorCode;
|
|
3065
3276
|
switch (_b) {
|
|
@@ -3079,10 +3290,12 @@ var deserializeAws_json1_1GetMobileDeviceAccessEffectCommandError = function (ou
|
|
|
3079
3290
|
case 7: throw _d.sent();
|
|
3080
3291
|
case 8:
|
|
3081
3292
|
parsedBody = parsedOutput.body;
|
|
3293
|
+
$metadata = deserializeMetadata(output);
|
|
3294
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3082
3295
|
response = new __BaseException({
|
|
3083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3084
3297
|
$fault: "client",
|
|
3085
|
-
$metadata:
|
|
3298
|
+
$metadata: $metadata,
|
|
3086
3299
|
});
|
|
3087
3300
|
throw __decorateServiceException(response, parsedBody);
|
|
3088
3301
|
}
|
|
@@ -3107,7 +3320,7 @@ export var deserializeAws_json1_1GetMobileDeviceAccessOverrideCommand = function
|
|
|
3107
3320
|
});
|
|
3108
3321
|
}); };
|
|
3109
3322
|
var deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3110
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3111
3324
|
var _c;
|
|
3112
3325
|
return __generator(this, function (_d) {
|
|
3113
3326
|
switch (_d.label) {
|
|
@@ -3117,7 +3330,6 @@ var deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = function (
|
|
|
3117
3330
|
return [4, parseBody(output.body, context)];
|
|
3118
3331
|
case 1:
|
|
3119
3332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3120
|
-
errorCode = "UnknownError";
|
|
3121
3333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3122
3334
|
_b = errorCode;
|
|
3123
3335
|
switch (_b) {
|
|
@@ -3145,10 +3357,12 @@ var deserializeAws_json1_1GetMobileDeviceAccessOverrideCommandError = function (
|
|
|
3145
3357
|
case 11: throw _d.sent();
|
|
3146
3358
|
case 12:
|
|
3147
3359
|
parsedBody = parsedOutput.body;
|
|
3360
|
+
$metadata = deserializeMetadata(output);
|
|
3361
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3148
3362
|
response = new __BaseException({
|
|
3149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3363
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3150
3364
|
$fault: "client",
|
|
3151
|
-
$metadata:
|
|
3365
|
+
$metadata: $metadata,
|
|
3152
3366
|
});
|
|
3153
3367
|
throw __decorateServiceException(response, parsedBody);
|
|
3154
3368
|
}
|
|
@@ -3173,7 +3387,7 @@ export var deserializeAws_json1_1ListAccessControlRulesCommand = function (outpu
|
|
|
3173
3387
|
});
|
|
3174
3388
|
}); };
|
|
3175
3389
|
var deserializeAws_json1_1ListAccessControlRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3176
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3390
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3177
3391
|
var _c;
|
|
3178
3392
|
return __generator(this, function (_d) {
|
|
3179
3393
|
switch (_d.label) {
|
|
@@ -3183,7 +3397,6 @@ var deserializeAws_json1_1ListAccessControlRulesCommandError = function (output,
|
|
|
3183
3397
|
return [4, parseBody(output.body, context)];
|
|
3184
3398
|
case 1:
|
|
3185
3399
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3186
|
-
errorCode = "UnknownError";
|
|
3187
3400
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3188
3401
|
_b = errorCode;
|
|
3189
3402
|
switch (_b) {
|
|
@@ -3199,10 +3412,12 @@ var deserializeAws_json1_1ListAccessControlRulesCommandError = function (output,
|
|
|
3199
3412
|
case 5: throw _d.sent();
|
|
3200
3413
|
case 6:
|
|
3201
3414
|
parsedBody = parsedOutput.body;
|
|
3415
|
+
$metadata = deserializeMetadata(output);
|
|
3416
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3202
3417
|
response = new __BaseException({
|
|
3203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3204
3419
|
$fault: "client",
|
|
3205
|
-
$metadata:
|
|
3420
|
+
$metadata: $metadata,
|
|
3206
3421
|
});
|
|
3207
3422
|
throw __decorateServiceException(response, parsedBody);
|
|
3208
3423
|
}
|
|
@@ -3227,7 +3442,7 @@ export var deserializeAws_json1_1ListAliasesCommand = function (output, context)
|
|
|
3227
3442
|
});
|
|
3228
3443
|
}); };
|
|
3229
3444
|
var deserializeAws_json1_1ListAliasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3230
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3445
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3231
3446
|
var _c;
|
|
3232
3447
|
return __generator(this, function (_d) {
|
|
3233
3448
|
switch (_d.label) {
|
|
@@ -3237,7 +3452,6 @@ var deserializeAws_json1_1ListAliasesCommandError = function (output, context) {
|
|
|
3237
3452
|
return [4, parseBody(output.body, context)];
|
|
3238
3453
|
case 1:
|
|
3239
3454
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3240
|
-
errorCode = "UnknownError";
|
|
3241
3455
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
3456
|
_b = errorCode;
|
|
3243
3457
|
switch (_b) {
|
|
@@ -3265,10 +3479,67 @@ var deserializeAws_json1_1ListAliasesCommandError = function (output, context) {
|
|
|
3265
3479
|
case 11: throw _d.sent();
|
|
3266
3480
|
case 12:
|
|
3267
3481
|
parsedBody = parsedOutput.body;
|
|
3482
|
+
$metadata = deserializeMetadata(output);
|
|
3483
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3484
|
+
response = new __BaseException({
|
|
3485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3486
|
+
$fault: "client",
|
|
3487
|
+
$metadata: $metadata,
|
|
3488
|
+
});
|
|
3489
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3490
|
+
}
|
|
3491
|
+
});
|
|
3492
|
+
}); };
|
|
3493
|
+
export var deserializeAws_json1_1ListAvailabilityConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3494
|
+
var data, contents, response;
|
|
3495
|
+
return __generator(this, function (_a) {
|
|
3496
|
+
switch (_a.label) {
|
|
3497
|
+
case 0:
|
|
3498
|
+
if (output.statusCode >= 300) {
|
|
3499
|
+
return [2, deserializeAws_json1_1ListAvailabilityConfigurationsCommandError(output, context)];
|
|
3500
|
+
}
|
|
3501
|
+
return [4, parseBody(output.body, context)];
|
|
3502
|
+
case 1:
|
|
3503
|
+
data = _a.sent();
|
|
3504
|
+
contents = {};
|
|
3505
|
+
contents = deserializeAws_json1_1ListAvailabilityConfigurationsResponse(data, context);
|
|
3506
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3507
|
+
return [2, Promise.resolve(response)];
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
}); };
|
|
3511
|
+
var deserializeAws_json1_1ListAvailabilityConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3512
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3513
|
+
var _c;
|
|
3514
|
+
return __generator(this, function (_d) {
|
|
3515
|
+
switch (_d.label) {
|
|
3516
|
+
case 0:
|
|
3517
|
+
_a = [__assign({}, output)];
|
|
3518
|
+
_c = {};
|
|
3519
|
+
return [4, parseBody(output.body, context)];
|
|
3520
|
+
case 1:
|
|
3521
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3522
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
|
+
_b = errorCode;
|
|
3524
|
+
switch (_b) {
|
|
3525
|
+
case "OrganizationNotFoundException": return [3, 2];
|
|
3526
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 2];
|
|
3527
|
+
case "OrganizationStateException": return [3, 4];
|
|
3528
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 4];
|
|
3529
|
+
}
|
|
3530
|
+
return [3, 6];
|
|
3531
|
+
case 2: return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
3532
|
+
case 3: throw _d.sent();
|
|
3533
|
+
case 4: return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
3534
|
+
case 5: throw _d.sent();
|
|
3535
|
+
case 6:
|
|
3536
|
+
parsedBody = parsedOutput.body;
|
|
3537
|
+
$metadata = deserializeMetadata(output);
|
|
3538
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3268
3539
|
response = new __BaseException({
|
|
3269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3270
3541
|
$fault: "client",
|
|
3271
|
-
$metadata:
|
|
3542
|
+
$metadata: $metadata,
|
|
3272
3543
|
});
|
|
3273
3544
|
throw __decorateServiceException(response, parsedBody);
|
|
3274
3545
|
}
|
|
@@ -3293,7 +3564,7 @@ export var deserializeAws_json1_1ListGroupMembersCommand = function (output, con
|
|
|
3293
3564
|
});
|
|
3294
3565
|
}); };
|
|
3295
3566
|
var deserializeAws_json1_1ListGroupMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3296
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3567
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3297
3568
|
var _c;
|
|
3298
3569
|
return __generator(this, function (_d) {
|
|
3299
3570
|
switch (_d.label) {
|
|
@@ -3303,7 +3574,6 @@ var deserializeAws_json1_1ListGroupMembersCommandError = function (output, conte
|
|
|
3303
3574
|
return [4, parseBody(output.body, context)];
|
|
3304
3575
|
case 1:
|
|
3305
3576
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3306
|
-
errorCode = "UnknownError";
|
|
3307
3577
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3308
3578
|
_b = errorCode;
|
|
3309
3579
|
switch (_b) {
|
|
@@ -3331,10 +3601,12 @@ var deserializeAws_json1_1ListGroupMembersCommandError = function (output, conte
|
|
|
3331
3601
|
case 11: throw _d.sent();
|
|
3332
3602
|
case 12:
|
|
3333
3603
|
parsedBody = parsedOutput.body;
|
|
3604
|
+
$metadata = deserializeMetadata(output);
|
|
3605
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3334
3606
|
response = new __BaseException({
|
|
3335
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3607
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3336
3608
|
$fault: "client",
|
|
3337
|
-
$metadata:
|
|
3609
|
+
$metadata: $metadata,
|
|
3338
3610
|
});
|
|
3339
3611
|
throw __decorateServiceException(response, parsedBody);
|
|
3340
3612
|
}
|
|
@@ -3359,7 +3631,7 @@ export var deserializeAws_json1_1ListGroupsCommand = function (output, context)
|
|
|
3359
3631
|
});
|
|
3360
3632
|
}); };
|
|
3361
3633
|
var deserializeAws_json1_1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3362
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3634
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3363
3635
|
var _c;
|
|
3364
3636
|
return __generator(this, function (_d) {
|
|
3365
3637
|
switch (_d.label) {
|
|
@@ -3369,7 +3641,6 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
3369
3641
|
return [4, parseBody(output.body, context)];
|
|
3370
3642
|
case 1:
|
|
3371
3643
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3372
|
-
errorCode = "UnknownError";
|
|
3373
3644
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3374
3645
|
_b = errorCode;
|
|
3375
3646
|
switch (_b) {
|
|
@@ -3393,10 +3664,12 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
3393
3664
|
case 9: throw _d.sent();
|
|
3394
3665
|
case 10:
|
|
3395
3666
|
parsedBody = parsedOutput.body;
|
|
3667
|
+
$metadata = deserializeMetadata(output);
|
|
3668
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3396
3669
|
response = new __BaseException({
|
|
3397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3398
3671
|
$fault: "client",
|
|
3399
|
-
$metadata:
|
|
3672
|
+
$metadata: $metadata,
|
|
3400
3673
|
});
|
|
3401
3674
|
throw __decorateServiceException(response, parsedBody);
|
|
3402
3675
|
}
|
|
@@ -3421,7 +3694,7 @@ export var deserializeAws_json1_1ListMailboxExportJobsCommand = function (output
|
|
|
3421
3694
|
});
|
|
3422
3695
|
}); };
|
|
3423
3696
|
var deserializeAws_json1_1ListMailboxExportJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3424
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3697
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3425
3698
|
var _c;
|
|
3426
3699
|
return __generator(this, function (_d) {
|
|
3427
3700
|
switch (_d.label) {
|
|
@@ -3431,7 +3704,6 @@ var deserializeAws_json1_1ListMailboxExportJobsCommandError = function (output,
|
|
|
3431
3704
|
return [4, parseBody(output.body, context)];
|
|
3432
3705
|
case 1:
|
|
3433
3706
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3434
|
-
errorCode = "UnknownError";
|
|
3435
3707
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3436
3708
|
_b = errorCode;
|
|
3437
3709
|
switch (_b) {
|
|
@@ -3451,10 +3723,12 @@ var deserializeAws_json1_1ListMailboxExportJobsCommandError = function (output,
|
|
|
3451
3723
|
case 7: throw _d.sent();
|
|
3452
3724
|
case 8:
|
|
3453
3725
|
parsedBody = parsedOutput.body;
|
|
3726
|
+
$metadata = deserializeMetadata(output);
|
|
3727
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3454
3728
|
response = new __BaseException({
|
|
3455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3729
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3456
3730
|
$fault: "client",
|
|
3457
|
-
$metadata:
|
|
3731
|
+
$metadata: $metadata,
|
|
3458
3732
|
});
|
|
3459
3733
|
throw __decorateServiceException(response, parsedBody);
|
|
3460
3734
|
}
|
|
@@ -3479,7 +3753,7 @@ export var deserializeAws_json1_1ListMailboxPermissionsCommand = function (outpu
|
|
|
3479
3753
|
});
|
|
3480
3754
|
}); };
|
|
3481
3755
|
var deserializeAws_json1_1ListMailboxPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3482
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3756
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3483
3757
|
var _c;
|
|
3484
3758
|
return __generator(this, function (_d) {
|
|
3485
3759
|
switch (_d.label) {
|
|
@@ -3489,7 +3763,6 @@ var deserializeAws_json1_1ListMailboxPermissionsCommandError = function (output,
|
|
|
3489
3763
|
return [4, parseBody(output.body, context)];
|
|
3490
3764
|
case 1:
|
|
3491
3765
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3492
|
-
errorCode = "UnknownError";
|
|
3493
3766
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
3767
|
_b = errorCode;
|
|
3495
3768
|
switch (_b) {
|
|
@@ -3513,10 +3786,12 @@ var deserializeAws_json1_1ListMailboxPermissionsCommandError = function (output,
|
|
|
3513
3786
|
case 9: throw _d.sent();
|
|
3514
3787
|
case 10:
|
|
3515
3788
|
parsedBody = parsedOutput.body;
|
|
3789
|
+
$metadata = deserializeMetadata(output);
|
|
3790
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3516
3791
|
response = new __BaseException({
|
|
3517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3518
3793
|
$fault: "client",
|
|
3519
|
-
$metadata:
|
|
3794
|
+
$metadata: $metadata,
|
|
3520
3795
|
});
|
|
3521
3796
|
throw __decorateServiceException(response, parsedBody);
|
|
3522
3797
|
}
|
|
@@ -3541,7 +3816,7 @@ export var deserializeAws_json1_1ListMailDomainsCommand = function (output, cont
|
|
|
3541
3816
|
});
|
|
3542
3817
|
}); };
|
|
3543
3818
|
var deserializeAws_json1_1ListMailDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3544
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3819
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3545
3820
|
var _c;
|
|
3546
3821
|
return __generator(this, function (_d) {
|
|
3547
3822
|
switch (_d.label) {
|
|
@@ -3551,7 +3826,6 @@ var deserializeAws_json1_1ListMailDomainsCommandError = function (output, contex
|
|
|
3551
3826
|
return [4, parseBody(output.body, context)];
|
|
3552
3827
|
case 1:
|
|
3553
3828
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3554
|
-
errorCode = "UnknownError";
|
|
3555
3829
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3556
3830
|
_b = errorCode;
|
|
3557
3831
|
switch (_b) {
|
|
@@ -3571,10 +3845,12 @@ var deserializeAws_json1_1ListMailDomainsCommandError = function (output, contex
|
|
|
3571
3845
|
case 7: throw _d.sent();
|
|
3572
3846
|
case 8:
|
|
3573
3847
|
parsedBody = parsedOutput.body;
|
|
3848
|
+
$metadata = deserializeMetadata(output);
|
|
3849
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3574
3850
|
response = new __BaseException({
|
|
3575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3576
3852
|
$fault: "client",
|
|
3577
|
-
$metadata:
|
|
3853
|
+
$metadata: $metadata,
|
|
3578
3854
|
});
|
|
3579
3855
|
throw __decorateServiceException(response, parsedBody);
|
|
3580
3856
|
}
|
|
@@ -3599,7 +3875,7 @@ export var deserializeAws_json1_1ListMobileDeviceAccessOverridesCommand = functi
|
|
|
3599
3875
|
});
|
|
3600
3876
|
}); };
|
|
3601
3877
|
var deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3602
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3878
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3603
3879
|
var _c;
|
|
3604
3880
|
return __generator(this, function (_d) {
|
|
3605
3881
|
switch (_d.label) {
|
|
@@ -3609,7 +3885,6 @@ var deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = function
|
|
|
3609
3885
|
return [4, parseBody(output.body, context)];
|
|
3610
3886
|
case 1:
|
|
3611
3887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3612
|
-
errorCode = "UnknownError";
|
|
3613
3888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3614
3889
|
_b = errorCode;
|
|
3615
3890
|
switch (_b) {
|
|
@@ -3633,10 +3908,12 @@ var deserializeAws_json1_1ListMobileDeviceAccessOverridesCommandError = function
|
|
|
3633
3908
|
case 9: throw _d.sent();
|
|
3634
3909
|
case 10:
|
|
3635
3910
|
parsedBody = parsedOutput.body;
|
|
3911
|
+
$metadata = deserializeMetadata(output);
|
|
3912
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3636
3913
|
response = new __BaseException({
|
|
3637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3638
3915
|
$fault: "client",
|
|
3639
|
-
$metadata:
|
|
3916
|
+
$metadata: $metadata,
|
|
3640
3917
|
});
|
|
3641
3918
|
throw __decorateServiceException(response, parsedBody);
|
|
3642
3919
|
}
|
|
@@ -3661,7 +3938,7 @@ export var deserializeAws_json1_1ListMobileDeviceAccessRulesCommand = function (
|
|
|
3661
3938
|
});
|
|
3662
3939
|
}); };
|
|
3663
3940
|
var deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3664
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3941
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3665
3942
|
var _c;
|
|
3666
3943
|
return __generator(this, function (_d) {
|
|
3667
3944
|
switch (_d.label) {
|
|
@@ -3671,7 +3948,6 @@ var deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = function (ou
|
|
|
3671
3948
|
return [4, parseBody(output.body, context)];
|
|
3672
3949
|
case 1:
|
|
3673
3950
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3674
|
-
errorCode = "UnknownError";
|
|
3675
3951
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3676
3952
|
_b = errorCode;
|
|
3677
3953
|
switch (_b) {
|
|
@@ -3691,10 +3967,12 @@ var deserializeAws_json1_1ListMobileDeviceAccessRulesCommandError = function (ou
|
|
|
3691
3967
|
case 7: throw _d.sent();
|
|
3692
3968
|
case 8:
|
|
3693
3969
|
parsedBody = parsedOutput.body;
|
|
3970
|
+
$metadata = deserializeMetadata(output);
|
|
3971
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3694
3972
|
response = new __BaseException({
|
|
3695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3696
3974
|
$fault: "client",
|
|
3697
|
-
$metadata:
|
|
3975
|
+
$metadata: $metadata,
|
|
3698
3976
|
});
|
|
3699
3977
|
throw __decorateServiceException(response, parsedBody);
|
|
3700
3978
|
}
|
|
@@ -3719,7 +3997,7 @@ export var deserializeAws_json1_1ListOrganizationsCommand = function (output, co
|
|
|
3719
3997
|
});
|
|
3720
3998
|
}); };
|
|
3721
3999
|
var deserializeAws_json1_1ListOrganizationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3722
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4000
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3723
4001
|
var _c;
|
|
3724
4002
|
return __generator(this, function (_d) {
|
|
3725
4003
|
switch (_d.label) {
|
|
@@ -3729,7 +4007,6 @@ var deserializeAws_json1_1ListOrganizationsCommandError = function (output, cont
|
|
|
3729
4007
|
return [4, parseBody(output.body, context)];
|
|
3730
4008
|
case 1:
|
|
3731
4009
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3732
|
-
errorCode = "UnknownError";
|
|
3733
4010
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3734
4011
|
_b = errorCode;
|
|
3735
4012
|
switch (_b) {
|
|
@@ -3741,10 +4018,12 @@ var deserializeAws_json1_1ListOrganizationsCommandError = function (output, cont
|
|
|
3741
4018
|
case 3: throw _d.sent();
|
|
3742
4019
|
case 4:
|
|
3743
4020
|
parsedBody = parsedOutput.body;
|
|
4021
|
+
$metadata = deserializeMetadata(output);
|
|
4022
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3744
4023
|
response = new __BaseException({
|
|
3745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3746
4025
|
$fault: "client",
|
|
3747
|
-
$metadata:
|
|
4026
|
+
$metadata: $metadata,
|
|
3748
4027
|
});
|
|
3749
4028
|
throw __decorateServiceException(response, parsedBody);
|
|
3750
4029
|
}
|
|
@@ -3769,7 +4048,7 @@ export var deserializeAws_json1_1ListResourceDelegatesCommand = function (output
|
|
|
3769
4048
|
});
|
|
3770
4049
|
}); };
|
|
3771
4050
|
var deserializeAws_json1_1ListResourceDelegatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3772
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4051
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3773
4052
|
var _c;
|
|
3774
4053
|
return __generator(this, function (_d) {
|
|
3775
4054
|
switch (_d.label) {
|
|
@@ -3779,7 +4058,6 @@ var deserializeAws_json1_1ListResourceDelegatesCommandError = function (output,
|
|
|
3779
4058
|
return [4, parseBody(output.body, context)];
|
|
3780
4059
|
case 1:
|
|
3781
4060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3782
|
-
errorCode = "UnknownError";
|
|
3783
4061
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3784
4062
|
_b = errorCode;
|
|
3785
4063
|
switch (_b) {
|
|
@@ -3807,10 +4085,12 @@ var deserializeAws_json1_1ListResourceDelegatesCommandError = function (output,
|
|
|
3807
4085
|
case 11: throw _d.sent();
|
|
3808
4086
|
case 12:
|
|
3809
4087
|
parsedBody = parsedOutput.body;
|
|
4088
|
+
$metadata = deserializeMetadata(output);
|
|
4089
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3810
4090
|
response = new __BaseException({
|
|
3811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3812
4092
|
$fault: "client",
|
|
3813
|
-
$metadata:
|
|
4093
|
+
$metadata: $metadata,
|
|
3814
4094
|
});
|
|
3815
4095
|
throw __decorateServiceException(response, parsedBody);
|
|
3816
4096
|
}
|
|
@@ -3835,7 +4115,7 @@ export var deserializeAws_json1_1ListResourcesCommand = function (output, contex
|
|
|
3835
4115
|
});
|
|
3836
4116
|
}); };
|
|
3837
4117
|
var deserializeAws_json1_1ListResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3838
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4118
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3839
4119
|
var _c;
|
|
3840
4120
|
return __generator(this, function (_d) {
|
|
3841
4121
|
switch (_d.label) {
|
|
@@ -3845,7 +4125,6 @@ var deserializeAws_json1_1ListResourcesCommandError = function (output, context)
|
|
|
3845
4125
|
return [4, parseBody(output.body, context)];
|
|
3846
4126
|
case 1:
|
|
3847
4127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3848
|
-
errorCode = "UnknownError";
|
|
3849
4128
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3850
4129
|
_b = errorCode;
|
|
3851
4130
|
switch (_b) {
|
|
@@ -3865,10 +4144,12 @@ var deserializeAws_json1_1ListResourcesCommandError = function (output, context)
|
|
|
3865
4144
|
case 7: throw _d.sent();
|
|
3866
4145
|
case 8:
|
|
3867
4146
|
parsedBody = parsedOutput.body;
|
|
4147
|
+
$metadata = deserializeMetadata(output);
|
|
4148
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3868
4149
|
response = new __BaseException({
|
|
3869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3870
4151
|
$fault: "client",
|
|
3871
|
-
$metadata:
|
|
4152
|
+
$metadata: $metadata,
|
|
3872
4153
|
});
|
|
3873
4154
|
throw __decorateServiceException(response, parsedBody);
|
|
3874
4155
|
}
|
|
@@ -3893,7 +4174,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
3893
4174
|
});
|
|
3894
4175
|
}); };
|
|
3895
4176
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3896
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4177
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3897
4178
|
var _c;
|
|
3898
4179
|
return __generator(this, function (_d) {
|
|
3899
4180
|
switch (_d.label) {
|
|
@@ -3903,7 +4184,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
3903
4184
|
return [4, parseBody(output.body, context)];
|
|
3904
4185
|
case 1:
|
|
3905
4186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3906
|
-
errorCode = "UnknownError";
|
|
3907
4187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
4188
|
_b = errorCode;
|
|
3909
4189
|
switch (_b) {
|
|
@@ -3915,10 +4195,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
3915
4195
|
case 3: throw _d.sent();
|
|
3916
4196
|
case 4:
|
|
3917
4197
|
parsedBody = parsedOutput.body;
|
|
4198
|
+
$metadata = deserializeMetadata(output);
|
|
4199
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3918
4200
|
response = new __BaseException({
|
|
3919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4201
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3920
4202
|
$fault: "client",
|
|
3921
|
-
$metadata:
|
|
4203
|
+
$metadata: $metadata,
|
|
3922
4204
|
});
|
|
3923
4205
|
throw __decorateServiceException(response, parsedBody);
|
|
3924
4206
|
}
|
|
@@ -3943,7 +4225,7 @@ export var deserializeAws_json1_1ListUsersCommand = function (output, context) {
|
|
|
3943
4225
|
});
|
|
3944
4226
|
}); };
|
|
3945
4227
|
var deserializeAws_json1_1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3946
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4228
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3947
4229
|
var _c;
|
|
3948
4230
|
return __generator(this, function (_d) {
|
|
3949
4231
|
switch (_d.label) {
|
|
@@ -3953,7 +4235,6 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
3953
4235
|
return [4, parseBody(output.body, context)];
|
|
3954
4236
|
case 1:
|
|
3955
4237
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3956
|
-
errorCode = "UnknownError";
|
|
3957
4238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3958
4239
|
_b = errorCode;
|
|
3959
4240
|
switch (_b) {
|
|
@@ -3973,10 +4254,12 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
3973
4254
|
case 7: throw _d.sent();
|
|
3974
4255
|
case 8:
|
|
3975
4256
|
parsedBody = parsedOutput.body;
|
|
4257
|
+
$metadata = deserializeMetadata(output);
|
|
4258
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3976
4259
|
response = new __BaseException({
|
|
3977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3978
4261
|
$fault: "client",
|
|
3979
|
-
$metadata:
|
|
4262
|
+
$metadata: $metadata,
|
|
3980
4263
|
});
|
|
3981
4264
|
throw __decorateServiceException(response, parsedBody);
|
|
3982
4265
|
}
|
|
@@ -4001,7 +4284,7 @@ export var deserializeAws_json1_1PutAccessControlRuleCommand = function (output,
|
|
|
4001
4284
|
});
|
|
4002
4285
|
}); };
|
|
4003
4286
|
var deserializeAws_json1_1PutAccessControlRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4004
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4287
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4005
4288
|
var _c;
|
|
4006
4289
|
return __generator(this, function (_d) {
|
|
4007
4290
|
switch (_d.label) {
|
|
@@ -4011,7 +4294,6 @@ var deserializeAws_json1_1PutAccessControlRuleCommandError = function (output, c
|
|
|
4011
4294
|
return [4, parseBody(output.body, context)];
|
|
4012
4295
|
case 1:
|
|
4013
4296
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4014
|
-
errorCode = "UnknownError";
|
|
4015
4297
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4016
4298
|
_b = errorCode;
|
|
4017
4299
|
switch (_b) {
|
|
@@ -4039,10 +4321,12 @@ var deserializeAws_json1_1PutAccessControlRuleCommandError = function (output, c
|
|
|
4039
4321
|
case 11: throw _d.sent();
|
|
4040
4322
|
case 12:
|
|
4041
4323
|
parsedBody = parsedOutput.body;
|
|
4324
|
+
$metadata = deserializeMetadata(output);
|
|
4325
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4042
4326
|
response = new __BaseException({
|
|
4043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4327
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4044
4328
|
$fault: "client",
|
|
4045
|
-
$metadata:
|
|
4329
|
+
$metadata: $metadata,
|
|
4046
4330
|
});
|
|
4047
4331
|
throw __decorateServiceException(response, parsedBody);
|
|
4048
4332
|
}
|
|
@@ -4067,7 +4351,7 @@ export var deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = functi
|
|
|
4067
4351
|
});
|
|
4068
4352
|
}); };
|
|
4069
4353
|
var deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4070
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4354
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4071
4355
|
var _c;
|
|
4072
4356
|
return __generator(this, function (_d) {
|
|
4073
4357
|
switch (_d.label) {
|
|
@@ -4077,7 +4361,6 @@ var deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = function
|
|
|
4077
4361
|
return [4, parseBody(output.body, context)];
|
|
4078
4362
|
case 1:
|
|
4079
4363
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4080
|
-
errorCode = "UnknownError";
|
|
4081
4364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4082
4365
|
_b = errorCode;
|
|
4083
4366
|
switch (_b) {
|
|
@@ -4101,10 +4384,12 @@ var deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = function
|
|
|
4101
4384
|
case 9: throw _d.sent();
|
|
4102
4385
|
case 10:
|
|
4103
4386
|
parsedBody = parsedOutput.body;
|
|
4387
|
+
$metadata = deserializeMetadata(output);
|
|
4388
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4104
4389
|
response = new __BaseException({
|
|
4105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4106
4391
|
$fault: "client",
|
|
4107
|
-
$metadata:
|
|
4392
|
+
$metadata: $metadata,
|
|
4108
4393
|
});
|
|
4109
4394
|
throw __decorateServiceException(response, parsedBody);
|
|
4110
4395
|
}
|
|
@@ -4129,7 +4414,7 @@ export var deserializeAws_json1_1PutInboundDmarcSettingsCommand = function (outp
|
|
|
4129
4414
|
});
|
|
4130
4415
|
}); };
|
|
4131
4416
|
var deserializeAws_json1_1PutInboundDmarcSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4132
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4417
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4133
4418
|
var _c;
|
|
4134
4419
|
return __generator(this, function (_d) {
|
|
4135
4420
|
switch (_d.label) {
|
|
@@ -4139,7 +4424,6 @@ var deserializeAws_json1_1PutInboundDmarcSettingsCommandError = function (output
|
|
|
4139
4424
|
return [4, parseBody(output.body, context)];
|
|
4140
4425
|
case 1:
|
|
4141
4426
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4142
|
-
errorCode = "UnknownError";
|
|
4143
4427
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4144
4428
|
_b = errorCode;
|
|
4145
4429
|
switch (_b) {
|
|
@@ -4155,10 +4439,12 @@ var deserializeAws_json1_1PutInboundDmarcSettingsCommandError = function (output
|
|
|
4155
4439
|
case 5: throw _d.sent();
|
|
4156
4440
|
case 6:
|
|
4157
4441
|
parsedBody = parsedOutput.body;
|
|
4442
|
+
$metadata = deserializeMetadata(output);
|
|
4443
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4158
4444
|
response = new __BaseException({
|
|
4159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4160
4446
|
$fault: "client",
|
|
4161
|
-
$metadata:
|
|
4447
|
+
$metadata: $metadata,
|
|
4162
4448
|
});
|
|
4163
4449
|
throw __decorateServiceException(response, parsedBody);
|
|
4164
4450
|
}
|
|
@@ -4183,7 +4469,7 @@ export var deserializeAws_json1_1PutMailboxPermissionsCommand = function (output
|
|
|
4183
4469
|
});
|
|
4184
4470
|
}); };
|
|
4185
4471
|
var deserializeAws_json1_1PutMailboxPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4186
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4472
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4187
4473
|
var _c;
|
|
4188
4474
|
return __generator(this, function (_d) {
|
|
4189
4475
|
switch (_d.label) {
|
|
@@ -4193,7 +4479,6 @@ var deserializeAws_json1_1PutMailboxPermissionsCommandError = function (output,
|
|
|
4193
4479
|
return [4, parseBody(output.body, context)];
|
|
4194
4480
|
case 1:
|
|
4195
4481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4196
|
-
errorCode = "UnknownError";
|
|
4197
4482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
4483
|
_b = errorCode;
|
|
4199
4484
|
switch (_b) {
|
|
@@ -4221,10 +4506,12 @@ var deserializeAws_json1_1PutMailboxPermissionsCommandError = function (output,
|
|
|
4221
4506
|
case 11: throw _d.sent();
|
|
4222
4507
|
case 12:
|
|
4223
4508
|
parsedBody = parsedOutput.body;
|
|
4509
|
+
$metadata = deserializeMetadata(output);
|
|
4510
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4224
4511
|
response = new __BaseException({
|
|
4225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4226
4513
|
$fault: "client",
|
|
4227
|
-
$metadata:
|
|
4514
|
+
$metadata: $metadata,
|
|
4228
4515
|
});
|
|
4229
4516
|
throw __decorateServiceException(response, parsedBody);
|
|
4230
4517
|
}
|
|
@@ -4249,7 +4536,7 @@ export var deserializeAws_json1_1PutMobileDeviceAccessOverrideCommand = function
|
|
|
4249
4536
|
});
|
|
4250
4537
|
}); };
|
|
4251
4538
|
var deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4252
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4539
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4253
4540
|
var _c;
|
|
4254
4541
|
return __generator(this, function (_d) {
|
|
4255
4542
|
switch (_d.label) {
|
|
@@ -4259,7 +4546,6 @@ var deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = function (
|
|
|
4259
4546
|
return [4, parseBody(output.body, context)];
|
|
4260
4547
|
case 1:
|
|
4261
4548
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4262
|
-
errorCode = "UnknownError";
|
|
4263
4549
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4264
4550
|
_b = errorCode;
|
|
4265
4551
|
switch (_b) {
|
|
@@ -4287,10 +4573,12 @@ var deserializeAws_json1_1PutMobileDeviceAccessOverrideCommandError = function (
|
|
|
4287
4573
|
case 11: throw _d.sent();
|
|
4288
4574
|
case 12:
|
|
4289
4575
|
parsedBody = parsedOutput.body;
|
|
4576
|
+
$metadata = deserializeMetadata(output);
|
|
4577
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4290
4578
|
response = new __BaseException({
|
|
4291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4292
4580
|
$fault: "client",
|
|
4293
|
-
$metadata:
|
|
4581
|
+
$metadata: $metadata,
|
|
4294
4582
|
});
|
|
4295
4583
|
throw __decorateServiceException(response, parsedBody);
|
|
4296
4584
|
}
|
|
@@ -4315,7 +4603,7 @@ export var deserializeAws_json1_1PutRetentionPolicyCommand = function (output, c
|
|
|
4315
4603
|
});
|
|
4316
4604
|
}); };
|
|
4317
4605
|
var deserializeAws_json1_1PutRetentionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4318
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4606
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4319
4607
|
var _c;
|
|
4320
4608
|
return __generator(this, function (_d) {
|
|
4321
4609
|
switch (_d.label) {
|
|
@@ -4325,7 +4613,6 @@ var deserializeAws_json1_1PutRetentionPolicyCommandError = function (output, con
|
|
|
4325
4613
|
return [4, parseBody(output.body, context)];
|
|
4326
4614
|
case 1:
|
|
4327
4615
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4328
|
-
errorCode = "UnknownError";
|
|
4329
4616
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4330
4617
|
_b = errorCode;
|
|
4331
4618
|
switch (_b) {
|
|
@@ -4349,10 +4636,12 @@ var deserializeAws_json1_1PutRetentionPolicyCommandError = function (output, con
|
|
|
4349
4636
|
case 9: throw _d.sent();
|
|
4350
4637
|
case 10:
|
|
4351
4638
|
parsedBody = parsedOutput.body;
|
|
4639
|
+
$metadata = deserializeMetadata(output);
|
|
4640
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4352
4641
|
response = new __BaseException({
|
|
4353
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4354
4643
|
$fault: "client",
|
|
4355
|
-
$metadata:
|
|
4644
|
+
$metadata: $metadata,
|
|
4356
4645
|
});
|
|
4357
4646
|
throw __decorateServiceException(response, parsedBody);
|
|
4358
4647
|
}
|
|
@@ -4377,7 +4666,7 @@ export var deserializeAws_json1_1RegisterMailDomainCommand = function (output, c
|
|
|
4377
4666
|
});
|
|
4378
4667
|
}); };
|
|
4379
4668
|
var deserializeAws_json1_1RegisterMailDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4380
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4669
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4381
4670
|
var _c;
|
|
4382
4671
|
return __generator(this, function (_d) {
|
|
4383
4672
|
switch (_d.label) {
|
|
@@ -4387,7 +4676,6 @@ var deserializeAws_json1_1RegisterMailDomainCommandError = function (output, con
|
|
|
4387
4676
|
return [4, parseBody(output.body, context)];
|
|
4388
4677
|
case 1:
|
|
4389
4678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4390
|
-
errorCode = "UnknownError";
|
|
4391
4679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4392
4680
|
_b = errorCode;
|
|
4393
4681
|
switch (_b) {
|
|
@@ -4415,10 +4703,12 @@ var deserializeAws_json1_1RegisterMailDomainCommandError = function (output, con
|
|
|
4415
4703
|
case 11: throw _d.sent();
|
|
4416
4704
|
case 12:
|
|
4417
4705
|
parsedBody = parsedOutput.body;
|
|
4706
|
+
$metadata = deserializeMetadata(output);
|
|
4707
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4418
4708
|
response = new __BaseException({
|
|
4419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4420
4710
|
$fault: "client",
|
|
4421
|
-
$metadata:
|
|
4711
|
+
$metadata: $metadata,
|
|
4422
4712
|
});
|
|
4423
4713
|
throw __decorateServiceException(response, parsedBody);
|
|
4424
4714
|
}
|
|
@@ -4443,7 +4733,7 @@ export var deserializeAws_json1_1RegisterToWorkMailCommand = function (output, c
|
|
|
4443
4733
|
});
|
|
4444
4734
|
}); };
|
|
4445
4735
|
var deserializeAws_json1_1RegisterToWorkMailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4446
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4736
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4447
4737
|
var _c;
|
|
4448
4738
|
return __generator(this, function (_d) {
|
|
4449
4739
|
switch (_d.label) {
|
|
@@ -4453,7 +4743,6 @@ var deserializeAws_json1_1RegisterToWorkMailCommandError = function (output, con
|
|
|
4453
4743
|
return [4, parseBody(output.body, context)];
|
|
4454
4744
|
case 1:
|
|
4455
4745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4456
|
-
errorCode = "UnknownError";
|
|
4457
4746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
4747
|
_b = errorCode;
|
|
4459
4748
|
switch (_b) {
|
|
@@ -4505,10 +4794,12 @@ var deserializeAws_json1_1RegisterToWorkMailCommandError = function (output, con
|
|
|
4505
4794
|
case 23: throw _d.sent();
|
|
4506
4795
|
case 24:
|
|
4507
4796
|
parsedBody = parsedOutput.body;
|
|
4797
|
+
$metadata = deserializeMetadata(output);
|
|
4798
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4508
4799
|
response = new __BaseException({
|
|
4509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4800
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4510
4801
|
$fault: "client",
|
|
4511
|
-
$metadata:
|
|
4802
|
+
$metadata: $metadata,
|
|
4512
4803
|
});
|
|
4513
4804
|
throw __decorateServiceException(response, parsedBody);
|
|
4514
4805
|
}
|
|
@@ -4533,7 +4824,7 @@ export var deserializeAws_json1_1ResetPasswordCommand = function (output, contex
|
|
|
4533
4824
|
});
|
|
4534
4825
|
}); };
|
|
4535
4826
|
var deserializeAws_json1_1ResetPasswordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4536
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4827
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4537
4828
|
var _c;
|
|
4538
4829
|
return __generator(this, function (_d) {
|
|
4539
4830
|
switch (_d.label) {
|
|
@@ -4543,7 +4834,6 @@ var deserializeAws_json1_1ResetPasswordCommandError = function (output, context)
|
|
|
4543
4834
|
return [4, parseBody(output.body, context)];
|
|
4544
4835
|
case 1:
|
|
4545
4836
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4546
|
-
errorCode = "UnknownError";
|
|
4547
4837
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4548
4838
|
_b = errorCode;
|
|
4549
4839
|
switch (_b) {
|
|
@@ -4587,10 +4877,12 @@ var deserializeAws_json1_1ResetPasswordCommandError = function (output, context)
|
|
|
4587
4877
|
case 19: throw _d.sent();
|
|
4588
4878
|
case 20:
|
|
4589
4879
|
parsedBody = parsedOutput.body;
|
|
4880
|
+
$metadata = deserializeMetadata(output);
|
|
4881
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4590
4882
|
response = new __BaseException({
|
|
4591
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4883
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4592
4884
|
$fault: "client",
|
|
4593
|
-
$metadata:
|
|
4885
|
+
$metadata: $metadata,
|
|
4594
4886
|
});
|
|
4595
4887
|
throw __decorateServiceException(response, parsedBody);
|
|
4596
4888
|
}
|
|
@@ -4615,7 +4907,7 @@ export var deserializeAws_json1_1StartMailboxExportJobCommand = function (output
|
|
|
4615
4907
|
});
|
|
4616
4908
|
}); };
|
|
4617
4909
|
var deserializeAws_json1_1StartMailboxExportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4618
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4910
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4619
4911
|
var _c;
|
|
4620
4912
|
return __generator(this, function (_d) {
|
|
4621
4913
|
switch (_d.label) {
|
|
@@ -4625,7 +4917,6 @@ var deserializeAws_json1_1StartMailboxExportJobCommandError = function (output,
|
|
|
4625
4917
|
return [4, parseBody(output.body, context)];
|
|
4626
4918
|
case 1:
|
|
4627
4919
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4628
|
-
errorCode = "UnknownError";
|
|
4629
4920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4630
4921
|
_b = errorCode;
|
|
4631
4922
|
switch (_b) {
|
|
@@ -4653,10 +4944,12 @@ var deserializeAws_json1_1StartMailboxExportJobCommandError = function (output,
|
|
|
4653
4944
|
case 11: throw _d.sent();
|
|
4654
4945
|
case 12:
|
|
4655
4946
|
parsedBody = parsedOutput.body;
|
|
4947
|
+
$metadata = deserializeMetadata(output);
|
|
4948
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4656
4949
|
response = new __BaseException({
|
|
4657
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4658
4951
|
$fault: "client",
|
|
4659
|
-
$metadata:
|
|
4952
|
+
$metadata: $metadata,
|
|
4660
4953
|
});
|
|
4661
4954
|
throw __decorateServiceException(response, parsedBody);
|
|
4662
4955
|
}
|
|
@@ -4681,7 +4974,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
4681
4974
|
});
|
|
4682
4975
|
}); };
|
|
4683
4976
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4684
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4977
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4685
4978
|
var _c;
|
|
4686
4979
|
return __generator(this, function (_d) {
|
|
4687
4980
|
switch (_d.label) {
|
|
@@ -4691,7 +4984,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
4691
4984
|
return [4, parseBody(output.body, context)];
|
|
4692
4985
|
case 1:
|
|
4693
4986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4694
|
-
errorCode = "UnknownError";
|
|
4695
4987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4696
4988
|
_b = errorCode;
|
|
4697
4989
|
switch (_b) {
|
|
@@ -4711,10 +5003,75 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
4711
5003
|
case 7: throw _d.sent();
|
|
4712
5004
|
case 8:
|
|
4713
5005
|
parsedBody = parsedOutput.body;
|
|
5006
|
+
$metadata = deserializeMetadata(output);
|
|
5007
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5008
|
+
response = new __BaseException({
|
|
5009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5010
|
+
$fault: "client",
|
|
5011
|
+
$metadata: $metadata,
|
|
5012
|
+
});
|
|
5013
|
+
throw __decorateServiceException(response, parsedBody);
|
|
5014
|
+
}
|
|
5015
|
+
});
|
|
5016
|
+
}); };
|
|
5017
|
+
export var deserializeAws_json1_1TestAvailabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5018
|
+
var data, contents, response;
|
|
5019
|
+
return __generator(this, function (_a) {
|
|
5020
|
+
switch (_a.label) {
|
|
5021
|
+
case 0:
|
|
5022
|
+
if (output.statusCode >= 300) {
|
|
5023
|
+
return [2, deserializeAws_json1_1TestAvailabilityConfigurationCommandError(output, context)];
|
|
5024
|
+
}
|
|
5025
|
+
return [4, parseBody(output.body, context)];
|
|
5026
|
+
case 1:
|
|
5027
|
+
data = _a.sent();
|
|
5028
|
+
contents = {};
|
|
5029
|
+
contents = deserializeAws_json1_1TestAvailabilityConfigurationResponse(data, context);
|
|
5030
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
5031
|
+
return [2, Promise.resolve(response)];
|
|
5032
|
+
}
|
|
5033
|
+
});
|
|
5034
|
+
}); };
|
|
5035
|
+
var deserializeAws_json1_1TestAvailabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5036
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5037
|
+
var _c;
|
|
5038
|
+
return __generator(this, function (_d) {
|
|
5039
|
+
switch (_d.label) {
|
|
5040
|
+
case 0:
|
|
5041
|
+
_a = [__assign({}, output)];
|
|
5042
|
+
_c = {};
|
|
5043
|
+
return [4, parseBody(output.body, context)];
|
|
5044
|
+
case 1:
|
|
5045
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5046
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5047
|
+
_b = errorCode;
|
|
5048
|
+
switch (_b) {
|
|
5049
|
+
case "InvalidParameterException": return [3, 2];
|
|
5050
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
5051
|
+
case "OrganizationNotFoundException": return [3, 4];
|
|
5052
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 4];
|
|
5053
|
+
case "OrganizationStateException": return [3, 6];
|
|
5054
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 6];
|
|
5055
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
5056
|
+
case "com.amazonaws.workmail#ResourceNotFoundException": return [3, 8];
|
|
5057
|
+
}
|
|
5058
|
+
return [3, 10];
|
|
5059
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
5060
|
+
case 3: throw _d.sent();
|
|
5061
|
+
case 4: return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
5062
|
+
case 5: throw _d.sent();
|
|
5063
|
+
case 6: return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
5064
|
+
case 7: throw _d.sent();
|
|
5065
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5066
|
+
case 9: throw _d.sent();
|
|
5067
|
+
case 10:
|
|
5068
|
+
parsedBody = parsedOutput.body;
|
|
5069
|
+
$metadata = deserializeMetadata(output);
|
|
5070
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4714
5071
|
response = new __BaseException({
|
|
4715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4716
5073
|
$fault: "client",
|
|
4717
|
-
$metadata:
|
|
5074
|
+
$metadata: $metadata,
|
|
4718
5075
|
});
|
|
4719
5076
|
throw __decorateServiceException(response, parsedBody);
|
|
4720
5077
|
}
|
|
@@ -4739,7 +5096,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
4739
5096
|
});
|
|
4740
5097
|
}); };
|
|
4741
5098
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4742
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5099
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4743
5100
|
var _c;
|
|
4744
5101
|
return __generator(this, function (_d) {
|
|
4745
5102
|
switch (_d.label) {
|
|
@@ -4749,7 +5106,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4749
5106
|
return [4, parseBody(output.body, context)];
|
|
4750
5107
|
case 1:
|
|
4751
5108
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4752
|
-
errorCode = "UnknownError";
|
|
4753
5109
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4754
5110
|
_b = errorCode;
|
|
4755
5111
|
switch (_b) {
|
|
@@ -4761,10 +5117,75 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4761
5117
|
case 3: throw _d.sent();
|
|
4762
5118
|
case 4:
|
|
4763
5119
|
parsedBody = parsedOutput.body;
|
|
5120
|
+
$metadata = deserializeMetadata(output);
|
|
5121
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4764
5122
|
response = new __BaseException({
|
|
4765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4766
5124
|
$fault: "client",
|
|
4767
|
-
$metadata:
|
|
5125
|
+
$metadata: $metadata,
|
|
5126
|
+
});
|
|
5127
|
+
throw __decorateServiceException(response, parsedBody);
|
|
5128
|
+
}
|
|
5129
|
+
});
|
|
5130
|
+
}); };
|
|
5131
|
+
export var deserializeAws_json1_1UpdateAvailabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5132
|
+
var data, contents, response;
|
|
5133
|
+
return __generator(this, function (_a) {
|
|
5134
|
+
switch (_a.label) {
|
|
5135
|
+
case 0:
|
|
5136
|
+
if (output.statusCode >= 300) {
|
|
5137
|
+
return [2, deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError(output, context)];
|
|
5138
|
+
}
|
|
5139
|
+
return [4, parseBody(output.body, context)];
|
|
5140
|
+
case 1:
|
|
5141
|
+
data = _a.sent();
|
|
5142
|
+
contents = {};
|
|
5143
|
+
contents = deserializeAws_json1_1UpdateAvailabilityConfigurationResponse(data, context);
|
|
5144
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
5145
|
+
return [2, Promise.resolve(response)];
|
|
5146
|
+
}
|
|
5147
|
+
});
|
|
5148
|
+
}); };
|
|
5149
|
+
var deserializeAws_json1_1UpdateAvailabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5150
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5151
|
+
var _c;
|
|
5152
|
+
return __generator(this, function (_d) {
|
|
5153
|
+
switch (_d.label) {
|
|
5154
|
+
case 0:
|
|
5155
|
+
_a = [__assign({}, output)];
|
|
5156
|
+
_c = {};
|
|
5157
|
+
return [4, parseBody(output.body, context)];
|
|
5158
|
+
case 1:
|
|
5159
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5160
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5161
|
+
_b = errorCode;
|
|
5162
|
+
switch (_b) {
|
|
5163
|
+
case "InvalidParameterException": return [3, 2];
|
|
5164
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
5165
|
+
case "OrganizationNotFoundException": return [3, 4];
|
|
5166
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 4];
|
|
5167
|
+
case "OrganizationStateException": return [3, 6];
|
|
5168
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 6];
|
|
5169
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
5170
|
+
case "com.amazonaws.workmail#ResourceNotFoundException": return [3, 8];
|
|
5171
|
+
}
|
|
5172
|
+
return [3, 10];
|
|
5173
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
5174
|
+
case 3: throw _d.sent();
|
|
5175
|
+
case 4: return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
5176
|
+
case 5: throw _d.sent();
|
|
5177
|
+
case 6: return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
5178
|
+
case 7: throw _d.sent();
|
|
5179
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5180
|
+
case 9: throw _d.sent();
|
|
5181
|
+
case 10:
|
|
5182
|
+
parsedBody = parsedOutput.body;
|
|
5183
|
+
$metadata = deserializeMetadata(output);
|
|
5184
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5185
|
+
response = new __BaseException({
|
|
5186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5187
|
+
$fault: "client",
|
|
5188
|
+
$metadata: $metadata,
|
|
4768
5189
|
});
|
|
4769
5190
|
throw __decorateServiceException(response, parsedBody);
|
|
4770
5191
|
}
|
|
@@ -4789,7 +5210,7 @@ export var deserializeAws_json1_1UpdateDefaultMailDomainCommand = function (outp
|
|
|
4789
5210
|
});
|
|
4790
5211
|
}); };
|
|
4791
5212
|
var deserializeAws_json1_1UpdateDefaultMailDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4792
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5213
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4793
5214
|
var _c;
|
|
4794
5215
|
return __generator(this, function (_d) {
|
|
4795
5216
|
switch (_d.label) {
|
|
@@ -4799,7 +5220,6 @@ var deserializeAws_json1_1UpdateDefaultMailDomainCommandError = function (output
|
|
|
4799
5220
|
return [4, parseBody(output.body, context)];
|
|
4800
5221
|
case 1:
|
|
4801
5222
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4802
|
-
errorCode = "UnknownError";
|
|
4803
5223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
5224
|
_b = errorCode;
|
|
4805
5225
|
switch (_b) {
|
|
@@ -4827,10 +5247,12 @@ var deserializeAws_json1_1UpdateDefaultMailDomainCommandError = function (output
|
|
|
4827
5247
|
case 11: throw _d.sent();
|
|
4828
5248
|
case 12:
|
|
4829
5249
|
parsedBody = parsedOutput.body;
|
|
5250
|
+
$metadata = deserializeMetadata(output);
|
|
5251
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4830
5252
|
response = new __BaseException({
|
|
4831
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4832
5254
|
$fault: "client",
|
|
4833
|
-
$metadata:
|
|
5255
|
+
$metadata: $metadata,
|
|
4834
5256
|
});
|
|
4835
5257
|
throw __decorateServiceException(response, parsedBody);
|
|
4836
5258
|
}
|
|
@@ -4855,7 +5277,7 @@ export var deserializeAws_json1_1UpdateMailboxQuotaCommand = function (output, c
|
|
|
4855
5277
|
});
|
|
4856
5278
|
}); };
|
|
4857
5279
|
var deserializeAws_json1_1UpdateMailboxQuotaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4858
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5280
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4859
5281
|
var _c;
|
|
4860
5282
|
return __generator(this, function (_d) {
|
|
4861
5283
|
switch (_d.label) {
|
|
@@ -4865,7 +5287,6 @@ var deserializeAws_json1_1UpdateMailboxQuotaCommandError = function (output, con
|
|
|
4865
5287
|
return [4, parseBody(output.body, context)];
|
|
4866
5288
|
case 1:
|
|
4867
5289
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4868
|
-
errorCode = "UnknownError";
|
|
4869
5290
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4870
5291
|
_b = errorCode;
|
|
4871
5292
|
switch (_b) {
|
|
@@ -4893,10 +5314,12 @@ var deserializeAws_json1_1UpdateMailboxQuotaCommandError = function (output, con
|
|
|
4893
5314
|
case 11: throw _d.sent();
|
|
4894
5315
|
case 12:
|
|
4895
5316
|
parsedBody = parsedOutput.body;
|
|
5317
|
+
$metadata = deserializeMetadata(output);
|
|
5318
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4896
5319
|
response = new __BaseException({
|
|
4897
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5320
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4898
5321
|
$fault: "client",
|
|
4899
|
-
$metadata:
|
|
5322
|
+
$metadata: $metadata,
|
|
4900
5323
|
});
|
|
4901
5324
|
throw __decorateServiceException(response, parsedBody);
|
|
4902
5325
|
}
|
|
@@ -4921,7 +5344,7 @@ export var deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommand = function
|
|
|
4921
5344
|
});
|
|
4922
5345
|
}); };
|
|
4923
5346
|
var deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4924
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5347
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4925
5348
|
var _c;
|
|
4926
5349
|
return __generator(this, function (_d) {
|
|
4927
5350
|
switch (_d.label) {
|
|
@@ -4931,7 +5354,6 @@ var deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = function (o
|
|
|
4931
5354
|
return [4, parseBody(output.body, context)];
|
|
4932
5355
|
case 1:
|
|
4933
5356
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4934
|
-
errorCode = "UnknownError";
|
|
4935
5357
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4936
5358
|
_b = errorCode;
|
|
4937
5359
|
switch (_b) {
|
|
@@ -4955,10 +5377,12 @@ var deserializeAws_json1_1UpdateMobileDeviceAccessRuleCommandError = function (o
|
|
|
4955
5377
|
case 9: throw _d.sent();
|
|
4956
5378
|
case 10:
|
|
4957
5379
|
parsedBody = parsedOutput.body;
|
|
5380
|
+
$metadata = deserializeMetadata(output);
|
|
5381
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4958
5382
|
response = new __BaseException({
|
|
4959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4960
5384
|
$fault: "client",
|
|
4961
|
-
$metadata:
|
|
5385
|
+
$metadata: $metadata,
|
|
4962
5386
|
});
|
|
4963
5387
|
throw __decorateServiceException(response, parsedBody);
|
|
4964
5388
|
}
|
|
@@ -4983,7 +5407,7 @@ export var deserializeAws_json1_1UpdatePrimaryEmailAddressCommand = function (ou
|
|
|
4983
5407
|
});
|
|
4984
5408
|
}); };
|
|
4985
5409
|
var deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4986
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5410
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4987
5411
|
var _c;
|
|
4988
5412
|
return __generator(this, function (_d) {
|
|
4989
5413
|
switch (_d.label) {
|
|
@@ -4993,7 +5417,6 @@ var deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = function (outp
|
|
|
4993
5417
|
return [4, parseBody(output.body, context)];
|
|
4994
5418
|
case 1:
|
|
4995
5419
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4996
|
-
errorCode = "UnknownError";
|
|
4997
5420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4998
5421
|
_b = errorCode;
|
|
4999
5422
|
switch (_b) {
|
|
@@ -5045,10 +5468,12 @@ var deserializeAws_json1_1UpdatePrimaryEmailAddressCommandError = function (outp
|
|
|
5045
5468
|
case 23: throw _d.sent();
|
|
5046
5469
|
case 24:
|
|
5047
5470
|
parsedBody = parsedOutput.body;
|
|
5471
|
+
$metadata = deserializeMetadata(output);
|
|
5472
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5048
5473
|
response = new __BaseException({
|
|
5049
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5050
5475
|
$fault: "client",
|
|
5051
|
-
$metadata:
|
|
5476
|
+
$metadata: $metadata,
|
|
5052
5477
|
});
|
|
5053
5478
|
throw __decorateServiceException(response, parsedBody);
|
|
5054
5479
|
}
|
|
@@ -5073,7 +5498,7 @@ export var deserializeAws_json1_1UpdateResourceCommand = function (output, conte
|
|
|
5073
5498
|
});
|
|
5074
5499
|
}); };
|
|
5075
5500
|
var deserializeAws_json1_1UpdateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5076
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5501
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5077
5502
|
var _c;
|
|
5078
5503
|
return __generator(this, function (_d) {
|
|
5079
5504
|
switch (_d.label) {
|
|
@@ -5083,7 +5508,6 @@ var deserializeAws_json1_1UpdateResourceCommandError = function (output, context
|
|
|
5083
5508
|
return [4, parseBody(output.body, context)];
|
|
5084
5509
|
case 1:
|
|
5085
5510
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5086
|
-
errorCode = "UnknownError";
|
|
5087
5511
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5088
5512
|
_b = errorCode;
|
|
5089
5513
|
switch (_b) {
|
|
@@ -5131,10 +5555,12 @@ var deserializeAws_json1_1UpdateResourceCommandError = function (output, context
|
|
|
5131
5555
|
case 21: throw _d.sent();
|
|
5132
5556
|
case 22:
|
|
5133
5557
|
parsedBody = parsedOutput.body;
|
|
5558
|
+
$metadata = deserializeMetadata(output);
|
|
5559
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5134
5560
|
response = new __BaseException({
|
|
5135
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5561
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5136
5562
|
$fault: "client",
|
|
5137
|
-
$metadata:
|
|
5563
|
+
$metadata: $metadata,
|
|
5138
5564
|
});
|
|
5139
5565
|
throw __decorateServiceException(response, parsedBody);
|
|
5140
5566
|
}
|
|
@@ -5349,159 +5775,127 @@ var serializeAws_json1_1ActionsList = function (input, context) {
|
|
|
5349
5775
|
});
|
|
5350
5776
|
};
|
|
5351
5777
|
var serializeAws_json1_1AssociateDelegateToResourceRequest = function (input, context) {
|
|
5352
|
-
return __assign(__assign(__assign({}, (input.EntityId
|
|
5353
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
5778
|
+
return __assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5354
5779
|
};
|
|
5355
5780
|
var serializeAws_json1_1AssociateMemberToGroupRequest = function (input, context) {
|
|
5356
|
-
return __assign(__assign(__assign({}, (input.GroupId
|
|
5357
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5781
|
+
return __assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.MemberId != null && { MemberId: input.MemberId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5358
5782
|
};
|
|
5359
5783
|
var serializeAws_json1_1BookingOptions = function (input, context) {
|
|
5360
|
-
return __assign(__assign(__assign({}, (input.AutoAcceptRequests
|
|
5361
|
-
input.AutoAcceptRequests !== null && { AutoAcceptRequests: input.AutoAcceptRequests })), (input.AutoDeclineConflictingRequests !== undefined &&
|
|
5362
|
-
input.AutoDeclineConflictingRequests !== null && {
|
|
5784
|
+
return __assign(__assign(__assign({}, (input.AutoAcceptRequests != null && { AutoAcceptRequests: input.AutoAcceptRequests })), (input.AutoDeclineConflictingRequests != null && {
|
|
5363
5785
|
AutoDeclineConflictingRequests: input.AutoDeclineConflictingRequests,
|
|
5364
|
-
})), (input.AutoDeclineRecurringRequests
|
|
5365
|
-
input.AutoDeclineRecurringRequests !== null && {
|
|
5786
|
+
})), (input.AutoDeclineRecurringRequests != null && {
|
|
5366
5787
|
AutoDeclineRecurringRequests: input.AutoDeclineRecurringRequests,
|
|
5367
5788
|
}));
|
|
5368
5789
|
};
|
|
5369
5790
|
var serializeAws_json1_1CancelMailboxExportJobRequest = function (input, context) {
|
|
5370
5791
|
var _a;
|
|
5371
|
-
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.JobId
|
|
5372
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5792
|
+
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.JobId != null && { JobId: input.JobId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5373
5793
|
};
|
|
5374
5794
|
var serializeAws_json1_1CreateAliasRequest = function (input, context) {
|
|
5375
|
-
return __assign(__assign(__assign({}, (input.Alias
|
|
5376
|
-
|
|
5795
|
+
return __assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5796
|
+
};
|
|
5797
|
+
var serializeAws_json1_1CreateAvailabilityConfigurationRequest = function (input, context) {
|
|
5798
|
+
var _a;
|
|
5799
|
+
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DomainName != null && { DomainName: input.DomainName })), (input.EwsProvider != null && {
|
|
5800
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
5801
|
+
})), (input.LambdaProvider != null && {
|
|
5802
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
5803
|
+
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5377
5804
|
};
|
|
5378
5805
|
var serializeAws_json1_1CreateGroupRequest = function (input, context) {
|
|
5379
|
-
return __assign(__assign({}, (input.Name
|
|
5380
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5806
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5381
5807
|
};
|
|
5382
5808
|
var serializeAws_json1_1CreateMobileDeviceAccessRuleRequest = function (input, context) {
|
|
5383
5809
|
var _a;
|
|
5384
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description
|
|
5385
|
-
input.DeviceModels !== null && {
|
|
5810
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.DeviceModels != null && {
|
|
5386
5811
|
DeviceModels: serializeAws_json1_1DeviceModelList(input.DeviceModels, context),
|
|
5387
|
-
})), (input.DeviceOperatingSystems
|
|
5388
|
-
input.DeviceOperatingSystems !== null && {
|
|
5812
|
+
})), (input.DeviceOperatingSystems != null && {
|
|
5389
5813
|
DeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.DeviceOperatingSystems, context),
|
|
5390
|
-
})), (input.DeviceTypes
|
|
5391
|
-
input.DeviceTypes !== null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) })), (input.DeviceUserAgents !== undefined &&
|
|
5392
|
-
input.DeviceUserAgents !== null && {
|
|
5814
|
+
})), (input.DeviceTypes != null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) })), (input.DeviceUserAgents != null && {
|
|
5393
5815
|
DeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.DeviceUserAgents, context),
|
|
5394
|
-
})), (input.Effect
|
|
5395
|
-
input.NotDeviceModels !== null && {
|
|
5816
|
+
})), (input.Effect != null && { Effect: input.Effect })), (input.Name != null && { Name: input.Name })), (input.NotDeviceModels != null && {
|
|
5396
5817
|
NotDeviceModels: serializeAws_json1_1DeviceModelList(input.NotDeviceModels, context),
|
|
5397
|
-
})), (input.NotDeviceOperatingSystems
|
|
5398
|
-
input.NotDeviceOperatingSystems !== null && {
|
|
5818
|
+
})), (input.NotDeviceOperatingSystems != null && {
|
|
5399
5819
|
NotDeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.NotDeviceOperatingSystems, context),
|
|
5400
|
-
})), (input.NotDeviceTypes
|
|
5401
|
-
input.NotDeviceTypes !== null && {
|
|
5820
|
+
})), (input.NotDeviceTypes != null && {
|
|
5402
5821
|
NotDeviceTypes: serializeAws_json1_1DeviceTypeList(input.NotDeviceTypes, context),
|
|
5403
|
-
})), (input.NotDeviceUserAgents
|
|
5404
|
-
input.NotDeviceUserAgents !== null && {
|
|
5822
|
+
})), (input.NotDeviceUserAgents != null && {
|
|
5405
5823
|
NotDeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.NotDeviceUserAgents, context),
|
|
5406
|
-
})), (input.OrganizationId
|
|
5407
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5824
|
+
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5408
5825
|
};
|
|
5409
5826
|
var serializeAws_json1_1CreateOrganizationRequest = function (input, context) {
|
|
5410
5827
|
var _a;
|
|
5411
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Alias
|
|
5412
|
-
input.Domains !== null && { Domains: serializeAws_json1_1Domains(input.Domains, context) })), (input.EnableInteroperability !== undefined &&
|
|
5413
|
-
input.EnableInteroperability !== null && { EnableInteroperability: input.EnableInteroperability })), (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }));
|
|
5828
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), { ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.DirectoryId != null && { DirectoryId: input.DirectoryId })), (input.Domains != null && { Domains: serializeAws_json1_1Domains(input.Domains, context) })), (input.EnableInteroperability != null && { EnableInteroperability: input.EnableInteroperability })), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }));
|
|
5414
5829
|
};
|
|
5415
5830
|
var serializeAws_json1_1CreateResourceRequest = function (input, context) {
|
|
5416
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
5417
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
5831
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.Type != null && { Type: input.Type }));
|
|
5418
5832
|
};
|
|
5419
5833
|
var serializeAws_json1_1CreateUserRequest = function (input, context) {
|
|
5420
|
-
return __assign(__assign(__assign(__assign({}, (input.DisplayName
|
|
5421
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.Password !== undefined && input.Password !== null && { Password: input.Password }));
|
|
5834
|
+
return __assign(__assign(__assign(__assign({}, (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.Password != null && { Password: input.Password }));
|
|
5422
5835
|
};
|
|
5423
5836
|
var serializeAws_json1_1DeleteAccessControlRuleRequest = function (input, context) {
|
|
5424
|
-
return __assign(__assign({}, (input.Name
|
|
5425
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5837
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5426
5838
|
};
|
|
5427
5839
|
var serializeAws_json1_1DeleteAliasRequest = function (input, context) {
|
|
5428
|
-
return __assign(__assign(__assign({}, (input.Alias
|
|
5429
|
-
|
|
5840
|
+
return __assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5841
|
+
};
|
|
5842
|
+
var serializeAws_json1_1DeleteAvailabilityConfigurationRequest = function (input, context) {
|
|
5843
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5430
5844
|
};
|
|
5431
5845
|
var serializeAws_json1_1DeleteEmailMonitoringConfigurationRequest = function (input, context) {
|
|
5432
|
-
return __assign({}, (input.OrganizationId
|
|
5433
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5846
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5434
5847
|
};
|
|
5435
5848
|
var serializeAws_json1_1DeleteGroupRequest = function (input, context) {
|
|
5436
|
-
return __assign(__assign({}, (input.GroupId
|
|
5437
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5849
|
+
return __assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5438
5850
|
};
|
|
5439
5851
|
var serializeAws_json1_1DeleteMailboxPermissionsRequest = function (input, context) {
|
|
5440
|
-
return __assign(__assign(__assign({}, (input.EntityId
|
|
5441
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5852
|
+
return __assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.GranteeId != null && { GranteeId: input.GranteeId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5442
5853
|
};
|
|
5443
5854
|
var serializeAws_json1_1DeleteMobileDeviceAccessOverrideRequest = function (input, context) {
|
|
5444
|
-
return __assign(__assign(__assign({}, (input.DeviceId
|
|
5445
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5855
|
+
return __assign(__assign(__assign({}, (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5446
5856
|
};
|
|
5447
5857
|
var serializeAws_json1_1DeleteMobileDeviceAccessRuleRequest = function (input, context) {
|
|
5448
|
-
return __assign(__assign({}, (input.MobileDeviceAccessRuleId
|
|
5449
|
-
input.MobileDeviceAccessRuleId !== null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId })), (input.OrganizationId !== undefined &&
|
|
5450
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5858
|
+
return __assign(__assign({}, (input.MobileDeviceAccessRuleId != null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5451
5859
|
};
|
|
5452
5860
|
var serializeAws_json1_1DeleteOrganizationRequest = function (input, context) {
|
|
5453
5861
|
var _a;
|
|
5454
|
-
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DeleteDirectory
|
|
5455
|
-
input.DeleteDirectory !== null && { DeleteDirectory: input.DeleteDirectory })), (input.OrganizationId !== undefined &&
|
|
5456
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5862
|
+
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DeleteDirectory != null && { DeleteDirectory: input.DeleteDirectory })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5457
5863
|
};
|
|
5458
5864
|
var serializeAws_json1_1DeleteResourceRequest = function (input, context) {
|
|
5459
|
-
return __assign(__assign({}, (input.OrganizationId
|
|
5460
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
5865
|
+
return __assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5461
5866
|
};
|
|
5462
5867
|
var serializeAws_json1_1DeleteRetentionPolicyRequest = function (input, context) {
|
|
5463
|
-
return __assign(__assign({}, (input.Id
|
|
5464
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5868
|
+
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5465
5869
|
};
|
|
5466
5870
|
var serializeAws_json1_1DeleteUserRequest = function (input, context) {
|
|
5467
|
-
return __assign(__assign({}, (input.OrganizationId
|
|
5468
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5871
|
+
return __assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5469
5872
|
};
|
|
5470
5873
|
var serializeAws_json1_1DeregisterFromWorkMailRequest = function (input, context) {
|
|
5471
|
-
return __assign(__assign({}, (input.EntityId
|
|
5472
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5874
|
+
return __assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5473
5875
|
};
|
|
5474
5876
|
var serializeAws_json1_1DeregisterMailDomainRequest = function (input, context) {
|
|
5475
|
-
return __assign(__assign({}, (input.DomainName
|
|
5476
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5877
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5477
5878
|
};
|
|
5478
5879
|
var serializeAws_json1_1DescribeEmailMonitoringConfigurationRequest = function (input, context) {
|
|
5479
|
-
return __assign({}, (input.OrganizationId
|
|
5480
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5880
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5481
5881
|
};
|
|
5482
5882
|
var serializeAws_json1_1DescribeGroupRequest = function (input, context) {
|
|
5483
|
-
return __assign(__assign({}, (input.GroupId
|
|
5484
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5883
|
+
return __assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5485
5884
|
};
|
|
5486
5885
|
var serializeAws_json1_1DescribeInboundDmarcSettingsRequest = function (input, context) {
|
|
5487
|
-
return __assign({}, (input.OrganizationId
|
|
5488
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5886
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5489
5887
|
};
|
|
5490
5888
|
var serializeAws_json1_1DescribeMailboxExportJobRequest = function (input, context) {
|
|
5491
|
-
return __assign(__assign({}, (input.JobId
|
|
5492
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5889
|
+
return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5493
5890
|
};
|
|
5494
5891
|
var serializeAws_json1_1DescribeOrganizationRequest = function (input, context) {
|
|
5495
|
-
return __assign({}, (input.OrganizationId
|
|
5496
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5892
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5497
5893
|
};
|
|
5498
5894
|
var serializeAws_json1_1DescribeResourceRequest = function (input, context) {
|
|
5499
|
-
return __assign(__assign({}, (input.OrganizationId
|
|
5500
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
5895
|
+
return __assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5501
5896
|
};
|
|
5502
5897
|
var serializeAws_json1_1DescribeUserRequest = function (input, context) {
|
|
5503
|
-
return __assign(__assign({}, (input.OrganizationId
|
|
5504
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5898
|
+
return __assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5505
5899
|
};
|
|
5506
5900
|
var serializeAws_json1_1DeviceModelList = function (input, context) {
|
|
5507
5901
|
return input
|
|
@@ -5544,15 +5938,13 @@ var serializeAws_json1_1DeviceUserAgentList = function (input, context) {
|
|
|
5544
5938
|
});
|
|
5545
5939
|
};
|
|
5546
5940
|
var serializeAws_json1_1DisassociateDelegateFromResourceRequest = function (input, context) {
|
|
5547
|
-
return __assign(__assign(__assign({}, (input.EntityId
|
|
5548
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
5941
|
+
return __assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5549
5942
|
};
|
|
5550
5943
|
var serializeAws_json1_1DisassociateMemberFromGroupRequest = function (input, context) {
|
|
5551
|
-
return __assign(__assign(__assign({}, (input.GroupId
|
|
5552
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5944
|
+
return __assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.MemberId != null && { MemberId: input.MemberId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5553
5945
|
};
|
|
5554
5946
|
var serializeAws_json1_1Domain = function (input, context) {
|
|
5555
|
-
return __assign(__assign({}, (input.DomainName
|
|
5947
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.HostedZoneId != null && { HostedZoneId: input.HostedZoneId }));
|
|
5556
5948
|
};
|
|
5557
5949
|
var serializeAws_json1_1Domains = function (input, context) {
|
|
5558
5950
|
return input
|
|
@@ -5564,8 +5956,11 @@ var serializeAws_json1_1Domains = function (input, context) {
|
|
|
5564
5956
|
return serializeAws_json1_1Domain(entry, context);
|
|
5565
5957
|
});
|
|
5566
5958
|
};
|
|
5959
|
+
var serializeAws_json1_1EwsAvailabilityProvider = function (input, context) {
|
|
5960
|
+
return __assign(__assign(__assign({}, (input.EwsEndpoint != null && { EwsEndpoint: input.EwsEndpoint })), (input.EwsPassword != null && { EwsPassword: input.EwsPassword })), (input.EwsUsername != null && { EwsUsername: input.EwsUsername }));
|
|
5961
|
+
};
|
|
5567
5962
|
var serializeAws_json1_1FolderConfiguration = function (input, context) {
|
|
5568
|
-
return __assign(__assign(__assign({}, (input.Action
|
|
5963
|
+
return __assign(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Name != null && { Name: input.Name })), (input.Period != null && { Period: input.Period }));
|
|
5569
5964
|
};
|
|
5570
5965
|
var serializeAws_json1_1FolderConfigurations = function (input, context) {
|
|
5571
5966
|
return input
|
|
@@ -5578,30 +5973,22 @@ var serializeAws_json1_1FolderConfigurations = function (input, context) {
|
|
|
5578
5973
|
});
|
|
5579
5974
|
};
|
|
5580
5975
|
var serializeAws_json1_1GetAccessControlEffectRequest = function (input, context) {
|
|
5581
|
-
return __assign(__assign(__assign(__assign({}, (input.Action
|
|
5582
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5976
|
+
return __assign(__assign(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.IpAddress != null && { IpAddress: input.IpAddress })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5583
5977
|
};
|
|
5584
5978
|
var serializeAws_json1_1GetDefaultRetentionPolicyRequest = function (input, context) {
|
|
5585
|
-
return __assign({}, (input.OrganizationId
|
|
5586
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5979
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5587
5980
|
};
|
|
5588
5981
|
var serializeAws_json1_1GetMailboxDetailsRequest = function (input, context) {
|
|
5589
|
-
return __assign(__assign({}, (input.OrganizationId
|
|
5590
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5982
|
+
return __assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5591
5983
|
};
|
|
5592
5984
|
var serializeAws_json1_1GetMailDomainRequest = function (input, context) {
|
|
5593
|
-
return __assign(__assign({}, (input.DomainName
|
|
5594
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5985
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5595
5986
|
};
|
|
5596
5987
|
var serializeAws_json1_1GetMobileDeviceAccessEffectRequest = function (input, context) {
|
|
5597
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DeviceModel
|
|
5598
|
-
input.DeviceOperatingSystem !== null && { DeviceOperatingSystem: input.DeviceOperatingSystem })), (input.DeviceType !== undefined && input.DeviceType !== null && { DeviceType: input.DeviceType })), (input.DeviceUserAgent !== undefined &&
|
|
5599
|
-
input.DeviceUserAgent !== null && { DeviceUserAgent: input.DeviceUserAgent })), (input.OrganizationId !== undefined &&
|
|
5600
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
5988
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DeviceModel != null && { DeviceModel: input.DeviceModel })), (input.DeviceOperatingSystem != null && { DeviceOperatingSystem: input.DeviceOperatingSystem })), (input.DeviceType != null && { DeviceType: input.DeviceType })), (input.DeviceUserAgent != null && { DeviceUserAgent: input.DeviceUserAgent })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5601
5989
|
};
|
|
5602
5990
|
var serializeAws_json1_1GetMobileDeviceAccessOverrideRequest = function (input, context) {
|
|
5603
|
-
return __assign(__assign(__assign({}, (input.DeviceId
|
|
5604
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
5991
|
+
return __assign(__assign(__assign({}, (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5605
5992
|
};
|
|
5606
5993
|
var serializeAws_json1_1IpRangeList = function (input, context) {
|
|
5607
5994
|
return input
|
|
@@ -5613,59 +6000,53 @@ var serializeAws_json1_1IpRangeList = function (input, context) {
|
|
|
5613
6000
|
return entry;
|
|
5614
6001
|
});
|
|
5615
6002
|
};
|
|
6003
|
+
var serializeAws_json1_1LambdaAvailabilityProvider = function (input, context) {
|
|
6004
|
+
return __assign({}, (input.LambdaArn != null && { LambdaArn: input.LambdaArn }));
|
|
6005
|
+
};
|
|
5616
6006
|
var serializeAws_json1_1ListAccessControlRulesRequest = function (input, context) {
|
|
5617
|
-
return __assign({}, (input.OrganizationId
|
|
5618
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6007
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5619
6008
|
};
|
|
5620
6009
|
var serializeAws_json1_1ListAliasesRequest = function (input, context) {
|
|
5621
|
-
return __assign(__assign(__assign(__assign({}, (input.EntityId
|
|
5622
|
-
|
|
6010
|
+
return __assign(__assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
6011
|
+
};
|
|
6012
|
+
var serializeAws_json1_1ListAvailabilityConfigurationsRequest = function (input, context) {
|
|
6013
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5623
6014
|
};
|
|
5624
6015
|
var serializeAws_json1_1ListGroupMembersRequest = function (input, context) {
|
|
5625
|
-
return __assign(__assign(__assign(__assign({}, (input.GroupId
|
|
5626
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6016
|
+
return __assign(__assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5627
6017
|
};
|
|
5628
6018
|
var serializeAws_json1_1ListGroupsRequest = function (input, context) {
|
|
5629
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5630
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6019
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5631
6020
|
};
|
|
5632
6021
|
var serializeAws_json1_1ListMailboxExportJobsRequest = function (input, context) {
|
|
5633
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5634
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6022
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5635
6023
|
};
|
|
5636
6024
|
var serializeAws_json1_1ListMailboxPermissionsRequest = function (input, context) {
|
|
5637
|
-
return __assign(__assign(__assign(__assign({}, (input.EntityId
|
|
5638
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6025
|
+
return __assign(__assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5639
6026
|
};
|
|
5640
6027
|
var serializeAws_json1_1ListMailDomainsRequest = function (input, context) {
|
|
5641
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5642
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6028
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5643
6029
|
};
|
|
5644
6030
|
var serializeAws_json1_1ListMobileDeviceAccessOverridesRequest = function (input, context) {
|
|
5645
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DeviceId
|
|
5646
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
6031
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5647
6032
|
};
|
|
5648
6033
|
var serializeAws_json1_1ListMobileDeviceAccessRulesRequest = function (input, context) {
|
|
5649
|
-
return __assign({}, (input.OrganizationId
|
|
5650
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6034
|
+
return __assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5651
6035
|
};
|
|
5652
6036
|
var serializeAws_json1_1ListOrganizationsRequest = function (input, context) {
|
|
5653
|
-
return __assign(__assign({}, (input.MaxResults
|
|
6037
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5654
6038
|
};
|
|
5655
6039
|
var serializeAws_json1_1ListResourceDelegatesRequest = function (input, context) {
|
|
5656
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
5657
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
6040
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5658
6041
|
};
|
|
5659
6042
|
var serializeAws_json1_1ListResourcesRequest = function (input, context) {
|
|
5660
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5661
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6043
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5662
6044
|
};
|
|
5663
6045
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5664
|
-
return __assign({}, (input.ResourceARN
|
|
6046
|
+
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
5665
6047
|
};
|
|
5666
6048
|
var serializeAws_json1_1ListUsersRequest = function (input, context) {
|
|
5667
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5668
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6049
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5669
6050
|
};
|
|
5670
6051
|
var serializeAws_json1_1PermissionValues = function (input, context) {
|
|
5671
6052
|
return input
|
|
@@ -5678,61 +6059,43 @@ var serializeAws_json1_1PermissionValues = function (input, context) {
|
|
|
5678
6059
|
});
|
|
5679
6060
|
};
|
|
5680
6061
|
var serializeAws_json1_1PutAccessControlRuleRequest = function (input, context) {
|
|
5681
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Actions
|
|
5682
|
-
input.Actions !== null && { Actions: serializeAws_json1_1ActionsList(input.Actions, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Effect !== undefined && input.Effect !== null && { Effect: input.Effect })), (input.IpRanges !== undefined &&
|
|
5683
|
-
input.IpRanges !== null && { IpRanges: serializeAws_json1_1IpRangeList(input.IpRanges, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NotActions !== undefined &&
|
|
5684
|
-
input.NotActions !== null && { NotActions: serializeAws_json1_1ActionsList(input.NotActions, context) })), (input.NotIpRanges !== undefined &&
|
|
5685
|
-
input.NotIpRanges !== null && { NotIpRanges: serializeAws_json1_1IpRangeList(input.NotIpRanges, context) })), (input.NotUserIds !== undefined &&
|
|
5686
|
-
input.NotUserIds !== null && { NotUserIds: serializeAws_json1_1UserIdList(input.NotUserIds, context) })), (input.OrganizationId !== undefined &&
|
|
5687
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserIds !== undefined &&
|
|
5688
|
-
input.UserIds !== null && { UserIds: serializeAws_json1_1UserIdList(input.UserIds, context) }));
|
|
6062
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_json1_1ActionsList(input.Actions, context) })), (input.Description != null && { Description: input.Description })), (input.Effect != null && { Effect: input.Effect })), (input.IpRanges != null && { IpRanges: serializeAws_json1_1IpRangeList(input.IpRanges, context) })), (input.Name != null && { Name: input.Name })), (input.NotActions != null && { NotActions: serializeAws_json1_1ActionsList(input.NotActions, context) })), (input.NotIpRanges != null && { NotIpRanges: serializeAws_json1_1IpRangeList(input.NotIpRanges, context) })), (input.NotUserIds != null && { NotUserIds: serializeAws_json1_1UserIdList(input.NotUserIds, context) })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserIds != null && { UserIds: serializeAws_json1_1UserIdList(input.UserIds, context) }));
|
|
5689
6063
|
};
|
|
5690
6064
|
var serializeAws_json1_1PutEmailMonitoringConfigurationRequest = function (input, context) {
|
|
5691
|
-
return __assign(__assign(__assign({}, (input.LogGroupArn
|
|
5692
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
6065
|
+
return __assign(__assign(__assign({}, (input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.RoleArn != null && { RoleArn: input.RoleArn }));
|
|
5693
6066
|
};
|
|
5694
6067
|
var serializeAws_json1_1PutInboundDmarcSettingsRequest = function (input, context) {
|
|
5695
|
-
return __assign(__assign({}, (input.Enforced
|
|
5696
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6068
|
+
return __assign(__assign({}, (input.Enforced != null && { Enforced: input.Enforced })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5697
6069
|
};
|
|
5698
6070
|
var serializeAws_json1_1PutMailboxPermissionsRequest = function (input, context) {
|
|
5699
|
-
return __assign(__assign(__assign(__assign({}, (input.EntityId
|
|
5700
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.PermissionValues !== undefined &&
|
|
5701
|
-
input.PermissionValues !== null && {
|
|
6071
|
+
return __assign(__assign(__assign(__assign({}, (input.EntityId != null && { EntityId: input.EntityId })), (input.GranteeId != null && { GranteeId: input.GranteeId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.PermissionValues != null && {
|
|
5702
6072
|
PermissionValues: serializeAws_json1_1PermissionValues(input.PermissionValues, context),
|
|
5703
6073
|
}));
|
|
5704
6074
|
};
|
|
5705
6075
|
var serializeAws_json1_1PutMobileDeviceAccessOverrideRequest = function (input, context) {
|
|
5706
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
5707
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
6076
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.Effect != null && { Effect: input.Effect })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5708
6077
|
};
|
|
5709
6078
|
var serializeAws_json1_1PutRetentionPolicyRequest = function (input, context) {
|
|
5710
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
5711
|
-
input.FolderConfigurations !== null && {
|
|
6079
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FolderConfigurations != null && {
|
|
5712
6080
|
FolderConfigurations: serializeAws_json1_1FolderConfigurations(input.FolderConfigurations, context),
|
|
5713
|
-
})), (input.Id
|
|
5714
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6081
|
+
})), (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5715
6082
|
};
|
|
5716
6083
|
var serializeAws_json1_1RegisterMailDomainRequest = function (input, context) {
|
|
5717
6084
|
var _a;
|
|
5718
|
-
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DomainName
|
|
5719
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6085
|
+
return __assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DomainName != null && { DomainName: input.DomainName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5720
6086
|
};
|
|
5721
6087
|
var serializeAws_json1_1RegisterToWorkMailRequest = function (input, context) {
|
|
5722
|
-
return __assign(__assign(__assign({}, (input.Email
|
|
5723
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6088
|
+
return __assign(__assign(__assign({}, (input.Email != null && { Email: input.Email })), (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5724
6089
|
};
|
|
5725
6090
|
var serializeAws_json1_1ResetPasswordRequest = function (input, context) {
|
|
5726
|
-
return __assign(__assign(__assign({}, (input.OrganizationId
|
|
5727
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
6091
|
+
return __assign(__assign(__assign({}, (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.Password != null && { Password: input.Password })), (input.UserId != null && { UserId: input.UserId }));
|
|
5728
6092
|
};
|
|
5729
6093
|
var serializeAws_json1_1StartMailboxExportJobRequest = function (input, context) {
|
|
5730
6094
|
var _a;
|
|
5731
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description
|
|
5732
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }));
|
|
6095
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.EntityId != null && { EntityId: input.EntityId })), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3Prefix != null && { S3Prefix: input.S3Prefix }));
|
|
5733
6096
|
};
|
|
5734
6097
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
5735
|
-
return __assign(__assign({}, (input.Key
|
|
6098
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
5736
6099
|
};
|
|
5737
6100
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
5738
6101
|
return input
|
|
@@ -5755,57 +6118,55 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
5755
6118
|
});
|
|
5756
6119
|
};
|
|
5757
6120
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
5758
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
6121
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6122
|
+
};
|
|
6123
|
+
var serializeAws_json1_1TestAvailabilityConfigurationRequest = function (input, context) {
|
|
6124
|
+
return __assign(__assign(__assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.EwsProvider != null && {
|
|
6125
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
6126
|
+
})), (input.LambdaProvider != null && {
|
|
6127
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
6128
|
+
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5759
6129
|
};
|
|
5760
6130
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
5761
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
5762
|
-
|
|
6131
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6132
|
+
};
|
|
6133
|
+
var serializeAws_json1_1UpdateAvailabilityConfigurationRequest = function (input, context) {
|
|
6134
|
+
return __assign(__assign(__assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.EwsProvider != null && {
|
|
6135
|
+
EwsProvider: serializeAws_json1_1EwsAvailabilityProvider(input.EwsProvider, context),
|
|
6136
|
+
})), (input.LambdaProvider != null && {
|
|
6137
|
+
LambdaProvider: serializeAws_json1_1LambdaAvailabilityProvider(input.LambdaProvider, context),
|
|
6138
|
+
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5763
6139
|
};
|
|
5764
6140
|
var serializeAws_json1_1UpdateDefaultMailDomainRequest = function (input, context) {
|
|
5765
|
-
return __assign(__assign({}, (input.DomainName
|
|
5766
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6141
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5767
6142
|
};
|
|
5768
6143
|
var serializeAws_json1_1UpdateMailboxQuotaRequest = function (input, context) {
|
|
5769
|
-
return __assign(__assign(__assign({}, (input.MailboxQuota
|
|
5770
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
|
|
6144
|
+
return __assign(__assign(__assign({}, (input.MailboxQuota != null && { MailboxQuota: input.MailboxQuota })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UserId != null && { UserId: input.UserId }));
|
|
5771
6145
|
};
|
|
5772
6146
|
var serializeAws_json1_1UpdateMobileDeviceAccessRuleRequest = function (input, context) {
|
|
5773
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
5774
|
-
input.DeviceModels !== null && {
|
|
6147
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DeviceModels != null && {
|
|
5775
6148
|
DeviceModels: serializeAws_json1_1DeviceModelList(input.DeviceModels, context),
|
|
5776
|
-
})), (input.DeviceOperatingSystems
|
|
5777
|
-
input.DeviceOperatingSystems !== null && {
|
|
6149
|
+
})), (input.DeviceOperatingSystems != null && {
|
|
5778
6150
|
DeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.DeviceOperatingSystems, context),
|
|
5779
|
-
})), (input.DeviceTypes
|
|
5780
|
-
input.DeviceTypes !== null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) })), (input.DeviceUserAgents !== undefined &&
|
|
5781
|
-
input.DeviceUserAgents !== null && {
|
|
6151
|
+
})), (input.DeviceTypes != null && { DeviceTypes: serializeAws_json1_1DeviceTypeList(input.DeviceTypes, context) })), (input.DeviceUserAgents != null && {
|
|
5782
6152
|
DeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.DeviceUserAgents, context),
|
|
5783
|
-
})), (input.Effect
|
|
5784
|
-
input.MobileDeviceAccessRuleId !== null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NotDeviceModels !== undefined &&
|
|
5785
|
-
input.NotDeviceModels !== null && {
|
|
6153
|
+
})), (input.Effect != null && { Effect: input.Effect })), (input.MobileDeviceAccessRuleId != null && { MobileDeviceAccessRuleId: input.MobileDeviceAccessRuleId })), (input.Name != null && { Name: input.Name })), (input.NotDeviceModels != null && {
|
|
5786
6154
|
NotDeviceModels: serializeAws_json1_1DeviceModelList(input.NotDeviceModels, context),
|
|
5787
|
-
})), (input.NotDeviceOperatingSystems
|
|
5788
|
-
input.NotDeviceOperatingSystems !== null && {
|
|
6155
|
+
})), (input.NotDeviceOperatingSystems != null && {
|
|
5789
6156
|
NotDeviceOperatingSystems: serializeAws_json1_1DeviceOperatingSystemList(input.NotDeviceOperatingSystems, context),
|
|
5790
|
-
})), (input.NotDeviceTypes
|
|
5791
|
-
input.NotDeviceTypes !== null && {
|
|
6157
|
+
})), (input.NotDeviceTypes != null && {
|
|
5792
6158
|
NotDeviceTypes: serializeAws_json1_1DeviceTypeList(input.NotDeviceTypes, context),
|
|
5793
|
-
})), (input.NotDeviceUserAgents
|
|
5794
|
-
input.NotDeviceUserAgents !== null && {
|
|
6159
|
+
})), (input.NotDeviceUserAgents != null && {
|
|
5795
6160
|
NotDeviceUserAgents: serializeAws_json1_1DeviceUserAgentList(input.NotDeviceUserAgents, context),
|
|
5796
|
-
})), (input.OrganizationId
|
|
5797
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6161
|
+
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5798
6162
|
};
|
|
5799
6163
|
var serializeAws_json1_1UpdatePrimaryEmailAddressRequest = function (input, context) {
|
|
5800
|
-
return __assign(__assign(__assign({}, (input.Email
|
|
5801
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6164
|
+
return __assign(__assign(__assign({}, (input.Email != null && { Email: input.Email })), (input.EntityId != null && { EntityId: input.EntityId })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId }));
|
|
5802
6165
|
};
|
|
5803
6166
|
var serializeAws_json1_1UpdateResourceRequest = function (input, context) {
|
|
5804
|
-
return __assign(__assign(__assign(__assign({}, (input.BookingOptions
|
|
5805
|
-
input.BookingOptions !== null && {
|
|
6167
|
+
return __assign(__assign(__assign(__assign({}, (input.BookingOptions != null && {
|
|
5806
6168
|
BookingOptions: serializeAws_json1_1BookingOptions(input.BookingOptions, context),
|
|
5807
|
-
})), (input.Name
|
|
5808
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
|
|
6169
|
+
})), (input.Name != null && { Name: input.Name })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5809
6170
|
};
|
|
5810
6171
|
var serializeAws_json1_1UserIdList = function (input, context) {
|
|
5811
6172
|
return input
|
|
@@ -5819,33 +6180,21 @@ var serializeAws_json1_1UserIdList = function (input, context) {
|
|
|
5819
6180
|
};
|
|
5820
6181
|
var deserializeAws_json1_1AccessControlRule = function (output, context) {
|
|
5821
6182
|
return {
|
|
5822
|
-
Actions: output.Actions
|
|
5823
|
-
|
|
5824
|
-
: undefined,
|
|
5825
|
-
DateCreated: output.DateCreated !== undefined && output.DateCreated !== null
|
|
6183
|
+
Actions: output.Actions != null ? deserializeAws_json1_1ActionsList(output.Actions, context) : undefined,
|
|
6184
|
+
DateCreated: output.DateCreated != null
|
|
5826
6185
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
5827
6186
|
: undefined,
|
|
5828
|
-
DateModified: output.DateModified
|
|
6187
|
+
DateModified: output.DateModified != null
|
|
5829
6188
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
5830
6189
|
: undefined,
|
|
5831
6190
|
Description: __expectString(output.Description),
|
|
5832
6191
|
Effect: __expectString(output.Effect),
|
|
5833
|
-
IpRanges: output.IpRanges
|
|
5834
|
-
? deserializeAws_json1_1IpRangeList(output.IpRanges, context)
|
|
5835
|
-
: undefined,
|
|
6192
|
+
IpRanges: output.IpRanges != null ? deserializeAws_json1_1IpRangeList(output.IpRanges, context) : undefined,
|
|
5836
6193
|
Name: __expectString(output.Name),
|
|
5837
|
-
NotActions: output.NotActions
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
? deserializeAws_json1_1IpRangeList(output.NotIpRanges, context)
|
|
5842
|
-
: undefined,
|
|
5843
|
-
NotUserIds: output.NotUserIds !== undefined && output.NotUserIds !== null
|
|
5844
|
-
? deserializeAws_json1_1UserIdList(output.NotUserIds, context)
|
|
5845
|
-
: undefined,
|
|
5846
|
-
UserIds: output.UserIds !== undefined && output.UserIds !== null
|
|
5847
|
-
? deserializeAws_json1_1UserIdList(output.UserIds, context)
|
|
5848
|
-
: undefined,
|
|
6194
|
+
NotActions: output.NotActions != null ? deserializeAws_json1_1ActionsList(output.NotActions, context) : undefined,
|
|
6195
|
+
NotIpRanges: output.NotIpRanges != null ? deserializeAws_json1_1IpRangeList(output.NotIpRanges, context) : undefined,
|
|
6196
|
+
NotUserIds: output.NotUserIds != null ? deserializeAws_json1_1UserIdList(output.NotUserIds, context) : undefined,
|
|
6197
|
+
UserIds: output.UserIds != null ? deserializeAws_json1_1UserIdList(output.UserIds, context) : undefined,
|
|
5849
6198
|
};
|
|
5850
6199
|
};
|
|
5851
6200
|
var deserializeAws_json1_1AccessControlRuleNameList = function (output, context) {
|
|
@@ -5898,6 +6247,35 @@ var deserializeAws_json1_1AssociateDelegateToResourceResponse = function (output
|
|
|
5898
6247
|
var deserializeAws_json1_1AssociateMemberToGroupResponse = function (output, context) {
|
|
5899
6248
|
return {};
|
|
5900
6249
|
};
|
|
6250
|
+
var deserializeAws_json1_1AvailabilityConfiguration = function (output, context) {
|
|
6251
|
+
return {
|
|
6252
|
+
DateCreated: output.DateCreated != null
|
|
6253
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
6254
|
+
: undefined,
|
|
6255
|
+
DateModified: output.DateModified != null
|
|
6256
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
6257
|
+
: undefined,
|
|
6258
|
+
DomainName: __expectString(output.DomainName),
|
|
6259
|
+
EwsProvider: output.EwsProvider != null
|
|
6260
|
+
? deserializeAws_json1_1RedactedEwsAvailabilityProvider(output.EwsProvider, context)
|
|
6261
|
+
: undefined,
|
|
6262
|
+
LambdaProvider: output.LambdaProvider != null
|
|
6263
|
+
? deserializeAws_json1_1LambdaAvailabilityProvider(output.LambdaProvider, context)
|
|
6264
|
+
: undefined,
|
|
6265
|
+
ProviderType: __expectString(output.ProviderType),
|
|
6266
|
+
};
|
|
6267
|
+
};
|
|
6268
|
+
var deserializeAws_json1_1AvailabilityConfigurationList = function (output, context) {
|
|
6269
|
+
var retVal = (output || [])
|
|
6270
|
+
.filter(function (e) { return e != null; })
|
|
6271
|
+
.map(function (entry) {
|
|
6272
|
+
if (entry === null) {
|
|
6273
|
+
return null;
|
|
6274
|
+
}
|
|
6275
|
+
return deserializeAws_json1_1AvailabilityConfiguration(entry, context);
|
|
6276
|
+
});
|
|
6277
|
+
return retVal;
|
|
6278
|
+
};
|
|
5901
6279
|
var deserializeAws_json1_1BookingOptions = function (output, context) {
|
|
5902
6280
|
return {
|
|
5903
6281
|
AutoAcceptRequests: __expectBoolean(output.AutoAcceptRequests),
|
|
@@ -5911,6 +6289,9 @@ var deserializeAws_json1_1CancelMailboxExportJobResponse = function (output, con
|
|
|
5911
6289
|
var deserializeAws_json1_1CreateAliasResponse = function (output, context) {
|
|
5912
6290
|
return {};
|
|
5913
6291
|
};
|
|
6292
|
+
var deserializeAws_json1_1CreateAvailabilityConfigurationResponse = function (output, context) {
|
|
6293
|
+
return {};
|
|
6294
|
+
};
|
|
5914
6295
|
var deserializeAws_json1_1CreateGroupResponse = function (output, context) {
|
|
5915
6296
|
return {
|
|
5916
6297
|
GroupId: __expectString(output.GroupId),
|
|
@@ -5948,6 +6329,9 @@ var deserializeAws_json1_1DeleteAccessControlRuleResponse = function (output, co
|
|
|
5948
6329
|
var deserializeAws_json1_1DeleteAliasResponse = function (output, context) {
|
|
5949
6330
|
return {};
|
|
5950
6331
|
};
|
|
6332
|
+
var deserializeAws_json1_1DeleteAvailabilityConfigurationResponse = function (output, context) {
|
|
6333
|
+
return {};
|
|
6334
|
+
};
|
|
5951
6335
|
var deserializeAws_json1_1DeleteEmailMonitoringConfigurationResponse = function (output, context) {
|
|
5952
6336
|
return {};
|
|
5953
6337
|
};
|
|
@@ -5992,11 +6376,11 @@ var deserializeAws_json1_1DescribeEmailMonitoringConfigurationResponse = functio
|
|
|
5992
6376
|
};
|
|
5993
6377
|
var deserializeAws_json1_1DescribeGroupResponse = function (output, context) {
|
|
5994
6378
|
return {
|
|
5995
|
-
DisabledDate: output.DisabledDate
|
|
6379
|
+
DisabledDate: output.DisabledDate != null
|
|
5996
6380
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
5997
6381
|
: undefined,
|
|
5998
6382
|
Email: __expectString(output.Email),
|
|
5999
|
-
EnabledDate: output.EnabledDate
|
|
6383
|
+
EnabledDate: output.EnabledDate != null
|
|
6000
6384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6001
6385
|
: undefined,
|
|
6002
6386
|
GroupId: __expectString(output.GroupId),
|
|
@@ -6012,9 +6396,7 @@ var deserializeAws_json1_1DescribeInboundDmarcSettingsResponse = function (outpu
|
|
|
6012
6396
|
var deserializeAws_json1_1DescribeMailboxExportJobResponse = function (output, context) {
|
|
6013
6397
|
return {
|
|
6014
6398
|
Description: __expectString(output.Description),
|
|
6015
|
-
EndTime: output.EndTime
|
|
6016
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
6017
|
-
: undefined,
|
|
6399
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6018
6400
|
EntityId: __expectString(output.EntityId),
|
|
6019
6401
|
ErrorInfo: __expectString(output.ErrorInfo),
|
|
6020
6402
|
EstimatedProgress: __expectInt32(output.EstimatedProgress),
|
|
@@ -6023,9 +6405,7 @@ var deserializeAws_json1_1DescribeMailboxExportJobResponse = function (output, c
|
|
|
6023
6405
|
S3BucketName: __expectString(output.S3BucketName),
|
|
6024
6406
|
S3Path: __expectString(output.S3Path),
|
|
6025
6407
|
S3Prefix: __expectString(output.S3Prefix),
|
|
6026
|
-
StartTime: output.StartTime
|
|
6027
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
6028
|
-
: undefined,
|
|
6408
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
6029
6409
|
State: __expectString(output.State),
|
|
6030
6410
|
};
|
|
6031
6411
|
};
|
|
@@ -6033,7 +6413,7 @@ var deserializeAws_json1_1DescribeOrganizationResponse = function (output, conte
|
|
|
6033
6413
|
return {
|
|
6034
6414
|
ARN: __expectString(output.ARN),
|
|
6035
6415
|
Alias: __expectString(output.Alias),
|
|
6036
|
-
CompletedDate: output.CompletedDate
|
|
6416
|
+
CompletedDate: output.CompletedDate != null
|
|
6037
6417
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletedDate)))
|
|
6038
6418
|
: undefined,
|
|
6039
6419
|
DefaultMailDomain: __expectString(output.DefaultMailDomain),
|
|
@@ -6046,14 +6426,12 @@ var deserializeAws_json1_1DescribeOrganizationResponse = function (output, conte
|
|
|
6046
6426
|
};
|
|
6047
6427
|
var deserializeAws_json1_1DescribeResourceResponse = function (output, context) {
|
|
6048
6428
|
return {
|
|
6049
|
-
BookingOptions: output.BookingOptions
|
|
6050
|
-
|
|
6051
|
-
: undefined,
|
|
6052
|
-
DisabledDate: output.DisabledDate !== undefined && output.DisabledDate !== null
|
|
6429
|
+
BookingOptions: output.BookingOptions != null ? deserializeAws_json1_1BookingOptions(output.BookingOptions, context) : undefined,
|
|
6430
|
+
DisabledDate: output.DisabledDate != null
|
|
6053
6431
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6054
6432
|
: undefined,
|
|
6055
6433
|
Email: __expectString(output.Email),
|
|
6056
|
-
EnabledDate: output.EnabledDate
|
|
6434
|
+
EnabledDate: output.EnabledDate != null
|
|
6057
6435
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6058
6436
|
: undefined,
|
|
6059
6437
|
Name: __expectString(output.Name),
|
|
@@ -6064,12 +6442,12 @@ var deserializeAws_json1_1DescribeResourceResponse = function (output, context)
|
|
|
6064
6442
|
};
|
|
6065
6443
|
var deserializeAws_json1_1DescribeUserResponse = function (output, context) {
|
|
6066
6444
|
return {
|
|
6067
|
-
DisabledDate: output.DisabledDate
|
|
6445
|
+
DisabledDate: output.DisabledDate != null
|
|
6068
6446
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6069
6447
|
: undefined,
|
|
6070
6448
|
DisplayName: __expectString(output.DisplayName),
|
|
6071
6449
|
Email: __expectString(output.Email),
|
|
6072
|
-
EnabledDate: output.EnabledDate
|
|
6450
|
+
EnabledDate: output.EnabledDate != null
|
|
6073
6451
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6074
6452
|
: undefined,
|
|
6075
6453
|
Name: __expectString(output.Name),
|
|
@@ -6202,7 +6580,7 @@ var deserializeAws_json1_1FolderConfigurations = function (output, context) {
|
|
|
6202
6580
|
var deserializeAws_json1_1GetAccessControlEffectResponse = function (output, context) {
|
|
6203
6581
|
return {
|
|
6204
6582
|
Effect: __expectString(output.Effect),
|
|
6205
|
-
MatchedRules: output.MatchedRules
|
|
6583
|
+
MatchedRules: output.MatchedRules != null
|
|
6206
6584
|
? deserializeAws_json1_1AccessControlRuleNameList(output.MatchedRules, context)
|
|
6207
6585
|
: undefined,
|
|
6208
6586
|
};
|
|
@@ -6210,7 +6588,7 @@ var deserializeAws_json1_1GetAccessControlEffectResponse = function (output, con
|
|
|
6210
6588
|
var deserializeAws_json1_1GetDefaultRetentionPolicyResponse = function (output, context) {
|
|
6211
6589
|
return {
|
|
6212
6590
|
Description: __expectString(output.Description),
|
|
6213
|
-
FolderConfigurations: output.FolderConfigurations
|
|
6591
|
+
FolderConfigurations: output.FolderConfigurations != null
|
|
6214
6592
|
? deserializeAws_json1_1FolderConfigurations(output.FolderConfigurations, context)
|
|
6215
6593
|
: undefined,
|
|
6216
6594
|
Id: __expectString(output.Id),
|
|
@@ -6229,25 +6607,23 @@ var deserializeAws_json1_1GetMailDomainResponse = function (output, context) {
|
|
|
6229
6607
|
IsDefault: __expectBoolean(output.IsDefault),
|
|
6230
6608
|
IsTestDomain: __expectBoolean(output.IsTestDomain),
|
|
6231
6609
|
OwnershipVerificationStatus: __expectString(output.OwnershipVerificationStatus),
|
|
6232
|
-
Records: output.Records
|
|
6233
|
-
? deserializeAws_json1_1DnsRecords(output.Records, context)
|
|
6234
|
-
: undefined,
|
|
6610
|
+
Records: output.Records != null ? deserializeAws_json1_1DnsRecords(output.Records, context) : undefined,
|
|
6235
6611
|
};
|
|
6236
6612
|
};
|
|
6237
6613
|
var deserializeAws_json1_1GetMobileDeviceAccessEffectResponse = function (output, context) {
|
|
6238
6614
|
return {
|
|
6239
6615
|
Effect: __expectString(output.Effect),
|
|
6240
|
-
MatchedRules: output.MatchedRules
|
|
6616
|
+
MatchedRules: output.MatchedRules != null
|
|
6241
6617
|
? deserializeAws_json1_1MobileDeviceAccessMatchedRuleList(output.MatchedRules, context)
|
|
6242
6618
|
: undefined,
|
|
6243
6619
|
};
|
|
6244
6620
|
};
|
|
6245
6621
|
var deserializeAws_json1_1GetMobileDeviceAccessOverrideResponse = function (output, context) {
|
|
6246
6622
|
return {
|
|
6247
|
-
DateCreated: output.DateCreated
|
|
6623
|
+
DateCreated: output.DateCreated != null
|
|
6248
6624
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
6249
6625
|
: undefined,
|
|
6250
|
-
DateModified: output.DateModified
|
|
6626
|
+
DateModified: output.DateModified != null
|
|
6251
6627
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
6252
6628
|
: undefined,
|
|
6253
6629
|
Description: __expectString(output.Description),
|
|
@@ -6258,11 +6634,11 @@ var deserializeAws_json1_1GetMobileDeviceAccessOverrideResponse = function (outp
|
|
|
6258
6634
|
};
|
|
6259
6635
|
var deserializeAws_json1_1Group = function (output, context) {
|
|
6260
6636
|
return {
|
|
6261
|
-
DisabledDate: output.DisabledDate
|
|
6637
|
+
DisabledDate: output.DisabledDate != null
|
|
6262
6638
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6263
6639
|
: undefined,
|
|
6264
6640
|
Email: __expectString(output.Email),
|
|
6265
|
-
EnabledDate: output.EnabledDate
|
|
6641
|
+
EnabledDate: output.EnabledDate != null
|
|
6266
6642
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6267
6643
|
: undefined,
|
|
6268
6644
|
Id: __expectString(output.Id),
|
|
@@ -6323,6 +6699,11 @@ var deserializeAws_json1_1Jobs = function (output, context) {
|
|
|
6323
6699
|
});
|
|
6324
6700
|
return retVal;
|
|
6325
6701
|
};
|
|
6702
|
+
var deserializeAws_json1_1LambdaAvailabilityProvider = function (output, context) {
|
|
6703
|
+
return {
|
|
6704
|
+
LambdaArn: __expectString(output.LambdaArn),
|
|
6705
|
+
};
|
|
6706
|
+
};
|
|
6326
6707
|
var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
6327
6708
|
return {
|
|
6328
6709
|
Message: __expectString(output.Message),
|
|
@@ -6330,125 +6711,107 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
6330
6711
|
};
|
|
6331
6712
|
var deserializeAws_json1_1ListAccessControlRulesResponse = function (output, context) {
|
|
6332
6713
|
return {
|
|
6333
|
-
Rules: output.Rules
|
|
6334
|
-
? deserializeAws_json1_1AccessControlRulesList(output.Rules, context)
|
|
6335
|
-
: undefined,
|
|
6714
|
+
Rules: output.Rules != null ? deserializeAws_json1_1AccessControlRulesList(output.Rules, context) : undefined,
|
|
6336
6715
|
};
|
|
6337
6716
|
};
|
|
6338
6717
|
var deserializeAws_json1_1ListAliasesResponse = function (output, context) {
|
|
6339
6718
|
return {
|
|
6340
|
-
Aliases: output.Aliases
|
|
6341
|
-
|
|
6719
|
+
Aliases: output.Aliases != null ? deserializeAws_json1_1Aliases(output.Aliases, context) : undefined,
|
|
6720
|
+
NextToken: __expectString(output.NextToken),
|
|
6721
|
+
};
|
|
6722
|
+
};
|
|
6723
|
+
var deserializeAws_json1_1ListAvailabilityConfigurationsResponse = function (output, context) {
|
|
6724
|
+
return {
|
|
6725
|
+
AvailabilityConfigurations: output.AvailabilityConfigurations != null
|
|
6726
|
+
? deserializeAws_json1_1AvailabilityConfigurationList(output.AvailabilityConfigurations, context)
|
|
6342
6727
|
: undefined,
|
|
6343
6728
|
NextToken: __expectString(output.NextToken),
|
|
6344
6729
|
};
|
|
6345
6730
|
};
|
|
6346
6731
|
var deserializeAws_json1_1ListGroupMembersResponse = function (output, context) {
|
|
6347
6732
|
return {
|
|
6348
|
-
Members: output.Members
|
|
6349
|
-
? deserializeAws_json1_1Members(output.Members, context)
|
|
6350
|
-
: undefined,
|
|
6733
|
+
Members: output.Members != null ? deserializeAws_json1_1Members(output.Members, context) : undefined,
|
|
6351
6734
|
NextToken: __expectString(output.NextToken),
|
|
6352
6735
|
};
|
|
6353
6736
|
};
|
|
6354
6737
|
var deserializeAws_json1_1ListGroupsResponse = function (output, context) {
|
|
6355
6738
|
return {
|
|
6356
|
-
Groups: output.Groups
|
|
6357
|
-
? deserializeAws_json1_1Groups(output.Groups, context)
|
|
6358
|
-
: undefined,
|
|
6739
|
+
Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
|
|
6359
6740
|
NextToken: __expectString(output.NextToken),
|
|
6360
6741
|
};
|
|
6361
6742
|
};
|
|
6362
6743
|
var deserializeAws_json1_1ListMailboxExportJobsResponse = function (output, context) {
|
|
6363
6744
|
return {
|
|
6364
|
-
Jobs: output.Jobs
|
|
6745
|
+
Jobs: output.Jobs != null ? deserializeAws_json1_1Jobs(output.Jobs, context) : undefined,
|
|
6365
6746
|
NextToken: __expectString(output.NextToken),
|
|
6366
6747
|
};
|
|
6367
6748
|
};
|
|
6368
6749
|
var deserializeAws_json1_1ListMailboxPermissionsResponse = function (output, context) {
|
|
6369
6750
|
return {
|
|
6370
6751
|
NextToken: __expectString(output.NextToken),
|
|
6371
|
-
Permissions: output.Permissions
|
|
6372
|
-
? deserializeAws_json1_1Permissions(output.Permissions, context)
|
|
6373
|
-
: undefined,
|
|
6752
|
+
Permissions: output.Permissions != null ? deserializeAws_json1_1Permissions(output.Permissions, context) : undefined,
|
|
6374
6753
|
};
|
|
6375
6754
|
};
|
|
6376
6755
|
var deserializeAws_json1_1ListMailDomainsResponse = function (output, context) {
|
|
6377
6756
|
return {
|
|
6378
|
-
MailDomains: output.MailDomains
|
|
6379
|
-
? deserializeAws_json1_1MailDomains(output.MailDomains, context)
|
|
6380
|
-
: undefined,
|
|
6757
|
+
MailDomains: output.MailDomains != null ? deserializeAws_json1_1MailDomains(output.MailDomains, context) : undefined,
|
|
6381
6758
|
NextToken: __expectString(output.NextToken),
|
|
6382
6759
|
};
|
|
6383
6760
|
};
|
|
6384
6761
|
var deserializeAws_json1_1ListMobileDeviceAccessOverridesResponse = function (output, context) {
|
|
6385
6762
|
return {
|
|
6386
6763
|
NextToken: __expectString(output.NextToken),
|
|
6387
|
-
Overrides: output.Overrides
|
|
6764
|
+
Overrides: output.Overrides != null
|
|
6388
6765
|
? deserializeAws_json1_1MobileDeviceAccessOverridesList(output.Overrides, context)
|
|
6389
6766
|
: undefined,
|
|
6390
6767
|
};
|
|
6391
6768
|
};
|
|
6392
6769
|
var deserializeAws_json1_1ListMobileDeviceAccessRulesResponse = function (output, context) {
|
|
6393
6770
|
return {
|
|
6394
|
-
Rules: output.Rules
|
|
6395
|
-
? deserializeAws_json1_1MobileDeviceAccessRulesList(output.Rules, context)
|
|
6396
|
-
: undefined,
|
|
6771
|
+
Rules: output.Rules != null ? deserializeAws_json1_1MobileDeviceAccessRulesList(output.Rules, context) : undefined,
|
|
6397
6772
|
};
|
|
6398
6773
|
};
|
|
6399
6774
|
var deserializeAws_json1_1ListOrganizationsResponse = function (output, context) {
|
|
6400
6775
|
return {
|
|
6401
6776
|
NextToken: __expectString(output.NextToken),
|
|
6402
|
-
OrganizationSummaries: output.OrganizationSummaries
|
|
6777
|
+
OrganizationSummaries: output.OrganizationSummaries != null
|
|
6403
6778
|
? deserializeAws_json1_1OrganizationSummaries(output.OrganizationSummaries, context)
|
|
6404
6779
|
: undefined,
|
|
6405
6780
|
};
|
|
6406
6781
|
};
|
|
6407
6782
|
var deserializeAws_json1_1ListResourceDelegatesResponse = function (output, context) {
|
|
6408
6783
|
return {
|
|
6409
|
-
Delegates: output.Delegates
|
|
6410
|
-
? deserializeAws_json1_1ResourceDelegates(output.Delegates, context)
|
|
6411
|
-
: undefined,
|
|
6784
|
+
Delegates: output.Delegates != null ? deserializeAws_json1_1ResourceDelegates(output.Delegates, context) : undefined,
|
|
6412
6785
|
NextToken: __expectString(output.NextToken),
|
|
6413
6786
|
};
|
|
6414
6787
|
};
|
|
6415
6788
|
var deserializeAws_json1_1ListResourcesResponse = function (output, context) {
|
|
6416
6789
|
return {
|
|
6417
6790
|
NextToken: __expectString(output.NextToken),
|
|
6418
|
-
Resources: output.Resources
|
|
6419
|
-
? deserializeAws_json1_1Resources(output.Resources, context)
|
|
6420
|
-
: undefined,
|
|
6791
|
+
Resources: output.Resources != null ? deserializeAws_json1_1Resources(output.Resources, context) : undefined,
|
|
6421
6792
|
};
|
|
6422
6793
|
};
|
|
6423
6794
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
6424
6795
|
return {
|
|
6425
|
-
Tags: output.Tags
|
|
6426
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
6427
|
-
: undefined,
|
|
6796
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
6428
6797
|
};
|
|
6429
6798
|
};
|
|
6430
6799
|
var deserializeAws_json1_1ListUsersResponse = function (output, context) {
|
|
6431
6800
|
return {
|
|
6432
6801
|
NextToken: __expectString(output.NextToken),
|
|
6433
|
-
Users: output.Users
|
|
6434
|
-
? deserializeAws_json1_1Users(output.Users, context)
|
|
6435
|
-
: undefined,
|
|
6802
|
+
Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
|
|
6436
6803
|
};
|
|
6437
6804
|
};
|
|
6438
6805
|
var deserializeAws_json1_1MailboxExportJob = function (output, context) {
|
|
6439
6806
|
return {
|
|
6440
6807
|
Description: __expectString(output.Description),
|
|
6441
|
-
EndTime: output.EndTime
|
|
6442
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
6443
|
-
: undefined,
|
|
6808
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6444
6809
|
EntityId: __expectString(output.EntityId),
|
|
6445
6810
|
EstimatedProgress: __expectInt32(output.EstimatedProgress),
|
|
6446
6811
|
JobId: __expectString(output.JobId),
|
|
6447
6812
|
S3BucketName: __expectString(output.S3BucketName),
|
|
6448
6813
|
S3Path: __expectString(output.S3Path),
|
|
6449
|
-
StartTime: output.StartTime
|
|
6450
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
6451
|
-
: undefined,
|
|
6814
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
6452
6815
|
State: __expectString(output.State),
|
|
6453
6816
|
};
|
|
6454
6817
|
};
|
|
@@ -6486,10 +6849,10 @@ var deserializeAws_json1_1MailDomainSummary = function (output, context) {
|
|
|
6486
6849
|
};
|
|
6487
6850
|
var deserializeAws_json1_1Member = function (output, context) {
|
|
6488
6851
|
return {
|
|
6489
|
-
DisabledDate: output.DisabledDate
|
|
6852
|
+
DisabledDate: output.DisabledDate != null
|
|
6490
6853
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6491
6854
|
: undefined,
|
|
6492
|
-
EnabledDate: output.EnabledDate
|
|
6855
|
+
EnabledDate: output.EnabledDate != null
|
|
6493
6856
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6494
6857
|
: undefined,
|
|
6495
6858
|
Id: __expectString(output.Id),
|
|
@@ -6528,10 +6891,10 @@ var deserializeAws_json1_1MobileDeviceAccessMatchedRuleList = function (output,
|
|
|
6528
6891
|
};
|
|
6529
6892
|
var deserializeAws_json1_1MobileDeviceAccessOverride = function (output, context) {
|
|
6530
6893
|
return {
|
|
6531
|
-
DateCreated: output.DateCreated
|
|
6894
|
+
DateCreated: output.DateCreated != null
|
|
6532
6895
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
6533
6896
|
: undefined,
|
|
6534
|
-
DateModified: output.DateModified
|
|
6897
|
+
DateModified: output.DateModified != null
|
|
6535
6898
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
6536
6899
|
: undefined,
|
|
6537
6900
|
Description: __expectString(output.Description),
|
|
@@ -6553,38 +6916,32 @@ var deserializeAws_json1_1MobileDeviceAccessOverridesList = function (output, co
|
|
|
6553
6916
|
};
|
|
6554
6917
|
var deserializeAws_json1_1MobileDeviceAccessRule = function (output, context) {
|
|
6555
6918
|
return {
|
|
6556
|
-
DateCreated: output.DateCreated
|
|
6919
|
+
DateCreated: output.DateCreated != null
|
|
6557
6920
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
6558
6921
|
: undefined,
|
|
6559
|
-
DateModified: output.DateModified
|
|
6922
|
+
DateModified: output.DateModified != null
|
|
6560
6923
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
6561
6924
|
: undefined,
|
|
6562
6925
|
Description: __expectString(output.Description),
|
|
6563
|
-
DeviceModels: output.DeviceModels
|
|
6564
|
-
|
|
6565
|
-
: undefined,
|
|
6566
|
-
DeviceOperatingSystems: output.DeviceOperatingSystems !== undefined && output.DeviceOperatingSystems !== null
|
|
6926
|
+
DeviceModels: output.DeviceModels != null ? deserializeAws_json1_1DeviceModelList(output.DeviceModels, context) : undefined,
|
|
6927
|
+
DeviceOperatingSystems: output.DeviceOperatingSystems != null
|
|
6567
6928
|
? deserializeAws_json1_1DeviceOperatingSystemList(output.DeviceOperatingSystems, context)
|
|
6568
6929
|
: undefined,
|
|
6569
|
-
DeviceTypes: output.DeviceTypes
|
|
6570
|
-
|
|
6571
|
-
: undefined,
|
|
6572
|
-
DeviceUserAgents: output.DeviceUserAgents !== undefined && output.DeviceUserAgents !== null
|
|
6930
|
+
DeviceTypes: output.DeviceTypes != null ? deserializeAws_json1_1DeviceTypeList(output.DeviceTypes, context) : undefined,
|
|
6931
|
+
DeviceUserAgents: output.DeviceUserAgents != null
|
|
6573
6932
|
? deserializeAws_json1_1DeviceUserAgentList(output.DeviceUserAgents, context)
|
|
6574
6933
|
: undefined,
|
|
6575
6934
|
Effect: __expectString(output.Effect),
|
|
6576
6935
|
MobileDeviceAccessRuleId: __expectString(output.MobileDeviceAccessRuleId),
|
|
6577
6936
|
Name: __expectString(output.Name),
|
|
6578
|
-
NotDeviceModels: output.NotDeviceModels
|
|
6937
|
+
NotDeviceModels: output.NotDeviceModels != null
|
|
6579
6938
|
? deserializeAws_json1_1DeviceModelList(output.NotDeviceModels, context)
|
|
6580
6939
|
: undefined,
|
|
6581
|
-
NotDeviceOperatingSystems: output.NotDeviceOperatingSystems
|
|
6940
|
+
NotDeviceOperatingSystems: output.NotDeviceOperatingSystems != null
|
|
6582
6941
|
? deserializeAws_json1_1DeviceOperatingSystemList(output.NotDeviceOperatingSystems, context)
|
|
6583
6942
|
: undefined,
|
|
6584
|
-
NotDeviceTypes: output.NotDeviceTypes
|
|
6585
|
-
|
|
6586
|
-
: undefined,
|
|
6587
|
-
NotDeviceUserAgents: output.NotDeviceUserAgents !== undefined && output.NotDeviceUserAgents !== null
|
|
6943
|
+
NotDeviceTypes: output.NotDeviceTypes != null ? deserializeAws_json1_1DeviceTypeList(output.NotDeviceTypes, context) : undefined,
|
|
6944
|
+
NotDeviceUserAgents: output.NotDeviceUserAgents != null
|
|
6588
6945
|
? deserializeAws_json1_1DeviceUserAgentList(output.NotDeviceUserAgents, context)
|
|
6589
6946
|
: undefined,
|
|
6590
6947
|
};
|
|
@@ -6639,7 +6996,7 @@ var deserializeAws_json1_1Permission = function (output, context) {
|
|
|
6639
6996
|
return {
|
|
6640
6997
|
GranteeId: __expectString(output.GranteeId),
|
|
6641
6998
|
GranteeType: __expectString(output.GranteeType),
|
|
6642
|
-
PermissionValues: output.PermissionValues
|
|
6999
|
+
PermissionValues: output.PermissionValues != null
|
|
6643
7000
|
? deserializeAws_json1_1PermissionValues(output.PermissionValues, context)
|
|
6644
7001
|
: undefined,
|
|
6645
7002
|
};
|
|
@@ -6684,6 +7041,12 @@ var deserializeAws_json1_1PutMobileDeviceAccessOverrideResponse = function (outp
|
|
|
6684
7041
|
var deserializeAws_json1_1PutRetentionPolicyResponse = function (output, context) {
|
|
6685
7042
|
return {};
|
|
6686
7043
|
};
|
|
7044
|
+
var deserializeAws_json1_1RedactedEwsAvailabilityProvider = function (output, context) {
|
|
7045
|
+
return {
|
|
7046
|
+
EwsEndpoint: __expectString(output.EwsEndpoint),
|
|
7047
|
+
EwsUsername: __expectString(output.EwsUsername),
|
|
7048
|
+
};
|
|
7049
|
+
};
|
|
6687
7050
|
var deserializeAws_json1_1RegisterMailDomainResponse = function (output, context) {
|
|
6688
7051
|
return {};
|
|
6689
7052
|
};
|
|
@@ -6700,11 +7063,11 @@ var deserializeAws_json1_1ResetPasswordResponse = function (output, context) {
|
|
|
6700
7063
|
};
|
|
6701
7064
|
var deserializeAws_json1_1Resource = function (output, context) {
|
|
6702
7065
|
return {
|
|
6703
|
-
DisabledDate: output.DisabledDate
|
|
7066
|
+
DisabledDate: output.DisabledDate != null
|
|
6704
7067
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6705
7068
|
: undefined,
|
|
6706
7069
|
Email: __expectString(output.Email),
|
|
6707
|
-
EnabledDate: output.EnabledDate
|
|
7070
|
+
EnabledDate: output.EnabledDate != null
|
|
6708
7071
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6709
7072
|
: undefined,
|
|
6710
7073
|
Id: __expectString(output.Id),
|
|
@@ -6765,6 +7128,12 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
6765
7128
|
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
6766
7129
|
return {};
|
|
6767
7130
|
};
|
|
7131
|
+
var deserializeAws_json1_1TestAvailabilityConfigurationResponse = function (output, context) {
|
|
7132
|
+
return {
|
|
7133
|
+
FailureReason: __expectString(output.FailureReason),
|
|
7134
|
+
TestPassed: __expectBoolean(output.TestPassed),
|
|
7135
|
+
};
|
|
7136
|
+
};
|
|
6768
7137
|
var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
6769
7138
|
return {
|
|
6770
7139
|
Message: __expectString(output.Message),
|
|
@@ -6778,6 +7147,9 @@ var deserializeAws_json1_1UnsupportedOperationException = function (output, cont
|
|
|
6778
7147
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
6779
7148
|
return {};
|
|
6780
7149
|
};
|
|
7150
|
+
var deserializeAws_json1_1UpdateAvailabilityConfigurationResponse = function (output, context) {
|
|
7151
|
+
return {};
|
|
7152
|
+
};
|
|
6781
7153
|
var deserializeAws_json1_1UpdateDefaultMailDomainResponse = function (output, context) {
|
|
6782
7154
|
return {};
|
|
6783
7155
|
};
|
|
@@ -6795,12 +7167,12 @@ var deserializeAws_json1_1UpdateResourceResponse = function (output, context) {
|
|
|
6795
7167
|
};
|
|
6796
7168
|
var deserializeAws_json1_1User = function (output, context) {
|
|
6797
7169
|
return {
|
|
6798
|
-
DisabledDate: output.DisabledDate
|
|
7170
|
+
DisabledDate: output.DisabledDate != null
|
|
6799
7171
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DisabledDate)))
|
|
6800
7172
|
: undefined,
|
|
6801
7173
|
DisplayName: __expectString(output.DisplayName),
|
|
6802
7174
|
Email: __expectString(output.Email),
|
|
6803
|
-
EnabledDate: output.EnabledDate
|
|
7175
|
+
EnabledDate: output.EnabledDate != null
|
|
6804
7176
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EnabledDate)))
|
|
6805
7177
|
: undefined,
|
|
6806
7178
|
Id: __expectString(output.Id),
|
|
@@ -6905,5 +7277,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
6905
7277
|
if (data["__type"] !== undefined) {
|
|
6906
7278
|
return sanitizeErrorCode(data["__type"]);
|
|
6907
7279
|
}
|
|
6908
|
-
return "";
|
|
6909
7280
|
};
|