@aws-sdk/client-amplifybackend 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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +334 -410
- package/dist-es/protocols/Aws_restJson1.js +277 -353
- package/package.json +26 -26
|
@@ -35,8 +35,7 @@ export var serializeAws_restJson1CloneBackendCommand = function (input, context)
|
|
|
35
35
|
else {
|
|
36
36
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
37
37
|
}
|
|
38
|
-
body = JSON.stringify(__assign({}, (input.TargetEnvironmentName
|
|
39
|
-
input.TargetEnvironmentName !== null && { targetEnvironmentName: input.TargetEnvironmentName })));
|
|
38
|
+
body = JSON.stringify(__assign({}, (input.TargetEnvironmentName != null && { targetEnvironmentName: input.TargetEnvironmentName })));
|
|
40
39
|
return [2, new __HttpRequest({
|
|
41
40
|
protocol: protocol,
|
|
42
41
|
hostname: hostname,
|
|
@@ -60,11 +59,9 @@ export var serializeAws_restJson1CreateBackendCommand = function (input, context
|
|
|
60
59
|
"content-type": "application/json",
|
|
61
60
|
};
|
|
62
61
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backend";
|
|
63
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppId
|
|
64
|
-
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
|
|
65
|
-
input.ResourceConfig !== null && {
|
|
62
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppId != null && { appId: input.AppId })), (input.AppName != null && { appName: input.AppName })), (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
|
|
66
63
|
resourceConfig: serializeAws_restJson1ResourceConfig(input.ResourceConfig, context),
|
|
67
|
-
})), (input.ResourceName
|
|
64
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
68
65
|
return [2, new __HttpRequest({
|
|
69
66
|
protocol: protocol,
|
|
70
67
|
hostname: hostname,
|
|
@@ -98,11 +95,9 @@ export var serializeAws_restJson1CreateBackendAPICommand = function (input, cont
|
|
|
98
95
|
else {
|
|
99
96
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
100
97
|
}
|
|
101
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName
|
|
102
|
-
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
|
|
103
|
-
input.ResourceConfig !== null && {
|
|
98
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
|
|
104
99
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
105
|
-
})), (input.ResourceName
|
|
100
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
106
101
|
return [2, new __HttpRequest({
|
|
107
102
|
protocol: protocol,
|
|
108
103
|
hostname: hostname,
|
|
@@ -136,11 +131,9 @@ export var serializeAws_restJson1CreateBackendAuthCommand = function (input, con
|
|
|
136
131
|
else {
|
|
137
132
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
138
133
|
}
|
|
139
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName
|
|
140
|
-
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
|
|
141
|
-
input.ResourceConfig !== null && {
|
|
134
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
|
|
142
135
|
resourceConfig: serializeAws_restJson1CreateBackendAuthResourceConfig(input.ResourceConfig, context),
|
|
143
|
-
})), (input.ResourceName
|
|
136
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
144
137
|
return [2, new __HttpRequest({
|
|
145
138
|
protocol: protocol,
|
|
146
139
|
hostname: hostname,
|
|
@@ -174,8 +167,7 @@ export var serializeAws_restJson1CreateBackendConfigCommand = function (input, c
|
|
|
174
167
|
else {
|
|
175
168
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
176
169
|
}
|
|
177
|
-
body = JSON.stringify(__assign({}, (input.BackendManagerAppId
|
|
178
|
-
input.BackendManagerAppId !== null && { backendManagerAppId: input.BackendManagerAppId })));
|
|
170
|
+
body = JSON.stringify(__assign({}, (input.BackendManagerAppId != null && { backendManagerAppId: input.BackendManagerAppId })));
|
|
179
171
|
return [2, new __HttpRequest({
|
|
180
172
|
protocol: protocol,
|
|
181
173
|
hostname: hostname,
|
|
@@ -209,11 +201,9 @@ export var serializeAws_restJson1CreateBackendStorageCommand = function (input,
|
|
|
209
201
|
else {
|
|
210
202
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
211
203
|
}
|
|
212
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName
|
|
213
|
-
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
|
|
214
|
-
input.ResourceConfig !== null && {
|
|
204
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
|
|
215
205
|
resourceConfig: serializeAws_restJson1CreateBackendStorageResourceConfig(input.ResourceConfig, context),
|
|
216
|
-
})), (input.ResourceName
|
|
206
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
217
207
|
return [2, new __HttpRequest({
|
|
218
208
|
protocol: protocol,
|
|
219
209
|
hostname: hostname,
|
|
@@ -331,10 +321,9 @@ export var serializeAws_restJson1DeleteBackendAPICommand = function (input, cont
|
|
|
331
321
|
else {
|
|
332
322
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
333
323
|
}
|
|
334
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig
|
|
335
|
-
input.ResourceConfig !== null && {
|
|
324
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
|
|
336
325
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
337
|
-
})), (input.ResourceName
|
|
326
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
338
327
|
return [2, new __HttpRequest({
|
|
339
328
|
protocol: protocol,
|
|
340
329
|
hostname: hostname,
|
|
@@ -379,7 +368,7 @@ export var serializeAws_restJson1DeleteBackendAuthCommand = function (input, con
|
|
|
379
368
|
else {
|
|
380
369
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
381
370
|
}
|
|
382
|
-
body = JSON.stringify(__assign({}, (input.ResourceName
|
|
371
|
+
body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
383
372
|
return [2, new __HttpRequest({
|
|
384
373
|
protocol: protocol,
|
|
385
374
|
hostname: hostname,
|
|
@@ -424,7 +413,7 @@ export var serializeAws_restJson1DeleteBackendStorageCommand = function (input,
|
|
|
424
413
|
else {
|
|
425
414
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
426
415
|
}
|
|
427
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceName
|
|
416
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })), (input.ServiceName != null && { serviceName: input.ServiceName })));
|
|
428
417
|
return [2, new __HttpRequest({
|
|
429
418
|
protocol: protocol,
|
|
430
419
|
hostname: hostname,
|
|
@@ -511,7 +500,7 @@ export var serializeAws_restJson1GenerateBackendAPIModelsCommand = function (inp
|
|
|
511
500
|
else {
|
|
512
501
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
513
502
|
}
|
|
514
|
-
body = JSON.stringify(__assign({}, (input.ResourceName
|
|
503
|
+
body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
515
504
|
return [2, new __HttpRequest({
|
|
516
505
|
protocol: protocol,
|
|
517
506
|
hostname: hostname,
|
|
@@ -545,8 +534,7 @@ export var serializeAws_restJson1GetBackendCommand = function (input, context) {
|
|
|
545
534
|
else {
|
|
546
535
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
547
536
|
}
|
|
548
|
-
body = JSON.stringify(__assign({}, (input.BackendEnvironmentName
|
|
549
|
-
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })));
|
|
537
|
+
body = JSON.stringify(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })));
|
|
550
538
|
return [2, new __HttpRequest({
|
|
551
539
|
protocol: protocol,
|
|
552
540
|
hostname: hostname,
|
|
@@ -591,10 +579,9 @@ export var serializeAws_restJson1GetBackendAPICommand = function (input, context
|
|
|
591
579
|
else {
|
|
592
580
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
593
581
|
}
|
|
594
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig
|
|
595
|
-
input.ResourceConfig !== null && {
|
|
582
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
|
|
596
583
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
597
|
-
})), (input.ResourceName
|
|
584
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
598
585
|
return [2, new __HttpRequest({
|
|
599
586
|
protocol: protocol,
|
|
600
587
|
hostname: hostname,
|
|
@@ -639,7 +626,7 @@ export var serializeAws_restJson1GetBackendAPIModelsCommand = function (input, c
|
|
|
639
626
|
else {
|
|
640
627
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
641
628
|
}
|
|
642
|
-
body = JSON.stringify(__assign({}, (input.ResourceName
|
|
629
|
+
body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
643
630
|
return [2, new __HttpRequest({
|
|
644
631
|
protocol: protocol,
|
|
645
632
|
hostname: hostname,
|
|
@@ -684,7 +671,7 @@ export var serializeAws_restJson1GetBackendAuthCommand = function (input, contex
|
|
|
684
671
|
else {
|
|
685
672
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
686
673
|
}
|
|
687
|
-
body = JSON.stringify(__assign({}, (input.ResourceName
|
|
674
|
+
body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
688
675
|
return [2, new __HttpRequest({
|
|
689
676
|
protocol: protocol,
|
|
690
677
|
hostname: hostname,
|
|
@@ -781,7 +768,7 @@ export var serializeAws_restJson1GetBackendStorageCommand = function (input, con
|
|
|
781
768
|
else {
|
|
782
769
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
783
770
|
}
|
|
784
|
-
body = JSON.stringify(__assign({}, (input.ResourceName
|
|
771
|
+
body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
785
772
|
return [2, new __HttpRequest({
|
|
786
773
|
protocol: protocol,
|
|
787
774
|
hostname: hostname,
|
|
@@ -867,9 +854,7 @@ export var serializeAws_restJson1ImportBackendAuthCommand = function (input, con
|
|
|
867
854
|
else {
|
|
868
855
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
869
856
|
}
|
|
870
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IdentityPoolId
|
|
871
|
-
input.IdentityPoolId !== null && { identityPoolId: input.IdentityPoolId })), (input.NativeClientId !== undefined &&
|
|
872
|
-
input.NativeClientId !== null && { nativeClientId: input.NativeClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { userPoolId: input.UserPoolId })), (input.WebClientId !== undefined && input.WebClientId !== null && { webClientId: input.WebClientId })));
|
|
857
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IdentityPoolId != null && { identityPoolId: input.IdentityPoolId })), (input.NativeClientId != null && { nativeClientId: input.NativeClientId })), (input.UserPoolId != null && { userPoolId: input.UserPoolId })), (input.WebClientId != null && { webClientId: input.WebClientId })));
|
|
873
858
|
return [2, new __HttpRequest({
|
|
874
859
|
protocol: protocol,
|
|
875
860
|
hostname: hostname,
|
|
@@ -914,7 +899,7 @@ export var serializeAws_restJson1ImportBackendStorageCommand = function (input,
|
|
|
914
899
|
else {
|
|
915
900
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
916
901
|
}
|
|
917
|
-
body = JSON.stringify(__assign(__assign({}, (input.BucketName
|
|
902
|
+
body = JSON.stringify(__assign(__assign({}, (input.BucketName != null && { bucketName: input.BucketName })), (input.ServiceName != null && { serviceName: input.ServiceName })));
|
|
918
903
|
return [2, new __HttpRequest({
|
|
919
904
|
protocol: protocol,
|
|
920
905
|
hostname: hostname,
|
|
@@ -959,7 +944,7 @@ export var serializeAws_restJson1ListBackendJobsCommand = function (input, conte
|
|
|
959
944
|
else {
|
|
960
945
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
961
946
|
}
|
|
962
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.JobId
|
|
947
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.JobId != null && { jobId: input.JobId })), (input.MaxResults != null && { maxResults: input.MaxResults })), (input.NextToken != null && { nextToken: input.NextToken })), (input.Operation != null && { operation: input.Operation })), (input.Status != null && { status: input.Status })));
|
|
963
948
|
return [2, new __HttpRequest({
|
|
964
949
|
protocol: protocol,
|
|
965
950
|
hostname: hostname,
|
|
@@ -983,7 +968,7 @@ export var serializeAws_restJson1ListS3BucketsCommand = function (input, context
|
|
|
983
968
|
"content-type": "application/json",
|
|
984
969
|
};
|
|
985
970
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/s3Buckets";
|
|
986
|
-
body = JSON.stringify(__assign({}, (input.NextToken
|
|
971
|
+
body = JSON.stringify(__assign({}, (input.NextToken != null && { nextToken: input.NextToken })));
|
|
987
972
|
return [2, new __HttpRequest({
|
|
988
973
|
protocol: protocol,
|
|
989
974
|
hostname: hostname,
|
|
@@ -1017,8 +1002,7 @@ export var serializeAws_restJson1RemoveAllBackendsCommand = function (input, con
|
|
|
1017
1002
|
else {
|
|
1018
1003
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
1019
1004
|
}
|
|
1020
|
-
body = JSON.stringify(__assign({}, (input.CleanAmplifyApp
|
|
1021
|
-
input.CleanAmplifyApp !== null && { cleanAmplifyApp: input.CleanAmplifyApp })));
|
|
1005
|
+
body = JSON.stringify(__assign({}, (input.CleanAmplifyApp != null && { cleanAmplifyApp: input.CleanAmplifyApp })));
|
|
1022
1006
|
return [2, new __HttpRequest({
|
|
1023
1007
|
protocol: protocol,
|
|
1024
1008
|
hostname: hostname,
|
|
@@ -1094,10 +1078,9 @@ export var serializeAws_restJson1UpdateBackendAPICommand = function (input, cont
|
|
|
1094
1078
|
else {
|
|
1095
1079
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
1096
1080
|
}
|
|
1097
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig
|
|
1098
|
-
input.ResourceConfig !== null && {
|
|
1081
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
|
|
1099
1082
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
1100
|
-
})), (input.ResourceName
|
|
1083
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
1101
1084
|
return [2, new __HttpRequest({
|
|
1102
1085
|
protocol: protocol,
|
|
1103
1086
|
hostname: hostname,
|
|
@@ -1142,10 +1125,9 @@ export var serializeAws_restJson1UpdateBackendAuthCommand = function (input, con
|
|
|
1142
1125
|
else {
|
|
1143
1126
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
1144
1127
|
}
|
|
1145
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig
|
|
1146
|
-
input.ResourceConfig !== null && {
|
|
1128
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
|
|
1147
1129
|
resourceConfig: serializeAws_restJson1UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
|
|
1148
|
-
})), (input.ResourceName
|
|
1130
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
1149
1131
|
return [2, new __HttpRequest({
|
|
1150
1132
|
protocol: protocol,
|
|
1151
1133
|
hostname: hostname,
|
|
@@ -1179,8 +1161,7 @@ export var serializeAws_restJson1UpdateBackendConfigCommand = function (input, c
|
|
|
1179
1161
|
else {
|
|
1180
1162
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
1181
1163
|
}
|
|
1182
|
-
body = JSON.stringify(__assign({}, (input.LoginAuthConfig
|
|
1183
|
-
input.LoginAuthConfig !== null && {
|
|
1164
|
+
body = JSON.stringify(__assign({}, (input.LoginAuthConfig != null && {
|
|
1184
1165
|
loginAuthConfig: serializeAws_restJson1LoginAuthConfigReqObj(input.LoginAuthConfig, context),
|
|
1185
1166
|
})));
|
|
1186
1167
|
return [2, new __HttpRequest({
|
|
@@ -1237,7 +1218,7 @@ export var serializeAws_restJson1UpdateBackendJobCommand = function (input, cont
|
|
|
1237
1218
|
else {
|
|
1238
1219
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
1239
1220
|
}
|
|
1240
|
-
body = JSON.stringify(__assign(__assign({}, (input.Operation
|
|
1221
|
+
body = JSON.stringify(__assign(__assign({}, (input.Operation != null && { operation: input.Operation })), (input.Status != null && { status: input.Status })));
|
|
1241
1222
|
return [2, new __HttpRequest({
|
|
1242
1223
|
protocol: protocol,
|
|
1243
1224
|
hostname: hostname,
|
|
@@ -1282,10 +1263,9 @@ export var serializeAws_restJson1UpdateBackendStorageCommand = function (input,
|
|
|
1282
1263
|
else {
|
|
1283
1264
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
1284
1265
|
}
|
|
1285
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig
|
|
1286
|
-
input.ResourceConfig !== null && {
|
|
1266
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
|
|
1287
1267
|
resourceConfig: serializeAws_restJson1UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
|
|
1288
|
-
})), (input.ResourceName
|
|
1268
|
+
})), (input.ResourceName != null && { resourceName: input.ResourceName })));
|
|
1289
1269
|
return [2, new __HttpRequest({
|
|
1290
1270
|
protocol: protocol,
|
|
1291
1271
|
hostname: hostname,
|
|
@@ -1343,7 +1323,7 @@ export var deserializeAws_restJson1CloneBackendCommand = function (output, conte
|
|
|
1343
1323
|
});
|
|
1344
1324
|
}); };
|
|
1345
1325
|
var deserializeAws_restJson1CloneBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1346
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1326
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1347
1327
|
var _c;
|
|
1348
1328
|
return __generator(this, function (_d) {
|
|
1349
1329
|
switch (_d.label) {
|
|
@@ -1353,7 +1333,6 @@ var deserializeAws_restJson1CloneBackendCommandError = function (output, context
|
|
|
1353
1333
|
return [4, parseBody(output.body, context)];
|
|
1354
1334
|
case 1:
|
|
1355
1335
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1356
|
-
errorCode = "UnknownError";
|
|
1357
1336
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
1337
|
_b = errorCode;
|
|
1359
1338
|
switch (_b) {
|
|
@@ -1377,10 +1356,12 @@ var deserializeAws_restJson1CloneBackendCommandError = function (output, context
|
|
|
1377
1356
|
case 9: throw _d.sent();
|
|
1378
1357
|
case 10:
|
|
1379
1358
|
parsedBody = parsedOutput.body;
|
|
1359
|
+
$metadata = deserializeMetadata(output);
|
|
1360
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1380
1361
|
response = new __BaseException({
|
|
1381
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1382
1363
|
$fault: "client",
|
|
1383
|
-
$metadata:
|
|
1364
|
+
$metadata: $metadata,
|
|
1384
1365
|
});
|
|
1385
1366
|
throw __decorateServiceException(response, parsedBody);
|
|
1386
1367
|
}
|
|
@@ -1431,7 +1412,7 @@ export var deserializeAws_restJson1CreateBackendCommand = function (output, cont
|
|
|
1431
1412
|
});
|
|
1432
1413
|
}); };
|
|
1433
1414
|
var deserializeAws_restJson1CreateBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1434
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1415
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1435
1416
|
var _c;
|
|
1436
1417
|
return __generator(this, function (_d) {
|
|
1437
1418
|
switch (_d.label) {
|
|
@@ -1441,7 +1422,6 @@ var deserializeAws_restJson1CreateBackendCommandError = function (output, contex
|
|
|
1441
1422
|
return [4, parseBody(output.body, context)];
|
|
1442
1423
|
case 1:
|
|
1443
1424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1444
|
-
errorCode = "UnknownError";
|
|
1445
1425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1426
|
_b = errorCode;
|
|
1447
1427
|
switch (_b) {
|
|
@@ -1465,10 +1445,12 @@ var deserializeAws_restJson1CreateBackendCommandError = function (output, contex
|
|
|
1465
1445
|
case 9: throw _d.sent();
|
|
1466
1446
|
case 10:
|
|
1467
1447
|
parsedBody = parsedOutput.body;
|
|
1448
|
+
$metadata = deserializeMetadata(output);
|
|
1449
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1468
1450
|
response = new __BaseException({
|
|
1469
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1451
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1470
1452
|
$fault: "client",
|
|
1471
|
-
$metadata:
|
|
1453
|
+
$metadata: $metadata,
|
|
1472
1454
|
});
|
|
1473
1455
|
throw __decorateServiceException(response, parsedBody);
|
|
1474
1456
|
}
|
|
@@ -1519,7 +1501,7 @@ export var deserializeAws_restJson1CreateBackendAPICommand = function (output, c
|
|
|
1519
1501
|
});
|
|
1520
1502
|
}); };
|
|
1521
1503
|
var deserializeAws_restJson1CreateBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1522
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1504
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1523
1505
|
var _c;
|
|
1524
1506
|
return __generator(this, function (_d) {
|
|
1525
1507
|
switch (_d.label) {
|
|
@@ -1529,7 +1511,6 @@ var deserializeAws_restJson1CreateBackendAPICommandError = function (output, con
|
|
|
1529
1511
|
return [4, parseBody(output.body, context)];
|
|
1530
1512
|
case 1:
|
|
1531
1513
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1532
|
-
errorCode = "UnknownError";
|
|
1533
1514
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1515
|
_b = errorCode;
|
|
1535
1516
|
switch (_b) {
|
|
@@ -1553,10 +1534,12 @@ var deserializeAws_restJson1CreateBackendAPICommandError = function (output, con
|
|
|
1553
1534
|
case 9: throw _d.sent();
|
|
1554
1535
|
case 10:
|
|
1555
1536
|
parsedBody = parsedOutput.body;
|
|
1537
|
+
$metadata = deserializeMetadata(output);
|
|
1538
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1556
1539
|
response = new __BaseException({
|
|
1557
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1558
1541
|
$fault: "client",
|
|
1559
|
-
$metadata:
|
|
1542
|
+
$metadata: $metadata,
|
|
1560
1543
|
});
|
|
1561
1544
|
throw __decorateServiceException(response, parsedBody);
|
|
1562
1545
|
}
|
|
@@ -1607,7 +1590,7 @@ export var deserializeAws_restJson1CreateBackendAuthCommand = function (output,
|
|
|
1607
1590
|
});
|
|
1608
1591
|
}); };
|
|
1609
1592
|
var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1610
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1593
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1611
1594
|
var _c;
|
|
1612
1595
|
return __generator(this, function (_d) {
|
|
1613
1596
|
switch (_d.label) {
|
|
@@ -1617,7 +1600,6 @@ var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, co
|
|
|
1617
1600
|
return [4, parseBody(output.body, context)];
|
|
1618
1601
|
case 1:
|
|
1619
1602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1620
|
-
errorCode = "UnknownError";
|
|
1621
1603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
1604
|
_b = errorCode;
|
|
1623
1605
|
switch (_b) {
|
|
@@ -1641,10 +1623,12 @@ var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, co
|
|
|
1641
1623
|
case 9: throw _d.sent();
|
|
1642
1624
|
case 10:
|
|
1643
1625
|
parsedBody = parsedOutput.body;
|
|
1626
|
+
$metadata = deserializeMetadata(output);
|
|
1627
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1644
1628
|
response = new __BaseException({
|
|
1645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1646
1630
|
$fault: "client",
|
|
1647
|
-
$metadata:
|
|
1631
|
+
$metadata: $metadata,
|
|
1648
1632
|
});
|
|
1649
1633
|
throw __decorateServiceException(response, parsedBody);
|
|
1650
1634
|
}
|
|
@@ -1687,7 +1671,7 @@ export var deserializeAws_restJson1CreateBackendConfigCommand = function (output
|
|
|
1687
1671
|
});
|
|
1688
1672
|
}); };
|
|
1689
1673
|
var deserializeAws_restJson1CreateBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1690
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1674
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1691
1675
|
var _c;
|
|
1692
1676
|
return __generator(this, function (_d) {
|
|
1693
1677
|
switch (_d.label) {
|
|
@@ -1697,7 +1681,6 @@ var deserializeAws_restJson1CreateBackendConfigCommandError = function (output,
|
|
|
1697
1681
|
return [4, parseBody(output.body, context)];
|
|
1698
1682
|
case 1:
|
|
1699
1683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1700
|
-
errorCode = "UnknownError";
|
|
1701
1684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
1685
|
_b = errorCode;
|
|
1703
1686
|
switch (_b) {
|
|
@@ -1721,10 +1704,12 @@ var deserializeAws_restJson1CreateBackendConfigCommandError = function (output,
|
|
|
1721
1704
|
case 9: throw _d.sent();
|
|
1722
1705
|
case 10:
|
|
1723
1706
|
parsedBody = parsedOutput.body;
|
|
1707
|
+
$metadata = deserializeMetadata(output);
|
|
1708
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1724
1709
|
response = new __BaseException({
|
|
1725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1710
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1726
1711
|
$fault: "client",
|
|
1727
|
-
$metadata:
|
|
1712
|
+
$metadata: $metadata,
|
|
1728
1713
|
});
|
|
1729
1714
|
throw __decorateServiceException(response, parsedBody);
|
|
1730
1715
|
}
|
|
@@ -1767,7 +1752,7 @@ export var deserializeAws_restJson1CreateBackendStorageCommand = function (outpu
|
|
|
1767
1752
|
});
|
|
1768
1753
|
}); };
|
|
1769
1754
|
var deserializeAws_restJson1CreateBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1770
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1755
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1771
1756
|
var _c;
|
|
1772
1757
|
return __generator(this, function (_d) {
|
|
1773
1758
|
switch (_d.label) {
|
|
@@ -1777,7 +1762,6 @@ var deserializeAws_restJson1CreateBackendStorageCommandError = function (output,
|
|
|
1777
1762
|
return [4, parseBody(output.body, context)];
|
|
1778
1763
|
case 1:
|
|
1779
1764
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1780
|
-
errorCode = "UnknownError";
|
|
1781
1765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
1766
|
_b = errorCode;
|
|
1783
1767
|
switch (_b) {
|
|
@@ -1801,10 +1785,12 @@ var deserializeAws_restJson1CreateBackendStorageCommandError = function (output,
|
|
|
1801
1785
|
case 9: throw _d.sent();
|
|
1802
1786
|
case 10:
|
|
1803
1787
|
parsedBody = parsedOutput.body;
|
|
1788
|
+
$metadata = deserializeMetadata(output);
|
|
1789
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1804
1790
|
response = new __BaseException({
|
|
1805
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1806
1792
|
$fault: "client",
|
|
1807
|
-
$metadata:
|
|
1793
|
+
$metadata: $metadata,
|
|
1808
1794
|
});
|
|
1809
1795
|
throw __decorateServiceException(response, parsedBody);
|
|
1810
1796
|
}
|
|
@@ -1847,7 +1833,7 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
1847
1833
|
});
|
|
1848
1834
|
}); };
|
|
1849
1835
|
var deserializeAws_restJson1CreateTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1850
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1836
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1851
1837
|
var _c;
|
|
1852
1838
|
return __generator(this, function (_d) {
|
|
1853
1839
|
switch (_d.label) {
|
|
@@ -1857,7 +1843,6 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
1857
1843
|
return [4, parseBody(output.body, context)];
|
|
1858
1844
|
case 1:
|
|
1859
1845
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1860
|
-
errorCode = "UnknownError";
|
|
1861
1846
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
1847
|
_b = errorCode;
|
|
1863
1848
|
switch (_b) {
|
|
@@ -1881,10 +1866,12 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
1881
1866
|
case 9: throw _d.sent();
|
|
1882
1867
|
case 10:
|
|
1883
1868
|
parsedBody = parsedOutput.body;
|
|
1869
|
+
$metadata = deserializeMetadata(output);
|
|
1870
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1884
1871
|
response = new __BaseException({
|
|
1885
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1872
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1886
1873
|
$fault: "client",
|
|
1887
|
-
$metadata:
|
|
1874
|
+
$metadata: $metadata,
|
|
1888
1875
|
});
|
|
1889
1876
|
throw __decorateServiceException(response, parsedBody);
|
|
1890
1877
|
}
|
|
@@ -1935,7 +1922,7 @@ export var deserializeAws_restJson1DeleteBackendCommand = function (output, cont
|
|
|
1935
1922
|
});
|
|
1936
1923
|
}); };
|
|
1937
1924
|
var deserializeAws_restJson1DeleteBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1938
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1925
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1939
1926
|
var _c;
|
|
1940
1927
|
return __generator(this, function (_d) {
|
|
1941
1928
|
switch (_d.label) {
|
|
@@ -1945,7 +1932,6 @@ var deserializeAws_restJson1DeleteBackendCommandError = function (output, contex
|
|
|
1945
1932
|
return [4, parseBody(output.body, context)];
|
|
1946
1933
|
case 1:
|
|
1947
1934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1948
|
-
errorCode = "UnknownError";
|
|
1949
1935
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
1936
|
_b = errorCode;
|
|
1951
1937
|
switch (_b) {
|
|
@@ -1969,10 +1955,12 @@ var deserializeAws_restJson1DeleteBackendCommandError = function (output, contex
|
|
|
1969
1955
|
case 9: throw _d.sent();
|
|
1970
1956
|
case 10:
|
|
1971
1957
|
parsedBody = parsedOutput.body;
|
|
1958
|
+
$metadata = deserializeMetadata(output);
|
|
1959
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1972
1960
|
response = new __BaseException({
|
|
1973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1974
1962
|
$fault: "client",
|
|
1975
|
-
$metadata:
|
|
1963
|
+
$metadata: $metadata,
|
|
1976
1964
|
});
|
|
1977
1965
|
throw __decorateServiceException(response, parsedBody);
|
|
1978
1966
|
}
|
|
@@ -2023,7 +2011,7 @@ export var deserializeAws_restJson1DeleteBackendAPICommand = function (output, c
|
|
|
2023
2011
|
});
|
|
2024
2012
|
}); };
|
|
2025
2013
|
var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2026
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2014
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2027
2015
|
var _c;
|
|
2028
2016
|
return __generator(this, function (_d) {
|
|
2029
2017
|
switch (_d.label) {
|
|
@@ -2033,7 +2021,6 @@ var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, con
|
|
|
2033
2021
|
return [4, parseBody(output.body, context)];
|
|
2034
2022
|
case 1:
|
|
2035
2023
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2036
|
-
errorCode = "UnknownError";
|
|
2037
2024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
2025
|
_b = errorCode;
|
|
2039
2026
|
switch (_b) {
|
|
@@ -2057,10 +2044,12 @@ var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, con
|
|
|
2057
2044
|
case 9: throw _d.sent();
|
|
2058
2045
|
case 10:
|
|
2059
2046
|
parsedBody = parsedOutput.body;
|
|
2047
|
+
$metadata = deserializeMetadata(output);
|
|
2048
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2060
2049
|
response = new __BaseException({
|
|
2061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2062
2051
|
$fault: "client",
|
|
2063
|
-
$metadata:
|
|
2052
|
+
$metadata: $metadata,
|
|
2064
2053
|
});
|
|
2065
2054
|
throw __decorateServiceException(response, parsedBody);
|
|
2066
2055
|
}
|
|
@@ -2111,7 +2100,7 @@ export var deserializeAws_restJson1DeleteBackendAuthCommand = function (output,
|
|
|
2111
2100
|
});
|
|
2112
2101
|
}); };
|
|
2113
2102
|
var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2114
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2103
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2115
2104
|
var _c;
|
|
2116
2105
|
return __generator(this, function (_d) {
|
|
2117
2106
|
switch (_d.label) {
|
|
@@ -2121,7 +2110,6 @@ var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, co
|
|
|
2121
2110
|
return [4, parseBody(output.body, context)];
|
|
2122
2111
|
case 1:
|
|
2123
2112
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2124
|
-
errorCode = "UnknownError";
|
|
2125
2113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2114
|
_b = errorCode;
|
|
2127
2115
|
switch (_b) {
|
|
@@ -2145,10 +2133,12 @@ var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, co
|
|
|
2145
2133
|
case 9: throw _d.sent();
|
|
2146
2134
|
case 10:
|
|
2147
2135
|
parsedBody = parsedOutput.body;
|
|
2136
|
+
$metadata = deserializeMetadata(output);
|
|
2137
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2148
2138
|
response = new __BaseException({
|
|
2149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2139
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2150
2140
|
$fault: "client",
|
|
2151
|
-
$metadata:
|
|
2141
|
+
$metadata: $metadata,
|
|
2152
2142
|
});
|
|
2153
2143
|
throw __decorateServiceException(response, parsedBody);
|
|
2154
2144
|
}
|
|
@@ -2191,7 +2181,7 @@ export var deserializeAws_restJson1DeleteBackendStorageCommand = function (outpu
|
|
|
2191
2181
|
});
|
|
2192
2182
|
}); };
|
|
2193
2183
|
var deserializeAws_restJson1DeleteBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2194
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2184
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2195
2185
|
var _c;
|
|
2196
2186
|
return __generator(this, function (_d) {
|
|
2197
2187
|
switch (_d.label) {
|
|
@@ -2201,7 +2191,6 @@ var deserializeAws_restJson1DeleteBackendStorageCommandError = function (output,
|
|
|
2201
2191
|
return [4, parseBody(output.body, context)];
|
|
2202
2192
|
case 1:
|
|
2203
2193
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2204
|
-
errorCode = "UnknownError";
|
|
2205
2194
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
2195
|
_b = errorCode;
|
|
2207
2196
|
switch (_b) {
|
|
@@ -2225,10 +2214,12 @@ var deserializeAws_restJson1DeleteBackendStorageCommandError = function (output,
|
|
|
2225
2214
|
case 9: throw _d.sent();
|
|
2226
2215
|
case 10:
|
|
2227
2216
|
parsedBody = parsedOutput.body;
|
|
2217
|
+
$metadata = deserializeMetadata(output);
|
|
2218
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2228
2219
|
response = new __BaseException({
|
|
2229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2220
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2230
2221
|
$fault: "client",
|
|
2231
|
-
$metadata:
|
|
2222
|
+
$metadata: $metadata,
|
|
2232
2223
|
});
|
|
2233
2224
|
throw __decorateServiceException(response, parsedBody);
|
|
2234
2225
|
}
|
|
@@ -2259,7 +2250,7 @@ export var deserializeAws_restJson1DeleteTokenCommand = function (output, contex
|
|
|
2259
2250
|
});
|
|
2260
2251
|
}); };
|
|
2261
2252
|
var deserializeAws_restJson1DeleteTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2262
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2253
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2263
2254
|
var _c;
|
|
2264
2255
|
return __generator(this, function (_d) {
|
|
2265
2256
|
switch (_d.label) {
|
|
@@ -2269,7 +2260,6 @@ var deserializeAws_restJson1DeleteTokenCommandError = function (output, context)
|
|
|
2269
2260
|
return [4, parseBody(output.body, context)];
|
|
2270
2261
|
case 1:
|
|
2271
2262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2272
|
-
errorCode = "UnknownError";
|
|
2273
2263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2264
|
_b = errorCode;
|
|
2275
2265
|
switch (_b) {
|
|
@@ -2293,10 +2283,12 @@ var deserializeAws_restJson1DeleteTokenCommandError = function (output, context)
|
|
|
2293
2283
|
case 9: throw _d.sent();
|
|
2294
2284
|
case 10:
|
|
2295
2285
|
parsedBody = parsedOutput.body;
|
|
2286
|
+
$metadata = deserializeMetadata(output);
|
|
2287
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2296
2288
|
response = new __BaseException({
|
|
2297
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2298
2290
|
$fault: "client",
|
|
2299
|
-
$metadata:
|
|
2291
|
+
$metadata: $metadata,
|
|
2300
2292
|
});
|
|
2301
2293
|
throw __decorateServiceException(response, parsedBody);
|
|
2302
2294
|
}
|
|
@@ -2347,7 +2339,7 @@ export var deserializeAws_restJson1GenerateBackendAPIModelsCommand = function (o
|
|
|
2347
2339
|
});
|
|
2348
2340
|
}); };
|
|
2349
2341
|
var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2350
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2342
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2351
2343
|
var _c;
|
|
2352
2344
|
return __generator(this, function (_d) {
|
|
2353
2345
|
switch (_d.label) {
|
|
@@ -2357,7 +2349,6 @@ var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (out
|
|
|
2357
2349
|
return [4, parseBody(output.body, context)];
|
|
2358
2350
|
case 1:
|
|
2359
2351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2360
|
-
errorCode = "UnknownError";
|
|
2361
2352
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
2353
|
_b = errorCode;
|
|
2363
2354
|
switch (_b) {
|
|
@@ -2381,10 +2372,12 @@ var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (out
|
|
|
2381
2372
|
case 9: throw _d.sent();
|
|
2382
2373
|
case 10:
|
|
2383
2374
|
parsedBody = parsedOutput.body;
|
|
2375
|
+
$metadata = deserializeMetadata(output);
|
|
2376
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2384
2377
|
response = new __BaseException({
|
|
2385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2386
2379
|
$fault: "client",
|
|
2387
|
-
$metadata:
|
|
2380
|
+
$metadata: $metadata,
|
|
2388
2381
|
});
|
|
2389
2382
|
throw __decorateServiceException(response, parsedBody);
|
|
2390
2383
|
}
|
|
@@ -2439,7 +2432,7 @@ export var deserializeAws_restJson1GetBackendCommand = function (output, context
|
|
|
2439
2432
|
});
|
|
2440
2433
|
}); };
|
|
2441
2434
|
var deserializeAws_restJson1GetBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2442
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2435
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2443
2436
|
var _c;
|
|
2444
2437
|
return __generator(this, function (_d) {
|
|
2445
2438
|
switch (_d.label) {
|
|
@@ -2449,7 +2442,6 @@ var deserializeAws_restJson1GetBackendCommandError = function (output, context)
|
|
|
2449
2442
|
return [4, parseBody(output.body, context)];
|
|
2450
2443
|
case 1:
|
|
2451
2444
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2452
|
-
errorCode = "UnknownError";
|
|
2453
2445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
2446
|
_b = errorCode;
|
|
2455
2447
|
switch (_b) {
|
|
@@ -2473,10 +2465,12 @@ var deserializeAws_restJson1GetBackendCommandError = function (output, context)
|
|
|
2473
2465
|
case 9: throw _d.sent();
|
|
2474
2466
|
case 10:
|
|
2475
2467
|
parsedBody = parsedOutput.body;
|
|
2468
|
+
$metadata = deserializeMetadata(output);
|
|
2469
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2476
2470
|
response = new __BaseException({
|
|
2477
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2478
2472
|
$fault: "client",
|
|
2479
|
-
$metadata:
|
|
2473
|
+
$metadata: $metadata,
|
|
2480
2474
|
});
|
|
2481
2475
|
throw __decorateServiceException(response, parsedBody);
|
|
2482
2476
|
}
|
|
@@ -2523,7 +2517,7 @@ export var deserializeAws_restJson1GetBackendAPICommand = function (output, cont
|
|
|
2523
2517
|
});
|
|
2524
2518
|
}); };
|
|
2525
2519
|
var deserializeAws_restJson1GetBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2526
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2520
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2527
2521
|
var _c;
|
|
2528
2522
|
return __generator(this, function (_d) {
|
|
2529
2523
|
switch (_d.label) {
|
|
@@ -2533,7 +2527,6 @@ var deserializeAws_restJson1GetBackendAPICommandError = function (output, contex
|
|
|
2533
2527
|
return [4, parseBody(output.body, context)];
|
|
2534
2528
|
case 1:
|
|
2535
2529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2536
|
-
errorCode = "UnknownError";
|
|
2537
2530
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
2531
|
_b = errorCode;
|
|
2539
2532
|
switch (_b) {
|
|
@@ -2557,10 +2550,12 @@ var deserializeAws_restJson1GetBackendAPICommandError = function (output, contex
|
|
|
2557
2550
|
case 9: throw _d.sent();
|
|
2558
2551
|
case 10:
|
|
2559
2552
|
parsedBody = parsedOutput.body;
|
|
2553
|
+
$metadata = deserializeMetadata(output);
|
|
2554
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2560
2555
|
response = new __BaseException({
|
|
2561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2562
2557
|
$fault: "client",
|
|
2563
|
-
$metadata:
|
|
2558
|
+
$metadata: $metadata,
|
|
2564
2559
|
});
|
|
2565
2560
|
throw __decorateServiceException(response, parsedBody);
|
|
2566
2561
|
}
|
|
@@ -2595,7 +2590,7 @@ export var deserializeAws_restJson1GetBackendAPIModelsCommand = function (output
|
|
|
2595
2590
|
});
|
|
2596
2591
|
}); };
|
|
2597
2592
|
var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2598
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2593
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2599
2594
|
var _c;
|
|
2600
2595
|
return __generator(this, function (_d) {
|
|
2601
2596
|
switch (_d.label) {
|
|
@@ -2605,7 +2600,6 @@ var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output,
|
|
|
2605
2600
|
return [4, parseBody(output.body, context)];
|
|
2606
2601
|
case 1:
|
|
2607
2602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2608
|
-
errorCode = "UnknownError";
|
|
2609
2603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2610
2604
|
_b = errorCode;
|
|
2611
2605
|
switch (_b) {
|
|
@@ -2629,10 +2623,12 @@ var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output,
|
|
|
2629
2623
|
case 9: throw _d.sent();
|
|
2630
2624
|
case 10:
|
|
2631
2625
|
parsedBody = parsedOutput.body;
|
|
2626
|
+
$metadata = deserializeMetadata(output);
|
|
2627
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2632
2628
|
response = new __BaseException({
|
|
2633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2634
2630
|
$fault: "client",
|
|
2635
|
-
$metadata:
|
|
2631
|
+
$metadata: $metadata,
|
|
2636
2632
|
});
|
|
2637
2633
|
throw __decorateServiceException(response, parsedBody);
|
|
2638
2634
|
}
|
|
@@ -2679,7 +2675,7 @@ export var deserializeAws_restJson1GetBackendAuthCommand = function (output, con
|
|
|
2679
2675
|
});
|
|
2680
2676
|
}); };
|
|
2681
2677
|
var deserializeAws_restJson1GetBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2682
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2678
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2683
2679
|
var _c;
|
|
2684
2680
|
return __generator(this, function (_d) {
|
|
2685
2681
|
switch (_d.label) {
|
|
@@ -2689,7 +2685,6 @@ var deserializeAws_restJson1GetBackendAuthCommandError = function (output, conte
|
|
|
2689
2685
|
return [4, parseBody(output.body, context)];
|
|
2690
2686
|
case 1:
|
|
2691
2687
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2692
|
-
errorCode = "UnknownError";
|
|
2693
2688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2689
|
_b = errorCode;
|
|
2695
2690
|
switch (_b) {
|
|
@@ -2713,10 +2708,12 @@ var deserializeAws_restJson1GetBackendAuthCommandError = function (output, conte
|
|
|
2713
2708
|
case 9: throw _d.sent();
|
|
2714
2709
|
case 10:
|
|
2715
2710
|
parsedBody = parsedOutput.body;
|
|
2711
|
+
$metadata = deserializeMetadata(output);
|
|
2712
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2716
2713
|
response = new __BaseException({
|
|
2717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2714
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2718
2715
|
$fault: "client",
|
|
2719
|
-
$metadata:
|
|
2716
|
+
$metadata: $metadata,
|
|
2720
2717
|
});
|
|
2721
2718
|
throw __decorateServiceException(response, parsedBody);
|
|
2722
2719
|
}
|
|
@@ -2775,7 +2772,7 @@ export var deserializeAws_restJson1GetBackendJobCommand = function (output, cont
|
|
|
2775
2772
|
});
|
|
2776
2773
|
}); };
|
|
2777
2774
|
var deserializeAws_restJson1GetBackendJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2778
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2775
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2779
2776
|
var _c;
|
|
2780
2777
|
return __generator(this, function (_d) {
|
|
2781
2778
|
switch (_d.label) {
|
|
@@ -2785,7 +2782,6 @@ var deserializeAws_restJson1GetBackendJobCommandError = function (output, contex
|
|
|
2785
2782
|
return [4, parseBody(output.body, context)];
|
|
2786
2783
|
case 1:
|
|
2787
2784
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2788
|
-
errorCode = "UnknownError";
|
|
2789
2785
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2790
2786
|
_b = errorCode;
|
|
2791
2787
|
switch (_b) {
|
|
@@ -2809,10 +2805,12 @@ var deserializeAws_restJson1GetBackendJobCommandError = function (output, contex
|
|
|
2809
2805
|
case 9: throw _d.sent();
|
|
2810
2806
|
case 10:
|
|
2811
2807
|
parsedBody = parsedOutput.body;
|
|
2808
|
+
$metadata = deserializeMetadata(output);
|
|
2809
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2812
2810
|
response = new __BaseException({
|
|
2813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2814
2812
|
$fault: "client",
|
|
2815
|
-
$metadata:
|
|
2813
|
+
$metadata: $metadata,
|
|
2816
2814
|
});
|
|
2817
2815
|
throw __decorateServiceException(response, parsedBody);
|
|
2818
2816
|
}
|
|
@@ -2855,7 +2853,7 @@ export var deserializeAws_restJson1GetBackendStorageCommand = function (output,
|
|
|
2855
2853
|
});
|
|
2856
2854
|
}); };
|
|
2857
2855
|
var deserializeAws_restJson1GetBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2858
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2856
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2859
2857
|
var _c;
|
|
2860
2858
|
return __generator(this, function (_d) {
|
|
2861
2859
|
switch (_d.label) {
|
|
@@ -2865,7 +2863,6 @@ var deserializeAws_restJson1GetBackendStorageCommandError = function (output, co
|
|
|
2865
2863
|
return [4, parseBody(output.body, context)];
|
|
2866
2864
|
case 1:
|
|
2867
2865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2868
|
-
errorCode = "UnknownError";
|
|
2869
2866
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
2867
|
_b = errorCode;
|
|
2871
2868
|
switch (_b) {
|
|
@@ -2889,10 +2886,12 @@ var deserializeAws_restJson1GetBackendStorageCommandError = function (output, co
|
|
|
2889
2886
|
case 9: throw _d.sent();
|
|
2890
2887
|
case 10:
|
|
2891
2888
|
parsedBody = parsedOutput.body;
|
|
2889
|
+
$metadata = deserializeMetadata(output);
|
|
2890
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2892
2891
|
response = new __BaseException({
|
|
2893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2894
2893
|
$fault: "client",
|
|
2895
|
-
$metadata:
|
|
2894
|
+
$metadata: $metadata,
|
|
2896
2895
|
});
|
|
2897
2896
|
throw __decorateServiceException(response, parsedBody);
|
|
2898
2897
|
}
|
|
@@ -2935,7 +2934,7 @@ export var deserializeAws_restJson1GetTokenCommand = function (output, context)
|
|
|
2935
2934
|
});
|
|
2936
2935
|
}); };
|
|
2937
2936
|
var deserializeAws_restJson1GetTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2938
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2937
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2939
2938
|
var _c;
|
|
2940
2939
|
return __generator(this, function (_d) {
|
|
2941
2940
|
switch (_d.label) {
|
|
@@ -2945,7 +2944,6 @@ var deserializeAws_restJson1GetTokenCommandError = function (output, context) {
|
|
|
2945
2944
|
return [4, parseBody(output.body, context)];
|
|
2946
2945
|
case 1:
|
|
2947
2946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2948
|
-
errorCode = "UnknownError";
|
|
2949
2947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2950
2948
|
_b = errorCode;
|
|
2951
2949
|
switch (_b) {
|
|
@@ -2969,10 +2967,12 @@ var deserializeAws_restJson1GetTokenCommandError = function (output, context) {
|
|
|
2969
2967
|
case 9: throw _d.sent();
|
|
2970
2968
|
case 10:
|
|
2971
2969
|
parsedBody = parsedOutput.body;
|
|
2970
|
+
$metadata = deserializeMetadata(output);
|
|
2971
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2972
2972
|
response = new __BaseException({
|
|
2973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2974
2974
|
$fault: "client",
|
|
2975
|
-
$metadata:
|
|
2975
|
+
$metadata: $metadata,
|
|
2976
2976
|
});
|
|
2977
2977
|
throw __decorateServiceException(response, parsedBody);
|
|
2978
2978
|
}
|
|
@@ -3023,7 +3023,7 @@ export var deserializeAws_restJson1ImportBackendAuthCommand = function (output,
|
|
|
3023
3023
|
});
|
|
3024
3024
|
}); };
|
|
3025
3025
|
var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3026
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3026
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3027
3027
|
var _c;
|
|
3028
3028
|
return __generator(this, function (_d) {
|
|
3029
3029
|
switch (_d.label) {
|
|
@@ -3033,7 +3033,6 @@ var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, co
|
|
|
3033
3033
|
return [4, parseBody(output.body, context)];
|
|
3034
3034
|
case 1:
|
|
3035
3035
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3036
|
-
errorCode = "UnknownError";
|
|
3037
3036
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
3037
|
_b = errorCode;
|
|
3039
3038
|
switch (_b) {
|
|
@@ -3057,10 +3056,12 @@ var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, co
|
|
|
3057
3056
|
case 9: throw _d.sent();
|
|
3058
3057
|
case 10:
|
|
3059
3058
|
parsedBody = parsedOutput.body;
|
|
3059
|
+
$metadata = deserializeMetadata(output);
|
|
3060
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3060
3061
|
response = new __BaseException({
|
|
3061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3062
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3062
3063
|
$fault: "client",
|
|
3063
|
-
$metadata:
|
|
3064
|
+
$metadata: $metadata,
|
|
3064
3065
|
});
|
|
3065
3066
|
throw __decorateServiceException(response, parsedBody);
|
|
3066
3067
|
}
|
|
@@ -3103,7 +3104,7 @@ export var deserializeAws_restJson1ImportBackendStorageCommand = function (outpu
|
|
|
3103
3104
|
});
|
|
3104
3105
|
}); };
|
|
3105
3106
|
var deserializeAws_restJson1ImportBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3106
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3107
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3107
3108
|
var _c;
|
|
3108
3109
|
return __generator(this, function (_d) {
|
|
3109
3110
|
switch (_d.label) {
|
|
@@ -3113,7 +3114,6 @@ var deserializeAws_restJson1ImportBackendStorageCommandError = function (output,
|
|
|
3113
3114
|
return [4, parseBody(output.body, context)];
|
|
3114
3115
|
case 1:
|
|
3115
3116
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3116
|
-
errorCode = "UnknownError";
|
|
3117
3117
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3118
3118
|
_b = errorCode;
|
|
3119
3119
|
switch (_b) {
|
|
@@ -3137,10 +3137,12 @@ var deserializeAws_restJson1ImportBackendStorageCommandError = function (output,
|
|
|
3137
3137
|
case 9: throw _d.sent();
|
|
3138
3138
|
case 10:
|
|
3139
3139
|
parsedBody = parsedOutput.body;
|
|
3140
|
+
$metadata = deserializeMetadata(output);
|
|
3141
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3140
3142
|
response = new __BaseException({
|
|
3141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3143
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3142
3144
|
$fault: "client",
|
|
3143
|
-
$metadata:
|
|
3145
|
+
$metadata: $metadata,
|
|
3144
3146
|
});
|
|
3145
3147
|
throw __decorateServiceException(response, parsedBody);
|
|
3146
3148
|
}
|
|
@@ -3175,7 +3177,7 @@ export var deserializeAws_restJson1ListBackendJobsCommand = function (output, co
|
|
|
3175
3177
|
});
|
|
3176
3178
|
}); };
|
|
3177
3179
|
var deserializeAws_restJson1ListBackendJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3178
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3180
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3179
3181
|
var _c;
|
|
3180
3182
|
return __generator(this, function (_d) {
|
|
3181
3183
|
switch (_d.label) {
|
|
@@ -3185,7 +3187,6 @@ var deserializeAws_restJson1ListBackendJobsCommandError = function (output, cont
|
|
|
3185
3187
|
return [4, parseBody(output.body, context)];
|
|
3186
3188
|
case 1:
|
|
3187
3189
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3188
|
-
errorCode = "UnknownError";
|
|
3189
3190
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
3191
|
_b = errorCode;
|
|
3191
3192
|
switch (_b) {
|
|
@@ -3209,10 +3210,12 @@ var deserializeAws_restJson1ListBackendJobsCommandError = function (output, cont
|
|
|
3209
3210
|
case 9: throw _d.sent();
|
|
3210
3211
|
case 10:
|
|
3211
3212
|
parsedBody = parsedOutput.body;
|
|
3213
|
+
$metadata = deserializeMetadata(output);
|
|
3214
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3212
3215
|
response = new __BaseException({
|
|
3213
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3214
3217
|
$fault: "client",
|
|
3215
|
-
$metadata:
|
|
3218
|
+
$metadata: $metadata,
|
|
3216
3219
|
});
|
|
3217
3220
|
throw __decorateServiceException(response, parsedBody);
|
|
3218
3221
|
}
|
|
@@ -3247,7 +3250,7 @@ export var deserializeAws_restJson1ListS3BucketsCommand = function (output, cont
|
|
|
3247
3250
|
});
|
|
3248
3251
|
}); };
|
|
3249
3252
|
var deserializeAws_restJson1ListS3BucketsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3250
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3253
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3251
3254
|
var _c;
|
|
3252
3255
|
return __generator(this, function (_d) {
|
|
3253
3256
|
switch (_d.label) {
|
|
@@ -3257,7 +3260,6 @@ var deserializeAws_restJson1ListS3BucketsCommandError = function (output, contex
|
|
|
3257
3260
|
return [4, parseBody(output.body, context)];
|
|
3258
3261
|
case 1:
|
|
3259
3262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3260
|
-
errorCode = "UnknownError";
|
|
3261
3263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
3264
|
_b = errorCode;
|
|
3263
3265
|
switch (_b) {
|
|
@@ -3281,10 +3283,12 @@ var deserializeAws_restJson1ListS3BucketsCommandError = function (output, contex
|
|
|
3281
3283
|
case 9: throw _d.sent();
|
|
3282
3284
|
case 10:
|
|
3283
3285
|
parsedBody = parsedOutput.body;
|
|
3286
|
+
$metadata = deserializeMetadata(output);
|
|
3287
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3284
3288
|
response = new __BaseException({
|
|
3285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3286
3290
|
$fault: "client",
|
|
3287
|
-
$metadata:
|
|
3291
|
+
$metadata: $metadata,
|
|
3288
3292
|
});
|
|
3289
3293
|
throw __decorateServiceException(response, parsedBody);
|
|
3290
3294
|
}
|
|
@@ -3331,7 +3335,7 @@ export var deserializeAws_restJson1RemoveAllBackendsCommand = function (output,
|
|
|
3331
3335
|
});
|
|
3332
3336
|
}); };
|
|
3333
3337
|
var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3334
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3338
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3335
3339
|
var _c;
|
|
3336
3340
|
return __generator(this, function (_d) {
|
|
3337
3341
|
switch (_d.label) {
|
|
@@ -3341,7 +3345,6 @@ var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, co
|
|
|
3341
3345
|
return [4, parseBody(output.body, context)];
|
|
3342
3346
|
case 1:
|
|
3343
3347
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3344
|
-
errorCode = "UnknownError";
|
|
3345
3348
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3349
|
_b = errorCode;
|
|
3347
3350
|
switch (_b) {
|
|
@@ -3365,10 +3368,12 @@ var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, co
|
|
|
3365
3368
|
case 9: throw _d.sent();
|
|
3366
3369
|
case 10:
|
|
3367
3370
|
parsedBody = parsedOutput.body;
|
|
3371
|
+
$metadata = deserializeMetadata(output);
|
|
3372
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3368
3373
|
response = new __BaseException({
|
|
3369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3370
3375
|
$fault: "client",
|
|
3371
|
-
$metadata:
|
|
3376
|
+
$metadata: $metadata,
|
|
3372
3377
|
});
|
|
3373
3378
|
throw __decorateServiceException(response, parsedBody);
|
|
3374
3379
|
}
|
|
@@ -3399,7 +3404,7 @@ export var deserializeAws_restJson1RemoveBackendConfigCommand = function (output
|
|
|
3399
3404
|
});
|
|
3400
3405
|
}); };
|
|
3401
3406
|
var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3402
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3407
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3403
3408
|
var _c;
|
|
3404
3409
|
return __generator(this, function (_d) {
|
|
3405
3410
|
switch (_d.label) {
|
|
@@ -3409,7 +3414,6 @@ var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output,
|
|
|
3409
3414
|
return [4, parseBody(output.body, context)];
|
|
3410
3415
|
case 1:
|
|
3411
3416
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3412
|
-
errorCode = "UnknownError";
|
|
3413
3417
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3414
3418
|
_b = errorCode;
|
|
3415
3419
|
switch (_b) {
|
|
@@ -3433,10 +3437,12 @@ var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output,
|
|
|
3433
3437
|
case 9: throw _d.sent();
|
|
3434
3438
|
case 10:
|
|
3435
3439
|
parsedBody = parsedOutput.body;
|
|
3440
|
+
$metadata = deserializeMetadata(output);
|
|
3441
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3436
3442
|
response = new __BaseException({
|
|
3437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3443
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3438
3444
|
$fault: "client",
|
|
3439
|
-
$metadata:
|
|
3445
|
+
$metadata: $metadata,
|
|
3440
3446
|
});
|
|
3441
3447
|
throw __decorateServiceException(response, parsedBody);
|
|
3442
3448
|
}
|
|
@@ -3487,7 +3493,7 @@ export var deserializeAws_restJson1UpdateBackendAPICommand = function (output, c
|
|
|
3487
3493
|
});
|
|
3488
3494
|
}); };
|
|
3489
3495
|
var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3490
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3496
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3491
3497
|
var _c;
|
|
3492
3498
|
return __generator(this, function (_d) {
|
|
3493
3499
|
switch (_d.label) {
|
|
@@ -3497,7 +3503,6 @@ var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, con
|
|
|
3497
3503
|
return [4, parseBody(output.body, context)];
|
|
3498
3504
|
case 1:
|
|
3499
3505
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3500
|
-
errorCode = "UnknownError";
|
|
3501
3506
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
3507
|
_b = errorCode;
|
|
3503
3508
|
switch (_b) {
|
|
@@ -3521,10 +3526,12 @@ var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, con
|
|
|
3521
3526
|
case 9: throw _d.sent();
|
|
3522
3527
|
case 10:
|
|
3523
3528
|
parsedBody = parsedOutput.body;
|
|
3529
|
+
$metadata = deserializeMetadata(output);
|
|
3530
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3524
3531
|
response = new __BaseException({
|
|
3525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3526
3533
|
$fault: "client",
|
|
3527
|
-
$metadata:
|
|
3534
|
+
$metadata: $metadata,
|
|
3528
3535
|
});
|
|
3529
3536
|
throw __decorateServiceException(response, parsedBody);
|
|
3530
3537
|
}
|
|
@@ -3575,7 +3582,7 @@ export var deserializeAws_restJson1UpdateBackendAuthCommand = function (output,
|
|
|
3575
3582
|
});
|
|
3576
3583
|
}); };
|
|
3577
3584
|
var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3578
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3585
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3579
3586
|
var _c;
|
|
3580
3587
|
return __generator(this, function (_d) {
|
|
3581
3588
|
switch (_d.label) {
|
|
@@ -3585,7 +3592,6 @@ var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, co
|
|
|
3585
3592
|
return [4, parseBody(output.body, context)];
|
|
3586
3593
|
case 1:
|
|
3587
3594
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3588
|
-
errorCode = "UnknownError";
|
|
3589
3595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3590
3596
|
_b = errorCode;
|
|
3591
3597
|
switch (_b) {
|
|
@@ -3609,10 +3615,12 @@ var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, co
|
|
|
3609
3615
|
case 9: throw _d.sent();
|
|
3610
3616
|
case 10:
|
|
3611
3617
|
parsedBody = parsedOutput.body;
|
|
3618
|
+
$metadata = deserializeMetadata(output);
|
|
3619
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3612
3620
|
response = new __BaseException({
|
|
3613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3621
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3614
3622
|
$fault: "client",
|
|
3615
|
-
$metadata:
|
|
3623
|
+
$metadata: $metadata,
|
|
3616
3624
|
});
|
|
3617
3625
|
throw __decorateServiceException(response, parsedBody);
|
|
3618
3626
|
}
|
|
@@ -3655,7 +3663,7 @@ export var deserializeAws_restJson1UpdateBackendConfigCommand = function (output
|
|
|
3655
3663
|
});
|
|
3656
3664
|
}); };
|
|
3657
3665
|
var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3658
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3666
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3659
3667
|
var _c;
|
|
3660
3668
|
return __generator(this, function (_d) {
|
|
3661
3669
|
switch (_d.label) {
|
|
@@ -3665,7 +3673,6 @@ var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output,
|
|
|
3665
3673
|
return [4, parseBody(output.body, context)];
|
|
3666
3674
|
case 1:
|
|
3667
3675
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3668
|
-
errorCode = "UnknownError";
|
|
3669
3676
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3670
3677
|
_b = errorCode;
|
|
3671
3678
|
switch (_b) {
|
|
@@ -3689,10 +3696,12 @@ var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output,
|
|
|
3689
3696
|
case 9: throw _d.sent();
|
|
3690
3697
|
case 10:
|
|
3691
3698
|
parsedBody = parsedOutput.body;
|
|
3699
|
+
$metadata = deserializeMetadata(output);
|
|
3700
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3692
3701
|
response = new __BaseException({
|
|
3693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3694
3703
|
$fault: "client",
|
|
3695
|
-
$metadata:
|
|
3704
|
+
$metadata: $metadata,
|
|
3696
3705
|
});
|
|
3697
3706
|
throw __decorateServiceException(response, parsedBody);
|
|
3698
3707
|
}
|
|
@@ -3751,7 +3760,7 @@ export var deserializeAws_restJson1UpdateBackendJobCommand = function (output, c
|
|
|
3751
3760
|
});
|
|
3752
3761
|
}); };
|
|
3753
3762
|
var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3754
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3763
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3755
3764
|
var _c;
|
|
3756
3765
|
return __generator(this, function (_d) {
|
|
3757
3766
|
switch (_d.label) {
|
|
@@ -3761,7 +3770,6 @@ var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, con
|
|
|
3761
3770
|
return [4, parseBody(output.body, context)];
|
|
3762
3771
|
case 1:
|
|
3763
3772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3764
|
-
errorCode = "UnknownError";
|
|
3765
3773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3766
3774
|
_b = errorCode;
|
|
3767
3775
|
switch (_b) {
|
|
@@ -3785,10 +3793,12 @@ var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, con
|
|
|
3785
3793
|
case 9: throw _d.sent();
|
|
3786
3794
|
case 10:
|
|
3787
3795
|
parsedBody = parsedOutput.body;
|
|
3796
|
+
$metadata = deserializeMetadata(output);
|
|
3797
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3788
3798
|
response = new __BaseException({
|
|
3789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3790
3800
|
$fault: "client",
|
|
3791
|
-
$metadata:
|
|
3801
|
+
$metadata: $metadata,
|
|
3792
3802
|
});
|
|
3793
3803
|
throw __decorateServiceException(response, parsedBody);
|
|
3794
3804
|
}
|
|
@@ -3831,7 +3841,7 @@ export var deserializeAws_restJson1UpdateBackendStorageCommand = function (outpu
|
|
|
3831
3841
|
});
|
|
3832
3842
|
}); };
|
|
3833
3843
|
var deserializeAws_restJson1UpdateBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3834
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3844
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3835
3845
|
var _c;
|
|
3836
3846
|
return __generator(this, function (_d) {
|
|
3837
3847
|
switch (_d.label) {
|
|
@@ -3841,7 +3851,6 @@ var deserializeAws_restJson1UpdateBackendStorageCommandError = function (output,
|
|
|
3841
3851
|
return [4, parseBody(output.body, context)];
|
|
3842
3852
|
case 1:
|
|
3843
3853
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3844
|
-
errorCode = "UnknownError";
|
|
3845
3854
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3846
3855
|
_b = errorCode;
|
|
3847
3856
|
switch (_b) {
|
|
@@ -3865,10 +3874,12 @@ var deserializeAws_restJson1UpdateBackendStorageCommandError = function (output,
|
|
|
3865
3874
|
case 9: throw _d.sent();
|
|
3866
3875
|
case 10:
|
|
3867
3876
|
parsedBody = parsedOutput.body;
|
|
3877
|
+
$metadata = deserializeMetadata(output);
|
|
3878
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3868
3879
|
response = new __BaseException({
|
|
3869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3870
3881
|
$fault: "client",
|
|
3871
|
-
$metadata:
|
|
3882
|
+
$metadata: $metadata,
|
|
3872
3883
|
});
|
|
3873
3884
|
throw __decorateServiceException(response, parsedBody);
|
|
3874
3885
|
}
|
|
@@ -3929,133 +3940,95 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
3929
3940
|
});
|
|
3930
3941
|
}); };
|
|
3931
3942
|
var serializeAws_restJson1BackendAPIAppSyncAuthSettings = function (input, context) {
|
|
3932
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CognitoUserPoolId
|
|
3933
|
-
input.CognitoUserPoolId !== null && { cognitoUserPoolId: input.CognitoUserPoolId })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.ExpirationTime !== undefined &&
|
|
3934
|
-
input.ExpirationTime !== null && { expirationTime: __serializeFloat(input.ExpirationTime) })), (input.OpenIDAuthTTL !== undefined && input.OpenIDAuthTTL !== null && { openIDAuthTTL: input.OpenIDAuthTTL })), (input.OpenIDClientId !== undefined &&
|
|
3935
|
-
input.OpenIDClientId !== null && { openIDClientId: input.OpenIDClientId })), (input.OpenIDIatTTL !== undefined && input.OpenIDIatTTL !== null && { openIDIatTTL: input.OpenIDIatTTL })), (input.OpenIDIssueURL !== undefined &&
|
|
3936
|
-
input.OpenIDIssueURL !== null && { openIDIssueURL: input.OpenIDIssueURL })), (input.OpenIDProviderName !== undefined &&
|
|
3937
|
-
input.OpenIDProviderName !== null && { openIDProviderName: input.OpenIDProviderName }));
|
|
3943
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CognitoUserPoolId != null && { cognitoUserPoolId: input.CognitoUserPoolId })), (input.Description != null && { description: input.Description })), (input.ExpirationTime != null && { expirationTime: __serializeFloat(input.ExpirationTime) })), (input.OpenIDAuthTTL != null && { openIDAuthTTL: input.OpenIDAuthTTL })), (input.OpenIDClientId != null && { openIDClientId: input.OpenIDClientId })), (input.OpenIDIatTTL != null && { openIDIatTTL: input.OpenIDIatTTL })), (input.OpenIDIssueURL != null && { openIDIssueURL: input.OpenIDIssueURL })), (input.OpenIDProviderName != null && { openIDProviderName: input.OpenIDProviderName }));
|
|
3938
3944
|
};
|
|
3939
3945
|
var serializeAws_restJson1BackendAPIAuthType = function (input, context) {
|
|
3940
|
-
return __assign(__assign({}, (input.Mode
|
|
3941
|
-
input.Settings !== null && {
|
|
3946
|
+
return __assign(__assign({}, (input.Mode != null && { mode: input.Mode })), (input.Settings != null && {
|
|
3942
3947
|
settings: serializeAws_restJson1BackendAPIAppSyncAuthSettings(input.Settings, context),
|
|
3943
3948
|
}));
|
|
3944
3949
|
};
|
|
3945
3950
|
var serializeAws_restJson1BackendAPIConflictResolution = function (input, context) {
|
|
3946
|
-
return __assign({}, (input.ResolutionStrategy
|
|
3947
|
-
input.ResolutionStrategy !== null && { resolutionStrategy: input.ResolutionStrategy }));
|
|
3951
|
+
return __assign({}, (input.ResolutionStrategy != null && { resolutionStrategy: input.ResolutionStrategy }));
|
|
3948
3952
|
};
|
|
3949
3953
|
var serializeAws_restJson1BackendAPIResourceConfig = function (input, context) {
|
|
3950
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalAuthTypes
|
|
3951
|
-
input.AdditionalAuthTypes !== null && {
|
|
3954
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalAuthTypes != null && {
|
|
3952
3955
|
additionalAuthTypes: serializeAws_restJson1ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
|
|
3953
|
-
})), (input.ApiName
|
|
3954
|
-
input.ConflictResolution !== null && {
|
|
3956
|
+
})), (input.ApiName != null && { apiName: input.ApiName })), (input.ConflictResolution != null && {
|
|
3955
3957
|
conflictResolution: serializeAws_restJson1BackendAPIConflictResolution(input.ConflictResolution, context),
|
|
3956
|
-
})), (input.DefaultAuthType
|
|
3957
|
-
input.DefaultAuthType !== null && {
|
|
3958
|
+
})), (input.DefaultAuthType != null && {
|
|
3958
3959
|
defaultAuthType: serializeAws_restJson1BackendAPIAuthType(input.DefaultAuthType, context),
|
|
3959
|
-
})), (input.Service
|
|
3960
|
-
input.TransformSchema !== null && { transformSchema: input.TransformSchema }));
|
|
3960
|
+
})), (input.Service != null && { service: input.Service })), (input.TransformSchema != null && { transformSchema: input.TransformSchema }));
|
|
3961
3961
|
};
|
|
3962
3962
|
var serializeAws_restJson1BackendAuthAppleProviderConfig = function (input, context) {
|
|
3963
|
-
return __assign(__assign(__assign(__assign({}, (input.ClientId
|
|
3963
|
+
return __assign(__assign(__assign(__assign({}, (input.ClientId != null && { client_id: input.ClientId })), (input.KeyId != null && { key_id: input.KeyId })), (input.PrivateKey != null && { private_key: input.PrivateKey })), (input.TeamId != null && { team_id: input.TeamId }));
|
|
3964
3964
|
};
|
|
3965
3965
|
var serializeAws_restJson1BackendAuthSocialProviderConfig = function (input, context) {
|
|
3966
|
-
return __assign(__assign({}, (input.ClientId
|
|
3966
|
+
return __assign(__assign({}, (input.ClientId != null && { client_id: input.ClientId })), (input.ClientSecret != null && { client_secret: input.ClientSecret }));
|
|
3967
3967
|
};
|
|
3968
3968
|
var serializeAws_restJson1BackendStoragePermissions = function (input, context) {
|
|
3969
|
-
return __assign(__assign({}, (input.Authenticated
|
|
3970
|
-
input.Authenticated !== null && {
|
|
3969
|
+
return __assign(__assign({}, (input.Authenticated != null && {
|
|
3971
3970
|
authenticated: serializeAws_restJson1ListOfAuthenticatedElement(input.Authenticated, context),
|
|
3972
|
-
})), (input.UnAuthenticated
|
|
3973
|
-
input.UnAuthenticated !== null && {
|
|
3971
|
+
})), (input.UnAuthenticated != null && {
|
|
3974
3972
|
unAuthenticated: serializeAws_restJson1ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
|
|
3975
3973
|
}));
|
|
3976
3974
|
};
|
|
3977
3975
|
var serializeAws_restJson1CreateBackendAuthForgotPasswordConfig = function (input, context) {
|
|
3978
|
-
return __assign(__assign(__assign({}, (input.DeliveryMethod
|
|
3979
|
-
input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
|
|
3980
|
-
input.EmailSettings !== null && {
|
|
3976
|
+
return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
|
|
3981
3977
|
emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
|
|
3982
|
-
})), (input.SmsSettings
|
|
3983
|
-
input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
3978
|
+
})), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
3984
3979
|
};
|
|
3985
3980
|
var serializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (input, context) {
|
|
3986
|
-
return __assign(__assign({}, (input.IdentityPoolName
|
|
3987
|
-
input.IdentityPoolName !== null && { identityPoolName: input.IdentityPoolName })), (input.UnauthenticatedLogin !== undefined &&
|
|
3988
|
-
input.UnauthenticatedLogin !== null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
|
|
3981
|
+
return __assign(__assign({}, (input.IdentityPoolName != null && { identityPoolName: input.IdentityPoolName })), (input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
|
|
3989
3982
|
};
|
|
3990
3983
|
var serializeAws_restJson1CreateBackendAuthMFAConfig = function (input, context) {
|
|
3991
|
-
return __assign(__assign({}, (input.MFAMode
|
|
3992
|
-
input.Settings !== null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
|
|
3984
|
+
return __assign(__assign({}, (input.MFAMode != null && { MFAMode: input.MFAMode })), (input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
|
|
3993
3985
|
};
|
|
3994
3986
|
var serializeAws_restJson1CreateBackendAuthOAuthConfig = function (input, context) {
|
|
3995
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix
|
|
3996
|
-
input.OAuthGrantType !== null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes !== undefined &&
|
|
3997
|
-
input.OAuthScopes !== null && {
|
|
3987
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix != null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes != null && {
|
|
3998
3988
|
oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
|
|
3999
|
-
})), (input.RedirectSignInURIs
|
|
4000
|
-
input.RedirectSignInURIs !== null && {
|
|
3989
|
+
})), (input.RedirectSignInURIs != null && {
|
|
4001
3990
|
redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
|
|
4002
|
-
})), (input.RedirectSignOutURIs
|
|
4003
|
-
input.RedirectSignOutURIs !== null && {
|
|
3991
|
+
})), (input.RedirectSignOutURIs != null && {
|
|
4004
3992
|
redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
|
|
4005
|
-
})), (input.SocialProviderSettings
|
|
4006
|
-
input.SocialProviderSettings !== null && {
|
|
3993
|
+
})), (input.SocialProviderSettings != null && {
|
|
4007
3994
|
socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
|
|
4008
3995
|
}));
|
|
4009
3996
|
};
|
|
4010
3997
|
var serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (input, context) {
|
|
4011
|
-
return __assign(__assign({}, (input.AdditionalConstraints
|
|
4012
|
-
input.AdditionalConstraints !== null && {
|
|
3998
|
+
return __assign(__assign({}, (input.AdditionalConstraints != null && {
|
|
4013
3999
|
additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
|
|
4014
|
-
})), (input.MinimumLength
|
|
4015
|
-
input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }));
|
|
4000
|
+
})), (input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }));
|
|
4016
4001
|
};
|
|
4017
4002
|
var serializeAws_restJson1CreateBackendAuthResourceConfig = function (input, context) {
|
|
4018
|
-
return __assign(__assign(__assign(__assign({}, (input.AuthResources
|
|
4019
|
-
input.IdentityPoolConfigs !== null && {
|
|
4003
|
+
return __assign(__assign(__assign(__assign({}, (input.AuthResources != null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs != null && {
|
|
4020
4004
|
identityPoolConfigs: serializeAws_restJson1CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
|
|
4021
|
-
})), (input.Service
|
|
4022
|
-
input.UserPoolConfigs !== null && {
|
|
4005
|
+
})), (input.Service != null && { service: input.Service })), (input.UserPoolConfigs != null && {
|
|
4023
4006
|
userPoolConfigs: serializeAws_restJson1CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
|
|
4024
4007
|
}));
|
|
4025
4008
|
};
|
|
4026
4009
|
var serializeAws_restJson1CreateBackendAuthUserPoolConfig = function (input, context) {
|
|
4027
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword
|
|
4028
|
-
input.ForgotPassword !== null && {
|
|
4010
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword != null && {
|
|
4029
4011
|
forgotPassword: serializeAws_restJson1CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
|
|
4030
|
-
})), (input.Mfa
|
|
4031
|
-
input.Mfa !== null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth !== undefined &&
|
|
4032
|
-
input.OAuth !== null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy !== undefined &&
|
|
4033
|
-
input.PasswordPolicy !== null && {
|
|
4012
|
+
})), (input.Mfa != null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth != null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy != null && {
|
|
4034
4013
|
passwordPolicy: serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
|
|
4035
|
-
})), (input.RequiredSignUpAttributes
|
|
4036
|
-
input.RequiredSignUpAttributes !== null && {
|
|
4014
|
+
})), (input.RequiredSignUpAttributes != null && {
|
|
4037
4015
|
requiredSignUpAttributes: serializeAws_restJson1ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
|
|
4038
|
-
})), (input.SignInMethod
|
|
4039
|
-
input.VerificationMessage !== null && {
|
|
4016
|
+
})), (input.SignInMethod != null && { signInMethod: input.SignInMethod })), (input.UserPoolName != null && { userPoolName: input.UserPoolName })), (input.VerificationMessage != null && {
|
|
4040
4017
|
verificationMessage: serializeAws_restJson1CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
|
|
4041
4018
|
}));
|
|
4042
4019
|
};
|
|
4043
4020
|
var serializeAws_restJson1CreateBackendAuthVerificationMessageConfig = function (input, context) {
|
|
4044
|
-
return __assign(__assign(__assign({}, (input.DeliveryMethod
|
|
4045
|
-
input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
|
|
4046
|
-
input.EmailSettings !== null && {
|
|
4021
|
+
return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
|
|
4047
4022
|
emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
|
|
4048
|
-
})), (input.SmsSettings
|
|
4049
|
-
input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4023
|
+
})), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4050
4024
|
};
|
|
4051
4025
|
var serializeAws_restJson1CreateBackendStorageResourceConfig = function (input, context) {
|
|
4052
|
-
return __assign(__assign(__assign({}, (input.BucketName
|
|
4053
|
-
input.Permissions !== null && {
|
|
4026
|
+
return __assign(__assign(__assign({}, (input.BucketName != null && { bucketName: input.BucketName })), (input.Permissions != null && {
|
|
4054
4027
|
permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
|
|
4055
|
-
})), (input.ServiceName
|
|
4028
|
+
})), (input.ServiceName != null && { serviceName: input.ServiceName }));
|
|
4056
4029
|
};
|
|
4057
4030
|
var serializeAws_restJson1EmailSettings = function (input, context) {
|
|
4058
|
-
return __assign(__assign({}, (input.EmailMessage
|
|
4031
|
+
return __assign(__assign({}, (input.EmailMessage != null && { emailMessage: input.EmailMessage })), (input.EmailSubject != null && { emailSubject: input.EmailSubject }));
|
|
4059
4032
|
};
|
|
4060
4033
|
var serializeAws_restJson1ListOf__string = function (input, context) {
|
|
4061
4034
|
return input
|
|
@@ -4138,112 +4111,80 @@ var serializeAws_restJson1ListOfUnAuthenticatedElement = function (input, contex
|
|
|
4138
4111
|
});
|
|
4139
4112
|
};
|
|
4140
4113
|
var serializeAws_restJson1LoginAuthConfigReqObj = function (input, context) {
|
|
4141
|
-
return __assign(__assign(__assign(__assign({}, (input.AwsCognitoIdentityPoolId
|
|
4142
|
-
input.AwsCognitoIdentityPoolId !== null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId })), (input.AwsCognitoRegion !== undefined &&
|
|
4143
|
-
input.AwsCognitoRegion !== null && { aws_cognito_region: input.AwsCognitoRegion })), (input.AwsUserPoolsId !== undefined &&
|
|
4144
|
-
input.AwsUserPoolsId !== null && { aws_user_pools_id: input.AwsUserPoolsId })), (input.AwsUserPoolsWebClientId !== undefined &&
|
|
4145
|
-
input.AwsUserPoolsWebClientId !== null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }));
|
|
4114
|
+
return __assign(__assign(__assign(__assign({}, (input.AwsCognitoIdentityPoolId != null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId })), (input.AwsCognitoRegion != null && { aws_cognito_region: input.AwsCognitoRegion })), (input.AwsUserPoolsId != null && { aws_user_pools_id: input.AwsUserPoolsId })), (input.AwsUserPoolsWebClientId != null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }));
|
|
4146
4115
|
};
|
|
4147
4116
|
var serializeAws_restJson1ResourceConfig = function (input, context) {
|
|
4148
4117
|
return {};
|
|
4149
4118
|
};
|
|
4150
4119
|
var serializeAws_restJson1Settings = function (input, context) {
|
|
4151
|
-
return __assign(__assign({}, (input.MfaTypes
|
|
4152
|
-
input.MfaTypes !== null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) })), (input.SmsMessage !== undefined && input.SmsMessage !== null && { smsMessage: input.SmsMessage }));
|
|
4120
|
+
return __assign(__assign({}, (input.MfaTypes != null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) })), (input.SmsMessage != null && { smsMessage: input.SmsMessage }));
|
|
4153
4121
|
};
|
|
4154
4122
|
var serializeAws_restJson1SmsSettings = function (input, context) {
|
|
4155
|
-
return __assign({}, (input.SmsMessage
|
|
4123
|
+
return __assign({}, (input.SmsMessage != null && { smsMessage: input.SmsMessage }));
|
|
4156
4124
|
};
|
|
4157
4125
|
var serializeAws_restJson1SocialProviderSettings = function (input, context) {
|
|
4158
|
-
return __assign(__assign(__assign(__assign({}, (input.Facebook
|
|
4159
|
-
input.Facebook !== null && {
|
|
4126
|
+
return __assign(__assign(__assign(__assign({}, (input.Facebook != null && {
|
|
4160
4127
|
Facebook: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Facebook, context),
|
|
4161
|
-
})), (input.Google
|
|
4162
|
-
input.Google !== null && {
|
|
4128
|
+
})), (input.Google != null && {
|
|
4163
4129
|
Google: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Google, context),
|
|
4164
|
-
})), (input.LoginWithAmazon
|
|
4165
|
-
input.LoginWithAmazon !== null && {
|
|
4130
|
+
})), (input.LoginWithAmazon != null && {
|
|
4166
4131
|
LoginWithAmazon: serializeAws_restJson1BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
|
|
4167
|
-
})), (input.SignInWithApple
|
|
4168
|
-
input.SignInWithApple !== null && {
|
|
4132
|
+
})), (input.SignInWithApple != null && {
|
|
4169
4133
|
SignInWithApple: serializeAws_restJson1BackendAuthAppleProviderConfig(input.SignInWithApple, context),
|
|
4170
4134
|
}));
|
|
4171
4135
|
};
|
|
4172
4136
|
var serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig = function (input, context) {
|
|
4173
|
-
return __assign(__assign(__assign({}, (input.DeliveryMethod
|
|
4174
|
-
input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
|
|
4175
|
-
input.EmailSettings !== null && {
|
|
4137
|
+
return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
|
|
4176
4138
|
emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
|
|
4177
|
-
})), (input.SmsSettings
|
|
4178
|
-
input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4139
|
+
})), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4179
4140
|
};
|
|
4180
4141
|
var serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig = function (input, context) {
|
|
4181
|
-
return __assign({}, (input.UnauthenticatedLogin
|
|
4182
|
-
input.UnauthenticatedLogin !== null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
|
|
4142
|
+
return __assign({}, (input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
|
|
4183
4143
|
};
|
|
4184
4144
|
var serializeAws_restJson1UpdateBackendAuthMFAConfig = function (input, context) {
|
|
4185
|
-
return __assign(__assign({}, (input.MFAMode
|
|
4186
|
-
input.Settings !== null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
|
|
4145
|
+
return __assign(__assign({}, (input.MFAMode != null && { MFAMode: input.MFAMode })), (input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
|
|
4187
4146
|
};
|
|
4188
4147
|
var serializeAws_restJson1UpdateBackendAuthOAuthConfig = function (input, context) {
|
|
4189
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix
|
|
4190
|
-
input.OAuthGrantType !== null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes !== undefined &&
|
|
4191
|
-
input.OAuthScopes !== null && {
|
|
4148
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix != null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes != null && {
|
|
4192
4149
|
oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
|
|
4193
|
-
})), (input.RedirectSignInURIs
|
|
4194
|
-
input.RedirectSignInURIs !== null && {
|
|
4150
|
+
})), (input.RedirectSignInURIs != null && {
|
|
4195
4151
|
redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
|
|
4196
|
-
})), (input.RedirectSignOutURIs
|
|
4197
|
-
input.RedirectSignOutURIs !== null && {
|
|
4152
|
+
})), (input.RedirectSignOutURIs != null && {
|
|
4198
4153
|
redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
|
|
4199
|
-
})), (input.SocialProviderSettings
|
|
4200
|
-
input.SocialProviderSettings !== null && {
|
|
4154
|
+
})), (input.SocialProviderSettings != null && {
|
|
4201
4155
|
socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
|
|
4202
4156
|
}));
|
|
4203
4157
|
};
|
|
4204
4158
|
var serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = function (input, context) {
|
|
4205
|
-
return __assign(__assign({}, (input.AdditionalConstraints
|
|
4206
|
-
input.AdditionalConstraints !== null && {
|
|
4159
|
+
return __assign(__assign({}, (input.AdditionalConstraints != null && {
|
|
4207
4160
|
additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
|
|
4208
|
-
})), (input.MinimumLength
|
|
4209
|
-
input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }));
|
|
4161
|
+
})), (input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }));
|
|
4210
4162
|
};
|
|
4211
4163
|
var serializeAws_restJson1UpdateBackendAuthResourceConfig = function (input, context) {
|
|
4212
|
-
return __assign(__assign(__assign(__assign({}, (input.AuthResources
|
|
4213
|
-
input.IdentityPoolConfigs !== null && {
|
|
4164
|
+
return __assign(__assign(__assign(__assign({}, (input.AuthResources != null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs != null && {
|
|
4214
4165
|
identityPoolConfigs: serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
|
|
4215
|
-
})), (input.Service
|
|
4216
|
-
input.UserPoolConfigs !== null && {
|
|
4166
|
+
})), (input.Service != null && { service: input.Service })), (input.UserPoolConfigs != null && {
|
|
4217
4167
|
userPoolConfigs: serializeAws_restJson1UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
|
|
4218
4168
|
}));
|
|
4219
4169
|
};
|
|
4220
4170
|
var serializeAws_restJson1UpdateBackendAuthUserPoolConfig = function (input, context) {
|
|
4221
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword
|
|
4222
|
-
input.ForgotPassword !== null && {
|
|
4171
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword != null && {
|
|
4223
4172
|
forgotPassword: serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
|
|
4224
|
-
})), (input.Mfa
|
|
4225
|
-
input.Mfa !== null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth !== undefined &&
|
|
4226
|
-
input.OAuth !== null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy !== undefined &&
|
|
4227
|
-
input.PasswordPolicy !== null && {
|
|
4173
|
+
})), (input.Mfa != null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth != null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy != null && {
|
|
4228
4174
|
passwordPolicy: serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
|
|
4229
|
-
})), (input.VerificationMessage
|
|
4230
|
-
input.VerificationMessage !== null && {
|
|
4175
|
+
})), (input.VerificationMessage != null && {
|
|
4231
4176
|
verificationMessage: serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
|
|
4232
4177
|
}));
|
|
4233
4178
|
};
|
|
4234
4179
|
var serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig = function (input, context) {
|
|
4235
|
-
return __assign(__assign(__assign({}, (input.DeliveryMethod
|
|
4236
|
-
input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
|
|
4237
|
-
input.EmailSettings !== null && {
|
|
4180
|
+
return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
|
|
4238
4181
|
emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
|
|
4239
|
-
})), (input.SmsSettings
|
|
4240
|
-
input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4182
|
+
})), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
|
|
4241
4183
|
};
|
|
4242
4184
|
var serializeAws_restJson1UpdateBackendStorageResourceConfig = function (input, context) {
|
|
4243
|
-
return __assign(__assign({}, (input.Permissions
|
|
4244
|
-
input.Permissions !== null && {
|
|
4185
|
+
return __assign(__assign({}, (input.Permissions != null && {
|
|
4245
4186
|
permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
|
|
4246
|
-
})), (input.ServiceName
|
|
4187
|
+
})), (input.ServiceName != null && { serviceName: input.ServiceName }));
|
|
4247
4188
|
};
|
|
4248
4189
|
var deserializeAws_restJson1BackendAPIAppSyncAuthSettings = function (output, context) {
|
|
4249
4190
|
return {
|
|
@@ -4260,7 +4201,7 @@ var deserializeAws_restJson1BackendAPIAppSyncAuthSettings = function (output, co
|
|
|
4260
4201
|
var deserializeAws_restJson1BackendAPIAuthType = function (output, context) {
|
|
4261
4202
|
return {
|
|
4262
4203
|
Mode: __expectString(output.mode),
|
|
4263
|
-
Settings: output.settings
|
|
4204
|
+
Settings: output.settings != null
|
|
4264
4205
|
? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
|
|
4265
4206
|
: undefined,
|
|
4266
4207
|
};
|
|
@@ -4272,14 +4213,14 @@ var deserializeAws_restJson1BackendAPIConflictResolution = function (output, con
|
|
|
4272
4213
|
};
|
|
4273
4214
|
var deserializeAws_restJson1BackendAPIResourceConfig = function (output, context) {
|
|
4274
4215
|
return {
|
|
4275
|
-
AdditionalAuthTypes: output.additionalAuthTypes
|
|
4216
|
+
AdditionalAuthTypes: output.additionalAuthTypes != null
|
|
4276
4217
|
? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
|
|
4277
4218
|
: undefined,
|
|
4278
4219
|
ApiName: __expectString(output.apiName),
|
|
4279
|
-
ConflictResolution: output.conflictResolution
|
|
4220
|
+
ConflictResolution: output.conflictResolution != null
|
|
4280
4221
|
? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
|
|
4281
4222
|
: undefined,
|
|
4282
|
-
DefaultAuthType: output.defaultAuthType
|
|
4223
|
+
DefaultAuthType: output.defaultAuthType != null
|
|
4283
4224
|
? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
|
|
4284
4225
|
: undefined,
|
|
4285
4226
|
Service: __expectString(output.service),
|
|
@@ -4314,10 +4255,10 @@ var deserializeAws_restJson1BackendJobRespObj = function (output, context) {
|
|
|
4314
4255
|
};
|
|
4315
4256
|
var deserializeAws_restJson1BackendStoragePermissions = function (output, context) {
|
|
4316
4257
|
return {
|
|
4317
|
-
Authenticated: output.authenticated
|
|
4258
|
+
Authenticated: output.authenticated != null
|
|
4318
4259
|
? deserializeAws_restJson1ListOfAuthenticatedElement(output.authenticated, context)
|
|
4319
4260
|
: undefined,
|
|
4320
|
-
UnAuthenticated: output.unAuthenticated
|
|
4261
|
+
UnAuthenticated: output.unAuthenticated != null
|
|
4321
4262
|
? deserializeAws_restJson1ListOfUnAuthenticatedElement(output.unAuthenticated, context)
|
|
4322
4263
|
: undefined,
|
|
4323
4264
|
};
|
|
@@ -4325,12 +4266,8 @@ var deserializeAws_restJson1BackendStoragePermissions = function (output, contex
|
|
|
4325
4266
|
var deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = function (output, context) {
|
|
4326
4267
|
return {
|
|
4327
4268
|
DeliveryMethod: __expectString(output.deliveryMethod),
|
|
4328
|
-
EmailSettings: output.emailSettings
|
|
4329
|
-
|
|
4330
|
-
: undefined,
|
|
4331
|
-
SmsSettings: output.smsSettings !== undefined && output.smsSettings !== null
|
|
4332
|
-
? deserializeAws_restJson1SmsSettings(output.smsSettings, context)
|
|
4333
|
-
: undefined,
|
|
4269
|
+
EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
|
|
4270
|
+
SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
|
|
4334
4271
|
};
|
|
4335
4272
|
};
|
|
4336
4273
|
var deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (output, context) {
|
|
@@ -4342,32 +4279,30 @@ var deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (outp
|
|
|
4342
4279
|
var deserializeAws_restJson1CreateBackendAuthMFAConfig = function (output, context) {
|
|
4343
4280
|
return {
|
|
4344
4281
|
MFAMode: __expectString(output.MFAMode),
|
|
4345
|
-
Settings: output.settings
|
|
4346
|
-
? deserializeAws_restJson1Settings(output.settings, context)
|
|
4347
|
-
: undefined,
|
|
4282
|
+
Settings: output.settings != null ? deserializeAws_restJson1Settings(output.settings, context) : undefined,
|
|
4348
4283
|
};
|
|
4349
4284
|
};
|
|
4350
4285
|
var deserializeAws_restJson1CreateBackendAuthOAuthConfig = function (output, context) {
|
|
4351
4286
|
return {
|
|
4352
4287
|
DomainPrefix: __expectString(output.domainPrefix),
|
|
4353
4288
|
OAuthGrantType: __expectString(output.oAuthGrantType),
|
|
4354
|
-
OAuthScopes: output.oAuthScopes
|
|
4289
|
+
OAuthScopes: output.oAuthScopes != null
|
|
4355
4290
|
? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
|
|
4356
4291
|
: undefined,
|
|
4357
|
-
RedirectSignInURIs: output.redirectSignInURIs
|
|
4292
|
+
RedirectSignInURIs: output.redirectSignInURIs != null
|
|
4358
4293
|
? deserializeAws_restJson1ListOf__string(output.redirectSignInURIs, context)
|
|
4359
4294
|
: undefined,
|
|
4360
|
-
RedirectSignOutURIs: output.redirectSignOutURIs
|
|
4295
|
+
RedirectSignOutURIs: output.redirectSignOutURIs != null
|
|
4361
4296
|
? deserializeAws_restJson1ListOf__string(output.redirectSignOutURIs, context)
|
|
4362
4297
|
: undefined,
|
|
4363
|
-
SocialProviderSettings: output.socialProviderSettings
|
|
4298
|
+
SocialProviderSettings: output.socialProviderSettings != null
|
|
4364
4299
|
? deserializeAws_restJson1SocialProviderSettings(output.socialProviderSettings, context)
|
|
4365
4300
|
: undefined,
|
|
4366
4301
|
};
|
|
4367
4302
|
};
|
|
4368
4303
|
var deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (output, context) {
|
|
4369
4304
|
return {
|
|
4370
|
-
AdditionalConstraints: output.additionalConstraints
|
|
4305
|
+
AdditionalConstraints: output.additionalConstraints != null
|
|
4371
4306
|
? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
|
|
4372
4307
|
: undefined,
|
|
4373
4308
|
MinimumLength: __limitedParseDouble(output.minimumLength),
|
|
@@ -4376,35 +4311,31 @@ var deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (ou
|
|
|
4376
4311
|
var deserializeAws_restJson1CreateBackendAuthResourceConfig = function (output, context) {
|
|
4377
4312
|
return {
|
|
4378
4313
|
AuthResources: __expectString(output.authResources),
|
|
4379
|
-
IdentityPoolConfigs: output.identityPoolConfigs
|
|
4314
|
+
IdentityPoolConfigs: output.identityPoolConfigs != null
|
|
4380
4315
|
? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
|
|
4381
4316
|
: undefined,
|
|
4382
4317
|
Service: __expectString(output.service),
|
|
4383
|
-
UserPoolConfigs: output.userPoolConfigs
|
|
4318
|
+
UserPoolConfigs: output.userPoolConfigs != null
|
|
4384
4319
|
? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
|
|
4385
4320
|
: undefined,
|
|
4386
4321
|
};
|
|
4387
4322
|
};
|
|
4388
4323
|
var deserializeAws_restJson1CreateBackendAuthUserPoolConfig = function (output, context) {
|
|
4389
4324
|
return {
|
|
4390
|
-
ForgotPassword: output.forgotPassword
|
|
4325
|
+
ForgotPassword: output.forgotPassword != null
|
|
4391
4326
|
? deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
|
|
4392
4327
|
: undefined,
|
|
4393
|
-
Mfa: output.mfa
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
OAuth: output.oAuth !== undefined && output.oAuth !== null
|
|
4397
|
-
? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context)
|
|
4398
|
-
: undefined,
|
|
4399
|
-
PasswordPolicy: output.passwordPolicy !== undefined && output.passwordPolicy !== null
|
|
4328
|
+
Mfa: output.mfa != null ? deserializeAws_restJson1CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
|
|
4329
|
+
OAuth: output.oAuth != null ? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
|
|
4330
|
+
PasswordPolicy: output.passwordPolicy != null
|
|
4400
4331
|
? deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
|
|
4401
4332
|
: undefined,
|
|
4402
|
-
RequiredSignUpAttributes: output.requiredSignUpAttributes
|
|
4333
|
+
RequiredSignUpAttributes: output.requiredSignUpAttributes != null
|
|
4403
4334
|
? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
|
|
4404
4335
|
: undefined,
|
|
4405
4336
|
SignInMethod: __expectString(output.signInMethod),
|
|
4406
4337
|
UserPoolName: __expectString(output.userPoolName),
|
|
4407
|
-
VerificationMessage: output.verificationMessage
|
|
4338
|
+
VerificationMessage: output.verificationMessage != null
|
|
4408
4339
|
? deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
|
|
4409
4340
|
: undefined,
|
|
4410
4341
|
};
|
|
@@ -4412,12 +4343,8 @@ var deserializeAws_restJson1CreateBackendAuthUserPoolConfig = function (output,
|
|
|
4412
4343
|
var deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig = function (output, context) {
|
|
4413
4344
|
return {
|
|
4414
4345
|
DeliveryMethod: __expectString(output.deliveryMethod),
|
|
4415
|
-
EmailSettings: output.emailSettings
|
|
4416
|
-
|
|
4417
|
-
: undefined,
|
|
4418
|
-
SmsSettings: output.smsSettings !== undefined && output.smsSettings !== null
|
|
4419
|
-
? deserializeAws_restJson1SmsSettings(output.smsSettings, context)
|
|
4420
|
-
: undefined,
|
|
4346
|
+
EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
|
|
4347
|
+
SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
|
|
4421
4348
|
};
|
|
4422
4349
|
};
|
|
4423
4350
|
var deserializeAws_restJson1EmailSettings = function (output, context) {
|
|
@@ -4430,7 +4357,7 @@ var deserializeAws_restJson1GetBackendStorageResourceConfig = function (output,
|
|
|
4430
4357
|
return {
|
|
4431
4358
|
BucketName: __expectString(output.bucketName),
|
|
4432
4359
|
Imported: __expectBoolean(output.imported),
|
|
4433
|
-
Permissions: output.permissions
|
|
4360
|
+
Permissions: output.permissions != null
|
|
4434
4361
|
? deserializeAws_restJson1BackendStoragePermissions(output.permissions, context)
|
|
4435
4362
|
: undefined,
|
|
4436
4363
|
ServiceName: __expectString(output.serviceName),
|
|
@@ -4562,9 +4489,7 @@ var deserializeAws_restJson1S3BucketInfo = function (output, context) {
|
|
|
4562
4489
|
};
|
|
4563
4490
|
var deserializeAws_restJson1Settings = function (output, context) {
|
|
4564
4491
|
return {
|
|
4565
|
-
MfaTypes: output.mfaTypes
|
|
4566
|
-
? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context)
|
|
4567
|
-
: undefined,
|
|
4492
|
+
MfaTypes: output.mfaTypes != null ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
|
|
4568
4493
|
SmsMessage: __expectString(output.smsMessage),
|
|
4569
4494
|
};
|
|
4570
4495
|
};
|
|
@@ -4575,16 +4500,16 @@ var deserializeAws_restJson1SmsSettings = function (output, context) {
|
|
|
4575
4500
|
};
|
|
4576
4501
|
var deserializeAws_restJson1SocialProviderSettings = function (output, context) {
|
|
4577
4502
|
return {
|
|
4578
|
-
Facebook: output.Facebook
|
|
4503
|
+
Facebook: output.Facebook != null
|
|
4579
4504
|
? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Facebook, context)
|
|
4580
4505
|
: undefined,
|
|
4581
|
-
Google: output.Google
|
|
4506
|
+
Google: output.Google != null
|
|
4582
4507
|
? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Google, context)
|
|
4583
4508
|
: undefined,
|
|
4584
|
-
LoginWithAmazon: output.LoginWithAmazon
|
|
4509
|
+
LoginWithAmazon: output.LoginWithAmazon != null
|
|
4585
4510
|
? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.LoginWithAmazon, context)
|
|
4586
4511
|
: undefined,
|
|
4587
|
-
SignInWithApple: output.SignInWithApple
|
|
4512
|
+
SignInWithApple: output.SignInWithApple != null
|
|
4588
4513
|
? deserializeAws_restJson1BackendAuthAppleProviderConfig(output.SignInWithApple, context)
|
|
4589
4514
|
: undefined,
|
|
4590
4515
|
};
|
|
@@ -4645,5 +4570,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4645
4570
|
if (data["__type"] !== undefined) {
|
|
4646
4571
|
return sanitizeErrorCode(data["__type"]);
|
|
4647
4572
|
}
|
|
4648
|
-
return "";
|
|
4649
4573
|
};
|