@aws-sdk/client-amplifybackend 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +712 -1158
- package/dist-es/protocols/Aws_restJson1.js +678 -1124
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AmplifyBackendServiceException as __BaseException } from "../models/AmplifyBackendServiceException";
|
|
4
4
|
import { BadRequestException, GatewayTimeoutException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
5
5
|
export const se_CloneBackendCommand = async (input, context) => {
|
|
@@ -12,9 +12,9 @@ export const se_CloneBackendCommand = async (input, context) => {
|
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
targetEnvironmentName: [, , `TargetEnvironmentName`],
|
|
17
|
+
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -32,13 +32,13 @@ export const se_CreateBackendCommand = async (input, context) => {
|
|
|
32
32
|
};
|
|
33
33
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend";
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
35
|
+
body = JSON.stringify(take(input, {
|
|
36
|
+
appId: [, , `AppId`],
|
|
37
|
+
appName: [, , `AppName`],
|
|
38
|
+
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
39
|
+
resourceConfig: [, (_) => _json(_), `ResourceConfig`],
|
|
40
|
+
resourceName: [, , `ResourceName`],
|
|
41
|
+
}));
|
|
42
42
|
return new __HttpRequest({
|
|
43
43
|
protocol,
|
|
44
44
|
hostname,
|
|
@@ -57,11 +57,11 @@ export const se_CreateBackendAPICommand = async (input, context) => {
|
|
|
57
57
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/api";
|
|
58
58
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
60
|
+
body = JSON.stringify(take(input, {
|
|
61
|
+
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
62
|
+
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
63
|
+
resourceName: [, , `ResourceName`],
|
|
64
|
+
}));
|
|
65
65
|
return new __HttpRequest({
|
|
66
66
|
protocol,
|
|
67
67
|
hostname,
|
|
@@ -80,13 +80,11 @@ export const se_CreateBackendAuthCommand = async (input, context) => {
|
|
|
80
80
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/auth";
|
|
81
81
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
...(input.ResourceName != null && { resourceName: input.ResourceName }),
|
|
89
|
-
});
|
|
83
|
+
body = JSON.stringify(take(input, {
|
|
84
|
+
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
85
|
+
resourceConfig: [, (_) => se_CreateBackendAuthResourceConfig(_, context), `ResourceConfig`],
|
|
86
|
+
resourceName: [, , `ResourceName`],
|
|
87
|
+
}));
|
|
90
88
|
return new __HttpRequest({
|
|
91
89
|
protocol,
|
|
92
90
|
hostname,
|
|
@@ -105,9 +103,9 @@ export const se_CreateBackendConfigCommand = async (input, context) => {
|
|
|
105
103
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config";
|
|
106
104
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
107
105
|
let body;
|
|
108
|
-
body = JSON.stringify({
|
|
109
|
-
|
|
110
|
-
});
|
|
106
|
+
body = JSON.stringify(take(input, {
|
|
107
|
+
backendManagerAppId: [, , `BackendManagerAppId`],
|
|
108
|
+
}));
|
|
111
109
|
return new __HttpRequest({
|
|
112
110
|
protocol,
|
|
113
111
|
hostname,
|
|
@@ -126,13 +124,11 @@ export const se_CreateBackendStorageCommand = async (input, context) => {
|
|
|
126
124
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/storage";
|
|
127
125
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
128
126
|
let body;
|
|
129
|
-
body = JSON.stringify({
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
...(input.ResourceName != null && { resourceName: input.ResourceName }),
|
|
135
|
-
});
|
|
127
|
+
body = JSON.stringify(take(input, {
|
|
128
|
+
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
129
|
+
resourceConfig: [, (_) => se_CreateBackendStorageResourceConfig(_, context), `ResourceConfig`],
|
|
130
|
+
resourceName: [, , `ResourceName`],
|
|
131
|
+
}));
|
|
136
132
|
return new __HttpRequest({
|
|
137
133
|
protocol,
|
|
138
134
|
hostname,
|
|
@@ -187,10 +183,10 @@ export const se_DeleteBackendAPICommand = async (input, context) => {
|
|
|
187
183
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
188
184
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
189
185
|
let body;
|
|
190
|
-
body = JSON.stringify({
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
});
|
|
186
|
+
body = JSON.stringify(take(input, {
|
|
187
|
+
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
188
|
+
resourceName: [, , `ResourceName`],
|
|
189
|
+
}));
|
|
194
190
|
return new __HttpRequest({
|
|
195
191
|
protocol,
|
|
196
192
|
hostname,
|
|
@@ -211,9 +207,9 @@ export const se_DeleteBackendAuthCommand = async (input, context) => {
|
|
|
211
207
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
212
208
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
213
209
|
let body;
|
|
214
|
-
body = JSON.stringify({
|
|
215
|
-
|
|
216
|
-
});
|
|
210
|
+
body = JSON.stringify(take(input, {
|
|
211
|
+
resourceName: [, , `ResourceName`],
|
|
212
|
+
}));
|
|
217
213
|
return new __HttpRequest({
|
|
218
214
|
protocol,
|
|
219
215
|
hostname,
|
|
@@ -234,10 +230,10 @@ export const se_DeleteBackendStorageCommand = async (input, context) => {
|
|
|
234
230
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
235
231
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
236
232
|
let body;
|
|
237
|
-
body = JSON.stringify({
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
});
|
|
233
|
+
body = JSON.stringify(take(input, {
|
|
234
|
+
resourceName: [, , `ResourceName`],
|
|
235
|
+
serviceName: [, , `ServiceName`],
|
|
236
|
+
}));
|
|
241
237
|
return new __HttpRequest({
|
|
242
238
|
protocol,
|
|
243
239
|
hostname,
|
|
@@ -276,9 +272,9 @@ export const se_GenerateBackendAPIModelsCommand = async (input, context) => {
|
|
|
276
272
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
277
273
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
278
274
|
let body;
|
|
279
|
-
body = JSON.stringify({
|
|
280
|
-
|
|
281
|
-
});
|
|
275
|
+
body = JSON.stringify(take(input, {
|
|
276
|
+
resourceName: [, , `ResourceName`],
|
|
277
|
+
}));
|
|
282
278
|
return new __HttpRequest({
|
|
283
279
|
protocol,
|
|
284
280
|
hostname,
|
|
@@ -297,9 +293,9 @@ export const se_GetBackendCommand = async (input, context) => {
|
|
|
297
293
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/details";
|
|
298
294
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
299
295
|
let body;
|
|
300
|
-
body = JSON.stringify({
|
|
301
|
-
|
|
302
|
-
});
|
|
296
|
+
body = JSON.stringify(take(input, {
|
|
297
|
+
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
298
|
+
}));
|
|
303
299
|
return new __HttpRequest({
|
|
304
300
|
protocol,
|
|
305
301
|
hostname,
|
|
@@ -320,10 +316,10 @@ export const se_GetBackendAPICommand = async (input, context) => {
|
|
|
320
316
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
321
317
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
322
318
|
let body;
|
|
323
|
-
body = JSON.stringify({
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
});
|
|
319
|
+
body = JSON.stringify(take(input, {
|
|
320
|
+
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
321
|
+
resourceName: [, , `ResourceName`],
|
|
322
|
+
}));
|
|
327
323
|
return new __HttpRequest({
|
|
328
324
|
protocol,
|
|
329
325
|
hostname,
|
|
@@ -344,9 +340,9 @@ export const se_GetBackendAPIModelsCommand = async (input, context) => {
|
|
|
344
340
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
345
341
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
346
342
|
let body;
|
|
347
|
-
body = JSON.stringify({
|
|
348
|
-
|
|
349
|
-
});
|
|
343
|
+
body = JSON.stringify(take(input, {
|
|
344
|
+
resourceName: [, , `ResourceName`],
|
|
345
|
+
}));
|
|
350
346
|
return new __HttpRequest({
|
|
351
347
|
protocol,
|
|
352
348
|
hostname,
|
|
@@ -367,9 +363,9 @@ export const se_GetBackendAuthCommand = async (input, context) => {
|
|
|
367
363
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
368
364
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
369
365
|
let body;
|
|
370
|
-
body = JSON.stringify({
|
|
371
|
-
|
|
372
|
-
});
|
|
366
|
+
body = JSON.stringify(take(input, {
|
|
367
|
+
resourceName: [, , `ResourceName`],
|
|
368
|
+
}));
|
|
373
369
|
return new __HttpRequest({
|
|
374
370
|
protocol,
|
|
375
371
|
hostname,
|
|
@@ -409,9 +405,9 @@ export const se_GetBackendStorageCommand = async (input, context) => {
|
|
|
409
405
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
410
406
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
411
407
|
let body;
|
|
412
|
-
body = JSON.stringify({
|
|
413
|
-
|
|
414
|
-
});
|
|
408
|
+
body = JSON.stringify(take(input, {
|
|
409
|
+
resourceName: [, , `ResourceName`],
|
|
410
|
+
}));
|
|
415
411
|
return new __HttpRequest({
|
|
416
412
|
protocol,
|
|
417
413
|
hostname,
|
|
@@ -449,12 +445,12 @@ export const se_ImportBackendAuthCommand = async (input, context) => {
|
|
|
449
445
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
450
446
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
451
447
|
let body;
|
|
452
|
-
body = JSON.stringify({
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
});
|
|
448
|
+
body = JSON.stringify(take(input, {
|
|
449
|
+
identityPoolId: [, , `IdentityPoolId`],
|
|
450
|
+
nativeClientId: [, , `NativeClientId`],
|
|
451
|
+
userPoolId: [, , `UserPoolId`],
|
|
452
|
+
webClientId: [, , `WebClientId`],
|
|
453
|
+
}));
|
|
458
454
|
return new __HttpRequest({
|
|
459
455
|
protocol,
|
|
460
456
|
hostname,
|
|
@@ -475,10 +471,10 @@ export const se_ImportBackendStorageCommand = async (input, context) => {
|
|
|
475
471
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
476
472
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
477
473
|
let body;
|
|
478
|
-
body = JSON.stringify({
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
});
|
|
474
|
+
body = JSON.stringify(take(input, {
|
|
475
|
+
bucketName: [, , `BucketName`],
|
|
476
|
+
serviceName: [, , `ServiceName`],
|
|
477
|
+
}));
|
|
482
478
|
return new __HttpRequest({
|
|
483
479
|
protocol,
|
|
484
480
|
hostname,
|
|
@@ -499,13 +495,13 @@ export const se_ListBackendJobsCommand = async (input, context) => {
|
|
|
499
495
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
500
496
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
501
497
|
let body;
|
|
502
|
-
body = JSON.stringify({
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
});
|
|
498
|
+
body = JSON.stringify(take(input, {
|
|
499
|
+
jobId: [, , `JobId`],
|
|
500
|
+
maxResults: [, , `MaxResults`],
|
|
501
|
+
nextToken: [, , `NextToken`],
|
|
502
|
+
operation: [, , `Operation`],
|
|
503
|
+
status: [, , `Status`],
|
|
504
|
+
}));
|
|
509
505
|
return new __HttpRequest({
|
|
510
506
|
protocol,
|
|
511
507
|
hostname,
|
|
@@ -523,9 +519,9 @@ export const se_ListS3BucketsCommand = async (input, context) => {
|
|
|
523
519
|
};
|
|
524
520
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/s3Buckets";
|
|
525
521
|
let body;
|
|
526
|
-
body = JSON.stringify({
|
|
527
|
-
|
|
528
|
-
});
|
|
522
|
+
body = JSON.stringify(take(input, {
|
|
523
|
+
nextToken: [, , `NextToken`],
|
|
524
|
+
}));
|
|
529
525
|
return new __HttpRequest({
|
|
530
526
|
protocol,
|
|
531
527
|
hostname,
|
|
@@ -544,9 +540,9 @@ export const se_RemoveAllBackendsCommand = async (input, context) => {
|
|
|
544
540
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/remove";
|
|
545
541
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
546
542
|
let body;
|
|
547
|
-
body = JSON.stringify({
|
|
548
|
-
|
|
549
|
-
});
|
|
543
|
+
body = JSON.stringify(take(input, {
|
|
544
|
+
cleanAmplifyApp: [, , `CleanAmplifyApp`],
|
|
545
|
+
}));
|
|
550
546
|
return new __HttpRequest({
|
|
551
547
|
protocol,
|
|
552
548
|
hostname,
|
|
@@ -583,10 +579,10 @@ export const se_UpdateBackendAPICommand = async (input, context) => {
|
|
|
583
579
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
584
580
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
585
581
|
let body;
|
|
586
|
-
body = JSON.stringify({
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
});
|
|
582
|
+
body = JSON.stringify(take(input, {
|
|
583
|
+
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
584
|
+
resourceName: [, , `ResourceName`],
|
|
585
|
+
}));
|
|
590
586
|
return new __HttpRequest({
|
|
591
587
|
protocol,
|
|
592
588
|
hostname,
|
|
@@ -607,12 +603,10 @@ export const se_UpdateBackendAuthCommand = async (input, context) => {
|
|
|
607
603
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
608
604
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
609
605
|
let body;
|
|
610
|
-
body = JSON.stringify({
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
...(input.ResourceName != null && { resourceName: input.ResourceName }),
|
|
615
|
-
});
|
|
606
|
+
body = JSON.stringify(take(input, {
|
|
607
|
+
resourceConfig: [, (_) => se_UpdateBackendAuthResourceConfig(_, context), `ResourceConfig`],
|
|
608
|
+
resourceName: [, , `ResourceName`],
|
|
609
|
+
}));
|
|
616
610
|
return new __HttpRequest({
|
|
617
611
|
protocol,
|
|
618
612
|
hostname,
|
|
@@ -631,9 +625,9 @@ export const se_UpdateBackendConfigCommand = async (input, context) => {
|
|
|
631
625
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config/update";
|
|
632
626
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
633
627
|
let body;
|
|
634
|
-
body = JSON.stringify({
|
|
635
|
-
|
|
636
|
-
});
|
|
628
|
+
body = JSON.stringify(take(input, {
|
|
629
|
+
loginAuthConfig: [, (_) => se_LoginAuthConfigReqObj(_, context), `LoginAuthConfig`],
|
|
630
|
+
}));
|
|
637
631
|
return new __HttpRequest({
|
|
638
632
|
protocol,
|
|
639
633
|
hostname,
|
|
@@ -655,10 +649,10 @@ export const se_UpdateBackendJobCommand = async (input, context) => {
|
|
|
655
649
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
656
650
|
resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
657
651
|
let body;
|
|
658
|
-
body = JSON.stringify({
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
});
|
|
652
|
+
body = JSON.stringify(take(input, {
|
|
653
|
+
operation: [, , `Operation`],
|
|
654
|
+
status: [, , `Status`],
|
|
655
|
+
}));
|
|
662
656
|
return new __HttpRequest({
|
|
663
657
|
protocol,
|
|
664
658
|
hostname,
|
|
@@ -679,12 +673,10 @@ export const se_UpdateBackendStorageCommand = async (input, context) => {
|
|
|
679
673
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
|
|
680
674
|
resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
681
675
|
let body;
|
|
682
|
-
body = JSON.stringify({
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
...(input.ResourceName != null && { resourceName: input.ResourceName }),
|
|
687
|
-
});
|
|
676
|
+
body = JSON.stringify(take(input, {
|
|
677
|
+
resourceConfig: [, (_) => se_UpdateBackendStorageResourceConfig(_, context), `ResourceConfig`],
|
|
678
|
+
resourceName: [, , `ResourceName`],
|
|
679
|
+
}));
|
|
688
680
|
return new __HttpRequest({
|
|
689
681
|
protocol,
|
|
690
682
|
hostname,
|
|
@@ -703,24 +695,15 @@ export const de_CloneBackendCommand = async (output, context) => {
|
|
|
703
695
|
$metadata: deserializeMetadata(output),
|
|
704
696
|
});
|
|
705
697
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
if (data.jobId != null) {
|
|
716
|
-
contents.JobId = __expectString(data.jobId);
|
|
717
|
-
}
|
|
718
|
-
if (data.operation != null) {
|
|
719
|
-
contents.Operation = __expectString(data.operation);
|
|
720
|
-
}
|
|
721
|
-
if (data.status != null) {
|
|
722
|
-
contents.Status = __expectString(data.status);
|
|
723
|
-
}
|
|
698
|
+
const doc = take(data, {
|
|
699
|
+
AppId: [, __expectString, `appId`],
|
|
700
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
701
|
+
Error: [, __expectString, `error`],
|
|
702
|
+
JobId: [, __expectString, `jobId`],
|
|
703
|
+
Operation: [, __expectString, `operation`],
|
|
704
|
+
Status: [, __expectString, `status`],
|
|
705
|
+
});
|
|
706
|
+
Object.assign(contents, doc);
|
|
724
707
|
return contents;
|
|
725
708
|
};
|
|
726
709
|
const de_CloneBackendCommandError = async (output, context) => {
|
|
@@ -744,10 +727,9 @@ const de_CloneBackendCommandError = async (output, context) => {
|
|
|
744
727
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
745
728
|
default:
|
|
746
729
|
const parsedBody = parsedOutput.body;
|
|
747
|
-
throwDefaultError({
|
|
730
|
+
return throwDefaultError({
|
|
748
731
|
output,
|
|
749
732
|
parsedBody,
|
|
750
|
-
exceptionCtor: __BaseException,
|
|
751
733
|
errorCode,
|
|
752
734
|
});
|
|
753
735
|
}
|
|
@@ -760,24 +742,15 @@ export const de_CreateBackendCommand = async (output, context) => {
|
|
|
760
742
|
$metadata: deserializeMetadata(output),
|
|
761
743
|
});
|
|
762
744
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
if (data.jobId != null) {
|
|
773
|
-
contents.JobId = __expectString(data.jobId);
|
|
774
|
-
}
|
|
775
|
-
if (data.operation != null) {
|
|
776
|
-
contents.Operation = __expectString(data.operation);
|
|
777
|
-
}
|
|
778
|
-
if (data.status != null) {
|
|
779
|
-
contents.Status = __expectString(data.status);
|
|
780
|
-
}
|
|
745
|
+
const doc = take(data, {
|
|
746
|
+
AppId: [, __expectString, `appId`],
|
|
747
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
748
|
+
Error: [, __expectString, `error`],
|
|
749
|
+
JobId: [, __expectString, `jobId`],
|
|
750
|
+
Operation: [, __expectString, `operation`],
|
|
751
|
+
Status: [, __expectString, `status`],
|
|
752
|
+
});
|
|
753
|
+
Object.assign(contents, doc);
|
|
781
754
|
return contents;
|
|
782
755
|
};
|
|
783
756
|
const de_CreateBackendCommandError = async (output, context) => {
|
|
@@ -801,10 +774,9 @@ const de_CreateBackendCommandError = async (output, context) => {
|
|
|
801
774
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
802
775
|
default:
|
|
803
776
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
throwDefaultError({
|
|
777
|
+
return throwDefaultError({
|
|
805
778
|
output,
|
|
806
779
|
parsedBody,
|
|
807
|
-
exceptionCtor: __BaseException,
|
|
808
780
|
errorCode,
|
|
809
781
|
});
|
|
810
782
|
}
|
|
@@ -817,24 +789,15 @@ export const de_CreateBackendAPICommand = async (output, context) => {
|
|
|
817
789
|
$metadata: deserializeMetadata(output),
|
|
818
790
|
});
|
|
819
791
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
if (data.jobId != null) {
|
|
830
|
-
contents.JobId = __expectString(data.jobId);
|
|
831
|
-
}
|
|
832
|
-
if (data.operation != null) {
|
|
833
|
-
contents.Operation = __expectString(data.operation);
|
|
834
|
-
}
|
|
835
|
-
if (data.status != null) {
|
|
836
|
-
contents.Status = __expectString(data.status);
|
|
837
|
-
}
|
|
792
|
+
const doc = take(data, {
|
|
793
|
+
AppId: [, __expectString, `appId`],
|
|
794
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
795
|
+
Error: [, __expectString, `error`],
|
|
796
|
+
JobId: [, __expectString, `jobId`],
|
|
797
|
+
Operation: [, __expectString, `operation`],
|
|
798
|
+
Status: [, __expectString, `status`],
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
838
801
|
return contents;
|
|
839
802
|
};
|
|
840
803
|
const de_CreateBackendAPICommandError = async (output, context) => {
|
|
@@ -858,10 +821,9 @@ const de_CreateBackendAPICommandError = async (output, context) => {
|
|
|
858
821
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
859
822
|
default:
|
|
860
823
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
throwDefaultError({
|
|
824
|
+
return throwDefaultError({
|
|
862
825
|
output,
|
|
863
826
|
parsedBody,
|
|
864
|
-
exceptionCtor: __BaseException,
|
|
865
827
|
errorCode,
|
|
866
828
|
});
|
|
867
829
|
}
|
|
@@ -874,24 +836,15 @@ export const de_CreateBackendAuthCommand = async (output, context) => {
|
|
|
874
836
|
$metadata: deserializeMetadata(output),
|
|
875
837
|
});
|
|
876
838
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
if (data.jobId != null) {
|
|
887
|
-
contents.JobId = __expectString(data.jobId);
|
|
888
|
-
}
|
|
889
|
-
if (data.operation != null) {
|
|
890
|
-
contents.Operation = __expectString(data.operation);
|
|
891
|
-
}
|
|
892
|
-
if (data.status != null) {
|
|
893
|
-
contents.Status = __expectString(data.status);
|
|
894
|
-
}
|
|
839
|
+
const doc = take(data, {
|
|
840
|
+
AppId: [, __expectString, `appId`],
|
|
841
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
842
|
+
Error: [, __expectString, `error`],
|
|
843
|
+
JobId: [, __expectString, `jobId`],
|
|
844
|
+
Operation: [, __expectString, `operation`],
|
|
845
|
+
Status: [, __expectString, `status`],
|
|
846
|
+
});
|
|
847
|
+
Object.assign(contents, doc);
|
|
895
848
|
return contents;
|
|
896
849
|
};
|
|
897
850
|
const de_CreateBackendAuthCommandError = async (output, context) => {
|
|
@@ -915,10 +868,9 @@ const de_CreateBackendAuthCommandError = async (output, context) => {
|
|
|
915
868
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
916
869
|
default:
|
|
917
870
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
throwDefaultError({
|
|
871
|
+
return throwDefaultError({
|
|
919
872
|
output,
|
|
920
873
|
parsedBody,
|
|
921
|
-
exceptionCtor: __BaseException,
|
|
922
874
|
errorCode,
|
|
923
875
|
});
|
|
924
876
|
}
|
|
@@ -931,18 +883,13 @@ export const de_CreateBackendConfigCommand = async (output, context) => {
|
|
|
931
883
|
$metadata: deserializeMetadata(output),
|
|
932
884
|
});
|
|
933
885
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
contents.JobId = __expectString(data.jobId);
|
|
942
|
-
}
|
|
943
|
-
if (data.status != null) {
|
|
944
|
-
contents.Status = __expectString(data.status);
|
|
945
|
-
}
|
|
886
|
+
const doc = take(data, {
|
|
887
|
+
AppId: [, __expectString, `appId`],
|
|
888
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
889
|
+
JobId: [, __expectString, `jobId`],
|
|
890
|
+
Status: [, __expectString, `status`],
|
|
891
|
+
});
|
|
892
|
+
Object.assign(contents, doc);
|
|
946
893
|
return contents;
|
|
947
894
|
};
|
|
948
895
|
const de_CreateBackendConfigCommandError = async (output, context) => {
|
|
@@ -966,10 +913,9 @@ const de_CreateBackendConfigCommandError = async (output, context) => {
|
|
|
966
913
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
967
914
|
default:
|
|
968
915
|
const parsedBody = parsedOutput.body;
|
|
969
|
-
throwDefaultError({
|
|
916
|
+
return throwDefaultError({
|
|
970
917
|
output,
|
|
971
918
|
parsedBody,
|
|
972
|
-
exceptionCtor: __BaseException,
|
|
973
919
|
errorCode,
|
|
974
920
|
});
|
|
975
921
|
}
|
|
@@ -982,18 +928,13 @@ export const de_CreateBackendStorageCommand = async (output, context) => {
|
|
|
982
928
|
$metadata: deserializeMetadata(output),
|
|
983
929
|
});
|
|
984
930
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
contents.JobId = __expectString(data.jobId);
|
|
993
|
-
}
|
|
994
|
-
if (data.status != null) {
|
|
995
|
-
contents.Status = __expectString(data.status);
|
|
996
|
-
}
|
|
931
|
+
const doc = take(data, {
|
|
932
|
+
AppId: [, __expectString, `appId`],
|
|
933
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
934
|
+
JobId: [, __expectString, `jobId`],
|
|
935
|
+
Status: [, __expectString, `status`],
|
|
936
|
+
});
|
|
937
|
+
Object.assign(contents, doc);
|
|
997
938
|
return contents;
|
|
998
939
|
};
|
|
999
940
|
const de_CreateBackendStorageCommandError = async (output, context) => {
|
|
@@ -1017,10 +958,9 @@ const de_CreateBackendStorageCommandError = async (output, context) => {
|
|
|
1017
958
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1018
959
|
default:
|
|
1019
960
|
const parsedBody = parsedOutput.body;
|
|
1020
|
-
throwDefaultError({
|
|
961
|
+
return throwDefaultError({
|
|
1021
962
|
output,
|
|
1022
963
|
parsedBody,
|
|
1023
|
-
exceptionCtor: __BaseException,
|
|
1024
964
|
errorCode,
|
|
1025
965
|
});
|
|
1026
966
|
}
|
|
@@ -1033,18 +973,13 @@ export const de_CreateTokenCommand = async (output, context) => {
|
|
|
1033
973
|
$metadata: deserializeMetadata(output),
|
|
1034
974
|
});
|
|
1035
975
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
contents.SessionId = __expectString(data.sessionId);
|
|
1044
|
-
}
|
|
1045
|
-
if (data.ttl != null) {
|
|
1046
|
-
contents.Ttl = __expectString(data.ttl);
|
|
1047
|
-
}
|
|
976
|
+
const doc = take(data, {
|
|
977
|
+
AppId: [, __expectString, `appId`],
|
|
978
|
+
ChallengeCode: [, __expectString, `challengeCode`],
|
|
979
|
+
SessionId: [, __expectString, `sessionId`],
|
|
980
|
+
Ttl: [, __expectString, `ttl`],
|
|
981
|
+
});
|
|
982
|
+
Object.assign(contents, doc);
|
|
1048
983
|
return contents;
|
|
1049
984
|
};
|
|
1050
985
|
const de_CreateTokenCommandError = async (output, context) => {
|
|
@@ -1068,10 +1003,9 @@ const de_CreateTokenCommandError = async (output, context) => {
|
|
|
1068
1003
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1069
1004
|
default:
|
|
1070
1005
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
throwDefaultError({
|
|
1006
|
+
return throwDefaultError({
|
|
1072
1007
|
output,
|
|
1073
1008
|
parsedBody,
|
|
1074
|
-
exceptionCtor: __BaseException,
|
|
1075
1009
|
errorCode,
|
|
1076
1010
|
});
|
|
1077
1011
|
}
|
|
@@ -1084,24 +1018,15 @@ export const de_DeleteBackendCommand = async (output, context) => {
|
|
|
1084
1018
|
$metadata: deserializeMetadata(output),
|
|
1085
1019
|
});
|
|
1086
1020
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
if (data.jobId != null) {
|
|
1097
|
-
contents.JobId = __expectString(data.jobId);
|
|
1098
|
-
}
|
|
1099
|
-
if (data.operation != null) {
|
|
1100
|
-
contents.Operation = __expectString(data.operation);
|
|
1101
|
-
}
|
|
1102
|
-
if (data.status != null) {
|
|
1103
|
-
contents.Status = __expectString(data.status);
|
|
1104
|
-
}
|
|
1021
|
+
const doc = take(data, {
|
|
1022
|
+
AppId: [, __expectString, `appId`],
|
|
1023
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1024
|
+
Error: [, __expectString, `error`],
|
|
1025
|
+
JobId: [, __expectString, `jobId`],
|
|
1026
|
+
Operation: [, __expectString, `operation`],
|
|
1027
|
+
Status: [, __expectString, `status`],
|
|
1028
|
+
});
|
|
1029
|
+
Object.assign(contents, doc);
|
|
1105
1030
|
return contents;
|
|
1106
1031
|
};
|
|
1107
1032
|
const de_DeleteBackendCommandError = async (output, context) => {
|
|
@@ -1125,10 +1050,9 @@ const de_DeleteBackendCommandError = async (output, context) => {
|
|
|
1125
1050
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1126
1051
|
default:
|
|
1127
1052
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
throwDefaultError({
|
|
1053
|
+
return throwDefaultError({
|
|
1129
1054
|
output,
|
|
1130
1055
|
parsedBody,
|
|
1131
|
-
exceptionCtor: __BaseException,
|
|
1132
1056
|
errorCode,
|
|
1133
1057
|
});
|
|
1134
1058
|
}
|
|
@@ -1141,24 +1065,15 @@ export const de_DeleteBackendAPICommand = async (output, context) => {
|
|
|
1141
1065
|
$metadata: deserializeMetadata(output),
|
|
1142
1066
|
});
|
|
1143
1067
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
if (data.jobId != null) {
|
|
1154
|
-
contents.JobId = __expectString(data.jobId);
|
|
1155
|
-
}
|
|
1156
|
-
if (data.operation != null) {
|
|
1157
|
-
contents.Operation = __expectString(data.operation);
|
|
1158
|
-
}
|
|
1159
|
-
if (data.status != null) {
|
|
1160
|
-
contents.Status = __expectString(data.status);
|
|
1161
|
-
}
|
|
1068
|
+
const doc = take(data, {
|
|
1069
|
+
AppId: [, __expectString, `appId`],
|
|
1070
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1071
|
+
Error: [, __expectString, `error`],
|
|
1072
|
+
JobId: [, __expectString, `jobId`],
|
|
1073
|
+
Operation: [, __expectString, `operation`],
|
|
1074
|
+
Status: [, __expectString, `status`],
|
|
1075
|
+
});
|
|
1076
|
+
Object.assign(contents, doc);
|
|
1162
1077
|
return contents;
|
|
1163
1078
|
};
|
|
1164
1079
|
const de_DeleteBackendAPICommandError = async (output, context) => {
|
|
@@ -1182,10 +1097,9 @@ const de_DeleteBackendAPICommandError = async (output, context) => {
|
|
|
1182
1097
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1183
1098
|
default:
|
|
1184
1099
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
throwDefaultError({
|
|
1100
|
+
return throwDefaultError({
|
|
1186
1101
|
output,
|
|
1187
1102
|
parsedBody,
|
|
1188
|
-
exceptionCtor: __BaseException,
|
|
1189
1103
|
errorCode,
|
|
1190
1104
|
});
|
|
1191
1105
|
}
|
|
@@ -1198,24 +1112,15 @@ export const de_DeleteBackendAuthCommand = async (output, context) => {
|
|
|
1198
1112
|
$metadata: deserializeMetadata(output),
|
|
1199
1113
|
});
|
|
1200
1114
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
if (data.jobId != null) {
|
|
1211
|
-
contents.JobId = __expectString(data.jobId);
|
|
1212
|
-
}
|
|
1213
|
-
if (data.operation != null) {
|
|
1214
|
-
contents.Operation = __expectString(data.operation);
|
|
1215
|
-
}
|
|
1216
|
-
if (data.status != null) {
|
|
1217
|
-
contents.Status = __expectString(data.status);
|
|
1218
|
-
}
|
|
1115
|
+
const doc = take(data, {
|
|
1116
|
+
AppId: [, __expectString, `appId`],
|
|
1117
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1118
|
+
Error: [, __expectString, `error`],
|
|
1119
|
+
JobId: [, __expectString, `jobId`],
|
|
1120
|
+
Operation: [, __expectString, `operation`],
|
|
1121
|
+
Status: [, __expectString, `status`],
|
|
1122
|
+
});
|
|
1123
|
+
Object.assign(contents, doc);
|
|
1219
1124
|
return contents;
|
|
1220
1125
|
};
|
|
1221
1126
|
const de_DeleteBackendAuthCommandError = async (output, context) => {
|
|
@@ -1239,10 +1144,9 @@ const de_DeleteBackendAuthCommandError = async (output, context) => {
|
|
|
1239
1144
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1240
1145
|
default:
|
|
1241
1146
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
throwDefaultError({
|
|
1147
|
+
return throwDefaultError({
|
|
1243
1148
|
output,
|
|
1244
1149
|
parsedBody,
|
|
1245
|
-
exceptionCtor: __BaseException,
|
|
1246
1150
|
errorCode,
|
|
1247
1151
|
});
|
|
1248
1152
|
}
|
|
@@ -1255,18 +1159,13 @@ export const de_DeleteBackendStorageCommand = async (output, context) => {
|
|
|
1255
1159
|
$metadata: deserializeMetadata(output),
|
|
1256
1160
|
});
|
|
1257
1161
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
contents.JobId = __expectString(data.jobId);
|
|
1266
|
-
}
|
|
1267
|
-
if (data.status != null) {
|
|
1268
|
-
contents.Status = __expectString(data.status);
|
|
1269
|
-
}
|
|
1162
|
+
const doc = take(data, {
|
|
1163
|
+
AppId: [, __expectString, `appId`],
|
|
1164
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1165
|
+
JobId: [, __expectString, `jobId`],
|
|
1166
|
+
Status: [, __expectString, `status`],
|
|
1167
|
+
});
|
|
1168
|
+
Object.assign(contents, doc);
|
|
1270
1169
|
return contents;
|
|
1271
1170
|
};
|
|
1272
1171
|
const de_DeleteBackendStorageCommandError = async (output, context) => {
|
|
@@ -1290,10 +1189,9 @@ const de_DeleteBackendStorageCommandError = async (output, context) => {
|
|
|
1290
1189
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1291
1190
|
default:
|
|
1292
1191
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
throwDefaultError({
|
|
1192
|
+
return throwDefaultError({
|
|
1294
1193
|
output,
|
|
1295
1194
|
parsedBody,
|
|
1296
|
-
exceptionCtor: __BaseException,
|
|
1297
1195
|
errorCode,
|
|
1298
1196
|
});
|
|
1299
1197
|
}
|
|
@@ -1306,9 +1204,10 @@ export const de_DeleteTokenCommand = async (output, context) => {
|
|
|
1306
1204
|
$metadata: deserializeMetadata(output),
|
|
1307
1205
|
});
|
|
1308
1206
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
}
|
|
1207
|
+
const doc = take(data, {
|
|
1208
|
+
IsSuccess: [, __expectBoolean, `isSuccess`],
|
|
1209
|
+
});
|
|
1210
|
+
Object.assign(contents, doc);
|
|
1312
1211
|
return contents;
|
|
1313
1212
|
};
|
|
1314
1213
|
const de_DeleteTokenCommandError = async (output, context) => {
|
|
@@ -1332,10 +1231,9 @@ const de_DeleteTokenCommandError = async (output, context) => {
|
|
|
1332
1231
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1333
1232
|
default:
|
|
1334
1233
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
throwDefaultError({
|
|
1234
|
+
return throwDefaultError({
|
|
1336
1235
|
output,
|
|
1337
1236
|
parsedBody,
|
|
1338
|
-
exceptionCtor: __BaseException,
|
|
1339
1237
|
errorCode,
|
|
1340
1238
|
});
|
|
1341
1239
|
}
|
|
@@ -1348,24 +1246,15 @@ export const de_GenerateBackendAPIModelsCommand = async (output, context) => {
|
|
|
1348
1246
|
$metadata: deserializeMetadata(output),
|
|
1349
1247
|
});
|
|
1350
1248
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
if (data.jobId != null) {
|
|
1361
|
-
contents.JobId = __expectString(data.jobId);
|
|
1362
|
-
}
|
|
1363
|
-
if (data.operation != null) {
|
|
1364
|
-
contents.Operation = __expectString(data.operation);
|
|
1365
|
-
}
|
|
1366
|
-
if (data.status != null) {
|
|
1367
|
-
contents.Status = __expectString(data.status);
|
|
1368
|
-
}
|
|
1249
|
+
const doc = take(data, {
|
|
1250
|
+
AppId: [, __expectString, `appId`],
|
|
1251
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1252
|
+
Error: [, __expectString, `error`],
|
|
1253
|
+
JobId: [, __expectString, `jobId`],
|
|
1254
|
+
Operation: [, __expectString, `operation`],
|
|
1255
|
+
Status: [, __expectString, `status`],
|
|
1256
|
+
});
|
|
1257
|
+
Object.assign(contents, doc);
|
|
1369
1258
|
return contents;
|
|
1370
1259
|
};
|
|
1371
1260
|
const de_GenerateBackendAPIModelsCommandError = async (output, context) => {
|
|
@@ -1389,10 +1278,9 @@ const de_GenerateBackendAPIModelsCommandError = async (output, context) => {
|
|
|
1389
1278
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1390
1279
|
default:
|
|
1391
1280
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
throwDefaultError({
|
|
1281
|
+
return throwDefaultError({
|
|
1393
1282
|
output,
|
|
1394
1283
|
parsedBody,
|
|
1395
|
-
exceptionCtor: __BaseException,
|
|
1396
1284
|
errorCode,
|
|
1397
1285
|
});
|
|
1398
1286
|
}
|
|
@@ -1405,27 +1293,16 @@ export const de_GetBackendCommand = async (output, context) => {
|
|
|
1405
1293
|
$metadata: deserializeMetadata(output),
|
|
1406
1294
|
});
|
|
1407
1295
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
contents.AppName = __expectString(data.appName);
|
|
1419
|
-
}
|
|
1420
|
-
if (data.backendEnvironmentList != null) {
|
|
1421
|
-
contents.BackendEnvironmentList = de_ListOf__string(data.backendEnvironmentList, context);
|
|
1422
|
-
}
|
|
1423
|
-
if (data.backendEnvironmentName != null) {
|
|
1424
|
-
contents.BackendEnvironmentName = __expectString(data.backendEnvironmentName);
|
|
1425
|
-
}
|
|
1426
|
-
if (data.error != null) {
|
|
1427
|
-
contents.Error = __expectString(data.error);
|
|
1428
|
-
}
|
|
1296
|
+
const doc = take(data, {
|
|
1297
|
+
AmplifyFeatureFlags: [, __expectString, `amplifyFeatureFlags`],
|
|
1298
|
+
AmplifyMetaConfig: [, __expectString, `amplifyMetaConfig`],
|
|
1299
|
+
AppId: [, __expectString, `appId`],
|
|
1300
|
+
AppName: [, __expectString, `appName`],
|
|
1301
|
+
BackendEnvironmentList: [, _json, `backendEnvironmentList`],
|
|
1302
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1303
|
+
Error: [, __expectString, `error`],
|
|
1304
|
+
});
|
|
1305
|
+
Object.assign(contents, doc);
|
|
1429
1306
|
return contents;
|
|
1430
1307
|
};
|
|
1431
1308
|
const de_GetBackendCommandError = async (output, context) => {
|
|
@@ -1449,10 +1326,9 @@ const de_GetBackendCommandError = async (output, context) => {
|
|
|
1449
1326
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1450
1327
|
default:
|
|
1451
1328
|
const parsedBody = parsedOutput.body;
|
|
1452
|
-
throwDefaultError({
|
|
1329
|
+
return throwDefaultError({
|
|
1453
1330
|
output,
|
|
1454
1331
|
parsedBody,
|
|
1455
|
-
exceptionCtor: __BaseException,
|
|
1456
1332
|
errorCode,
|
|
1457
1333
|
});
|
|
1458
1334
|
}
|
|
@@ -1465,21 +1341,14 @@ export const de_GetBackendAPICommand = async (output, context) => {
|
|
|
1465
1341
|
$metadata: deserializeMetadata(output),
|
|
1466
1342
|
});
|
|
1467
1343
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
}
|
|
1477
|
-
if (data.resourceConfig != null) {
|
|
1478
|
-
contents.ResourceConfig = de_BackendAPIResourceConfig(data.resourceConfig, context);
|
|
1479
|
-
}
|
|
1480
|
-
if (data.resourceName != null) {
|
|
1481
|
-
contents.ResourceName = __expectString(data.resourceName);
|
|
1482
|
-
}
|
|
1344
|
+
const doc = take(data, {
|
|
1345
|
+
AppId: [, __expectString, `appId`],
|
|
1346
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1347
|
+
Error: [, __expectString, `error`],
|
|
1348
|
+
ResourceConfig: [, (_) => de_BackendAPIResourceConfig(_, context), `resourceConfig`],
|
|
1349
|
+
ResourceName: [, __expectString, `resourceName`],
|
|
1350
|
+
});
|
|
1351
|
+
Object.assign(contents, doc);
|
|
1483
1352
|
return contents;
|
|
1484
1353
|
};
|
|
1485
1354
|
const de_GetBackendAPICommandError = async (output, context) => {
|
|
@@ -1503,10 +1372,9 @@ const de_GetBackendAPICommandError = async (output, context) => {
|
|
|
1503
1372
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1504
1373
|
default:
|
|
1505
1374
|
const parsedBody = parsedOutput.body;
|
|
1506
|
-
throwDefaultError({
|
|
1375
|
+
return throwDefaultError({
|
|
1507
1376
|
output,
|
|
1508
1377
|
parsedBody,
|
|
1509
|
-
exceptionCtor: __BaseException,
|
|
1510
1378
|
errorCode,
|
|
1511
1379
|
});
|
|
1512
1380
|
}
|
|
@@ -1519,15 +1387,12 @@ export const de_GetBackendAPIModelsCommand = async (output, context) => {
|
|
|
1519
1387
|
$metadata: deserializeMetadata(output),
|
|
1520
1388
|
});
|
|
1521
1389
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
if (data.status != null) {
|
|
1529
|
-
contents.Status = __expectString(data.status);
|
|
1530
|
-
}
|
|
1390
|
+
const doc = take(data, {
|
|
1391
|
+
ModelIntrospectionSchema: [, __expectString, `modelIntrospectionSchema`],
|
|
1392
|
+
Models: [, __expectString, `models`],
|
|
1393
|
+
Status: [, __expectString, `status`],
|
|
1394
|
+
});
|
|
1395
|
+
Object.assign(contents, doc);
|
|
1531
1396
|
return contents;
|
|
1532
1397
|
};
|
|
1533
1398
|
const de_GetBackendAPIModelsCommandError = async (output, context) => {
|
|
@@ -1551,10 +1416,9 @@ const de_GetBackendAPIModelsCommandError = async (output, context) => {
|
|
|
1551
1416
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1552
1417
|
default:
|
|
1553
1418
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
throwDefaultError({
|
|
1419
|
+
return throwDefaultError({
|
|
1555
1420
|
output,
|
|
1556
1421
|
parsedBody,
|
|
1557
|
-
exceptionCtor: __BaseException,
|
|
1558
1422
|
errorCode,
|
|
1559
1423
|
});
|
|
1560
1424
|
}
|
|
@@ -1567,21 +1431,14 @@ export const de_GetBackendAuthCommand = async (output, context) => {
|
|
|
1567
1431
|
$metadata: deserializeMetadata(output),
|
|
1568
1432
|
});
|
|
1569
1433
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1579
|
-
if (data.resourceConfig != null) {
|
|
1580
|
-
contents.ResourceConfig = de_CreateBackendAuthResourceConfig(data.resourceConfig, context);
|
|
1581
|
-
}
|
|
1582
|
-
if (data.resourceName != null) {
|
|
1583
|
-
contents.ResourceName = __expectString(data.resourceName);
|
|
1584
|
-
}
|
|
1434
|
+
const doc = take(data, {
|
|
1435
|
+
AppId: [, __expectString, `appId`],
|
|
1436
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1437
|
+
Error: [, __expectString, `error`],
|
|
1438
|
+
ResourceConfig: [, (_) => de_CreateBackendAuthResourceConfig(_, context), `resourceConfig`],
|
|
1439
|
+
ResourceName: [, __expectString, `resourceName`],
|
|
1440
|
+
});
|
|
1441
|
+
Object.assign(contents, doc);
|
|
1585
1442
|
return contents;
|
|
1586
1443
|
};
|
|
1587
1444
|
const de_GetBackendAuthCommandError = async (output, context) => {
|
|
@@ -1605,10 +1462,9 @@ const de_GetBackendAuthCommandError = async (output, context) => {
|
|
|
1605
1462
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1606
1463
|
default:
|
|
1607
1464
|
const parsedBody = parsedOutput.body;
|
|
1608
|
-
throwDefaultError({
|
|
1465
|
+
return throwDefaultError({
|
|
1609
1466
|
output,
|
|
1610
1467
|
parsedBody,
|
|
1611
|
-
exceptionCtor: __BaseException,
|
|
1612
1468
|
errorCode,
|
|
1613
1469
|
});
|
|
1614
1470
|
}
|
|
@@ -1621,30 +1477,17 @@ export const de_GetBackendJobCommand = async (output, context) => {
|
|
|
1621
1477
|
$metadata: deserializeMetadata(output),
|
|
1622
1478
|
});
|
|
1623
1479
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1636
|
-
if (data.jobId != null) {
|
|
1637
|
-
contents.JobId = __expectString(data.jobId);
|
|
1638
|
-
}
|
|
1639
|
-
if (data.operation != null) {
|
|
1640
|
-
contents.Operation = __expectString(data.operation);
|
|
1641
|
-
}
|
|
1642
|
-
if (data.status != null) {
|
|
1643
|
-
contents.Status = __expectString(data.status);
|
|
1644
|
-
}
|
|
1645
|
-
if (data.updateTime != null) {
|
|
1646
|
-
contents.UpdateTime = __expectString(data.updateTime);
|
|
1647
|
-
}
|
|
1480
|
+
const doc = take(data, {
|
|
1481
|
+
AppId: [, __expectString, `appId`],
|
|
1482
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1483
|
+
CreateTime: [, __expectString, `createTime`],
|
|
1484
|
+
Error: [, __expectString, `error`],
|
|
1485
|
+
JobId: [, __expectString, `jobId`],
|
|
1486
|
+
Operation: [, __expectString, `operation`],
|
|
1487
|
+
Status: [, __expectString, `status`],
|
|
1488
|
+
UpdateTime: [, __expectString, `updateTime`],
|
|
1489
|
+
});
|
|
1490
|
+
Object.assign(contents, doc);
|
|
1648
1491
|
return contents;
|
|
1649
1492
|
};
|
|
1650
1493
|
const de_GetBackendJobCommandError = async (output, context) => {
|
|
@@ -1668,10 +1511,9 @@ const de_GetBackendJobCommandError = async (output, context) => {
|
|
|
1668
1511
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1669
1512
|
default:
|
|
1670
1513
|
const parsedBody = parsedOutput.body;
|
|
1671
|
-
throwDefaultError({
|
|
1514
|
+
return throwDefaultError({
|
|
1672
1515
|
output,
|
|
1673
1516
|
parsedBody,
|
|
1674
|
-
exceptionCtor: __BaseException,
|
|
1675
1517
|
errorCode,
|
|
1676
1518
|
});
|
|
1677
1519
|
}
|
|
@@ -1684,18 +1526,13 @@ export const de_GetBackendStorageCommand = async (output, context) => {
|
|
|
1684
1526
|
$metadata: deserializeMetadata(output),
|
|
1685
1527
|
});
|
|
1686
1528
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
contents.ResourceConfig = de_GetBackendStorageResourceConfig(data.resourceConfig, context);
|
|
1695
|
-
}
|
|
1696
|
-
if (data.resourceName != null) {
|
|
1697
|
-
contents.ResourceName = __expectString(data.resourceName);
|
|
1698
|
-
}
|
|
1529
|
+
const doc = take(data, {
|
|
1530
|
+
AppId: [, __expectString, `appId`],
|
|
1531
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1532
|
+
ResourceConfig: [, (_) => de_GetBackendStorageResourceConfig(_, context), `resourceConfig`],
|
|
1533
|
+
ResourceName: [, __expectString, `resourceName`],
|
|
1534
|
+
});
|
|
1535
|
+
Object.assign(contents, doc);
|
|
1699
1536
|
return contents;
|
|
1700
1537
|
};
|
|
1701
1538
|
const de_GetBackendStorageCommandError = async (output, context) => {
|
|
@@ -1719,10 +1556,9 @@ const de_GetBackendStorageCommandError = async (output, context) => {
|
|
|
1719
1556
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1720
1557
|
default:
|
|
1721
1558
|
const parsedBody = parsedOutput.body;
|
|
1722
|
-
throwDefaultError({
|
|
1559
|
+
return throwDefaultError({
|
|
1723
1560
|
output,
|
|
1724
1561
|
parsedBody,
|
|
1725
|
-
exceptionCtor: __BaseException,
|
|
1726
1562
|
errorCode,
|
|
1727
1563
|
});
|
|
1728
1564
|
}
|
|
@@ -1735,18 +1571,13 @@ export const de_GetTokenCommand = async (output, context) => {
|
|
|
1735
1571
|
$metadata: deserializeMetadata(output),
|
|
1736
1572
|
});
|
|
1737
1573
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
contents.SessionId = __expectString(data.sessionId);
|
|
1746
|
-
}
|
|
1747
|
-
if (data.ttl != null) {
|
|
1748
|
-
contents.Ttl = __expectString(data.ttl);
|
|
1749
|
-
}
|
|
1574
|
+
const doc = take(data, {
|
|
1575
|
+
AppId: [, __expectString, `appId`],
|
|
1576
|
+
ChallengeCode: [, __expectString, `challengeCode`],
|
|
1577
|
+
SessionId: [, __expectString, `sessionId`],
|
|
1578
|
+
Ttl: [, __expectString, `ttl`],
|
|
1579
|
+
});
|
|
1580
|
+
Object.assign(contents, doc);
|
|
1750
1581
|
return contents;
|
|
1751
1582
|
};
|
|
1752
1583
|
const de_GetTokenCommandError = async (output, context) => {
|
|
@@ -1770,10 +1601,9 @@ const de_GetTokenCommandError = async (output, context) => {
|
|
|
1770
1601
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1771
1602
|
default:
|
|
1772
1603
|
const parsedBody = parsedOutput.body;
|
|
1773
|
-
throwDefaultError({
|
|
1604
|
+
return throwDefaultError({
|
|
1774
1605
|
output,
|
|
1775
1606
|
parsedBody,
|
|
1776
|
-
exceptionCtor: __BaseException,
|
|
1777
1607
|
errorCode,
|
|
1778
1608
|
});
|
|
1779
1609
|
}
|
|
@@ -1786,24 +1616,15 @@ export const de_ImportBackendAuthCommand = async (output, context) => {
|
|
|
1786
1616
|
$metadata: deserializeMetadata(output),
|
|
1787
1617
|
});
|
|
1788
1618
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
if (data.jobId != null) {
|
|
1799
|
-
contents.JobId = __expectString(data.jobId);
|
|
1800
|
-
}
|
|
1801
|
-
if (data.operation != null) {
|
|
1802
|
-
contents.Operation = __expectString(data.operation);
|
|
1803
|
-
}
|
|
1804
|
-
if (data.status != null) {
|
|
1805
|
-
contents.Status = __expectString(data.status);
|
|
1806
|
-
}
|
|
1619
|
+
const doc = take(data, {
|
|
1620
|
+
AppId: [, __expectString, `appId`],
|
|
1621
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1622
|
+
Error: [, __expectString, `error`],
|
|
1623
|
+
JobId: [, __expectString, `jobId`],
|
|
1624
|
+
Operation: [, __expectString, `operation`],
|
|
1625
|
+
Status: [, __expectString, `status`],
|
|
1626
|
+
});
|
|
1627
|
+
Object.assign(contents, doc);
|
|
1807
1628
|
return contents;
|
|
1808
1629
|
};
|
|
1809
1630
|
const de_ImportBackendAuthCommandError = async (output, context) => {
|
|
@@ -1827,10 +1648,9 @@ const de_ImportBackendAuthCommandError = async (output, context) => {
|
|
|
1827
1648
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1828
1649
|
default:
|
|
1829
1650
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
throwDefaultError({
|
|
1651
|
+
return throwDefaultError({
|
|
1831
1652
|
output,
|
|
1832
1653
|
parsedBody,
|
|
1833
|
-
exceptionCtor: __BaseException,
|
|
1834
1654
|
errorCode,
|
|
1835
1655
|
});
|
|
1836
1656
|
}
|
|
@@ -1843,18 +1663,13 @@ export const de_ImportBackendStorageCommand = async (output, context) => {
|
|
|
1843
1663
|
$metadata: deserializeMetadata(output),
|
|
1844
1664
|
});
|
|
1845
1665
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
contents.JobId = __expectString(data.jobId);
|
|
1854
|
-
}
|
|
1855
|
-
if (data.status != null) {
|
|
1856
|
-
contents.Status = __expectString(data.status);
|
|
1857
|
-
}
|
|
1666
|
+
const doc = take(data, {
|
|
1667
|
+
AppId: [, __expectString, `appId`],
|
|
1668
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1669
|
+
JobId: [, __expectString, `jobId`],
|
|
1670
|
+
Status: [, __expectString, `status`],
|
|
1671
|
+
});
|
|
1672
|
+
Object.assign(contents, doc);
|
|
1858
1673
|
return contents;
|
|
1859
1674
|
};
|
|
1860
1675
|
const de_ImportBackendStorageCommandError = async (output, context) => {
|
|
@@ -1878,10 +1693,9 @@ const de_ImportBackendStorageCommandError = async (output, context) => {
|
|
|
1878
1693
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1879
1694
|
default:
|
|
1880
1695
|
const parsedBody = parsedOutput.body;
|
|
1881
|
-
throwDefaultError({
|
|
1696
|
+
return throwDefaultError({
|
|
1882
1697
|
output,
|
|
1883
1698
|
parsedBody,
|
|
1884
|
-
exceptionCtor: __BaseException,
|
|
1885
1699
|
errorCode,
|
|
1886
1700
|
});
|
|
1887
1701
|
}
|
|
@@ -1894,12 +1708,11 @@ export const de_ListBackendJobsCommand = async (output, context) => {
|
|
|
1894
1708
|
$metadata: deserializeMetadata(output),
|
|
1895
1709
|
});
|
|
1896
1710
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
}
|
|
1711
|
+
const doc = take(data, {
|
|
1712
|
+
Jobs: [, (_) => de_ListOfBackendJobRespObj(_, context), `jobs`],
|
|
1713
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1714
|
+
});
|
|
1715
|
+
Object.assign(contents, doc);
|
|
1903
1716
|
return contents;
|
|
1904
1717
|
};
|
|
1905
1718
|
const de_ListBackendJobsCommandError = async (output, context) => {
|
|
@@ -1923,10 +1736,9 @@ const de_ListBackendJobsCommandError = async (output, context) => {
|
|
|
1923
1736
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1924
1737
|
default:
|
|
1925
1738
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
throwDefaultError({
|
|
1739
|
+
return throwDefaultError({
|
|
1927
1740
|
output,
|
|
1928
1741
|
parsedBody,
|
|
1929
|
-
exceptionCtor: __BaseException,
|
|
1930
1742
|
errorCode,
|
|
1931
1743
|
});
|
|
1932
1744
|
}
|
|
@@ -1939,12 +1751,11 @@ export const de_ListS3BucketsCommand = async (output, context) => {
|
|
|
1939
1751
|
$metadata: deserializeMetadata(output),
|
|
1940
1752
|
});
|
|
1941
1753
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
}
|
|
1754
|
+
const doc = take(data, {
|
|
1755
|
+
Buckets: [, (_) => de_ListOfS3BucketInfo(_, context), `buckets`],
|
|
1756
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1757
|
+
});
|
|
1758
|
+
Object.assign(contents, doc);
|
|
1948
1759
|
return contents;
|
|
1949
1760
|
};
|
|
1950
1761
|
const de_ListS3BucketsCommandError = async (output, context) => {
|
|
@@ -1968,10 +1779,9 @@ const de_ListS3BucketsCommandError = async (output, context) => {
|
|
|
1968
1779
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1969
1780
|
default:
|
|
1970
1781
|
const parsedBody = parsedOutput.body;
|
|
1971
|
-
throwDefaultError({
|
|
1782
|
+
return throwDefaultError({
|
|
1972
1783
|
output,
|
|
1973
1784
|
parsedBody,
|
|
1974
|
-
exceptionCtor: __BaseException,
|
|
1975
1785
|
errorCode,
|
|
1976
1786
|
});
|
|
1977
1787
|
}
|
|
@@ -1984,21 +1794,14 @@ export const de_RemoveAllBackendsCommand = async (output, context) => {
|
|
|
1984
1794
|
$metadata: deserializeMetadata(output),
|
|
1985
1795
|
});
|
|
1986
1796
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
}
|
|
1996
|
-
if (data.operation != null) {
|
|
1997
|
-
contents.Operation = __expectString(data.operation);
|
|
1998
|
-
}
|
|
1999
|
-
if (data.status != null) {
|
|
2000
|
-
contents.Status = __expectString(data.status);
|
|
2001
|
-
}
|
|
1797
|
+
const doc = take(data, {
|
|
1798
|
+
AppId: [, __expectString, `appId`],
|
|
1799
|
+
Error: [, __expectString, `error`],
|
|
1800
|
+
JobId: [, __expectString, `jobId`],
|
|
1801
|
+
Operation: [, __expectString, `operation`],
|
|
1802
|
+
Status: [, __expectString, `status`],
|
|
1803
|
+
});
|
|
1804
|
+
Object.assign(contents, doc);
|
|
2002
1805
|
return contents;
|
|
2003
1806
|
};
|
|
2004
1807
|
const de_RemoveAllBackendsCommandError = async (output, context) => {
|
|
@@ -2022,10 +1825,9 @@ const de_RemoveAllBackendsCommandError = async (output, context) => {
|
|
|
2022
1825
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2023
1826
|
default:
|
|
2024
1827
|
const parsedBody = parsedOutput.body;
|
|
2025
|
-
throwDefaultError({
|
|
1828
|
+
return throwDefaultError({
|
|
2026
1829
|
output,
|
|
2027
1830
|
parsedBody,
|
|
2028
|
-
exceptionCtor: __BaseException,
|
|
2029
1831
|
errorCode,
|
|
2030
1832
|
});
|
|
2031
1833
|
}
|
|
@@ -2038,9 +1840,10 @@ export const de_RemoveBackendConfigCommand = async (output, context) => {
|
|
|
2038
1840
|
$metadata: deserializeMetadata(output),
|
|
2039
1841
|
});
|
|
2040
1842
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
}
|
|
1843
|
+
const doc = take(data, {
|
|
1844
|
+
Error: [, __expectString, `error`],
|
|
1845
|
+
});
|
|
1846
|
+
Object.assign(contents, doc);
|
|
2044
1847
|
return contents;
|
|
2045
1848
|
};
|
|
2046
1849
|
const de_RemoveBackendConfigCommandError = async (output, context) => {
|
|
@@ -2064,10 +1867,9 @@ const de_RemoveBackendConfigCommandError = async (output, context) => {
|
|
|
2064
1867
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2065
1868
|
default:
|
|
2066
1869
|
const parsedBody = parsedOutput.body;
|
|
2067
|
-
throwDefaultError({
|
|
1870
|
+
return throwDefaultError({
|
|
2068
1871
|
output,
|
|
2069
1872
|
parsedBody,
|
|
2070
|
-
exceptionCtor: __BaseException,
|
|
2071
1873
|
errorCode,
|
|
2072
1874
|
});
|
|
2073
1875
|
}
|
|
@@ -2080,24 +1882,15 @@ export const de_UpdateBackendAPICommand = async (output, context) => {
|
|
|
2080
1882
|
$metadata: deserializeMetadata(output),
|
|
2081
1883
|
});
|
|
2082
1884
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
if (data.jobId != null) {
|
|
2093
|
-
contents.JobId = __expectString(data.jobId);
|
|
2094
|
-
}
|
|
2095
|
-
if (data.operation != null) {
|
|
2096
|
-
contents.Operation = __expectString(data.operation);
|
|
2097
|
-
}
|
|
2098
|
-
if (data.status != null) {
|
|
2099
|
-
contents.Status = __expectString(data.status);
|
|
2100
|
-
}
|
|
1885
|
+
const doc = take(data, {
|
|
1886
|
+
AppId: [, __expectString, `appId`],
|
|
1887
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1888
|
+
Error: [, __expectString, `error`],
|
|
1889
|
+
JobId: [, __expectString, `jobId`],
|
|
1890
|
+
Operation: [, __expectString, `operation`],
|
|
1891
|
+
Status: [, __expectString, `status`],
|
|
1892
|
+
});
|
|
1893
|
+
Object.assign(contents, doc);
|
|
2101
1894
|
return contents;
|
|
2102
1895
|
};
|
|
2103
1896
|
const de_UpdateBackendAPICommandError = async (output, context) => {
|
|
@@ -2121,10 +1914,9 @@ const de_UpdateBackendAPICommandError = async (output, context) => {
|
|
|
2121
1914
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2122
1915
|
default:
|
|
2123
1916
|
const parsedBody = parsedOutput.body;
|
|
2124
|
-
throwDefaultError({
|
|
1917
|
+
return throwDefaultError({
|
|
2125
1918
|
output,
|
|
2126
1919
|
parsedBody,
|
|
2127
|
-
exceptionCtor: __BaseException,
|
|
2128
1920
|
errorCode,
|
|
2129
1921
|
});
|
|
2130
1922
|
}
|
|
@@ -2137,24 +1929,15 @@ export const de_UpdateBackendAuthCommand = async (output, context) => {
|
|
|
2137
1929
|
$metadata: deserializeMetadata(output),
|
|
2138
1930
|
});
|
|
2139
1931
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
if (data.jobId != null) {
|
|
2150
|
-
contents.JobId = __expectString(data.jobId);
|
|
2151
|
-
}
|
|
2152
|
-
if (data.operation != null) {
|
|
2153
|
-
contents.Operation = __expectString(data.operation);
|
|
2154
|
-
}
|
|
2155
|
-
if (data.status != null) {
|
|
2156
|
-
contents.Status = __expectString(data.status);
|
|
2157
|
-
}
|
|
1932
|
+
const doc = take(data, {
|
|
1933
|
+
AppId: [, __expectString, `appId`],
|
|
1934
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
1935
|
+
Error: [, __expectString, `error`],
|
|
1936
|
+
JobId: [, __expectString, `jobId`],
|
|
1937
|
+
Operation: [, __expectString, `operation`],
|
|
1938
|
+
Status: [, __expectString, `status`],
|
|
1939
|
+
});
|
|
1940
|
+
Object.assign(contents, doc);
|
|
2158
1941
|
return contents;
|
|
2159
1942
|
};
|
|
2160
1943
|
const de_UpdateBackendAuthCommandError = async (output, context) => {
|
|
@@ -2178,10 +1961,9 @@ const de_UpdateBackendAuthCommandError = async (output, context) => {
|
|
|
2178
1961
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2179
1962
|
default:
|
|
2180
1963
|
const parsedBody = parsedOutput.body;
|
|
2181
|
-
throwDefaultError({
|
|
1964
|
+
return throwDefaultError({
|
|
2182
1965
|
output,
|
|
2183
1966
|
parsedBody,
|
|
2184
|
-
exceptionCtor: __BaseException,
|
|
2185
1967
|
errorCode,
|
|
2186
1968
|
});
|
|
2187
1969
|
}
|
|
@@ -2194,18 +1976,13 @@ export const de_UpdateBackendConfigCommand = async (output, context) => {
|
|
|
2194
1976
|
$metadata: deserializeMetadata(output),
|
|
2195
1977
|
});
|
|
2196
1978
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
contents.Error = __expectString(data.error);
|
|
2205
|
-
}
|
|
2206
|
-
if (data.loginAuthConfig != null) {
|
|
2207
|
-
contents.LoginAuthConfig = de_LoginAuthConfigReqObj(data.loginAuthConfig, context);
|
|
2208
|
-
}
|
|
1979
|
+
const doc = take(data, {
|
|
1980
|
+
AppId: [, __expectString, `appId`],
|
|
1981
|
+
BackendManagerAppId: [, __expectString, `backendManagerAppId`],
|
|
1982
|
+
Error: [, __expectString, `error`],
|
|
1983
|
+
LoginAuthConfig: [, (_) => de_LoginAuthConfigReqObj(_, context), `loginAuthConfig`],
|
|
1984
|
+
});
|
|
1985
|
+
Object.assign(contents, doc);
|
|
2209
1986
|
return contents;
|
|
2210
1987
|
};
|
|
2211
1988
|
const de_UpdateBackendConfigCommandError = async (output, context) => {
|
|
@@ -2229,10 +2006,9 @@ const de_UpdateBackendConfigCommandError = async (output, context) => {
|
|
|
2229
2006
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2230
2007
|
default:
|
|
2231
2008
|
const parsedBody = parsedOutput.body;
|
|
2232
|
-
throwDefaultError({
|
|
2009
|
+
return throwDefaultError({
|
|
2233
2010
|
output,
|
|
2234
2011
|
parsedBody,
|
|
2235
|
-
exceptionCtor: __BaseException,
|
|
2236
2012
|
errorCode,
|
|
2237
2013
|
});
|
|
2238
2014
|
}
|
|
@@ -2245,30 +2021,17 @@ export const de_UpdateBackendJobCommand = async (output, context) => {
|
|
|
2245
2021
|
$metadata: deserializeMetadata(output),
|
|
2246
2022
|
});
|
|
2247
2023
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
}
|
|
2260
|
-
if (data.jobId != null) {
|
|
2261
|
-
contents.JobId = __expectString(data.jobId);
|
|
2262
|
-
}
|
|
2263
|
-
if (data.operation != null) {
|
|
2264
|
-
contents.Operation = __expectString(data.operation);
|
|
2265
|
-
}
|
|
2266
|
-
if (data.status != null) {
|
|
2267
|
-
contents.Status = __expectString(data.status);
|
|
2268
|
-
}
|
|
2269
|
-
if (data.updateTime != null) {
|
|
2270
|
-
contents.UpdateTime = __expectString(data.updateTime);
|
|
2271
|
-
}
|
|
2024
|
+
const doc = take(data, {
|
|
2025
|
+
AppId: [, __expectString, `appId`],
|
|
2026
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
2027
|
+
CreateTime: [, __expectString, `createTime`],
|
|
2028
|
+
Error: [, __expectString, `error`],
|
|
2029
|
+
JobId: [, __expectString, `jobId`],
|
|
2030
|
+
Operation: [, __expectString, `operation`],
|
|
2031
|
+
Status: [, __expectString, `status`],
|
|
2032
|
+
UpdateTime: [, __expectString, `updateTime`],
|
|
2033
|
+
});
|
|
2034
|
+
Object.assign(contents, doc);
|
|
2272
2035
|
return contents;
|
|
2273
2036
|
};
|
|
2274
2037
|
const de_UpdateBackendJobCommandError = async (output, context) => {
|
|
@@ -2292,10 +2055,9 @@ const de_UpdateBackendJobCommandError = async (output, context) => {
|
|
|
2292
2055
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2293
2056
|
default:
|
|
2294
2057
|
const parsedBody = parsedOutput.body;
|
|
2295
|
-
throwDefaultError({
|
|
2058
|
+
return throwDefaultError({
|
|
2296
2059
|
output,
|
|
2297
2060
|
parsedBody,
|
|
2298
|
-
exceptionCtor: __BaseException,
|
|
2299
2061
|
errorCode,
|
|
2300
2062
|
});
|
|
2301
2063
|
}
|
|
@@ -2308,18 +2070,13 @@ export const de_UpdateBackendStorageCommand = async (output, context) => {
|
|
|
2308
2070
|
$metadata: deserializeMetadata(output),
|
|
2309
2071
|
});
|
|
2310
2072
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
contents.JobId = __expectString(data.jobId);
|
|
2319
|
-
}
|
|
2320
|
-
if (data.status != null) {
|
|
2321
|
-
contents.Status = __expectString(data.status);
|
|
2322
|
-
}
|
|
2073
|
+
const doc = take(data, {
|
|
2074
|
+
AppId: [, __expectString, `appId`],
|
|
2075
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
2076
|
+
JobId: [, __expectString, `jobId`],
|
|
2077
|
+
Status: [, __expectString, `status`],
|
|
2078
|
+
});
|
|
2079
|
+
Object.assign(contents, doc);
|
|
2323
2080
|
return contents;
|
|
2324
2081
|
};
|
|
2325
2082
|
const de_UpdateBackendStorageCommandError = async (output, context) => {
|
|
@@ -2343,21 +2100,21 @@ const de_UpdateBackendStorageCommandError = async (output, context) => {
|
|
|
2343
2100
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2344
2101
|
default:
|
|
2345
2102
|
const parsedBody = parsedOutput.body;
|
|
2346
|
-
throwDefaultError({
|
|
2103
|
+
return throwDefaultError({
|
|
2347
2104
|
output,
|
|
2348
2105
|
parsedBody,
|
|
2349
|
-
exceptionCtor: __BaseException,
|
|
2350
2106
|
errorCode,
|
|
2351
2107
|
});
|
|
2352
2108
|
}
|
|
2353
2109
|
};
|
|
2354
|
-
const
|
|
2110
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2355
2111
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2356
2112
|
const contents = map({});
|
|
2357
2113
|
const data = parsedOutput.body;
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
}
|
|
2114
|
+
const doc = take(data, {
|
|
2115
|
+
Message: [, __expectString, `message`],
|
|
2116
|
+
});
|
|
2117
|
+
Object.assign(contents, doc);
|
|
2361
2118
|
const exception = new BadRequestException({
|
|
2362
2119
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2363
2120
|
...contents,
|
|
@@ -2367,9 +2124,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2367
2124
|
const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2368
2125
|
const contents = map({});
|
|
2369
2126
|
const data = parsedOutput.body;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
}
|
|
2127
|
+
const doc = take(data, {
|
|
2128
|
+
Message: [, __expectString, `message`],
|
|
2129
|
+
});
|
|
2130
|
+
Object.assign(contents, doc);
|
|
2373
2131
|
const exception = new GatewayTimeoutException({
|
|
2374
2132
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2375
2133
|
...contents,
|
|
@@ -2379,12 +2137,11 @@ const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
2379
2137
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2380
2138
|
const contents = map({});
|
|
2381
2139
|
const data = parsedOutput.body;
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
}
|
|
2140
|
+
const doc = take(data, {
|
|
2141
|
+
Message: [, __expectString, `message`],
|
|
2142
|
+
ResourceType: [, __expectString, `resourceType`],
|
|
2143
|
+
});
|
|
2144
|
+
Object.assign(contents, doc);
|
|
2388
2145
|
const exception = new NotFoundException({
|
|
2389
2146
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2390
2147
|
...contents,
|
|
@@ -2394,12 +2151,11 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2394
2151
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2395
2152
|
const contents = map({});
|
|
2396
2153
|
const data = parsedOutput.body;
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
}
|
|
2154
|
+
const doc = take(data, {
|
|
2155
|
+
LimitType: [, __expectString, `limitType`],
|
|
2156
|
+
Message: [, __expectString, `message`],
|
|
2157
|
+
});
|
|
2158
|
+
Object.assign(contents, doc);
|
|
2403
2159
|
const exception = new TooManyRequestsException({
|
|
2404
2160
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2405
2161
|
...contents,
|
|
@@ -2407,178 +2163,131 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
2407
2163
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2408
2164
|
};
|
|
2409
2165
|
const se_BackendAPIAppSyncAuthSettings = (input, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
};
|
|
2166
|
+
return take(input, {
|
|
2167
|
+
cognitoUserPoolId: [, , `CognitoUserPoolId`],
|
|
2168
|
+
description: [, , `Description`],
|
|
2169
|
+
expirationTime: [, __serializeFloat, `ExpirationTime`],
|
|
2170
|
+
openIDAuthTTL: [, , `OpenIDAuthTTL`],
|
|
2171
|
+
openIDClientId: [, , `OpenIDClientId`],
|
|
2172
|
+
openIDIatTTL: [, , `OpenIDIatTTL`],
|
|
2173
|
+
openIDIssueURL: [, , `OpenIDIssueURL`],
|
|
2174
|
+
openIDProviderName: [, , `OpenIDProviderName`],
|
|
2175
|
+
});
|
|
2420
2176
|
};
|
|
2421
2177
|
const se_BackendAPIAuthType = (input, context) => {
|
|
2422
|
-
return {
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
};
|
|
2178
|
+
return take(input, {
|
|
2179
|
+
mode: [, , `Mode`],
|
|
2180
|
+
settings: [, (_) => se_BackendAPIAppSyncAuthSettings(_, context), `Settings`],
|
|
2181
|
+
});
|
|
2426
2182
|
};
|
|
2427
2183
|
const se_BackendAPIConflictResolution = (input, context) => {
|
|
2428
|
-
return {
|
|
2429
|
-
|
|
2430
|
-
};
|
|
2184
|
+
return take(input, {
|
|
2185
|
+
resolutionStrategy: [, , `ResolutionStrategy`],
|
|
2186
|
+
});
|
|
2431
2187
|
};
|
|
2432
2188
|
const se_BackendAPIResourceConfig = (input, context) => {
|
|
2433
|
-
return {
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
...(input.DefaultAuthType != null && { defaultAuthType: se_BackendAPIAuthType(input.DefaultAuthType, context) }),
|
|
2442
|
-
...(input.Service != null && { service: input.Service }),
|
|
2443
|
-
...(input.TransformSchema != null && { transformSchema: input.TransformSchema }),
|
|
2444
|
-
};
|
|
2189
|
+
return take(input, {
|
|
2190
|
+
additionalAuthTypes: [, (_) => se_ListOfBackendAPIAuthType(_, context), `AdditionalAuthTypes`],
|
|
2191
|
+
apiName: [, , `ApiName`],
|
|
2192
|
+
conflictResolution: [, (_) => se_BackendAPIConflictResolution(_, context), `ConflictResolution`],
|
|
2193
|
+
defaultAuthType: [, (_) => se_BackendAPIAuthType(_, context), `DefaultAuthType`],
|
|
2194
|
+
service: [, , `Service`],
|
|
2195
|
+
transformSchema: [, , `TransformSchema`],
|
|
2196
|
+
});
|
|
2445
2197
|
};
|
|
2446
2198
|
const se_BackendAuthAppleProviderConfig = (input, context) => {
|
|
2447
|
-
return {
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
};
|
|
2199
|
+
return take(input, {
|
|
2200
|
+
client_id: [, , `ClientId`],
|
|
2201
|
+
key_id: [, , `KeyId`],
|
|
2202
|
+
private_key: [, , `PrivateKey`],
|
|
2203
|
+
team_id: [, , `TeamId`],
|
|
2204
|
+
});
|
|
2453
2205
|
};
|
|
2454
2206
|
const se_BackendAuthSocialProviderConfig = (input, context) => {
|
|
2455
|
-
return {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
};
|
|
2207
|
+
return take(input, {
|
|
2208
|
+
client_id: [, , `ClientId`],
|
|
2209
|
+
client_secret: [, , `ClientSecret`],
|
|
2210
|
+
});
|
|
2459
2211
|
};
|
|
2460
2212
|
const se_BackendStoragePermissions = (input, context) => {
|
|
2461
|
-
return {
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
}),
|
|
2466
|
-
};
|
|
2213
|
+
return take(input, {
|
|
2214
|
+
authenticated: [, _json, `Authenticated`],
|
|
2215
|
+
unAuthenticated: [, _json, `UnAuthenticated`],
|
|
2216
|
+
});
|
|
2467
2217
|
};
|
|
2468
2218
|
const se_CreateBackendAuthForgotPasswordConfig = (input, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
};
|
|
2219
|
+
return take(input, {
|
|
2220
|
+
deliveryMethod: [, , `DeliveryMethod`],
|
|
2221
|
+
emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
|
|
2222
|
+
smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
|
|
2223
|
+
});
|
|
2474
2224
|
};
|
|
2475
2225
|
const se_CreateBackendAuthIdentityPoolConfig = (input, context) => {
|
|
2476
|
-
return {
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
};
|
|
2226
|
+
return take(input, {
|
|
2227
|
+
identityPoolName: [, , `IdentityPoolName`],
|
|
2228
|
+
unauthenticatedLogin: [, , `UnauthenticatedLogin`],
|
|
2229
|
+
});
|
|
2480
2230
|
};
|
|
2481
2231
|
const se_CreateBackendAuthMFAConfig = (input, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
};
|
|
2232
|
+
return take(input, {
|
|
2233
|
+
MFAMode: [],
|
|
2234
|
+
settings: [, (_) => se_Settings(_, context), `Settings`],
|
|
2235
|
+
});
|
|
2486
2236
|
};
|
|
2487
2237
|
const se_CreateBackendAuthOAuthConfig = (input, context) => {
|
|
2488
|
-
return {
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
|
|
2497
|
-
}),
|
|
2498
|
-
...(input.SocialProviderSettings != null && {
|
|
2499
|
-
socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
|
|
2500
|
-
}),
|
|
2501
|
-
};
|
|
2238
|
+
return take(input, {
|
|
2239
|
+
domainPrefix: [, , `DomainPrefix`],
|
|
2240
|
+
oAuthGrantType: [, , `OAuthGrantType`],
|
|
2241
|
+
oAuthScopes: [, _json, `OAuthScopes`],
|
|
2242
|
+
redirectSignInURIs: [, _json, `RedirectSignInURIs`],
|
|
2243
|
+
redirectSignOutURIs: [, _json, `RedirectSignOutURIs`],
|
|
2244
|
+
socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`],
|
|
2245
|
+
});
|
|
2502
2246
|
};
|
|
2503
2247
|
const se_CreateBackendAuthPasswordPolicyConfig = (input, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
...(input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }),
|
|
2509
|
-
};
|
|
2248
|
+
return take(input, {
|
|
2249
|
+
additionalConstraints: [, _json, `AdditionalConstraints`],
|
|
2250
|
+
minimumLength: [, __serializeFloat, `MinimumLength`],
|
|
2251
|
+
});
|
|
2510
2252
|
};
|
|
2511
2253
|
const se_CreateBackendAuthResourceConfig = (input, context) => {
|
|
2512
|
-
return {
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
...(input.UserPoolConfigs != null && {
|
|
2519
|
-
userPoolConfigs: se_CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
|
|
2520
|
-
}),
|
|
2521
|
-
};
|
|
2254
|
+
return take(input, {
|
|
2255
|
+
authResources: [, , `AuthResources`],
|
|
2256
|
+
identityPoolConfigs: [, (_) => se_CreateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
|
|
2257
|
+
service: [, , `Service`],
|
|
2258
|
+
userPoolConfigs: [, (_) => se_CreateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`],
|
|
2259
|
+
});
|
|
2522
2260
|
};
|
|
2523
2261
|
const se_CreateBackendAuthUserPoolConfig = (input, context) => {
|
|
2524
|
-
return {
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
requiredSignUpAttributes: se_ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
|
|
2535
|
-
}),
|
|
2536
|
-
...(input.SignInMethod != null && { signInMethod: input.SignInMethod }),
|
|
2537
|
-
...(input.UserPoolName != null && { userPoolName: input.UserPoolName }),
|
|
2538
|
-
...(input.VerificationMessage != null && {
|
|
2539
|
-
verificationMessage: se_CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
|
|
2540
|
-
}),
|
|
2541
|
-
};
|
|
2262
|
+
return take(input, {
|
|
2263
|
+
forgotPassword: [, (_) => se_CreateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
|
|
2264
|
+
mfa: [, (_) => se_CreateBackendAuthMFAConfig(_, context), `Mfa`],
|
|
2265
|
+
oAuth: [, (_) => se_CreateBackendAuthOAuthConfig(_, context), `OAuth`],
|
|
2266
|
+
passwordPolicy: [, (_) => se_CreateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
|
|
2267
|
+
requiredSignUpAttributes: [, _json, `RequiredSignUpAttributes`],
|
|
2268
|
+
signInMethod: [, , `SignInMethod`],
|
|
2269
|
+
userPoolName: [, , `UserPoolName`],
|
|
2270
|
+
verificationMessage: [, (_) => se_CreateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`],
|
|
2271
|
+
});
|
|
2542
2272
|
};
|
|
2543
2273
|
const se_CreateBackendAuthVerificationMessageConfig = (input, context) => {
|
|
2544
|
-
return {
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
};
|
|
2549
|
-
};
|
|
2550
|
-
const se_CreateBackendStorageResourceConfig = (input, context) => {
|
|
2551
|
-
return {
|
|
2552
|
-
...(input.BucketName != null && { bucketName: input.BucketName }),
|
|
2553
|
-
...(input.Permissions != null && { permissions: se_BackendStoragePermissions(input.Permissions, context) }),
|
|
2554
|
-
...(input.ServiceName != null && { serviceName: input.ServiceName }),
|
|
2555
|
-
};
|
|
2556
|
-
};
|
|
2557
|
-
const se_EmailSettings = (input, context) => {
|
|
2558
|
-
return {
|
|
2559
|
-
...(input.EmailMessage != null && { emailMessage: input.EmailMessage }),
|
|
2560
|
-
...(input.EmailSubject != null && { emailSubject: input.EmailSubject }),
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
const se_ListOf__string = (input, context) => {
|
|
2564
|
-
return input
|
|
2565
|
-
.filter((e) => e != null)
|
|
2566
|
-
.map((entry) => {
|
|
2567
|
-
return entry;
|
|
2274
|
+
return take(input, {
|
|
2275
|
+
deliveryMethod: [, , `DeliveryMethod`],
|
|
2276
|
+
emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
|
|
2277
|
+
smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
|
|
2568
2278
|
});
|
|
2569
2279
|
};
|
|
2570
|
-
const
|
|
2571
|
-
return input
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2280
|
+
const se_CreateBackendStorageResourceConfig = (input, context) => {
|
|
2281
|
+
return take(input, {
|
|
2282
|
+
bucketName: [, , `BucketName`],
|
|
2283
|
+
permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
|
|
2284
|
+
serviceName: [, , `ServiceName`],
|
|
2575
2285
|
});
|
|
2576
2286
|
};
|
|
2577
|
-
const
|
|
2578
|
-
return input
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
return entry;
|
|
2287
|
+
const se_EmailSettings = (input, context) => {
|
|
2288
|
+
return take(input, {
|
|
2289
|
+
emailMessage: [, , `EmailMessage`],
|
|
2290
|
+
emailSubject: [, , `EmailSubject`],
|
|
2582
2291
|
});
|
|
2583
2292
|
};
|
|
2584
2293
|
const se_ListOfBackendAPIAuthType = (input, context) => {
|
|
@@ -2588,347 +2297,242 @@ const se_ListOfBackendAPIAuthType = (input, context) => {
|
|
|
2588
2297
|
return se_BackendAPIAuthType(entry, context);
|
|
2589
2298
|
});
|
|
2590
2299
|
};
|
|
2591
|
-
const se_ListOfMfaTypesElement = (input, context) => {
|
|
2592
|
-
return input
|
|
2593
|
-
.filter((e) => e != null)
|
|
2594
|
-
.map((entry) => {
|
|
2595
|
-
return entry;
|
|
2596
|
-
});
|
|
2597
|
-
};
|
|
2598
|
-
const se_ListOfOAuthScopesElement = (input, context) => {
|
|
2599
|
-
return input
|
|
2600
|
-
.filter((e) => e != null)
|
|
2601
|
-
.map((entry) => {
|
|
2602
|
-
return entry;
|
|
2603
|
-
});
|
|
2604
|
-
};
|
|
2605
|
-
const se_ListOfRequiredSignUpAttributesElement = (input, context) => {
|
|
2606
|
-
return input
|
|
2607
|
-
.filter((e) => e != null)
|
|
2608
|
-
.map((entry) => {
|
|
2609
|
-
return entry;
|
|
2610
|
-
});
|
|
2611
|
-
};
|
|
2612
|
-
const se_ListOfUnAuthenticatedElement = (input, context) => {
|
|
2613
|
-
return input
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
return entry;
|
|
2617
|
-
});
|
|
2618
|
-
};
|
|
2619
2300
|
const se_LoginAuthConfigReqObj = (input, context) => {
|
|
2620
|
-
return {
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
};
|
|
2626
|
-
};
|
|
2627
|
-
const se_ResourceConfig = (input, context) => {
|
|
2628
|
-
return {};
|
|
2301
|
+
return take(input, {
|
|
2302
|
+
aws_cognito_identity_pool_id: [, , `AwsCognitoIdentityPoolId`],
|
|
2303
|
+
aws_cognito_region: [, , `AwsCognitoRegion`],
|
|
2304
|
+
aws_user_pools_id: [, , `AwsUserPoolsId`],
|
|
2305
|
+
aws_user_pools_web_client_id: [, , `AwsUserPoolsWebClientId`],
|
|
2306
|
+
});
|
|
2629
2307
|
};
|
|
2630
2308
|
const se_Settings = (input, context) => {
|
|
2631
|
-
return {
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
};
|
|
2309
|
+
return take(input, {
|
|
2310
|
+
mfaTypes: [, _json, `MfaTypes`],
|
|
2311
|
+
smsMessage: [, , `SmsMessage`],
|
|
2312
|
+
});
|
|
2635
2313
|
};
|
|
2636
2314
|
const se_SmsSettings = (input, context) => {
|
|
2637
|
-
return {
|
|
2638
|
-
|
|
2639
|
-
};
|
|
2315
|
+
return take(input, {
|
|
2316
|
+
smsMessage: [, , `SmsMessage`],
|
|
2317
|
+
});
|
|
2640
2318
|
};
|
|
2641
2319
|
const se_SocialProviderSettings = (input, context) => {
|
|
2642
|
-
return {
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
...(input.SignInWithApple != null && {
|
|
2649
|
-
SignInWithApple: se_BackendAuthAppleProviderConfig(input.SignInWithApple, context),
|
|
2650
|
-
}),
|
|
2651
|
-
};
|
|
2320
|
+
return take(input, {
|
|
2321
|
+
Facebook: (_) => se_BackendAuthSocialProviderConfig(_, context),
|
|
2322
|
+
Google: (_) => se_BackendAuthSocialProviderConfig(_, context),
|
|
2323
|
+
LoginWithAmazon: (_) => se_BackendAuthSocialProviderConfig(_, context),
|
|
2324
|
+
SignInWithApple: (_) => se_BackendAuthAppleProviderConfig(_, context),
|
|
2325
|
+
});
|
|
2652
2326
|
};
|
|
2653
2327
|
const se_UpdateBackendAuthForgotPasswordConfig = (input, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
};
|
|
2328
|
+
return take(input, {
|
|
2329
|
+
deliveryMethod: [, , `DeliveryMethod`],
|
|
2330
|
+
emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
|
|
2331
|
+
smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
|
|
2332
|
+
});
|
|
2659
2333
|
};
|
|
2660
2334
|
const se_UpdateBackendAuthIdentityPoolConfig = (input, context) => {
|
|
2661
|
-
return {
|
|
2662
|
-
|
|
2663
|
-
};
|
|
2335
|
+
return take(input, {
|
|
2336
|
+
unauthenticatedLogin: [, , `UnauthenticatedLogin`],
|
|
2337
|
+
});
|
|
2664
2338
|
};
|
|
2665
2339
|
const se_UpdateBackendAuthMFAConfig = (input, context) => {
|
|
2666
|
-
return {
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
};
|
|
2340
|
+
return take(input, {
|
|
2341
|
+
MFAMode: [],
|
|
2342
|
+
settings: [, (_) => se_Settings(_, context), `Settings`],
|
|
2343
|
+
});
|
|
2670
2344
|
};
|
|
2671
2345
|
const se_UpdateBackendAuthOAuthConfig = (input, context) => {
|
|
2672
|
-
return {
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
|
|
2681
|
-
}),
|
|
2682
|
-
...(input.SocialProviderSettings != null && {
|
|
2683
|
-
socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
|
|
2684
|
-
}),
|
|
2685
|
-
};
|
|
2346
|
+
return take(input, {
|
|
2347
|
+
domainPrefix: [, , `DomainPrefix`],
|
|
2348
|
+
oAuthGrantType: [, , `OAuthGrantType`],
|
|
2349
|
+
oAuthScopes: [, _json, `OAuthScopes`],
|
|
2350
|
+
redirectSignInURIs: [, _json, `RedirectSignInURIs`],
|
|
2351
|
+
redirectSignOutURIs: [, _json, `RedirectSignOutURIs`],
|
|
2352
|
+
socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`],
|
|
2353
|
+
});
|
|
2686
2354
|
};
|
|
2687
2355
|
const se_UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
|
|
2688
|
-
return {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
...(input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }),
|
|
2693
|
-
};
|
|
2356
|
+
return take(input, {
|
|
2357
|
+
additionalConstraints: [, _json, `AdditionalConstraints`],
|
|
2358
|
+
minimumLength: [, __serializeFloat, `MinimumLength`],
|
|
2359
|
+
});
|
|
2694
2360
|
};
|
|
2695
2361
|
const se_UpdateBackendAuthResourceConfig = (input, context) => {
|
|
2696
|
-
return {
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
...(input.UserPoolConfigs != null && {
|
|
2703
|
-
userPoolConfigs: se_UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
|
|
2704
|
-
}),
|
|
2705
|
-
};
|
|
2362
|
+
return take(input, {
|
|
2363
|
+
authResources: [, , `AuthResources`],
|
|
2364
|
+
identityPoolConfigs: [, (_) => se_UpdateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
|
|
2365
|
+
service: [, , `Service`],
|
|
2366
|
+
userPoolConfigs: [, (_) => se_UpdateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`],
|
|
2367
|
+
});
|
|
2706
2368
|
};
|
|
2707
2369
|
const se_UpdateBackendAuthUserPoolConfig = (input, context) => {
|
|
2708
|
-
return {
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
passwordPolicy: se_UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
|
|
2716
|
-
}),
|
|
2717
|
-
...(input.VerificationMessage != null && {
|
|
2718
|
-
verificationMessage: se_UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
|
|
2719
|
-
}),
|
|
2720
|
-
};
|
|
2370
|
+
return take(input, {
|
|
2371
|
+
forgotPassword: [, (_) => se_UpdateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
|
|
2372
|
+
mfa: [, (_) => se_UpdateBackendAuthMFAConfig(_, context), `Mfa`],
|
|
2373
|
+
oAuth: [, (_) => se_UpdateBackendAuthOAuthConfig(_, context), `OAuth`],
|
|
2374
|
+
passwordPolicy: [, (_) => se_UpdateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
|
|
2375
|
+
verificationMessage: [, (_) => se_UpdateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`],
|
|
2376
|
+
});
|
|
2721
2377
|
};
|
|
2722
2378
|
const se_UpdateBackendAuthVerificationMessageConfig = (input, context) => {
|
|
2723
|
-
return {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
};
|
|
2379
|
+
return take(input, {
|
|
2380
|
+
deliveryMethod: [, , `DeliveryMethod`],
|
|
2381
|
+
emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
|
|
2382
|
+
smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
|
|
2383
|
+
});
|
|
2728
2384
|
};
|
|
2729
2385
|
const se_UpdateBackendStorageResourceConfig = (input, context) => {
|
|
2730
|
-
return {
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
};
|
|
2386
|
+
return take(input, {
|
|
2387
|
+
permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
|
|
2388
|
+
serviceName: [, , `ServiceName`],
|
|
2389
|
+
});
|
|
2734
2390
|
};
|
|
2735
2391
|
const de_BackendAPIAppSyncAuthSettings = (output, context) => {
|
|
2736
|
-
return {
|
|
2737
|
-
CognitoUserPoolId: __expectString
|
|
2738
|
-
Description: __expectString
|
|
2739
|
-
ExpirationTime: __limitedParseDouble
|
|
2740
|
-
OpenIDAuthTTL: __expectString
|
|
2741
|
-
OpenIDClientId: __expectString
|
|
2742
|
-
OpenIDIatTTL: __expectString
|
|
2743
|
-
OpenIDIssueURL: __expectString
|
|
2744
|
-
OpenIDProviderName: __expectString
|
|
2745
|
-
};
|
|
2392
|
+
return take(output, {
|
|
2393
|
+
CognitoUserPoolId: [, __expectString, `cognitoUserPoolId`],
|
|
2394
|
+
Description: [, __expectString, `description`],
|
|
2395
|
+
ExpirationTime: [, __limitedParseDouble, `expirationTime`],
|
|
2396
|
+
OpenIDAuthTTL: [, __expectString, `openIDAuthTTL`],
|
|
2397
|
+
OpenIDClientId: [, __expectString, `openIDClientId`],
|
|
2398
|
+
OpenIDIatTTL: [, __expectString, `openIDIatTTL`],
|
|
2399
|
+
OpenIDIssueURL: [, __expectString, `openIDIssueURL`],
|
|
2400
|
+
OpenIDProviderName: [, __expectString, `openIDProviderName`],
|
|
2401
|
+
});
|
|
2746
2402
|
};
|
|
2747
2403
|
const de_BackendAPIAuthType = (output, context) => {
|
|
2748
|
-
return {
|
|
2749
|
-
Mode: __expectString
|
|
2750
|
-
Settings:
|
|
2751
|
-
};
|
|
2404
|
+
return take(output, {
|
|
2405
|
+
Mode: [, __expectString, `mode`],
|
|
2406
|
+
Settings: (_) => [, de_BackendAPIAppSyncAuthSettings(_, context), `settings`],
|
|
2407
|
+
});
|
|
2752
2408
|
};
|
|
2753
2409
|
const de_BackendAPIConflictResolution = (output, context) => {
|
|
2754
|
-
return {
|
|
2755
|
-
ResolutionStrategy: __expectString
|
|
2756
|
-
};
|
|
2410
|
+
return take(output, {
|
|
2411
|
+
ResolutionStrategy: [, __expectString, `resolutionStrategy`],
|
|
2412
|
+
});
|
|
2757
2413
|
};
|
|
2758
2414
|
const de_BackendAPIResourceConfig = (output, context) => {
|
|
2759
|
-
return {
|
|
2760
|
-
AdditionalAuthTypes:
|
|
2761
|
-
ApiName: __expectString
|
|
2762
|
-
ConflictResolution:
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
TransformSchema: __expectString(output.transformSchema),
|
|
2768
|
-
};
|
|
2415
|
+
return take(output, {
|
|
2416
|
+
AdditionalAuthTypes: (_) => [, de_ListOfBackendAPIAuthType(_, context), `additionalAuthTypes`],
|
|
2417
|
+
ApiName: [, __expectString, `apiName`],
|
|
2418
|
+
ConflictResolution: (_) => [, de_BackendAPIConflictResolution(_, context), `conflictResolution`],
|
|
2419
|
+
DefaultAuthType: (_) => [, de_BackendAPIAuthType(_, context), `defaultAuthType`],
|
|
2420
|
+
Service: [, __expectString, `service`],
|
|
2421
|
+
TransformSchema: [, __expectString, `transformSchema`],
|
|
2422
|
+
});
|
|
2769
2423
|
};
|
|
2770
2424
|
const de_BackendAuthAppleProviderConfig = (output, context) => {
|
|
2771
|
-
return {
|
|
2772
|
-
ClientId: __expectString
|
|
2773
|
-
KeyId: __expectString
|
|
2774
|
-
PrivateKey: __expectString
|
|
2775
|
-
TeamId: __expectString
|
|
2776
|
-
};
|
|
2425
|
+
return take(output, {
|
|
2426
|
+
ClientId: [, __expectString, `client_id`],
|
|
2427
|
+
KeyId: [, __expectString, `key_id`],
|
|
2428
|
+
PrivateKey: [, __expectString, `private_key`],
|
|
2429
|
+
TeamId: [, __expectString, `team_id`],
|
|
2430
|
+
});
|
|
2777
2431
|
};
|
|
2778
2432
|
const de_BackendAuthSocialProviderConfig = (output, context) => {
|
|
2779
|
-
return {
|
|
2780
|
-
ClientId: __expectString
|
|
2781
|
-
ClientSecret: __expectString
|
|
2782
|
-
};
|
|
2433
|
+
return take(output, {
|
|
2434
|
+
ClientId: [, __expectString, `client_id`],
|
|
2435
|
+
ClientSecret: [, __expectString, `client_secret`],
|
|
2436
|
+
});
|
|
2783
2437
|
};
|
|
2784
2438
|
const de_BackendJobRespObj = (output, context) => {
|
|
2785
|
-
return {
|
|
2786
|
-
AppId: __expectString
|
|
2787
|
-
BackendEnvironmentName: __expectString
|
|
2788
|
-
CreateTime: __expectString
|
|
2789
|
-
Error: __expectString
|
|
2790
|
-
JobId: __expectString
|
|
2791
|
-
Operation: __expectString
|
|
2792
|
-
Status: __expectString
|
|
2793
|
-
UpdateTime: __expectString
|
|
2794
|
-
};
|
|
2439
|
+
return take(output, {
|
|
2440
|
+
AppId: [, __expectString, `appId`],
|
|
2441
|
+
BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
|
|
2442
|
+
CreateTime: [, __expectString, `createTime`],
|
|
2443
|
+
Error: [, __expectString, `error`],
|
|
2444
|
+
JobId: [, __expectString, `jobId`],
|
|
2445
|
+
Operation: [, __expectString, `operation`],
|
|
2446
|
+
Status: [, __expectString, `status`],
|
|
2447
|
+
UpdateTime: [, __expectString, `updateTime`],
|
|
2448
|
+
});
|
|
2795
2449
|
};
|
|
2796
2450
|
const de_BackendStoragePermissions = (output, context) => {
|
|
2797
|
-
return {
|
|
2798
|
-
Authenticated:
|
|
2799
|
-
UnAuthenticated:
|
|
2800
|
-
};
|
|
2451
|
+
return take(output, {
|
|
2452
|
+
Authenticated: [, _json, `authenticated`],
|
|
2453
|
+
UnAuthenticated: [, _json, `unAuthenticated`],
|
|
2454
|
+
});
|
|
2801
2455
|
};
|
|
2802
2456
|
const de_CreateBackendAuthForgotPasswordConfig = (output, context) => {
|
|
2803
|
-
return {
|
|
2804
|
-
DeliveryMethod: __expectString
|
|
2805
|
-
EmailSettings:
|
|
2806
|
-
SmsSettings:
|
|
2807
|
-
};
|
|
2457
|
+
return take(output, {
|
|
2458
|
+
DeliveryMethod: [, __expectString, `deliveryMethod`],
|
|
2459
|
+
EmailSettings: (_) => [, de_EmailSettings(_, context), `emailSettings`],
|
|
2460
|
+
SmsSettings: (_) => [, de_SmsSettings(_, context), `smsSettings`],
|
|
2461
|
+
});
|
|
2808
2462
|
};
|
|
2809
2463
|
const de_CreateBackendAuthIdentityPoolConfig = (output, context) => {
|
|
2810
|
-
return {
|
|
2811
|
-
IdentityPoolName: __expectString
|
|
2812
|
-
UnauthenticatedLogin: __expectBoolean
|
|
2813
|
-
};
|
|
2464
|
+
return take(output, {
|
|
2465
|
+
IdentityPoolName: [, __expectString, `identityPoolName`],
|
|
2466
|
+
UnauthenticatedLogin: [, __expectBoolean, `unauthenticatedLogin`],
|
|
2467
|
+
});
|
|
2814
2468
|
};
|
|
2815
2469
|
const de_CreateBackendAuthMFAConfig = (output, context) => {
|
|
2816
|
-
return {
|
|
2817
|
-
MFAMode: __expectString
|
|
2818
|
-
Settings:
|
|
2819
|
-
};
|
|
2470
|
+
return take(output, {
|
|
2471
|
+
MFAMode: __expectString,
|
|
2472
|
+
Settings: (_) => [, de_Settings(_, context), `settings`],
|
|
2473
|
+
});
|
|
2820
2474
|
};
|
|
2821
2475
|
const de_CreateBackendAuthOAuthConfig = (output, context) => {
|
|
2822
|
-
return {
|
|
2823
|
-
DomainPrefix: __expectString
|
|
2824
|
-
OAuthGrantType: __expectString
|
|
2825
|
-
OAuthScopes:
|
|
2826
|
-
RedirectSignInURIs:
|
|
2827
|
-
RedirectSignOutURIs:
|
|
2828
|
-
SocialProviderSettings:
|
|
2829
|
-
|
|
2830
|
-
: undefined,
|
|
2831
|
-
};
|
|
2476
|
+
return take(output, {
|
|
2477
|
+
DomainPrefix: [, __expectString, `domainPrefix`],
|
|
2478
|
+
OAuthGrantType: [, __expectString, `oAuthGrantType`],
|
|
2479
|
+
OAuthScopes: [, _json, `oAuthScopes`],
|
|
2480
|
+
RedirectSignInURIs: [, _json, `redirectSignInURIs`],
|
|
2481
|
+
RedirectSignOutURIs: [, _json, `redirectSignOutURIs`],
|
|
2482
|
+
SocialProviderSettings: (_) => [, de_SocialProviderSettings(_, context), `socialProviderSettings`],
|
|
2483
|
+
});
|
|
2832
2484
|
};
|
|
2833
2485
|
const de_CreateBackendAuthPasswordPolicyConfig = (output, context) => {
|
|
2834
|
-
return {
|
|
2835
|
-
AdditionalConstraints:
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
MinimumLength: __limitedParseDouble(output.minimumLength),
|
|
2839
|
-
};
|
|
2486
|
+
return take(output, {
|
|
2487
|
+
AdditionalConstraints: [, _json, `additionalConstraints`],
|
|
2488
|
+
MinimumLength: [, __limitedParseDouble, `minimumLength`],
|
|
2489
|
+
});
|
|
2840
2490
|
};
|
|
2841
2491
|
const de_CreateBackendAuthResourceConfig = (output, context) => {
|
|
2842
|
-
return {
|
|
2843
|
-
AuthResources: __expectString
|
|
2844
|
-
IdentityPoolConfigs:
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
UserPoolConfigs: output.userPoolConfigs != null ? de_CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context) : undefined,
|
|
2849
|
-
};
|
|
2492
|
+
return take(output, {
|
|
2493
|
+
AuthResources: [, __expectString, `authResources`],
|
|
2494
|
+
IdentityPoolConfigs: (_) => [, de_CreateBackendAuthIdentityPoolConfig(_, context), `identityPoolConfigs`],
|
|
2495
|
+
Service: [, __expectString, `service`],
|
|
2496
|
+
UserPoolConfigs: (_) => [, de_CreateBackendAuthUserPoolConfig(_, context), `userPoolConfigs`],
|
|
2497
|
+
});
|
|
2850
2498
|
};
|
|
2851
2499
|
const de_CreateBackendAuthUserPoolConfig = (output, context) => {
|
|
2852
|
-
return {
|
|
2853
|
-
ForgotPassword:
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
? de_ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
|
|
2863
|
-
: undefined,
|
|
2864
|
-
SignInMethod: __expectString(output.signInMethod),
|
|
2865
|
-
UserPoolName: __expectString(output.userPoolName),
|
|
2866
|
-
VerificationMessage: output.verificationMessage != null
|
|
2867
|
-
? de_CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
|
|
2868
|
-
: undefined,
|
|
2869
|
-
};
|
|
2500
|
+
return take(output, {
|
|
2501
|
+
ForgotPassword: (_) => [, de_CreateBackendAuthForgotPasswordConfig(_, context), `forgotPassword`],
|
|
2502
|
+
Mfa: (_) => [, de_CreateBackendAuthMFAConfig(_, context), `mfa`],
|
|
2503
|
+
OAuth: (_) => [, de_CreateBackendAuthOAuthConfig(_, context), `oAuth`],
|
|
2504
|
+
PasswordPolicy: (_) => [, de_CreateBackendAuthPasswordPolicyConfig(_, context), `passwordPolicy`],
|
|
2505
|
+
RequiredSignUpAttributes: [, _json, `requiredSignUpAttributes`],
|
|
2506
|
+
SignInMethod: [, __expectString, `signInMethod`],
|
|
2507
|
+
UserPoolName: [, __expectString, `userPoolName`],
|
|
2508
|
+
VerificationMessage: (_) => [, de_CreateBackendAuthVerificationMessageConfig(_, context), `verificationMessage`],
|
|
2509
|
+
});
|
|
2870
2510
|
};
|
|
2871
2511
|
const de_CreateBackendAuthVerificationMessageConfig = (output, context) => {
|
|
2872
|
-
return {
|
|
2873
|
-
DeliveryMethod: __expectString
|
|
2874
|
-
EmailSettings:
|
|
2875
|
-
SmsSettings:
|
|
2876
|
-
};
|
|
2512
|
+
return take(output, {
|
|
2513
|
+
DeliveryMethod: [, __expectString, `deliveryMethod`],
|
|
2514
|
+
EmailSettings: (_) => [, de_EmailSettings(_, context), `emailSettings`],
|
|
2515
|
+
SmsSettings: (_) => [, de_SmsSettings(_, context), `smsSettings`],
|
|
2516
|
+
});
|
|
2877
2517
|
};
|
|
2878
2518
|
const de_EmailSettings = (output, context) => {
|
|
2879
|
-
return {
|
|
2880
|
-
EmailMessage: __expectString
|
|
2881
|
-
EmailSubject: __expectString
|
|
2882
|
-
};
|
|
2883
|
-
};
|
|
2884
|
-
const de_GetBackendStorageResourceConfig = (output, context) => {
|
|
2885
|
-
return {
|
|
2886
|
-
BucketName: __expectString(output.bucketName),
|
|
2887
|
-
Imported: __expectBoolean(output.imported),
|
|
2888
|
-
Permissions: output.permissions != null ? de_BackendStoragePermissions(output.permissions, context) : undefined,
|
|
2889
|
-
ServiceName: __expectString(output.serviceName),
|
|
2890
|
-
};
|
|
2891
|
-
};
|
|
2892
|
-
const de_ListOf__string = (output, context) => {
|
|
2893
|
-
const retVal = (output || [])
|
|
2894
|
-
.filter((e) => e != null)
|
|
2895
|
-
.map((entry) => {
|
|
2896
|
-
if (entry === null) {
|
|
2897
|
-
return null;
|
|
2898
|
-
}
|
|
2899
|
-
return __expectString(entry);
|
|
2519
|
+
return take(output, {
|
|
2520
|
+
EmailMessage: [, __expectString, `emailMessage`],
|
|
2521
|
+
EmailSubject: [, __expectString, `emailSubject`],
|
|
2900
2522
|
});
|
|
2901
|
-
return retVal;
|
|
2902
2523
|
};
|
|
2903
|
-
const
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
}
|
|
2910
|
-
return __expectString(entry);
|
|
2911
|
-
});
|
|
2912
|
-
return retVal;
|
|
2913
|
-
};
|
|
2914
|
-
const de_ListOfAuthenticatedElement = (output, context) => {
|
|
2915
|
-
const retVal = (output || [])
|
|
2916
|
-
.filter((e) => e != null)
|
|
2917
|
-
.map((entry) => {
|
|
2918
|
-
if (entry === null) {
|
|
2919
|
-
return null;
|
|
2920
|
-
}
|
|
2921
|
-
return __expectString(entry);
|
|
2524
|
+
const de_GetBackendStorageResourceConfig = (output, context) => {
|
|
2525
|
+
return take(output, {
|
|
2526
|
+
BucketName: [, __expectString, `bucketName`],
|
|
2527
|
+
Imported: [, __expectBoolean, `imported`],
|
|
2528
|
+
Permissions: (_) => [, de_BackendStoragePermissions(_, context), `permissions`],
|
|
2529
|
+
ServiceName: [, __expectString, `serviceName`],
|
|
2922
2530
|
});
|
|
2923
|
-
return retVal;
|
|
2924
2531
|
};
|
|
2925
2532
|
const de_ListOfBackendAPIAuthType = (output, context) => {
|
|
2926
2533
|
const retVal = (output || [])
|
|
2927
2534
|
.filter((e) => e != null)
|
|
2928
2535
|
.map((entry) => {
|
|
2929
|
-
if (entry === null) {
|
|
2930
|
-
return null;
|
|
2931
|
-
}
|
|
2932
2536
|
return de_BackendAPIAuthType(entry, context);
|
|
2933
2537
|
});
|
|
2934
2538
|
return retVal;
|
|
@@ -2937,100 +2541,50 @@ const de_ListOfBackendJobRespObj = (output, context) => {
|
|
|
2937
2541
|
const retVal = (output || [])
|
|
2938
2542
|
.filter((e) => e != null)
|
|
2939
2543
|
.map((entry) => {
|
|
2940
|
-
if (entry === null) {
|
|
2941
|
-
return null;
|
|
2942
|
-
}
|
|
2943
2544
|
return de_BackendJobRespObj(entry, context);
|
|
2944
2545
|
});
|
|
2945
2546
|
return retVal;
|
|
2946
2547
|
};
|
|
2947
|
-
const de_ListOfMfaTypesElement = (output, context) => {
|
|
2948
|
-
const retVal = (output || [])
|
|
2949
|
-
.filter((e) => e != null)
|
|
2950
|
-
.map((entry) => {
|
|
2951
|
-
if (entry === null) {
|
|
2952
|
-
return null;
|
|
2953
|
-
}
|
|
2954
|
-
return __expectString(entry);
|
|
2955
|
-
});
|
|
2956
|
-
return retVal;
|
|
2957
|
-
};
|
|
2958
|
-
const de_ListOfOAuthScopesElement = (output, context) => {
|
|
2959
|
-
const retVal = (output || [])
|
|
2960
|
-
.filter((e) => e != null)
|
|
2961
|
-
.map((entry) => {
|
|
2962
|
-
if (entry === null) {
|
|
2963
|
-
return null;
|
|
2964
|
-
}
|
|
2965
|
-
return __expectString(entry);
|
|
2966
|
-
});
|
|
2967
|
-
return retVal;
|
|
2968
|
-
};
|
|
2969
|
-
const de_ListOfRequiredSignUpAttributesElement = (output, context) => {
|
|
2970
|
-
const retVal = (output || [])
|
|
2971
|
-
.filter((e) => e != null)
|
|
2972
|
-
.map((entry) => {
|
|
2973
|
-
if (entry === null) {
|
|
2974
|
-
return null;
|
|
2975
|
-
}
|
|
2976
|
-
return __expectString(entry);
|
|
2977
|
-
});
|
|
2978
|
-
return retVal;
|
|
2979
|
-
};
|
|
2980
2548
|
const de_ListOfS3BucketInfo = (output, context) => {
|
|
2981
2549
|
const retVal = (output || [])
|
|
2982
2550
|
.filter((e) => e != null)
|
|
2983
2551
|
.map((entry) => {
|
|
2984
|
-
if (entry === null) {
|
|
2985
|
-
return null;
|
|
2986
|
-
}
|
|
2987
2552
|
return de_S3BucketInfo(entry, context);
|
|
2988
2553
|
});
|
|
2989
2554
|
return retVal;
|
|
2990
2555
|
};
|
|
2991
|
-
const de_ListOfUnAuthenticatedElement = (output, context) => {
|
|
2992
|
-
const retVal = (output || [])
|
|
2993
|
-
.filter((e) => e != null)
|
|
2994
|
-
.map((entry) => {
|
|
2995
|
-
if (entry === null) {
|
|
2996
|
-
return null;
|
|
2997
|
-
}
|
|
2998
|
-
return __expectString(entry);
|
|
2999
|
-
});
|
|
3000
|
-
return retVal;
|
|
3001
|
-
};
|
|
3002
2556
|
const de_LoginAuthConfigReqObj = (output, context) => {
|
|
3003
|
-
return {
|
|
3004
|
-
AwsCognitoIdentityPoolId: __expectString
|
|
3005
|
-
AwsCognitoRegion: __expectString
|
|
3006
|
-
AwsUserPoolsId: __expectString
|
|
3007
|
-
AwsUserPoolsWebClientId: __expectString
|
|
3008
|
-
};
|
|
2557
|
+
return take(output, {
|
|
2558
|
+
AwsCognitoIdentityPoolId: [, __expectString, `aws_cognito_identity_pool_id`],
|
|
2559
|
+
AwsCognitoRegion: [, __expectString, `aws_cognito_region`],
|
|
2560
|
+
AwsUserPoolsId: [, __expectString, `aws_user_pools_id`],
|
|
2561
|
+
AwsUserPoolsWebClientId: [, __expectString, `aws_user_pools_web_client_id`],
|
|
2562
|
+
});
|
|
3009
2563
|
};
|
|
3010
2564
|
const de_S3BucketInfo = (output, context) => {
|
|
3011
|
-
return {
|
|
3012
|
-
CreationDate: __expectString
|
|
3013
|
-
Name: __expectString
|
|
3014
|
-
};
|
|
2565
|
+
return take(output, {
|
|
2566
|
+
CreationDate: [, __expectString, `creationDate`],
|
|
2567
|
+
Name: [, __expectString, `name`],
|
|
2568
|
+
});
|
|
3015
2569
|
};
|
|
3016
2570
|
const de_Settings = (output, context) => {
|
|
3017
|
-
return {
|
|
3018
|
-
MfaTypes:
|
|
3019
|
-
SmsMessage: __expectString
|
|
3020
|
-
};
|
|
2571
|
+
return take(output, {
|
|
2572
|
+
MfaTypes: [, _json, `mfaTypes`],
|
|
2573
|
+
SmsMessage: [, __expectString, `smsMessage`],
|
|
2574
|
+
});
|
|
3021
2575
|
};
|
|
3022
2576
|
const de_SmsSettings = (output, context) => {
|
|
3023
|
-
return {
|
|
3024
|
-
SmsMessage: __expectString
|
|
3025
|
-
};
|
|
2577
|
+
return take(output, {
|
|
2578
|
+
SmsMessage: [, __expectString, `smsMessage`],
|
|
2579
|
+
});
|
|
3026
2580
|
};
|
|
3027
2581
|
const de_SocialProviderSettings = (output, context) => {
|
|
3028
|
-
return {
|
|
3029
|
-
Facebook:
|
|
3030
|
-
Google:
|
|
3031
|
-
LoginWithAmazon:
|
|
3032
|
-
SignInWithApple:
|
|
3033
|
-
};
|
|
2582
|
+
return take(output, {
|
|
2583
|
+
Facebook: (_) => de_BackendAuthSocialProviderConfig(_, context),
|
|
2584
|
+
Google: (_) => de_BackendAuthSocialProviderConfig(_, context),
|
|
2585
|
+
LoginWithAmazon: (_) => de_BackendAuthSocialProviderConfig(_, context),
|
|
2586
|
+
SignInWithApple: (_) => de_BackendAuthAppleProviderConfig(_, context),
|
|
2587
|
+
});
|
|
3034
2588
|
};
|
|
3035
2589
|
const deserializeMetadata = (output) => ({
|
|
3036
2590
|
httpStatusCode: output.statusCode,
|