@aws-sdk/client-amplifybackend 3.303.0 → 3.309.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.
Files changed (67) hide show
  1. package/dist-cjs/commands/CloneBackendCommand.js +2 -2
  2. package/dist-cjs/commands/CreateBackendAPICommand.js +2 -2
  3. package/dist-cjs/commands/CreateBackendAuthCommand.js +2 -2
  4. package/dist-cjs/commands/CreateBackendCommand.js +2 -2
  5. package/dist-cjs/commands/CreateBackendConfigCommand.js +2 -2
  6. package/dist-cjs/commands/CreateBackendStorageCommand.js +2 -2
  7. package/dist-cjs/commands/CreateTokenCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteBackendAPICommand.js +2 -2
  9. package/dist-cjs/commands/DeleteBackendAuthCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteBackendCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteBackendStorageCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteTokenCommand.js +2 -2
  13. package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +2 -2
  14. package/dist-cjs/commands/GetBackendAPICommand.js +2 -2
  15. package/dist-cjs/commands/GetBackendAPIModelsCommand.js +2 -2
  16. package/dist-cjs/commands/GetBackendAuthCommand.js +2 -2
  17. package/dist-cjs/commands/GetBackendCommand.js +2 -2
  18. package/dist-cjs/commands/GetBackendJobCommand.js +2 -2
  19. package/dist-cjs/commands/GetBackendStorageCommand.js +2 -2
  20. package/dist-cjs/commands/GetTokenCommand.js +2 -2
  21. package/dist-cjs/commands/ImportBackendAuthCommand.js +2 -2
  22. package/dist-cjs/commands/ImportBackendStorageCommand.js +2 -2
  23. package/dist-cjs/commands/ListBackendJobsCommand.js +2 -2
  24. package/dist-cjs/commands/ListS3BucketsCommand.js +2 -2
  25. package/dist-cjs/commands/RemoveAllBackendsCommand.js +2 -2
  26. package/dist-cjs/commands/RemoveBackendConfigCommand.js +2 -2
  27. package/dist-cjs/commands/UpdateBackendAPICommand.js +2 -2
  28. package/dist-cjs/commands/UpdateBackendAuthCommand.js +2 -2
  29. package/dist-cjs/commands/UpdateBackendConfigCommand.js +2 -2
  30. package/dist-cjs/commands/UpdateBackendJobCommand.js +2 -2
  31. package/dist-cjs/commands/UpdateBackendStorageCommand.js +2 -2
  32. package/dist-cjs/protocols/Aws_restJson1.js +487 -553
  33. package/dist-es/commands/CloneBackendCommand.js +3 -3
  34. package/dist-es/commands/CreateBackendAPICommand.js +3 -3
  35. package/dist-es/commands/CreateBackendAuthCommand.js +3 -3
  36. package/dist-es/commands/CreateBackendCommand.js +3 -3
  37. package/dist-es/commands/CreateBackendConfigCommand.js +3 -3
  38. package/dist-es/commands/CreateBackendStorageCommand.js +3 -3
  39. package/dist-es/commands/CreateTokenCommand.js +3 -3
  40. package/dist-es/commands/DeleteBackendAPICommand.js +3 -3
  41. package/dist-es/commands/DeleteBackendAuthCommand.js +3 -3
  42. package/dist-es/commands/DeleteBackendCommand.js +3 -3
  43. package/dist-es/commands/DeleteBackendStorageCommand.js +3 -3
  44. package/dist-es/commands/DeleteTokenCommand.js +3 -3
  45. package/dist-es/commands/GenerateBackendAPIModelsCommand.js +3 -3
  46. package/dist-es/commands/GetBackendAPICommand.js +3 -3
  47. package/dist-es/commands/GetBackendAPIModelsCommand.js +3 -3
  48. package/dist-es/commands/GetBackendAuthCommand.js +3 -3
  49. package/dist-es/commands/GetBackendCommand.js +3 -3
  50. package/dist-es/commands/GetBackendJobCommand.js +3 -3
  51. package/dist-es/commands/GetBackendStorageCommand.js +3 -3
  52. package/dist-es/commands/GetTokenCommand.js +3 -3
  53. package/dist-es/commands/ImportBackendAuthCommand.js +3 -3
  54. package/dist-es/commands/ImportBackendStorageCommand.js +3 -3
  55. package/dist-es/commands/ListBackendJobsCommand.js +3 -3
  56. package/dist-es/commands/ListS3BucketsCommand.js +3 -3
  57. package/dist-es/commands/RemoveAllBackendsCommand.js +3 -3
  58. package/dist-es/commands/RemoveBackendConfigCommand.js +3 -3
  59. package/dist-es/commands/UpdateBackendAPICommand.js +3 -3
  60. package/dist-es/commands/UpdateBackendAuthCommand.js +3 -3
  61. package/dist-es/commands/UpdateBackendConfigCommand.js +3 -3
  62. package/dist-es/commands/UpdateBackendJobCommand.js +3 -3
  63. package/dist-es/commands/UpdateBackendStorageCommand.js +3 -3
  64. package/dist-es/protocols/Aws_restJson1.js +423 -489
  65. package/dist-types/protocols/Aws_restJson1.d.ts +248 -62
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +62 -62
  67. package/package.json +29 -29
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } 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
- export const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
5
+ export const se_CloneBackendCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -25,7 +25,7 @@ export const serializeAws_restJson1CloneBackendCommand = async (input, context)
25
25
  body,
26
26
  });
27
27
  };
28
- export const serializeAws_restJson1CreateBackendCommand = async (input, context) => {
28
+ export const se_CreateBackendCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
30
  const headers = {
31
31
  "content-type": "application/json",
@@ -36,9 +36,7 @@ export const serializeAws_restJson1CreateBackendCommand = async (input, context)
36
36
  ...(input.AppId != null && { appId: input.AppId }),
37
37
  ...(input.AppName != null && { appName: input.AppName }),
38
38
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
39
- ...(input.ResourceConfig != null && {
40
- resourceConfig: serializeAws_restJson1ResourceConfig(input.ResourceConfig, context),
41
- }),
39
+ ...(input.ResourceConfig != null && { resourceConfig: se_ResourceConfig(input.ResourceConfig, context) }),
42
40
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
43
41
  });
44
42
  return new __HttpRequest({
@@ -51,7 +49,7 @@ export const serializeAws_restJson1CreateBackendCommand = async (input, context)
51
49
  body,
52
50
  });
53
51
  };
54
- export const serializeAws_restJson1CreateBackendAPICommand = async (input, context) => {
52
+ export const se_CreateBackendAPICommand = async (input, context) => {
55
53
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
54
  const headers = {
57
55
  "content-type": "application/json",
@@ -61,9 +59,7 @@ export const serializeAws_restJson1CreateBackendAPICommand = async (input, conte
61
59
  let body;
62
60
  body = JSON.stringify({
63
61
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
64
- ...(input.ResourceConfig != null && {
65
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
66
- }),
62
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
67
63
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
68
64
  });
69
65
  return new __HttpRequest({
@@ -76,7 +72,7 @@ export const serializeAws_restJson1CreateBackendAPICommand = async (input, conte
76
72
  body,
77
73
  });
78
74
  };
79
- export const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) => {
75
+ export const se_CreateBackendAuthCommand = async (input, context) => {
80
76
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
77
  const headers = {
82
78
  "content-type": "application/json",
@@ -87,7 +83,7 @@ export const serializeAws_restJson1CreateBackendAuthCommand = async (input, cont
87
83
  body = JSON.stringify({
88
84
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
89
85
  ...(input.ResourceConfig != null && {
90
- resourceConfig: serializeAws_restJson1CreateBackendAuthResourceConfig(input.ResourceConfig, context),
86
+ resourceConfig: se_CreateBackendAuthResourceConfig(input.ResourceConfig, context),
91
87
  }),
92
88
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
93
89
  });
@@ -101,7 +97,7 @@ export const serializeAws_restJson1CreateBackendAuthCommand = async (input, cont
101
97
  body,
102
98
  });
103
99
  };
104
- export const serializeAws_restJson1CreateBackendConfigCommand = async (input, context) => {
100
+ export const se_CreateBackendConfigCommand = async (input, context) => {
105
101
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
102
  const headers = {
107
103
  "content-type": "application/json",
@@ -122,7 +118,7 @@ export const serializeAws_restJson1CreateBackendConfigCommand = async (input, co
122
118
  body,
123
119
  });
124
120
  };
125
- export const serializeAws_restJson1CreateBackendStorageCommand = async (input, context) => {
121
+ export const se_CreateBackendStorageCommand = async (input, context) => {
126
122
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
123
  const headers = {
128
124
  "content-type": "application/json",
@@ -133,7 +129,7 @@ export const serializeAws_restJson1CreateBackendStorageCommand = async (input, c
133
129
  body = JSON.stringify({
134
130
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
135
131
  ...(input.ResourceConfig != null && {
136
- resourceConfig: serializeAws_restJson1CreateBackendStorageResourceConfig(input.ResourceConfig, context),
132
+ resourceConfig: se_CreateBackendStorageResourceConfig(input.ResourceConfig, context),
137
133
  }),
138
134
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
139
135
  });
@@ -147,7 +143,7 @@ export const serializeAws_restJson1CreateBackendStorageCommand = async (input, c
147
143
  body,
148
144
  });
149
145
  };
150
- export const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
146
+ export const se_CreateTokenCommand = async (input, context) => {
151
147
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
148
  const headers = {};
153
149
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge";
@@ -163,7 +159,7 @@ export const serializeAws_restJson1CreateTokenCommand = async (input, context) =
163
159
  body,
164
160
  });
165
161
  };
166
- export const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
162
+ export const se_DeleteBackendCommand = async (input, context) => {
167
163
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
164
  const headers = {};
169
165
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -181,7 +177,7 @@ export const serializeAws_restJson1DeleteBackendCommand = async (input, context)
181
177
  body,
182
178
  });
183
179
  };
184
- export const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) => {
180
+ export const se_DeleteBackendAPICommand = async (input, context) => {
185
181
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
182
  const headers = {
187
183
  "content-type": "application/json",
@@ -192,9 +188,7 @@ export const serializeAws_restJson1DeleteBackendAPICommand = async (input, conte
192
188
  resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
193
189
  let body;
194
190
  body = JSON.stringify({
195
- ...(input.ResourceConfig != null && {
196
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
197
- }),
191
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
198
192
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
199
193
  });
200
194
  return new __HttpRequest({
@@ -207,7 +201,7 @@ export const serializeAws_restJson1DeleteBackendAPICommand = async (input, conte
207
201
  body,
208
202
  });
209
203
  };
210
- export const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) => {
204
+ export const se_DeleteBackendAuthCommand = async (input, context) => {
211
205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
206
  const headers = {
213
207
  "content-type": "application/json",
@@ -230,7 +224,7 @@ export const serializeAws_restJson1DeleteBackendAuthCommand = async (input, cont
230
224
  body,
231
225
  });
232
226
  };
233
- export const serializeAws_restJson1DeleteBackendStorageCommand = async (input, context) => {
227
+ export const se_DeleteBackendStorageCommand = async (input, context) => {
234
228
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
229
  const headers = {
236
230
  "content-type": "application/json",
@@ -254,7 +248,7 @@ export const serializeAws_restJson1DeleteBackendStorageCommand = async (input, c
254
248
  body,
255
249
  });
256
250
  };
257
- export const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
251
+ export const se_DeleteTokenCommand = async (input, context) => {
258
252
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
259
253
  const headers = {};
260
254
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -272,7 +266,7 @@ export const serializeAws_restJson1DeleteTokenCommand = async (input, context) =
272
266
  body,
273
267
  });
274
268
  };
275
- export const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, context) => {
269
+ export const se_GenerateBackendAPIModelsCommand = async (input, context) => {
276
270
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
271
  const headers = {
278
272
  "content-type": "application/json",
@@ -295,7 +289,7 @@ export const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (inpu
295
289
  body,
296
290
  });
297
291
  };
298
- export const serializeAws_restJson1GetBackendCommand = async (input, context) => {
292
+ export const se_GetBackendCommand = async (input, context) => {
299
293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
294
  const headers = {
301
295
  "content-type": "application/json",
@@ -316,7 +310,7 @@ export const serializeAws_restJson1GetBackendCommand = async (input, context) =>
316
310
  body,
317
311
  });
318
312
  };
319
- export const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
313
+ export const se_GetBackendAPICommand = async (input, context) => {
320
314
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
315
  const headers = {
322
316
  "content-type": "application/json",
@@ -327,9 +321,7 @@ export const serializeAws_restJson1GetBackendAPICommand = async (input, context)
327
321
  resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
328
322
  let body;
329
323
  body = JSON.stringify({
330
- ...(input.ResourceConfig != null && {
331
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
332
- }),
324
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
333
325
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
334
326
  });
335
327
  return new __HttpRequest({
@@ -342,7 +334,7 @@ export const serializeAws_restJson1GetBackendAPICommand = async (input, context)
342
334
  body,
343
335
  });
344
336
  };
345
- export const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context) => {
337
+ export const se_GetBackendAPIModelsCommand = async (input, context) => {
346
338
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
339
  const headers = {
348
340
  "content-type": "application/json",
@@ -365,7 +357,7 @@ export const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, co
365
357
  body,
366
358
  });
367
359
  };
368
- export const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
360
+ export const se_GetBackendAuthCommand = async (input, context) => {
369
361
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
362
  const headers = {
371
363
  "content-type": "application/json",
@@ -388,7 +380,7 @@ export const serializeAws_restJson1GetBackendAuthCommand = async (input, context
388
380
  body,
389
381
  });
390
382
  };
391
- export const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
383
+ export const se_GetBackendJobCommand = async (input, context) => {
392
384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
385
  const headers = {};
394
386
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -407,7 +399,7 @@ export const serializeAws_restJson1GetBackendJobCommand = async (input, context)
407
399
  body,
408
400
  });
409
401
  };
410
- export const serializeAws_restJson1GetBackendStorageCommand = async (input, context) => {
402
+ export const se_GetBackendStorageCommand = async (input, context) => {
411
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
404
  const headers = {
413
405
  "content-type": "application/json",
@@ -430,7 +422,7 @@ export const serializeAws_restJson1GetBackendStorageCommand = async (input, cont
430
422
  body,
431
423
  });
432
424
  };
433
- export const serializeAws_restJson1GetTokenCommand = async (input, context) => {
425
+ export const se_GetTokenCommand = async (input, context) => {
434
426
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
435
427
  const headers = {};
436
428
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge/{SessionId}";
@@ -447,7 +439,7 @@ export const serializeAws_restJson1GetTokenCommand = async (input, context) => {
447
439
  body,
448
440
  });
449
441
  };
450
- export const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) => {
442
+ export const se_ImportBackendAuthCommand = async (input, context) => {
451
443
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
444
  const headers = {
453
445
  "content-type": "application/json",
@@ -473,7 +465,7 @@ export const serializeAws_restJson1ImportBackendAuthCommand = async (input, cont
473
465
  body,
474
466
  });
475
467
  };
476
- export const serializeAws_restJson1ImportBackendStorageCommand = async (input, context) => {
468
+ export const se_ImportBackendStorageCommand = async (input, context) => {
477
469
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
470
  const headers = {
479
471
  "content-type": "application/json",
@@ -497,7 +489,7 @@ export const serializeAws_restJson1ImportBackendStorageCommand = async (input, c
497
489
  body,
498
490
  });
499
491
  };
500
- export const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
492
+ export const se_ListBackendJobsCommand = async (input, context) => {
501
493
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
502
494
  const headers = {
503
495
  "content-type": "application/json",
@@ -524,7 +516,7 @@ export const serializeAws_restJson1ListBackendJobsCommand = async (input, contex
524
516
  body,
525
517
  });
526
518
  };
527
- export const serializeAws_restJson1ListS3BucketsCommand = async (input, context) => {
519
+ export const se_ListS3BucketsCommand = async (input, context) => {
528
520
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
529
521
  const headers = {
530
522
  "content-type": "application/json",
@@ -544,7 +536,7 @@ export const serializeAws_restJson1ListS3BucketsCommand = async (input, context)
544
536
  body,
545
537
  });
546
538
  };
547
- export const serializeAws_restJson1RemoveAllBackendsCommand = async (input, context) => {
539
+ export const se_RemoveAllBackendsCommand = async (input, context) => {
548
540
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
549
541
  const headers = {
550
542
  "content-type": "application/json",
@@ -565,7 +557,7 @@ export const serializeAws_restJson1RemoveAllBackendsCommand = async (input, cont
565
557
  body,
566
558
  });
567
559
  };
568
- export const serializeAws_restJson1RemoveBackendConfigCommand = async (input, context) => {
560
+ export const se_RemoveBackendConfigCommand = async (input, context) => {
569
561
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
562
  const headers = {};
571
563
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config/remove";
@@ -581,7 +573,7 @@ export const serializeAws_restJson1RemoveBackendConfigCommand = async (input, co
581
573
  body,
582
574
  });
583
575
  };
584
- export const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) => {
576
+ export const se_UpdateBackendAPICommand = async (input, context) => {
585
577
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
586
578
  const headers = {
587
579
  "content-type": "application/json",
@@ -592,9 +584,7 @@ export const serializeAws_restJson1UpdateBackendAPICommand = async (input, conte
592
584
  resolvedPath = __resolvedPath(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
593
585
  let body;
594
586
  body = JSON.stringify({
595
- ...(input.ResourceConfig != null && {
596
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
597
- }),
587
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
598
588
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
599
589
  });
600
590
  return new __HttpRequest({
@@ -607,7 +597,7 @@ export const serializeAws_restJson1UpdateBackendAPICommand = async (input, conte
607
597
  body,
608
598
  });
609
599
  };
610
- export const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) => {
600
+ export const se_UpdateBackendAuthCommand = async (input, context) => {
611
601
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
612
602
  const headers = {
613
603
  "content-type": "application/json",
@@ -619,7 +609,7 @@ export const serializeAws_restJson1UpdateBackendAuthCommand = async (input, cont
619
609
  let body;
620
610
  body = JSON.stringify({
621
611
  ...(input.ResourceConfig != null && {
622
- resourceConfig: serializeAws_restJson1UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
612
+ resourceConfig: se_UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
623
613
  }),
624
614
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
625
615
  });
@@ -633,7 +623,7 @@ export const serializeAws_restJson1UpdateBackendAuthCommand = async (input, cont
633
623
  body,
634
624
  });
635
625
  };
636
- export const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context) => {
626
+ export const se_UpdateBackendConfigCommand = async (input, context) => {
637
627
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
638
628
  const headers = {
639
629
  "content-type": "application/json",
@@ -642,9 +632,7 @@ export const serializeAws_restJson1UpdateBackendConfigCommand = async (input, co
642
632
  resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
643
633
  let body;
644
634
  body = JSON.stringify({
645
- ...(input.LoginAuthConfig != null && {
646
- loginAuthConfig: serializeAws_restJson1LoginAuthConfigReqObj(input.LoginAuthConfig, context),
647
- }),
635
+ ...(input.LoginAuthConfig != null && { loginAuthConfig: se_LoginAuthConfigReqObj(input.LoginAuthConfig, context) }),
648
636
  });
649
637
  return new __HttpRequest({
650
638
  protocol,
@@ -656,7 +644,7 @@ export const serializeAws_restJson1UpdateBackendConfigCommand = async (input, co
656
644
  body,
657
645
  });
658
646
  };
659
- export const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) => {
647
+ export const se_UpdateBackendJobCommand = async (input, context) => {
660
648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
661
649
  const headers = {
662
650
  "content-type": "application/json",
@@ -681,7 +669,7 @@ export const serializeAws_restJson1UpdateBackendJobCommand = async (input, conte
681
669
  body,
682
670
  });
683
671
  };
684
- export const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context) => {
672
+ export const se_UpdateBackendStorageCommand = async (input, context) => {
685
673
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
686
674
  const headers = {
687
675
  "content-type": "application/json",
@@ -693,7 +681,7 @@ export const serializeAws_restJson1UpdateBackendStorageCommand = async (input, c
693
681
  let body;
694
682
  body = JSON.stringify({
695
683
  ...(input.ResourceConfig != null && {
696
- resourceConfig: serializeAws_restJson1UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
684
+ resourceConfig: se_UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
697
685
  }),
698
686
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
699
687
  });
@@ -707,9 +695,9 @@ export const serializeAws_restJson1UpdateBackendStorageCommand = async (input, c
707
695
  body,
708
696
  });
709
697
  };
710
- export const deserializeAws_restJson1CloneBackendCommand = async (output, context) => {
698
+ export const de_CloneBackendCommand = async (output, context) => {
711
699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
712
- return deserializeAws_restJson1CloneBackendCommandError(output, context);
700
+ return de_CloneBackendCommandError(output, context);
713
701
  }
714
702
  const contents = map({
715
703
  $metadata: deserializeMetadata(output),
@@ -735,7 +723,7 @@ export const deserializeAws_restJson1CloneBackendCommand = async (output, contex
735
723
  }
736
724
  return contents;
737
725
  };
738
- const deserializeAws_restJson1CloneBackendCommandError = async (output, context) => {
726
+ const de_CloneBackendCommandError = async (output, context) => {
739
727
  const parsedOutput = {
740
728
  ...output,
741
729
  body: await parseErrorBody(output.body, context),
@@ -744,16 +732,16 @@ const deserializeAws_restJson1CloneBackendCommandError = async (output, context)
744
732
  switch (errorCode) {
745
733
  case "BadRequestException":
746
734
  case "com.amazonaws.amplifybackend#BadRequestException":
747
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
735
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
748
736
  case "GatewayTimeoutException":
749
737
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
750
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
738
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
751
739
  case "NotFoundException":
752
740
  case "com.amazonaws.amplifybackend#NotFoundException":
753
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
741
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
754
742
  case "TooManyRequestsException":
755
743
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
756
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
744
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
757
745
  default:
758
746
  const parsedBody = parsedOutput.body;
759
747
  throwDefaultError({
@@ -764,9 +752,9 @@ const deserializeAws_restJson1CloneBackendCommandError = async (output, context)
764
752
  });
765
753
  }
766
754
  };
767
- export const deserializeAws_restJson1CreateBackendCommand = async (output, context) => {
755
+ export const de_CreateBackendCommand = async (output, context) => {
768
756
  if (output.statusCode !== 200 && output.statusCode >= 300) {
769
- return deserializeAws_restJson1CreateBackendCommandError(output, context);
757
+ return de_CreateBackendCommandError(output, context);
770
758
  }
771
759
  const contents = map({
772
760
  $metadata: deserializeMetadata(output),
@@ -792,7 +780,7 @@ export const deserializeAws_restJson1CreateBackendCommand = async (output, conte
792
780
  }
793
781
  return contents;
794
782
  };
795
- const deserializeAws_restJson1CreateBackendCommandError = async (output, context) => {
783
+ const de_CreateBackendCommandError = async (output, context) => {
796
784
  const parsedOutput = {
797
785
  ...output,
798
786
  body: await parseErrorBody(output.body, context),
@@ -801,16 +789,16 @@ const deserializeAws_restJson1CreateBackendCommandError = async (output, context
801
789
  switch (errorCode) {
802
790
  case "BadRequestException":
803
791
  case "com.amazonaws.amplifybackend#BadRequestException":
804
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
792
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
805
793
  case "GatewayTimeoutException":
806
794
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
807
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
795
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
808
796
  case "NotFoundException":
809
797
  case "com.amazonaws.amplifybackend#NotFoundException":
810
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
798
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
811
799
  case "TooManyRequestsException":
812
800
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
813
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
801
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
814
802
  default:
815
803
  const parsedBody = parsedOutput.body;
816
804
  throwDefaultError({
@@ -821,9 +809,9 @@ const deserializeAws_restJson1CreateBackendCommandError = async (output, context
821
809
  });
822
810
  }
823
811
  };
824
- export const deserializeAws_restJson1CreateBackendAPICommand = async (output, context) => {
812
+ export const de_CreateBackendAPICommand = async (output, context) => {
825
813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
826
- return deserializeAws_restJson1CreateBackendAPICommandError(output, context);
814
+ return de_CreateBackendAPICommandError(output, context);
827
815
  }
828
816
  const contents = map({
829
817
  $metadata: deserializeMetadata(output),
@@ -849,7 +837,7 @@ export const deserializeAws_restJson1CreateBackendAPICommand = async (output, co
849
837
  }
850
838
  return contents;
851
839
  };
852
- const deserializeAws_restJson1CreateBackendAPICommandError = async (output, context) => {
840
+ const de_CreateBackendAPICommandError = async (output, context) => {
853
841
  const parsedOutput = {
854
842
  ...output,
855
843
  body: await parseErrorBody(output.body, context),
@@ -858,16 +846,16 @@ const deserializeAws_restJson1CreateBackendAPICommandError = async (output, cont
858
846
  switch (errorCode) {
859
847
  case "BadRequestException":
860
848
  case "com.amazonaws.amplifybackend#BadRequestException":
861
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
849
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
862
850
  case "GatewayTimeoutException":
863
851
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
864
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
852
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
865
853
  case "NotFoundException":
866
854
  case "com.amazonaws.amplifybackend#NotFoundException":
867
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
855
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
868
856
  case "TooManyRequestsException":
869
857
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
870
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
858
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
871
859
  default:
872
860
  const parsedBody = parsedOutput.body;
873
861
  throwDefaultError({
@@ -878,9 +866,9 @@ const deserializeAws_restJson1CreateBackendAPICommandError = async (output, cont
878
866
  });
879
867
  }
880
868
  };
881
- export const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context) => {
869
+ export const de_CreateBackendAuthCommand = async (output, context) => {
882
870
  if (output.statusCode !== 200 && output.statusCode >= 300) {
883
- return deserializeAws_restJson1CreateBackendAuthCommandError(output, context);
871
+ return de_CreateBackendAuthCommandError(output, context);
884
872
  }
885
873
  const contents = map({
886
874
  $metadata: deserializeMetadata(output),
@@ -906,7 +894,7 @@ export const deserializeAws_restJson1CreateBackendAuthCommand = async (output, c
906
894
  }
907
895
  return contents;
908
896
  };
909
- const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, context) => {
897
+ const de_CreateBackendAuthCommandError = async (output, context) => {
910
898
  const parsedOutput = {
911
899
  ...output,
912
900
  body: await parseErrorBody(output.body, context),
@@ -915,16 +903,16 @@ const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, con
915
903
  switch (errorCode) {
916
904
  case "BadRequestException":
917
905
  case "com.amazonaws.amplifybackend#BadRequestException":
918
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
906
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
919
907
  case "GatewayTimeoutException":
920
908
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
921
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
909
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
922
910
  case "NotFoundException":
923
911
  case "com.amazonaws.amplifybackend#NotFoundException":
924
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
912
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
925
913
  case "TooManyRequestsException":
926
914
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
927
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
915
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
928
916
  default:
929
917
  const parsedBody = parsedOutput.body;
930
918
  throwDefaultError({
@@ -935,9 +923,9 @@ const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, con
935
923
  });
936
924
  }
937
925
  };
938
- export const deserializeAws_restJson1CreateBackendConfigCommand = async (output, context) => {
926
+ export const de_CreateBackendConfigCommand = async (output, context) => {
939
927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
940
- return deserializeAws_restJson1CreateBackendConfigCommandError(output, context);
928
+ return de_CreateBackendConfigCommandError(output, context);
941
929
  }
942
930
  const contents = map({
943
931
  $metadata: deserializeMetadata(output),
@@ -957,7 +945,7 @@ export const deserializeAws_restJson1CreateBackendConfigCommand = async (output,
957
945
  }
958
946
  return contents;
959
947
  };
960
- const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, context) => {
948
+ const de_CreateBackendConfigCommandError = async (output, context) => {
961
949
  const parsedOutput = {
962
950
  ...output,
963
951
  body: await parseErrorBody(output.body, context),
@@ -966,16 +954,16 @@ const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, c
966
954
  switch (errorCode) {
967
955
  case "BadRequestException":
968
956
  case "com.amazonaws.amplifybackend#BadRequestException":
969
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
957
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
970
958
  case "GatewayTimeoutException":
971
959
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
972
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
960
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
973
961
  case "NotFoundException":
974
962
  case "com.amazonaws.amplifybackend#NotFoundException":
975
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
963
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
976
964
  case "TooManyRequestsException":
977
965
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
978
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
966
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
979
967
  default:
980
968
  const parsedBody = parsedOutput.body;
981
969
  throwDefaultError({
@@ -986,9 +974,9 @@ const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, c
986
974
  });
987
975
  }
988
976
  };
989
- export const deserializeAws_restJson1CreateBackendStorageCommand = async (output, context) => {
977
+ export const de_CreateBackendStorageCommand = async (output, context) => {
990
978
  if (output.statusCode !== 200 && output.statusCode >= 300) {
991
- return deserializeAws_restJson1CreateBackendStorageCommandError(output, context);
979
+ return de_CreateBackendStorageCommandError(output, context);
992
980
  }
993
981
  const contents = map({
994
982
  $metadata: deserializeMetadata(output),
@@ -1008,7 +996,7 @@ export const deserializeAws_restJson1CreateBackendStorageCommand = async (output
1008
996
  }
1009
997
  return contents;
1010
998
  };
1011
- const deserializeAws_restJson1CreateBackendStorageCommandError = async (output, context) => {
999
+ const de_CreateBackendStorageCommandError = async (output, context) => {
1012
1000
  const parsedOutput = {
1013
1001
  ...output,
1014
1002
  body: await parseErrorBody(output.body, context),
@@ -1017,16 +1005,16 @@ const deserializeAws_restJson1CreateBackendStorageCommandError = async (output,
1017
1005
  switch (errorCode) {
1018
1006
  case "BadRequestException":
1019
1007
  case "com.amazonaws.amplifybackend#BadRequestException":
1020
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1008
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1021
1009
  case "GatewayTimeoutException":
1022
1010
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1023
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1011
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1024
1012
  case "NotFoundException":
1025
1013
  case "com.amazonaws.amplifybackend#NotFoundException":
1026
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1014
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1027
1015
  case "TooManyRequestsException":
1028
1016
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1029
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1017
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1030
1018
  default:
1031
1019
  const parsedBody = parsedOutput.body;
1032
1020
  throwDefaultError({
@@ -1037,9 +1025,9 @@ const deserializeAws_restJson1CreateBackendStorageCommandError = async (output,
1037
1025
  });
1038
1026
  }
1039
1027
  };
1040
- export const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
1028
+ export const de_CreateTokenCommand = async (output, context) => {
1041
1029
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1042
- return deserializeAws_restJson1CreateTokenCommandError(output, context);
1030
+ return de_CreateTokenCommandError(output, context);
1043
1031
  }
1044
1032
  const contents = map({
1045
1033
  $metadata: deserializeMetadata(output),
@@ -1059,7 +1047,7 @@ export const deserializeAws_restJson1CreateTokenCommand = async (output, context
1059
1047
  }
1060
1048
  return contents;
1061
1049
  };
1062
- const deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
1050
+ const de_CreateTokenCommandError = async (output, context) => {
1063
1051
  const parsedOutput = {
1064
1052
  ...output,
1065
1053
  body: await parseErrorBody(output.body, context),
@@ -1068,16 +1056,16 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
1068
1056
  switch (errorCode) {
1069
1057
  case "BadRequestException":
1070
1058
  case "com.amazonaws.amplifybackend#BadRequestException":
1071
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1059
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1072
1060
  case "GatewayTimeoutException":
1073
1061
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1074
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1062
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1075
1063
  case "NotFoundException":
1076
1064
  case "com.amazonaws.amplifybackend#NotFoundException":
1077
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1065
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1078
1066
  case "TooManyRequestsException":
1079
1067
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1080
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1068
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1081
1069
  default:
1082
1070
  const parsedBody = parsedOutput.body;
1083
1071
  throwDefaultError({
@@ -1088,9 +1076,9 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
1088
1076
  });
1089
1077
  }
1090
1078
  };
1091
- export const deserializeAws_restJson1DeleteBackendCommand = async (output, context) => {
1079
+ export const de_DeleteBackendCommand = async (output, context) => {
1092
1080
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1093
- return deserializeAws_restJson1DeleteBackendCommandError(output, context);
1081
+ return de_DeleteBackendCommandError(output, context);
1094
1082
  }
1095
1083
  const contents = map({
1096
1084
  $metadata: deserializeMetadata(output),
@@ -1116,7 +1104,7 @@ export const deserializeAws_restJson1DeleteBackendCommand = async (output, conte
1116
1104
  }
1117
1105
  return contents;
1118
1106
  };
1119
- const deserializeAws_restJson1DeleteBackendCommandError = async (output, context) => {
1107
+ const de_DeleteBackendCommandError = async (output, context) => {
1120
1108
  const parsedOutput = {
1121
1109
  ...output,
1122
1110
  body: await parseErrorBody(output.body, context),
@@ -1125,16 +1113,16 @@ const deserializeAws_restJson1DeleteBackendCommandError = async (output, context
1125
1113
  switch (errorCode) {
1126
1114
  case "BadRequestException":
1127
1115
  case "com.amazonaws.amplifybackend#BadRequestException":
1128
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1116
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1129
1117
  case "GatewayTimeoutException":
1130
1118
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1131
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1119
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1132
1120
  case "NotFoundException":
1133
1121
  case "com.amazonaws.amplifybackend#NotFoundException":
1134
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1122
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1135
1123
  case "TooManyRequestsException":
1136
1124
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1137
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1125
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1138
1126
  default:
1139
1127
  const parsedBody = parsedOutput.body;
1140
1128
  throwDefaultError({
@@ -1145,9 +1133,9 @@ const deserializeAws_restJson1DeleteBackendCommandError = async (output, context
1145
1133
  });
1146
1134
  }
1147
1135
  };
1148
- export const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context) => {
1136
+ export const de_DeleteBackendAPICommand = async (output, context) => {
1149
1137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1150
- return deserializeAws_restJson1DeleteBackendAPICommandError(output, context);
1138
+ return de_DeleteBackendAPICommandError(output, context);
1151
1139
  }
1152
1140
  const contents = map({
1153
1141
  $metadata: deserializeMetadata(output),
@@ -1173,7 +1161,7 @@ export const deserializeAws_restJson1DeleteBackendAPICommand = async (output, co
1173
1161
  }
1174
1162
  return contents;
1175
1163
  };
1176
- const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, context) => {
1164
+ const de_DeleteBackendAPICommandError = async (output, context) => {
1177
1165
  const parsedOutput = {
1178
1166
  ...output,
1179
1167
  body: await parseErrorBody(output.body, context),
@@ -1182,16 +1170,16 @@ const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, cont
1182
1170
  switch (errorCode) {
1183
1171
  case "BadRequestException":
1184
1172
  case "com.amazonaws.amplifybackend#BadRequestException":
1185
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1173
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1186
1174
  case "GatewayTimeoutException":
1187
1175
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1188
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1176
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1189
1177
  case "NotFoundException":
1190
1178
  case "com.amazonaws.amplifybackend#NotFoundException":
1191
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1179
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1192
1180
  case "TooManyRequestsException":
1193
1181
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1194
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1182
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1195
1183
  default:
1196
1184
  const parsedBody = parsedOutput.body;
1197
1185
  throwDefaultError({
@@ -1202,9 +1190,9 @@ const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, cont
1202
1190
  });
1203
1191
  }
1204
1192
  };
1205
- export const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context) => {
1193
+ export const de_DeleteBackendAuthCommand = async (output, context) => {
1206
1194
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
- return deserializeAws_restJson1DeleteBackendAuthCommandError(output, context);
1195
+ return de_DeleteBackendAuthCommandError(output, context);
1208
1196
  }
1209
1197
  const contents = map({
1210
1198
  $metadata: deserializeMetadata(output),
@@ -1230,7 +1218,7 @@ export const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, c
1230
1218
  }
1231
1219
  return contents;
1232
1220
  };
1233
- const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, context) => {
1221
+ const de_DeleteBackendAuthCommandError = async (output, context) => {
1234
1222
  const parsedOutput = {
1235
1223
  ...output,
1236
1224
  body: await parseErrorBody(output.body, context),
@@ -1239,16 +1227,16 @@ const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, con
1239
1227
  switch (errorCode) {
1240
1228
  case "BadRequestException":
1241
1229
  case "com.amazonaws.amplifybackend#BadRequestException":
1242
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1230
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1243
1231
  case "GatewayTimeoutException":
1244
1232
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1245
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1233
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1246
1234
  case "NotFoundException":
1247
1235
  case "com.amazonaws.amplifybackend#NotFoundException":
1248
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1236
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1249
1237
  case "TooManyRequestsException":
1250
1238
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1251
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1239
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1252
1240
  default:
1253
1241
  const parsedBody = parsedOutput.body;
1254
1242
  throwDefaultError({
@@ -1259,9 +1247,9 @@ const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, con
1259
1247
  });
1260
1248
  }
1261
1249
  };
1262
- export const deserializeAws_restJson1DeleteBackendStorageCommand = async (output, context) => {
1250
+ export const de_DeleteBackendStorageCommand = async (output, context) => {
1263
1251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1264
- return deserializeAws_restJson1DeleteBackendStorageCommandError(output, context);
1252
+ return de_DeleteBackendStorageCommandError(output, context);
1265
1253
  }
1266
1254
  const contents = map({
1267
1255
  $metadata: deserializeMetadata(output),
@@ -1281,7 +1269,7 @@ export const deserializeAws_restJson1DeleteBackendStorageCommand = async (output
1281
1269
  }
1282
1270
  return contents;
1283
1271
  };
1284
- const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output, context) => {
1272
+ const de_DeleteBackendStorageCommandError = async (output, context) => {
1285
1273
  const parsedOutput = {
1286
1274
  ...output,
1287
1275
  body: await parseErrorBody(output.body, context),
@@ -1290,16 +1278,16 @@ const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output,
1290
1278
  switch (errorCode) {
1291
1279
  case "BadRequestException":
1292
1280
  case "com.amazonaws.amplifybackend#BadRequestException":
1293
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1281
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1294
1282
  case "GatewayTimeoutException":
1295
1283
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1296
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1284
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1297
1285
  case "NotFoundException":
1298
1286
  case "com.amazonaws.amplifybackend#NotFoundException":
1299
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1287
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1300
1288
  case "TooManyRequestsException":
1301
1289
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1302
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1290
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1303
1291
  default:
1304
1292
  const parsedBody = parsedOutput.body;
1305
1293
  throwDefaultError({
@@ -1310,9 +1298,9 @@ const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output,
1310
1298
  });
1311
1299
  }
1312
1300
  };
1313
- export const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
1301
+ export const de_DeleteTokenCommand = async (output, context) => {
1314
1302
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1315
- return deserializeAws_restJson1DeleteTokenCommandError(output, context);
1303
+ return de_DeleteTokenCommandError(output, context);
1316
1304
  }
1317
1305
  const contents = map({
1318
1306
  $metadata: deserializeMetadata(output),
@@ -1323,7 +1311,7 @@ export const deserializeAws_restJson1DeleteTokenCommand = async (output, context
1323
1311
  }
1324
1312
  return contents;
1325
1313
  };
1326
- const deserializeAws_restJson1DeleteTokenCommandError = async (output, context) => {
1314
+ const de_DeleteTokenCommandError = async (output, context) => {
1327
1315
  const parsedOutput = {
1328
1316
  ...output,
1329
1317
  body: await parseErrorBody(output.body, context),
@@ -1332,16 +1320,16 @@ const deserializeAws_restJson1DeleteTokenCommandError = async (output, context)
1332
1320
  switch (errorCode) {
1333
1321
  case "BadRequestException":
1334
1322
  case "com.amazonaws.amplifybackend#BadRequestException":
1335
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1323
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1336
1324
  case "GatewayTimeoutException":
1337
1325
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1338
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1326
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1339
1327
  case "NotFoundException":
1340
1328
  case "com.amazonaws.amplifybackend#NotFoundException":
1341
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1329
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1342
1330
  case "TooManyRequestsException":
1343
1331
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1344
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1332
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1345
1333
  default:
1346
1334
  const parsedBody = parsedOutput.body;
1347
1335
  throwDefaultError({
@@ -1352,9 +1340,9 @@ const deserializeAws_restJson1DeleteTokenCommandError = async (output, context)
1352
1340
  });
1353
1341
  }
1354
1342
  };
1355
- export const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, context) => {
1343
+ export const de_GenerateBackendAPIModelsCommand = async (output, context) => {
1356
1344
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1357
- return deserializeAws_restJson1GenerateBackendAPIModelsCommandError(output, context);
1345
+ return de_GenerateBackendAPIModelsCommandError(output, context);
1358
1346
  }
1359
1347
  const contents = map({
1360
1348
  $metadata: deserializeMetadata(output),
@@ -1380,7 +1368,7 @@ export const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (ou
1380
1368
  }
1381
1369
  return contents;
1382
1370
  };
1383
- const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (output, context) => {
1371
+ const de_GenerateBackendAPIModelsCommandError = async (output, context) => {
1384
1372
  const parsedOutput = {
1385
1373
  ...output,
1386
1374
  body: await parseErrorBody(output.body, context),
@@ -1389,16 +1377,16 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (outp
1389
1377
  switch (errorCode) {
1390
1378
  case "BadRequestException":
1391
1379
  case "com.amazonaws.amplifybackend#BadRequestException":
1392
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1380
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1393
1381
  case "GatewayTimeoutException":
1394
1382
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1395
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1383
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1396
1384
  case "NotFoundException":
1397
1385
  case "com.amazonaws.amplifybackend#NotFoundException":
1398
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1386
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1399
1387
  case "TooManyRequestsException":
1400
1388
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1401
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1389
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1402
1390
  default:
1403
1391
  const parsedBody = parsedOutput.body;
1404
1392
  throwDefaultError({
@@ -1409,9 +1397,9 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (outp
1409
1397
  });
1410
1398
  }
1411
1399
  };
1412
- export const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
1400
+ export const de_GetBackendCommand = async (output, context) => {
1413
1401
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1414
- return deserializeAws_restJson1GetBackendCommandError(output, context);
1402
+ return de_GetBackendCommandError(output, context);
1415
1403
  }
1416
1404
  const contents = map({
1417
1405
  $metadata: deserializeMetadata(output),
@@ -1430,7 +1418,7 @@ export const deserializeAws_restJson1GetBackendCommand = async (output, context)
1430
1418
  contents.AppName = __expectString(data.appName);
1431
1419
  }
1432
1420
  if (data.backendEnvironmentList != null) {
1433
- contents.BackendEnvironmentList = deserializeAws_restJson1ListOf__string(data.backendEnvironmentList, context);
1421
+ contents.BackendEnvironmentList = de_ListOf__string(data.backendEnvironmentList, context);
1434
1422
  }
1435
1423
  if (data.backendEnvironmentName != null) {
1436
1424
  contents.BackendEnvironmentName = __expectString(data.backendEnvironmentName);
@@ -1440,7 +1428,7 @@ export const deserializeAws_restJson1GetBackendCommand = async (output, context)
1440
1428
  }
1441
1429
  return contents;
1442
1430
  };
1443
- const deserializeAws_restJson1GetBackendCommandError = async (output, context) => {
1431
+ const de_GetBackendCommandError = async (output, context) => {
1444
1432
  const parsedOutput = {
1445
1433
  ...output,
1446
1434
  body: await parseErrorBody(output.body, context),
@@ -1449,16 +1437,16 @@ const deserializeAws_restJson1GetBackendCommandError = async (output, context) =
1449
1437
  switch (errorCode) {
1450
1438
  case "BadRequestException":
1451
1439
  case "com.amazonaws.amplifybackend#BadRequestException":
1452
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1440
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1453
1441
  case "GatewayTimeoutException":
1454
1442
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1455
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1443
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1456
1444
  case "NotFoundException":
1457
1445
  case "com.amazonaws.amplifybackend#NotFoundException":
1458
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1446
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1459
1447
  case "TooManyRequestsException":
1460
1448
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1461
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1449
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1462
1450
  default:
1463
1451
  const parsedBody = parsedOutput.body;
1464
1452
  throwDefaultError({
@@ -1469,9 +1457,9 @@ const deserializeAws_restJson1GetBackendCommandError = async (output, context) =
1469
1457
  });
1470
1458
  }
1471
1459
  };
1472
- export const deserializeAws_restJson1GetBackendAPICommand = async (output, context) => {
1460
+ export const de_GetBackendAPICommand = async (output, context) => {
1473
1461
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
- return deserializeAws_restJson1GetBackendAPICommandError(output, context);
1462
+ return de_GetBackendAPICommandError(output, context);
1475
1463
  }
1476
1464
  const contents = map({
1477
1465
  $metadata: deserializeMetadata(output),
@@ -1487,14 +1475,14 @@ export const deserializeAws_restJson1GetBackendAPICommand = async (output, conte
1487
1475
  contents.Error = __expectString(data.error);
1488
1476
  }
1489
1477
  if (data.resourceConfig != null) {
1490
- contents.ResourceConfig = deserializeAws_restJson1BackendAPIResourceConfig(data.resourceConfig, context);
1478
+ contents.ResourceConfig = de_BackendAPIResourceConfig(data.resourceConfig, context);
1491
1479
  }
1492
1480
  if (data.resourceName != null) {
1493
1481
  contents.ResourceName = __expectString(data.resourceName);
1494
1482
  }
1495
1483
  return contents;
1496
1484
  };
1497
- const deserializeAws_restJson1GetBackendAPICommandError = async (output, context) => {
1485
+ const de_GetBackendAPICommandError = async (output, context) => {
1498
1486
  const parsedOutput = {
1499
1487
  ...output,
1500
1488
  body: await parseErrorBody(output.body, context),
@@ -1503,16 +1491,16 @@ const deserializeAws_restJson1GetBackendAPICommandError = async (output, context
1503
1491
  switch (errorCode) {
1504
1492
  case "BadRequestException":
1505
1493
  case "com.amazonaws.amplifybackend#BadRequestException":
1506
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1494
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1507
1495
  case "GatewayTimeoutException":
1508
1496
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1509
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1497
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1510
1498
  case "NotFoundException":
1511
1499
  case "com.amazonaws.amplifybackend#NotFoundException":
1512
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1500
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1513
1501
  case "TooManyRequestsException":
1514
1502
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1515
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1503
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1516
1504
  default:
1517
1505
  const parsedBody = parsedOutput.body;
1518
1506
  throwDefaultError({
@@ -1523,9 +1511,9 @@ const deserializeAws_restJson1GetBackendAPICommandError = async (output, context
1523
1511
  });
1524
1512
  }
1525
1513
  };
1526
- export const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, context) => {
1514
+ export const de_GetBackendAPIModelsCommand = async (output, context) => {
1527
1515
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1528
- return deserializeAws_restJson1GetBackendAPIModelsCommandError(output, context);
1516
+ return de_GetBackendAPIModelsCommandError(output, context);
1529
1517
  }
1530
1518
  const contents = map({
1531
1519
  $metadata: deserializeMetadata(output),
@@ -1542,7 +1530,7 @@ export const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output,
1542
1530
  }
1543
1531
  return contents;
1544
1532
  };
1545
- const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, context) => {
1533
+ const de_GetBackendAPIModelsCommandError = async (output, context) => {
1546
1534
  const parsedOutput = {
1547
1535
  ...output,
1548
1536
  body: await parseErrorBody(output.body, context),
@@ -1551,16 +1539,16 @@ const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, c
1551
1539
  switch (errorCode) {
1552
1540
  case "BadRequestException":
1553
1541
  case "com.amazonaws.amplifybackend#BadRequestException":
1554
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1542
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1555
1543
  case "GatewayTimeoutException":
1556
1544
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1557
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1545
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1558
1546
  case "NotFoundException":
1559
1547
  case "com.amazonaws.amplifybackend#NotFoundException":
1560
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1548
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1561
1549
  case "TooManyRequestsException":
1562
1550
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1563
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1551
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1564
1552
  default:
1565
1553
  const parsedBody = parsedOutput.body;
1566
1554
  throwDefaultError({
@@ -1571,9 +1559,9 @@ const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, c
1571
1559
  });
1572
1560
  }
1573
1561
  };
1574
- export const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) => {
1562
+ export const de_GetBackendAuthCommand = async (output, context) => {
1575
1563
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1576
- return deserializeAws_restJson1GetBackendAuthCommandError(output, context);
1564
+ return de_GetBackendAuthCommandError(output, context);
1577
1565
  }
1578
1566
  const contents = map({
1579
1567
  $metadata: deserializeMetadata(output),
@@ -1589,14 +1577,14 @@ export const deserializeAws_restJson1GetBackendAuthCommand = async (output, cont
1589
1577
  contents.Error = __expectString(data.error);
1590
1578
  }
1591
1579
  if (data.resourceConfig != null) {
1592
- contents.ResourceConfig = deserializeAws_restJson1CreateBackendAuthResourceConfig(data.resourceConfig, context);
1580
+ contents.ResourceConfig = de_CreateBackendAuthResourceConfig(data.resourceConfig, context);
1593
1581
  }
1594
1582
  if (data.resourceName != null) {
1595
1583
  contents.ResourceName = __expectString(data.resourceName);
1596
1584
  }
1597
1585
  return contents;
1598
1586
  };
1599
- const deserializeAws_restJson1GetBackendAuthCommandError = async (output, context) => {
1587
+ const de_GetBackendAuthCommandError = async (output, context) => {
1600
1588
  const parsedOutput = {
1601
1589
  ...output,
1602
1590
  body: await parseErrorBody(output.body, context),
@@ -1605,16 +1593,16 @@ const deserializeAws_restJson1GetBackendAuthCommandError = async (output, contex
1605
1593
  switch (errorCode) {
1606
1594
  case "BadRequestException":
1607
1595
  case "com.amazonaws.amplifybackend#BadRequestException":
1608
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1596
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1609
1597
  case "GatewayTimeoutException":
1610
1598
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1611
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1599
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1612
1600
  case "NotFoundException":
1613
1601
  case "com.amazonaws.amplifybackend#NotFoundException":
1614
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1602
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1615
1603
  case "TooManyRequestsException":
1616
1604
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1617
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1605
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1618
1606
  default:
1619
1607
  const parsedBody = parsedOutput.body;
1620
1608
  throwDefaultError({
@@ -1625,9 +1613,9 @@ const deserializeAws_restJson1GetBackendAuthCommandError = async (output, contex
1625
1613
  });
1626
1614
  }
1627
1615
  };
1628
- export const deserializeAws_restJson1GetBackendJobCommand = async (output, context) => {
1616
+ export const de_GetBackendJobCommand = async (output, context) => {
1629
1617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1630
- return deserializeAws_restJson1GetBackendJobCommandError(output, context);
1618
+ return de_GetBackendJobCommandError(output, context);
1631
1619
  }
1632
1620
  const contents = map({
1633
1621
  $metadata: deserializeMetadata(output),
@@ -1659,7 +1647,7 @@ export const deserializeAws_restJson1GetBackendJobCommand = async (output, conte
1659
1647
  }
1660
1648
  return contents;
1661
1649
  };
1662
- const deserializeAws_restJson1GetBackendJobCommandError = async (output, context) => {
1650
+ const de_GetBackendJobCommandError = async (output, context) => {
1663
1651
  const parsedOutput = {
1664
1652
  ...output,
1665
1653
  body: await parseErrorBody(output.body, context),
@@ -1668,16 +1656,16 @@ const deserializeAws_restJson1GetBackendJobCommandError = async (output, context
1668
1656
  switch (errorCode) {
1669
1657
  case "BadRequestException":
1670
1658
  case "com.amazonaws.amplifybackend#BadRequestException":
1671
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1659
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1672
1660
  case "GatewayTimeoutException":
1673
1661
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1674
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1662
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1675
1663
  case "NotFoundException":
1676
1664
  case "com.amazonaws.amplifybackend#NotFoundException":
1677
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1665
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1678
1666
  case "TooManyRequestsException":
1679
1667
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1680
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1668
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1681
1669
  default:
1682
1670
  const parsedBody = parsedOutput.body;
1683
1671
  throwDefaultError({
@@ -1688,9 +1676,9 @@ const deserializeAws_restJson1GetBackendJobCommandError = async (output, context
1688
1676
  });
1689
1677
  }
1690
1678
  };
1691
- export const deserializeAws_restJson1GetBackendStorageCommand = async (output, context) => {
1679
+ export const de_GetBackendStorageCommand = async (output, context) => {
1692
1680
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1693
- return deserializeAws_restJson1GetBackendStorageCommandError(output, context);
1681
+ return de_GetBackendStorageCommandError(output, context);
1694
1682
  }
1695
1683
  const contents = map({
1696
1684
  $metadata: deserializeMetadata(output),
@@ -1703,14 +1691,14 @@ export const deserializeAws_restJson1GetBackendStorageCommand = async (output, c
1703
1691
  contents.BackendEnvironmentName = __expectString(data.backendEnvironmentName);
1704
1692
  }
1705
1693
  if (data.resourceConfig != null) {
1706
- contents.ResourceConfig = deserializeAws_restJson1GetBackendStorageResourceConfig(data.resourceConfig, context);
1694
+ contents.ResourceConfig = de_GetBackendStorageResourceConfig(data.resourceConfig, context);
1707
1695
  }
1708
1696
  if (data.resourceName != null) {
1709
1697
  contents.ResourceName = __expectString(data.resourceName);
1710
1698
  }
1711
1699
  return contents;
1712
1700
  };
1713
- const deserializeAws_restJson1GetBackendStorageCommandError = async (output, context) => {
1701
+ const de_GetBackendStorageCommandError = async (output, context) => {
1714
1702
  const parsedOutput = {
1715
1703
  ...output,
1716
1704
  body: await parseErrorBody(output.body, context),
@@ -1719,16 +1707,16 @@ const deserializeAws_restJson1GetBackendStorageCommandError = async (output, con
1719
1707
  switch (errorCode) {
1720
1708
  case "BadRequestException":
1721
1709
  case "com.amazonaws.amplifybackend#BadRequestException":
1722
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1710
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1723
1711
  case "GatewayTimeoutException":
1724
1712
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1725
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1713
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1726
1714
  case "NotFoundException":
1727
1715
  case "com.amazonaws.amplifybackend#NotFoundException":
1728
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1716
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1729
1717
  case "TooManyRequestsException":
1730
1718
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1731
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1719
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1732
1720
  default:
1733
1721
  const parsedBody = parsedOutput.body;
1734
1722
  throwDefaultError({
@@ -1739,9 +1727,9 @@ const deserializeAws_restJson1GetBackendStorageCommandError = async (output, con
1739
1727
  });
1740
1728
  }
1741
1729
  };
1742
- export const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
1730
+ export const de_GetTokenCommand = async (output, context) => {
1743
1731
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return deserializeAws_restJson1GetTokenCommandError(output, context);
1732
+ return de_GetTokenCommandError(output, context);
1745
1733
  }
1746
1734
  const contents = map({
1747
1735
  $metadata: deserializeMetadata(output),
@@ -1761,7 +1749,7 @@ export const deserializeAws_restJson1GetTokenCommand = async (output, context) =
1761
1749
  }
1762
1750
  return contents;
1763
1751
  };
1764
- const deserializeAws_restJson1GetTokenCommandError = async (output, context) => {
1752
+ const de_GetTokenCommandError = async (output, context) => {
1765
1753
  const parsedOutput = {
1766
1754
  ...output,
1767
1755
  body: await parseErrorBody(output.body, context),
@@ -1770,16 +1758,16 @@ const deserializeAws_restJson1GetTokenCommandError = async (output, context) =>
1770
1758
  switch (errorCode) {
1771
1759
  case "BadRequestException":
1772
1760
  case "com.amazonaws.amplifybackend#BadRequestException":
1773
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1761
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1774
1762
  case "GatewayTimeoutException":
1775
1763
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1776
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1764
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1777
1765
  case "NotFoundException":
1778
1766
  case "com.amazonaws.amplifybackend#NotFoundException":
1779
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1767
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1780
1768
  case "TooManyRequestsException":
1781
1769
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1782
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1770
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1783
1771
  default:
1784
1772
  const parsedBody = parsedOutput.body;
1785
1773
  throwDefaultError({
@@ -1790,9 +1778,9 @@ const deserializeAws_restJson1GetTokenCommandError = async (output, context) =>
1790
1778
  });
1791
1779
  }
1792
1780
  };
1793
- export const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context) => {
1781
+ export const de_ImportBackendAuthCommand = async (output, context) => {
1794
1782
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1795
- return deserializeAws_restJson1ImportBackendAuthCommandError(output, context);
1783
+ return de_ImportBackendAuthCommandError(output, context);
1796
1784
  }
1797
1785
  const contents = map({
1798
1786
  $metadata: deserializeMetadata(output),
@@ -1818,7 +1806,7 @@ export const deserializeAws_restJson1ImportBackendAuthCommand = async (output, c
1818
1806
  }
1819
1807
  return contents;
1820
1808
  };
1821
- const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, context) => {
1809
+ const de_ImportBackendAuthCommandError = async (output, context) => {
1822
1810
  const parsedOutput = {
1823
1811
  ...output,
1824
1812
  body: await parseErrorBody(output.body, context),
@@ -1827,16 +1815,16 @@ const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, con
1827
1815
  switch (errorCode) {
1828
1816
  case "BadRequestException":
1829
1817
  case "com.amazonaws.amplifybackend#BadRequestException":
1830
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1818
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1831
1819
  case "GatewayTimeoutException":
1832
1820
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1833
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1821
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1834
1822
  case "NotFoundException":
1835
1823
  case "com.amazonaws.amplifybackend#NotFoundException":
1836
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1824
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1837
1825
  case "TooManyRequestsException":
1838
1826
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1839
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1827
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1840
1828
  default:
1841
1829
  const parsedBody = parsedOutput.body;
1842
1830
  throwDefaultError({
@@ -1847,9 +1835,9 @@ const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, con
1847
1835
  });
1848
1836
  }
1849
1837
  };
1850
- export const deserializeAws_restJson1ImportBackendStorageCommand = async (output, context) => {
1838
+ export const de_ImportBackendStorageCommand = async (output, context) => {
1851
1839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1852
- return deserializeAws_restJson1ImportBackendStorageCommandError(output, context);
1840
+ return de_ImportBackendStorageCommandError(output, context);
1853
1841
  }
1854
1842
  const contents = map({
1855
1843
  $metadata: deserializeMetadata(output),
@@ -1869,7 +1857,7 @@ export const deserializeAws_restJson1ImportBackendStorageCommand = async (output
1869
1857
  }
1870
1858
  return contents;
1871
1859
  };
1872
- const deserializeAws_restJson1ImportBackendStorageCommandError = async (output, context) => {
1860
+ const de_ImportBackendStorageCommandError = async (output, context) => {
1873
1861
  const parsedOutput = {
1874
1862
  ...output,
1875
1863
  body: await parseErrorBody(output.body, context),
@@ -1878,16 +1866,16 @@ const deserializeAws_restJson1ImportBackendStorageCommandError = async (output,
1878
1866
  switch (errorCode) {
1879
1867
  case "BadRequestException":
1880
1868
  case "com.amazonaws.amplifybackend#BadRequestException":
1881
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1869
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1882
1870
  case "GatewayTimeoutException":
1883
1871
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1884
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1872
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1885
1873
  case "NotFoundException":
1886
1874
  case "com.amazonaws.amplifybackend#NotFoundException":
1887
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1875
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1888
1876
  case "TooManyRequestsException":
1889
1877
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1890
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1878
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1891
1879
  default:
1892
1880
  const parsedBody = parsedOutput.body;
1893
1881
  throwDefaultError({
@@ -1898,23 +1886,23 @@ const deserializeAws_restJson1ImportBackendStorageCommandError = async (output,
1898
1886
  });
1899
1887
  }
1900
1888
  };
1901
- export const deserializeAws_restJson1ListBackendJobsCommand = async (output, context) => {
1889
+ export const de_ListBackendJobsCommand = async (output, context) => {
1902
1890
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1903
- return deserializeAws_restJson1ListBackendJobsCommandError(output, context);
1891
+ return de_ListBackendJobsCommandError(output, context);
1904
1892
  }
1905
1893
  const contents = map({
1906
1894
  $metadata: deserializeMetadata(output),
1907
1895
  });
1908
1896
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1909
1897
  if (data.jobs != null) {
1910
- contents.Jobs = deserializeAws_restJson1ListOfBackendJobRespObj(data.jobs, context);
1898
+ contents.Jobs = de_ListOfBackendJobRespObj(data.jobs, context);
1911
1899
  }
1912
1900
  if (data.nextToken != null) {
1913
1901
  contents.NextToken = __expectString(data.nextToken);
1914
1902
  }
1915
1903
  return contents;
1916
1904
  };
1917
- const deserializeAws_restJson1ListBackendJobsCommandError = async (output, context) => {
1905
+ const de_ListBackendJobsCommandError = async (output, context) => {
1918
1906
  const parsedOutput = {
1919
1907
  ...output,
1920
1908
  body: await parseErrorBody(output.body, context),
@@ -1923,16 +1911,16 @@ const deserializeAws_restJson1ListBackendJobsCommandError = async (output, conte
1923
1911
  switch (errorCode) {
1924
1912
  case "BadRequestException":
1925
1913
  case "com.amazonaws.amplifybackend#BadRequestException":
1926
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1914
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1927
1915
  case "GatewayTimeoutException":
1928
1916
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1929
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1917
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1930
1918
  case "NotFoundException":
1931
1919
  case "com.amazonaws.amplifybackend#NotFoundException":
1932
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1920
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1933
1921
  case "TooManyRequestsException":
1934
1922
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1935
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1923
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1936
1924
  default:
1937
1925
  const parsedBody = parsedOutput.body;
1938
1926
  throwDefaultError({
@@ -1943,23 +1931,23 @@ const deserializeAws_restJson1ListBackendJobsCommandError = async (output, conte
1943
1931
  });
1944
1932
  }
1945
1933
  };
1946
- export const deserializeAws_restJson1ListS3BucketsCommand = async (output, context) => {
1934
+ export const de_ListS3BucketsCommand = async (output, context) => {
1947
1935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1948
- return deserializeAws_restJson1ListS3BucketsCommandError(output, context);
1936
+ return de_ListS3BucketsCommandError(output, context);
1949
1937
  }
1950
1938
  const contents = map({
1951
1939
  $metadata: deserializeMetadata(output),
1952
1940
  });
1953
1941
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1954
1942
  if (data.buckets != null) {
1955
- contents.Buckets = deserializeAws_restJson1ListOfS3BucketInfo(data.buckets, context);
1943
+ contents.Buckets = de_ListOfS3BucketInfo(data.buckets, context);
1956
1944
  }
1957
1945
  if (data.nextToken != null) {
1958
1946
  contents.NextToken = __expectString(data.nextToken);
1959
1947
  }
1960
1948
  return contents;
1961
1949
  };
1962
- const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context) => {
1950
+ const de_ListS3BucketsCommandError = async (output, context) => {
1963
1951
  const parsedOutput = {
1964
1952
  ...output,
1965
1953
  body: await parseErrorBody(output.body, context),
@@ -1968,16 +1956,16 @@ const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context
1968
1956
  switch (errorCode) {
1969
1957
  case "BadRequestException":
1970
1958
  case "com.amazonaws.amplifybackend#BadRequestException":
1971
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1959
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1972
1960
  case "GatewayTimeoutException":
1973
1961
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1974
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1962
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1975
1963
  case "NotFoundException":
1976
1964
  case "com.amazonaws.amplifybackend#NotFoundException":
1977
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1965
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1978
1966
  case "TooManyRequestsException":
1979
1967
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1980
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1968
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1981
1969
  default:
1982
1970
  const parsedBody = parsedOutput.body;
1983
1971
  throwDefaultError({
@@ -1988,9 +1976,9 @@ const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context
1988
1976
  });
1989
1977
  }
1990
1978
  };
1991
- export const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context) => {
1979
+ export const de_RemoveAllBackendsCommand = async (output, context) => {
1992
1980
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1993
- return deserializeAws_restJson1RemoveAllBackendsCommandError(output, context);
1981
+ return de_RemoveAllBackendsCommandError(output, context);
1994
1982
  }
1995
1983
  const contents = map({
1996
1984
  $metadata: deserializeMetadata(output),
@@ -2013,7 +2001,7 @@ export const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, c
2013
2001
  }
2014
2002
  return contents;
2015
2003
  };
2016
- const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, context) => {
2004
+ const de_RemoveAllBackendsCommandError = async (output, context) => {
2017
2005
  const parsedOutput = {
2018
2006
  ...output,
2019
2007
  body: await parseErrorBody(output.body, context),
@@ -2022,16 +2010,16 @@ const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, con
2022
2010
  switch (errorCode) {
2023
2011
  case "BadRequestException":
2024
2012
  case "com.amazonaws.amplifybackend#BadRequestException":
2025
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2013
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2026
2014
  case "GatewayTimeoutException":
2027
2015
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2028
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2016
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2029
2017
  case "NotFoundException":
2030
2018
  case "com.amazonaws.amplifybackend#NotFoundException":
2031
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2019
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2032
2020
  case "TooManyRequestsException":
2033
2021
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2034
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2022
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2035
2023
  default:
2036
2024
  const parsedBody = parsedOutput.body;
2037
2025
  throwDefaultError({
@@ -2042,9 +2030,9 @@ const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, con
2042
2030
  });
2043
2031
  }
2044
2032
  };
2045
- export const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, context) => {
2033
+ export const de_RemoveBackendConfigCommand = async (output, context) => {
2046
2034
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2047
- return deserializeAws_restJson1RemoveBackendConfigCommandError(output, context);
2035
+ return de_RemoveBackendConfigCommandError(output, context);
2048
2036
  }
2049
2037
  const contents = map({
2050
2038
  $metadata: deserializeMetadata(output),
@@ -2055,7 +2043,7 @@ export const deserializeAws_restJson1RemoveBackendConfigCommand = async (output,
2055
2043
  }
2056
2044
  return contents;
2057
2045
  };
2058
- const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, context) => {
2046
+ const de_RemoveBackendConfigCommandError = async (output, context) => {
2059
2047
  const parsedOutput = {
2060
2048
  ...output,
2061
2049
  body: await parseErrorBody(output.body, context),
@@ -2064,16 +2052,16 @@ const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, c
2064
2052
  switch (errorCode) {
2065
2053
  case "BadRequestException":
2066
2054
  case "com.amazonaws.amplifybackend#BadRequestException":
2067
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2055
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2068
2056
  case "GatewayTimeoutException":
2069
2057
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2070
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2058
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2071
2059
  case "NotFoundException":
2072
2060
  case "com.amazonaws.amplifybackend#NotFoundException":
2073
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2061
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2074
2062
  case "TooManyRequestsException":
2075
2063
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2076
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2064
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2077
2065
  default:
2078
2066
  const parsedBody = parsedOutput.body;
2079
2067
  throwDefaultError({
@@ -2084,9 +2072,9 @@ const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, c
2084
2072
  });
2085
2073
  }
2086
2074
  };
2087
- export const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context) => {
2075
+ export const de_UpdateBackendAPICommand = async (output, context) => {
2088
2076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2089
- return deserializeAws_restJson1UpdateBackendAPICommandError(output, context);
2077
+ return de_UpdateBackendAPICommandError(output, context);
2090
2078
  }
2091
2079
  const contents = map({
2092
2080
  $metadata: deserializeMetadata(output),
@@ -2112,7 +2100,7 @@ export const deserializeAws_restJson1UpdateBackendAPICommand = async (output, co
2112
2100
  }
2113
2101
  return contents;
2114
2102
  };
2115
- const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, context) => {
2103
+ const de_UpdateBackendAPICommandError = async (output, context) => {
2116
2104
  const parsedOutput = {
2117
2105
  ...output,
2118
2106
  body: await parseErrorBody(output.body, context),
@@ -2121,16 +2109,16 @@ const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, cont
2121
2109
  switch (errorCode) {
2122
2110
  case "BadRequestException":
2123
2111
  case "com.amazonaws.amplifybackend#BadRequestException":
2124
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2112
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2125
2113
  case "GatewayTimeoutException":
2126
2114
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2127
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2115
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2128
2116
  case "NotFoundException":
2129
2117
  case "com.amazonaws.amplifybackend#NotFoundException":
2130
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2118
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2131
2119
  case "TooManyRequestsException":
2132
2120
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2133
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2121
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2134
2122
  default:
2135
2123
  const parsedBody = parsedOutput.body;
2136
2124
  throwDefaultError({
@@ -2141,9 +2129,9 @@ const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, cont
2141
2129
  });
2142
2130
  }
2143
2131
  };
2144
- export const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context) => {
2132
+ export const de_UpdateBackendAuthCommand = async (output, context) => {
2145
2133
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2146
- return deserializeAws_restJson1UpdateBackendAuthCommandError(output, context);
2134
+ return de_UpdateBackendAuthCommandError(output, context);
2147
2135
  }
2148
2136
  const contents = map({
2149
2137
  $metadata: deserializeMetadata(output),
@@ -2169,7 +2157,7 @@ export const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, c
2169
2157
  }
2170
2158
  return contents;
2171
2159
  };
2172
- const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, context) => {
2160
+ const de_UpdateBackendAuthCommandError = async (output, context) => {
2173
2161
  const parsedOutput = {
2174
2162
  ...output,
2175
2163
  body: await parseErrorBody(output.body, context),
@@ -2178,16 +2166,16 @@ const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, con
2178
2166
  switch (errorCode) {
2179
2167
  case "BadRequestException":
2180
2168
  case "com.amazonaws.amplifybackend#BadRequestException":
2181
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2169
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2182
2170
  case "GatewayTimeoutException":
2183
2171
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2184
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2172
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2185
2173
  case "NotFoundException":
2186
2174
  case "com.amazonaws.amplifybackend#NotFoundException":
2187
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2175
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2188
2176
  case "TooManyRequestsException":
2189
2177
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2190
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2178
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2191
2179
  default:
2192
2180
  const parsedBody = parsedOutput.body;
2193
2181
  throwDefaultError({
@@ -2198,9 +2186,9 @@ const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, con
2198
2186
  });
2199
2187
  }
2200
2188
  };
2201
- export const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, context) => {
2189
+ export const de_UpdateBackendConfigCommand = async (output, context) => {
2202
2190
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2203
- return deserializeAws_restJson1UpdateBackendConfigCommandError(output, context);
2191
+ return de_UpdateBackendConfigCommandError(output, context);
2204
2192
  }
2205
2193
  const contents = map({
2206
2194
  $metadata: deserializeMetadata(output),
@@ -2216,11 +2204,11 @@ export const deserializeAws_restJson1UpdateBackendConfigCommand = async (output,
2216
2204
  contents.Error = __expectString(data.error);
2217
2205
  }
2218
2206
  if (data.loginAuthConfig != null) {
2219
- contents.LoginAuthConfig = deserializeAws_restJson1LoginAuthConfigReqObj(data.loginAuthConfig, context);
2207
+ contents.LoginAuthConfig = de_LoginAuthConfigReqObj(data.loginAuthConfig, context);
2220
2208
  }
2221
2209
  return contents;
2222
2210
  };
2223
- const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, context) => {
2211
+ const de_UpdateBackendConfigCommandError = async (output, context) => {
2224
2212
  const parsedOutput = {
2225
2213
  ...output,
2226
2214
  body: await parseErrorBody(output.body, context),
@@ -2229,16 +2217,16 @@ const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, c
2229
2217
  switch (errorCode) {
2230
2218
  case "BadRequestException":
2231
2219
  case "com.amazonaws.amplifybackend#BadRequestException":
2232
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2220
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2233
2221
  case "GatewayTimeoutException":
2234
2222
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2235
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2223
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2236
2224
  case "NotFoundException":
2237
2225
  case "com.amazonaws.amplifybackend#NotFoundException":
2238
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2226
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2239
2227
  case "TooManyRequestsException":
2240
2228
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2241
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2229
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2242
2230
  default:
2243
2231
  const parsedBody = parsedOutput.body;
2244
2232
  throwDefaultError({
@@ -2249,9 +2237,9 @@ const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, c
2249
2237
  });
2250
2238
  }
2251
2239
  };
2252
- export const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context) => {
2240
+ export const de_UpdateBackendJobCommand = async (output, context) => {
2253
2241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2254
- return deserializeAws_restJson1UpdateBackendJobCommandError(output, context);
2242
+ return de_UpdateBackendJobCommandError(output, context);
2255
2243
  }
2256
2244
  const contents = map({
2257
2245
  $metadata: deserializeMetadata(output),
@@ -2283,7 +2271,7 @@ export const deserializeAws_restJson1UpdateBackendJobCommand = async (output, co
2283
2271
  }
2284
2272
  return contents;
2285
2273
  };
2286
- const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, context) => {
2274
+ const de_UpdateBackendJobCommandError = async (output, context) => {
2287
2275
  const parsedOutput = {
2288
2276
  ...output,
2289
2277
  body: await parseErrorBody(output.body, context),
@@ -2292,16 +2280,16 @@ const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, cont
2292
2280
  switch (errorCode) {
2293
2281
  case "BadRequestException":
2294
2282
  case "com.amazonaws.amplifybackend#BadRequestException":
2295
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2283
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2296
2284
  case "GatewayTimeoutException":
2297
2285
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2298
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2286
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2299
2287
  case "NotFoundException":
2300
2288
  case "com.amazonaws.amplifybackend#NotFoundException":
2301
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2289
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2302
2290
  case "TooManyRequestsException":
2303
2291
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2304
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2292
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2305
2293
  default:
2306
2294
  const parsedBody = parsedOutput.body;
2307
2295
  throwDefaultError({
@@ -2312,9 +2300,9 @@ const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, cont
2312
2300
  });
2313
2301
  }
2314
2302
  };
2315
- export const deserializeAws_restJson1UpdateBackendStorageCommand = async (output, context) => {
2303
+ export const de_UpdateBackendStorageCommand = async (output, context) => {
2316
2304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2317
- return deserializeAws_restJson1UpdateBackendStorageCommandError(output, context);
2305
+ return de_UpdateBackendStorageCommandError(output, context);
2318
2306
  }
2319
2307
  const contents = map({
2320
2308
  $metadata: deserializeMetadata(output),
@@ -2334,7 +2322,7 @@ export const deserializeAws_restJson1UpdateBackendStorageCommand = async (output
2334
2322
  }
2335
2323
  return contents;
2336
2324
  };
2337
- const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output, context) => {
2325
+ const de_UpdateBackendStorageCommandError = async (output, context) => {
2338
2326
  const parsedOutput = {
2339
2327
  ...output,
2340
2328
  body: await parseErrorBody(output.body, context),
@@ -2343,16 +2331,16 @@ const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output,
2343
2331
  switch (errorCode) {
2344
2332
  case "BadRequestException":
2345
2333
  case "com.amazonaws.amplifybackend#BadRequestException":
2346
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2334
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2347
2335
  case "GatewayTimeoutException":
2348
2336
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2349
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2337
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2350
2338
  case "NotFoundException":
2351
2339
  case "com.amazonaws.amplifybackend#NotFoundException":
2352
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2340
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2353
2341
  case "TooManyRequestsException":
2354
2342
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2355
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2343
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2356
2344
  default:
2357
2345
  const parsedBody = parsedOutput.body;
2358
2346
  throwDefaultError({
@@ -2364,7 +2352,7 @@ const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output,
2364
2352
  }
2365
2353
  };
2366
2354
  const map = __map;
2367
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
2355
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2368
2356
  const contents = map({});
2369
2357
  const data = parsedOutput.body;
2370
2358
  if (data.message != null) {
@@ -2376,7 +2364,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
2376
2364
  });
2377
2365
  return __decorateServiceException(exception, parsedOutput.body);
2378
2366
  };
2379
- const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOutput, context) => {
2367
+ const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
2380
2368
  const contents = map({});
2381
2369
  const data = parsedOutput.body;
2382
2370
  if (data.message != null) {
@@ -2388,7 +2376,7 @@ const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOut
2388
2376
  });
2389
2377
  return __decorateServiceException(exception, parsedOutput.body);
2390
2378
  };
2391
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
2379
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
2392
2380
  const contents = map({});
2393
2381
  const data = parsedOutput.body;
2394
2382
  if (data.message != null) {
@@ -2403,7 +2391,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
2403
2391
  });
2404
2392
  return __decorateServiceException(exception, parsedOutput.body);
2405
2393
  };
2406
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
2394
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2407
2395
  const contents = map({});
2408
2396
  const data = parsedOutput.body;
2409
2397
  if (data.limitType != null) {
@@ -2418,7 +2406,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
2418
2406
  });
2419
2407
  return __decorateServiceException(exception, parsedOutput.body);
2420
2408
  };
2421
- const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) => {
2409
+ const se_BackendAPIAppSyncAuthSettings = (input, context) => {
2422
2410
  return {
2423
2411
  ...(input.CognitoUserPoolId != null && { cognitoUserPoolId: input.CognitoUserPoolId }),
2424
2412
  ...(input.Description != null && { description: input.Description }),
@@ -2430,36 +2418,32 @@ const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) =>
2430
2418
  ...(input.OpenIDProviderName != null && { openIDProviderName: input.OpenIDProviderName }),
2431
2419
  };
2432
2420
  };
2433
- const serializeAws_restJson1BackendAPIAuthType = (input, context) => {
2421
+ const se_BackendAPIAuthType = (input, context) => {
2434
2422
  return {
2435
2423
  ...(input.Mode != null && { mode: input.Mode }),
2436
- ...(input.Settings != null && {
2437
- settings: serializeAws_restJson1BackendAPIAppSyncAuthSettings(input.Settings, context),
2438
- }),
2424
+ ...(input.Settings != null && { settings: se_BackendAPIAppSyncAuthSettings(input.Settings, context) }),
2439
2425
  };
2440
2426
  };
2441
- const serializeAws_restJson1BackendAPIConflictResolution = (input, context) => {
2427
+ const se_BackendAPIConflictResolution = (input, context) => {
2442
2428
  return {
2443
2429
  ...(input.ResolutionStrategy != null && { resolutionStrategy: input.ResolutionStrategy }),
2444
2430
  };
2445
2431
  };
2446
- const serializeAws_restJson1BackendAPIResourceConfig = (input, context) => {
2432
+ const se_BackendAPIResourceConfig = (input, context) => {
2447
2433
  return {
2448
2434
  ...(input.AdditionalAuthTypes != null && {
2449
- additionalAuthTypes: serializeAws_restJson1ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
2435
+ additionalAuthTypes: se_ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
2450
2436
  }),
2451
2437
  ...(input.ApiName != null && { apiName: input.ApiName }),
2452
2438
  ...(input.ConflictResolution != null && {
2453
- conflictResolution: serializeAws_restJson1BackendAPIConflictResolution(input.ConflictResolution, context),
2454
- }),
2455
- ...(input.DefaultAuthType != null && {
2456
- defaultAuthType: serializeAws_restJson1BackendAPIAuthType(input.DefaultAuthType, context),
2439
+ conflictResolution: se_BackendAPIConflictResolution(input.ConflictResolution, context),
2457
2440
  }),
2441
+ ...(input.DefaultAuthType != null && { defaultAuthType: se_BackendAPIAuthType(input.DefaultAuthType, context) }),
2458
2442
  ...(input.Service != null && { service: input.Service }),
2459
2443
  ...(input.TransformSchema != null && { transformSchema: input.TransformSchema }),
2460
2444
  };
2461
2445
  };
2462
- const serializeAws_restJson1BackendAuthAppleProviderConfig = (input, context) => {
2446
+ const se_BackendAuthAppleProviderConfig = (input, context) => {
2463
2447
  return {
2464
2448
  ...(input.ClientId != null && { client_id: input.ClientId }),
2465
2449
  ...(input.KeyId != null && { key_id: input.KeyId }),
@@ -2467,182 +2451,172 @@ const serializeAws_restJson1BackendAuthAppleProviderConfig = (input, context) =>
2467
2451
  ...(input.TeamId != null && { team_id: input.TeamId }),
2468
2452
  };
2469
2453
  };
2470
- const serializeAws_restJson1BackendAuthSocialProviderConfig = (input, context) => {
2454
+ const se_BackendAuthSocialProviderConfig = (input, context) => {
2471
2455
  return {
2472
2456
  ...(input.ClientId != null && { client_id: input.ClientId }),
2473
2457
  ...(input.ClientSecret != null && { client_secret: input.ClientSecret }),
2474
2458
  };
2475
2459
  };
2476
- const serializeAws_restJson1BackendStoragePermissions = (input, context) => {
2460
+ const se_BackendStoragePermissions = (input, context) => {
2477
2461
  return {
2478
- ...(input.Authenticated != null && {
2479
- authenticated: serializeAws_restJson1ListOfAuthenticatedElement(input.Authenticated, context),
2480
- }),
2462
+ ...(input.Authenticated != null && { authenticated: se_ListOfAuthenticatedElement(input.Authenticated, context) }),
2481
2463
  ...(input.UnAuthenticated != null && {
2482
- unAuthenticated: serializeAws_restJson1ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
2464
+ unAuthenticated: se_ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
2483
2465
  }),
2484
2466
  };
2485
2467
  };
2486
- const serializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (input, context) => {
2468
+ const se_CreateBackendAuthForgotPasswordConfig = (input, context) => {
2487
2469
  return {
2488
2470
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2489
- ...(input.EmailSettings != null && {
2490
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2491
- }),
2492
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2471
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2472
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2493
2473
  };
2494
2474
  };
2495
- const serializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (input, context) => {
2475
+ const se_CreateBackendAuthIdentityPoolConfig = (input, context) => {
2496
2476
  return {
2497
2477
  ...(input.IdentityPoolName != null && { identityPoolName: input.IdentityPoolName }),
2498
2478
  ...(input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }),
2499
2479
  };
2500
2480
  };
2501
- const serializeAws_restJson1CreateBackendAuthMFAConfig = (input, context) => {
2481
+ const se_CreateBackendAuthMFAConfig = (input, context) => {
2502
2482
  return {
2503
2483
  ...(input.MFAMode != null && { MFAMode: input.MFAMode }),
2504
- ...(input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }),
2484
+ ...(input.Settings != null && { settings: se_Settings(input.Settings, context) }),
2505
2485
  };
2506
2486
  };
2507
- const serializeAws_restJson1CreateBackendAuthOAuthConfig = (input, context) => {
2487
+ const se_CreateBackendAuthOAuthConfig = (input, context) => {
2508
2488
  return {
2509
2489
  ...(input.DomainPrefix != null && { domainPrefix: input.DomainPrefix }),
2510
2490
  ...(input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType }),
2511
- ...(input.OAuthScopes != null && {
2512
- oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
2513
- }),
2491
+ ...(input.OAuthScopes != null && { oAuthScopes: se_ListOfOAuthScopesElement(input.OAuthScopes, context) }),
2514
2492
  ...(input.RedirectSignInURIs != null && {
2515
- redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
2493
+ redirectSignInURIs: se_ListOf__string(input.RedirectSignInURIs, context),
2516
2494
  }),
2517
2495
  ...(input.RedirectSignOutURIs != null && {
2518
- redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
2496
+ redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
2519
2497
  }),
2520
2498
  ...(input.SocialProviderSettings != null && {
2521
- socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
2499
+ socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
2522
2500
  }),
2523
2501
  };
2524
2502
  };
2525
- const serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (input, context) => {
2503
+ const se_CreateBackendAuthPasswordPolicyConfig = (input, context) => {
2526
2504
  return {
2527
2505
  ...(input.AdditionalConstraints != null && {
2528
- additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2506
+ additionalConstraints: se_ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2529
2507
  }),
2530
2508
  ...(input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }),
2531
2509
  };
2532
2510
  };
2533
- const serializeAws_restJson1CreateBackendAuthResourceConfig = (input, context) => {
2511
+ const se_CreateBackendAuthResourceConfig = (input, context) => {
2534
2512
  return {
2535
2513
  ...(input.AuthResources != null && { authResources: input.AuthResources }),
2536
2514
  ...(input.IdentityPoolConfigs != null && {
2537
- identityPoolConfigs: serializeAws_restJson1CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2515
+ identityPoolConfigs: se_CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2538
2516
  }),
2539
2517
  ...(input.Service != null && { service: input.Service }),
2540
2518
  ...(input.UserPoolConfigs != null && {
2541
- userPoolConfigs: serializeAws_restJson1CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2519
+ userPoolConfigs: se_CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2542
2520
  }),
2543
2521
  };
2544
2522
  };
2545
- const serializeAws_restJson1CreateBackendAuthUserPoolConfig = (input, context) => {
2523
+ const se_CreateBackendAuthUserPoolConfig = (input, context) => {
2546
2524
  return {
2547
2525
  ...(input.ForgotPassword != null && {
2548
- forgotPassword: serializeAws_restJson1CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2526
+ forgotPassword: se_CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2549
2527
  }),
2550
- ...(input.Mfa != null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) }),
2551
- ...(input.OAuth != null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) }),
2528
+ ...(input.Mfa != null && { mfa: se_CreateBackendAuthMFAConfig(input.Mfa, context) }),
2529
+ ...(input.OAuth != null && { oAuth: se_CreateBackendAuthOAuthConfig(input.OAuth, context) }),
2552
2530
  ...(input.PasswordPolicy != null && {
2553
- passwordPolicy: serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2531
+ passwordPolicy: se_CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2554
2532
  }),
2555
2533
  ...(input.RequiredSignUpAttributes != null && {
2556
- requiredSignUpAttributes: serializeAws_restJson1ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
2534
+ requiredSignUpAttributes: se_ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
2557
2535
  }),
2558
2536
  ...(input.SignInMethod != null && { signInMethod: input.SignInMethod }),
2559
2537
  ...(input.UserPoolName != null && { userPoolName: input.UserPoolName }),
2560
2538
  ...(input.VerificationMessage != null && {
2561
- verificationMessage: serializeAws_restJson1CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2539
+ verificationMessage: se_CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2562
2540
  }),
2563
2541
  };
2564
2542
  };
2565
- const serializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (input, context) => {
2543
+ const se_CreateBackendAuthVerificationMessageConfig = (input, context) => {
2566
2544
  return {
2567
2545
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2568
- ...(input.EmailSettings != null && {
2569
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2570
- }),
2571
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2546
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2547
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2572
2548
  };
2573
2549
  };
2574
- const serializeAws_restJson1CreateBackendStorageResourceConfig = (input, context) => {
2550
+ const se_CreateBackendStorageResourceConfig = (input, context) => {
2575
2551
  return {
2576
2552
  ...(input.BucketName != null && { bucketName: input.BucketName }),
2577
- ...(input.Permissions != null && {
2578
- permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
2579
- }),
2553
+ ...(input.Permissions != null && { permissions: se_BackendStoragePermissions(input.Permissions, context) }),
2580
2554
  ...(input.ServiceName != null && { serviceName: input.ServiceName }),
2581
2555
  };
2582
2556
  };
2583
- const serializeAws_restJson1EmailSettings = (input, context) => {
2557
+ const se_EmailSettings = (input, context) => {
2584
2558
  return {
2585
2559
  ...(input.EmailMessage != null && { emailMessage: input.EmailMessage }),
2586
2560
  ...(input.EmailSubject != null && { emailSubject: input.EmailSubject }),
2587
2561
  };
2588
2562
  };
2589
- const serializeAws_restJson1ListOf__string = (input, context) => {
2563
+ const se_ListOf__string = (input, context) => {
2590
2564
  return input
2591
2565
  .filter((e) => e != null)
2592
2566
  .map((entry) => {
2593
2567
  return entry;
2594
2568
  });
2595
2569
  };
2596
- const serializeAws_restJson1ListOfAdditionalConstraintsElement = (input, context) => {
2570
+ const se_ListOfAdditionalConstraintsElement = (input, context) => {
2597
2571
  return input
2598
2572
  .filter((e) => e != null)
2599
2573
  .map((entry) => {
2600
2574
  return entry;
2601
2575
  });
2602
2576
  };
2603
- const serializeAws_restJson1ListOfAuthenticatedElement = (input, context) => {
2577
+ const se_ListOfAuthenticatedElement = (input, context) => {
2604
2578
  return input
2605
2579
  .filter((e) => e != null)
2606
2580
  .map((entry) => {
2607
2581
  return entry;
2608
2582
  });
2609
2583
  };
2610
- const serializeAws_restJson1ListOfBackendAPIAuthType = (input, context) => {
2584
+ const se_ListOfBackendAPIAuthType = (input, context) => {
2611
2585
  return input
2612
2586
  .filter((e) => e != null)
2613
2587
  .map((entry) => {
2614
- return serializeAws_restJson1BackendAPIAuthType(entry, context);
2588
+ return se_BackendAPIAuthType(entry, context);
2615
2589
  });
2616
2590
  };
2617
- const serializeAws_restJson1ListOfMfaTypesElement = (input, context) => {
2591
+ const se_ListOfMfaTypesElement = (input, context) => {
2618
2592
  return input
2619
2593
  .filter((e) => e != null)
2620
2594
  .map((entry) => {
2621
2595
  return entry;
2622
2596
  });
2623
2597
  };
2624
- const serializeAws_restJson1ListOfOAuthScopesElement = (input, context) => {
2598
+ const se_ListOfOAuthScopesElement = (input, context) => {
2625
2599
  return input
2626
2600
  .filter((e) => e != null)
2627
2601
  .map((entry) => {
2628
2602
  return entry;
2629
2603
  });
2630
2604
  };
2631
- const serializeAws_restJson1ListOfRequiredSignUpAttributesElement = (input, context) => {
2605
+ const se_ListOfRequiredSignUpAttributesElement = (input, context) => {
2632
2606
  return input
2633
2607
  .filter((e) => e != null)
2634
2608
  .map((entry) => {
2635
2609
  return entry;
2636
2610
  });
2637
2611
  };
2638
- const serializeAws_restJson1ListOfUnAuthenticatedElement = (input, context) => {
2612
+ const se_ListOfUnAuthenticatedElement = (input, context) => {
2639
2613
  return input
2640
2614
  .filter((e) => e != null)
2641
2615
  .map((entry) => {
2642
2616
  return entry;
2643
2617
  });
2644
2618
  };
2645
- const serializeAws_restJson1LoginAuthConfigReqObj = (input, context) => {
2619
+ const se_LoginAuthConfigReqObj = (input, context) => {
2646
2620
  return {
2647
2621
  ...(input.AwsCognitoIdentityPoolId != null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId }),
2648
2622
  ...(input.AwsCognitoRegion != null && { aws_cognito_region: input.AwsCognitoRegion }),
@@ -2650,127 +2624,115 @@ const serializeAws_restJson1LoginAuthConfigReqObj = (input, context) => {
2650
2624
  ...(input.AwsUserPoolsWebClientId != null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }),
2651
2625
  };
2652
2626
  };
2653
- const serializeAws_restJson1ResourceConfig = (input, context) => {
2627
+ const se_ResourceConfig = (input, context) => {
2654
2628
  return {};
2655
2629
  };
2656
- const serializeAws_restJson1Settings = (input, context) => {
2630
+ const se_Settings = (input, context) => {
2657
2631
  return {
2658
- ...(input.MfaTypes != null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) }),
2632
+ ...(input.MfaTypes != null && { mfaTypes: se_ListOfMfaTypesElement(input.MfaTypes, context) }),
2659
2633
  ...(input.SmsMessage != null && { smsMessage: input.SmsMessage }),
2660
2634
  };
2661
2635
  };
2662
- const serializeAws_restJson1SmsSettings = (input, context) => {
2636
+ const se_SmsSettings = (input, context) => {
2663
2637
  return {
2664
2638
  ...(input.SmsMessage != null && { smsMessage: input.SmsMessage }),
2665
2639
  };
2666
2640
  };
2667
- const serializeAws_restJson1SocialProviderSettings = (input, context) => {
2641
+ const se_SocialProviderSettings = (input, context) => {
2668
2642
  return {
2669
- ...(input.Facebook != null && {
2670
- Facebook: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Facebook, context),
2671
- }),
2672
- ...(input.Google != null && {
2673
- Google: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Google, context),
2674
- }),
2643
+ ...(input.Facebook != null && { Facebook: se_BackendAuthSocialProviderConfig(input.Facebook, context) }),
2644
+ ...(input.Google != null && { Google: se_BackendAuthSocialProviderConfig(input.Google, context) }),
2675
2645
  ...(input.LoginWithAmazon != null && {
2676
- LoginWithAmazon: serializeAws_restJson1BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
2646
+ LoginWithAmazon: se_BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
2677
2647
  }),
2678
2648
  ...(input.SignInWithApple != null && {
2679
- SignInWithApple: serializeAws_restJson1BackendAuthAppleProviderConfig(input.SignInWithApple, context),
2649
+ SignInWithApple: se_BackendAuthAppleProviderConfig(input.SignInWithApple, context),
2680
2650
  }),
2681
2651
  };
2682
2652
  };
2683
- const serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig = (input, context) => {
2653
+ const se_UpdateBackendAuthForgotPasswordConfig = (input, context) => {
2684
2654
  return {
2685
2655
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2686
- ...(input.EmailSettings != null && {
2687
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2688
- }),
2689
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2656
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2657
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2690
2658
  };
2691
2659
  };
2692
- const serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig = (input, context) => {
2660
+ const se_UpdateBackendAuthIdentityPoolConfig = (input, context) => {
2693
2661
  return {
2694
2662
  ...(input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }),
2695
2663
  };
2696
2664
  };
2697
- const serializeAws_restJson1UpdateBackendAuthMFAConfig = (input, context) => {
2665
+ const se_UpdateBackendAuthMFAConfig = (input, context) => {
2698
2666
  return {
2699
2667
  ...(input.MFAMode != null && { MFAMode: input.MFAMode }),
2700
- ...(input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }),
2668
+ ...(input.Settings != null && { settings: se_Settings(input.Settings, context) }),
2701
2669
  };
2702
2670
  };
2703
- const serializeAws_restJson1UpdateBackendAuthOAuthConfig = (input, context) => {
2671
+ const se_UpdateBackendAuthOAuthConfig = (input, context) => {
2704
2672
  return {
2705
2673
  ...(input.DomainPrefix != null && { domainPrefix: input.DomainPrefix }),
2706
2674
  ...(input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType }),
2707
- ...(input.OAuthScopes != null && {
2708
- oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
2709
- }),
2675
+ ...(input.OAuthScopes != null && { oAuthScopes: se_ListOfOAuthScopesElement(input.OAuthScopes, context) }),
2710
2676
  ...(input.RedirectSignInURIs != null && {
2711
- redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
2677
+ redirectSignInURIs: se_ListOf__string(input.RedirectSignInURIs, context),
2712
2678
  }),
2713
2679
  ...(input.RedirectSignOutURIs != null && {
2714
- redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
2680
+ redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
2715
2681
  }),
2716
2682
  ...(input.SocialProviderSettings != null && {
2717
- socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
2683
+ socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
2718
2684
  }),
2719
2685
  };
2720
2686
  };
2721
- const serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
2687
+ const se_UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
2722
2688
  return {
2723
2689
  ...(input.AdditionalConstraints != null && {
2724
- additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2690
+ additionalConstraints: se_ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2725
2691
  }),
2726
2692
  ...(input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }),
2727
2693
  };
2728
2694
  };
2729
- const serializeAws_restJson1UpdateBackendAuthResourceConfig = (input, context) => {
2695
+ const se_UpdateBackendAuthResourceConfig = (input, context) => {
2730
2696
  return {
2731
2697
  ...(input.AuthResources != null && { authResources: input.AuthResources }),
2732
2698
  ...(input.IdentityPoolConfigs != null && {
2733
- identityPoolConfigs: serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2699
+ identityPoolConfigs: se_UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2734
2700
  }),
2735
2701
  ...(input.Service != null && { service: input.Service }),
2736
2702
  ...(input.UserPoolConfigs != null && {
2737
- userPoolConfigs: serializeAws_restJson1UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2703
+ userPoolConfigs: se_UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2738
2704
  }),
2739
2705
  };
2740
2706
  };
2741
- const serializeAws_restJson1UpdateBackendAuthUserPoolConfig = (input, context) => {
2707
+ const se_UpdateBackendAuthUserPoolConfig = (input, context) => {
2742
2708
  return {
2743
2709
  ...(input.ForgotPassword != null && {
2744
- forgotPassword: serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2710
+ forgotPassword: se_UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2745
2711
  }),
2746
- ...(input.Mfa != null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) }),
2747
- ...(input.OAuth != null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) }),
2712
+ ...(input.Mfa != null && { mfa: se_UpdateBackendAuthMFAConfig(input.Mfa, context) }),
2713
+ ...(input.OAuth != null && { oAuth: se_UpdateBackendAuthOAuthConfig(input.OAuth, context) }),
2748
2714
  ...(input.PasswordPolicy != null && {
2749
- passwordPolicy: serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2715
+ passwordPolicy: se_UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2750
2716
  }),
2751
2717
  ...(input.VerificationMessage != null && {
2752
- verificationMessage: serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2718
+ verificationMessage: se_UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2753
2719
  }),
2754
2720
  };
2755
2721
  };
2756
- const serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig = (input, context) => {
2722
+ const se_UpdateBackendAuthVerificationMessageConfig = (input, context) => {
2757
2723
  return {
2758
2724
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2759
- ...(input.EmailSettings != null && {
2760
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2761
- }),
2762
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2725
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2726
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2763
2727
  };
2764
2728
  };
2765
- const serializeAws_restJson1UpdateBackendStorageResourceConfig = (input, context) => {
2729
+ const se_UpdateBackendStorageResourceConfig = (input, context) => {
2766
2730
  return {
2767
- ...(input.Permissions != null && {
2768
- permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
2769
- }),
2731
+ ...(input.Permissions != null && { permissions: se_BackendStoragePermissions(input.Permissions, context) }),
2770
2732
  ...(input.ServiceName != null && { serviceName: input.ServiceName }),
2771
2733
  };
2772
2734
  };
2773
- const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context) => {
2735
+ const de_BackendAPIAppSyncAuthSettings = (output, context) => {
2774
2736
  return {
2775
2737
  CognitoUserPoolId: __expectString(output.cognitoUserPoolId),
2776
2738
  Description: __expectString(output.description),
@@ -2782,36 +2744,30 @@ const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context)
2782
2744
  OpenIDProviderName: __expectString(output.openIDProviderName),
2783
2745
  };
2784
2746
  };
2785
- const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
2747
+ const de_BackendAPIAuthType = (output, context) => {
2786
2748
  return {
2787
2749
  Mode: __expectString(output.mode),
2788
- Settings: output.settings != null
2789
- ? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
2790
- : undefined,
2750
+ Settings: output.settings != null ? de_BackendAPIAppSyncAuthSettings(output.settings, context) : undefined,
2791
2751
  };
2792
2752
  };
2793
- const deserializeAws_restJson1BackendAPIConflictResolution = (output, context) => {
2753
+ const de_BackendAPIConflictResolution = (output, context) => {
2794
2754
  return {
2795
2755
  ResolutionStrategy: __expectString(output.resolutionStrategy),
2796
2756
  };
2797
2757
  };
2798
- const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
2758
+ const de_BackendAPIResourceConfig = (output, context) => {
2799
2759
  return {
2800
- AdditionalAuthTypes: output.additionalAuthTypes != null
2801
- ? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
2802
- : undefined,
2760
+ AdditionalAuthTypes: output.additionalAuthTypes != null ? de_ListOfBackendAPIAuthType(output.additionalAuthTypes, context) : undefined,
2803
2761
  ApiName: __expectString(output.apiName),
2804
2762
  ConflictResolution: output.conflictResolution != null
2805
- ? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
2806
- : undefined,
2807
- DefaultAuthType: output.defaultAuthType != null
2808
- ? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
2763
+ ? de_BackendAPIConflictResolution(output.conflictResolution, context)
2809
2764
  : undefined,
2765
+ DefaultAuthType: output.defaultAuthType != null ? de_BackendAPIAuthType(output.defaultAuthType, context) : undefined,
2810
2766
  Service: __expectString(output.service),
2811
2767
  TransformSchema: __expectString(output.transformSchema),
2812
2768
  };
2813
2769
  };
2814
- const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context) => {
2770
+ const de_BackendAuthAppleProviderConfig = (output, context) => {
2815
2771
  return {
2816
2772
  ClientId: __expectString(output.client_id),
2817
2773
  KeyId: __expectString(output.key_id),
@@ -2819,13 +2775,13 @@ const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context)
2819
2775
  TeamId: __expectString(output.team_id),
2820
2776
  };
2821
2777
  };
2822
- const deserializeAws_restJson1BackendAuthSocialProviderConfig = (output, context) => {
2778
+ const de_BackendAuthSocialProviderConfig = (output, context) => {
2823
2779
  return {
2824
2780
  ClientId: __expectString(output.client_id),
2825
2781
  ClientSecret: __expectString(output.client_secret),
2826
2782
  };
2827
2783
  };
2828
- const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
2784
+ const de_BackendJobRespObj = (output, context) => {
2829
2785
  return {
2830
2786
  AppId: __expectString(output.appId),
2831
2787
  BackendEnvironmentName: __expectString(output.backendEnvironmentName),
@@ -2837,117 +2793,103 @@ const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
2837
2793
  UpdateTime: __expectString(output.updateTime),
2838
2794
  };
2839
2795
  };
2840
- const deserializeAws_restJson1BackendStoragePermissions = (output, context) => {
2796
+ const de_BackendStoragePermissions = (output, context) => {
2841
2797
  return {
2842
- Authenticated: output.authenticated != null
2843
- ? deserializeAws_restJson1ListOfAuthenticatedElement(output.authenticated, context)
2844
- : undefined,
2845
- UnAuthenticated: output.unAuthenticated != null
2846
- ? deserializeAws_restJson1ListOfUnAuthenticatedElement(output.unAuthenticated, context)
2847
- : undefined,
2798
+ Authenticated: output.authenticated != null ? de_ListOfAuthenticatedElement(output.authenticated, context) : undefined,
2799
+ UnAuthenticated: output.unAuthenticated != null ? de_ListOfUnAuthenticatedElement(output.unAuthenticated, context) : undefined,
2848
2800
  };
2849
2801
  };
2850
- const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, context) => {
2802
+ const de_CreateBackendAuthForgotPasswordConfig = (output, context) => {
2851
2803
  return {
2852
2804
  DeliveryMethod: __expectString(output.deliveryMethod),
2853
- EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
2854
- SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
2805
+ EmailSettings: output.emailSettings != null ? de_EmailSettings(output.emailSettings, context) : undefined,
2806
+ SmsSettings: output.smsSettings != null ? de_SmsSettings(output.smsSettings, context) : undefined,
2855
2807
  };
2856
2808
  };
2857
- const deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (output, context) => {
2809
+ const de_CreateBackendAuthIdentityPoolConfig = (output, context) => {
2858
2810
  return {
2859
2811
  IdentityPoolName: __expectString(output.identityPoolName),
2860
2812
  UnauthenticatedLogin: __expectBoolean(output.unauthenticatedLogin),
2861
2813
  };
2862
2814
  };
2863
- const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) => {
2815
+ const de_CreateBackendAuthMFAConfig = (output, context) => {
2864
2816
  return {
2865
2817
  MFAMode: __expectString(output.MFAMode),
2866
- Settings: output.settings != null ? deserializeAws_restJson1Settings(output.settings, context) : undefined,
2818
+ Settings: output.settings != null ? de_Settings(output.settings, context) : undefined,
2867
2819
  };
2868
2820
  };
2869
- const deserializeAws_restJson1CreateBackendAuthOAuthConfig = (output, context) => {
2821
+ const de_CreateBackendAuthOAuthConfig = (output, context) => {
2870
2822
  return {
2871
2823
  DomainPrefix: __expectString(output.domainPrefix),
2872
2824
  OAuthGrantType: __expectString(output.oAuthGrantType),
2873
- OAuthScopes: output.oAuthScopes != null
2874
- ? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
2875
- : undefined,
2876
- RedirectSignInURIs: output.redirectSignInURIs != null
2877
- ? deserializeAws_restJson1ListOf__string(output.redirectSignInURIs, context)
2878
- : undefined,
2879
- RedirectSignOutURIs: output.redirectSignOutURIs != null
2880
- ? deserializeAws_restJson1ListOf__string(output.redirectSignOutURIs, context)
2881
- : undefined,
2825
+ OAuthScopes: output.oAuthScopes != null ? de_ListOfOAuthScopesElement(output.oAuthScopes, context) : undefined,
2826
+ RedirectSignInURIs: output.redirectSignInURIs != null ? de_ListOf__string(output.redirectSignInURIs, context) : undefined,
2827
+ RedirectSignOutURIs: output.redirectSignOutURIs != null ? de_ListOf__string(output.redirectSignOutURIs, context) : undefined,
2882
2828
  SocialProviderSettings: output.socialProviderSettings != null
2883
- ? deserializeAws_restJson1SocialProviderSettings(output.socialProviderSettings, context)
2829
+ ? de_SocialProviderSettings(output.socialProviderSettings, context)
2884
2830
  : undefined,
2885
2831
  };
2886
2832
  };
2887
- const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (output, context) => {
2833
+ const de_CreateBackendAuthPasswordPolicyConfig = (output, context) => {
2888
2834
  return {
2889
2835
  AdditionalConstraints: output.additionalConstraints != null
2890
- ? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
2836
+ ? de_ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
2891
2837
  : undefined,
2892
2838
  MinimumLength: __limitedParseDouble(output.minimumLength),
2893
2839
  };
2894
2840
  };
2895
- const deserializeAws_restJson1CreateBackendAuthResourceConfig = (output, context) => {
2841
+ const de_CreateBackendAuthResourceConfig = (output, context) => {
2896
2842
  return {
2897
2843
  AuthResources: __expectString(output.authResources),
2898
2844
  IdentityPoolConfigs: output.identityPoolConfigs != null
2899
- ? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
2845
+ ? de_CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
2900
2846
  : undefined,
2901
2847
  Service: __expectString(output.service),
2902
- UserPoolConfigs: output.userPoolConfigs != null
2903
- ? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
2904
- : undefined,
2848
+ UserPoolConfigs: output.userPoolConfigs != null ? de_CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context) : undefined,
2905
2849
  };
2906
2850
  };
2907
- const deserializeAws_restJson1CreateBackendAuthUserPoolConfig = (output, context) => {
2851
+ const de_CreateBackendAuthUserPoolConfig = (output, context) => {
2908
2852
  return {
2909
2853
  ForgotPassword: output.forgotPassword != null
2910
- ? deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
2854
+ ? de_CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
2911
2855
  : undefined,
2912
- Mfa: output.mfa != null ? deserializeAws_restJson1CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
2913
- OAuth: output.oAuth != null ? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
2856
+ Mfa: output.mfa != null ? de_CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
2857
+ OAuth: output.oAuth != null ? de_CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
2914
2858
  PasswordPolicy: output.passwordPolicy != null
2915
- ? deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
2859
+ ? de_CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
2916
2860
  : undefined,
2917
2861
  RequiredSignUpAttributes: output.requiredSignUpAttributes != null
2918
- ? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
2862
+ ? de_ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
2919
2863
  : undefined,
2920
2864
  SignInMethod: __expectString(output.signInMethod),
2921
2865
  UserPoolName: __expectString(output.userPoolName),
2922
2866
  VerificationMessage: output.verificationMessage != null
2923
- ? deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
2867
+ ? de_CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
2924
2868
  : undefined,
2925
2869
  };
2926
2870
  };
2927
- const deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (output, context) => {
2871
+ const de_CreateBackendAuthVerificationMessageConfig = (output, context) => {
2928
2872
  return {
2929
2873
  DeliveryMethod: __expectString(output.deliveryMethod),
2930
- EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
2931
- SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
2874
+ EmailSettings: output.emailSettings != null ? de_EmailSettings(output.emailSettings, context) : undefined,
2875
+ SmsSettings: output.smsSettings != null ? de_SmsSettings(output.smsSettings, context) : undefined,
2932
2876
  };
2933
2877
  };
2934
- const deserializeAws_restJson1EmailSettings = (output, context) => {
2878
+ const de_EmailSettings = (output, context) => {
2935
2879
  return {
2936
2880
  EmailMessage: __expectString(output.emailMessage),
2937
2881
  EmailSubject: __expectString(output.emailSubject),
2938
2882
  };
2939
2883
  };
2940
- const deserializeAws_restJson1GetBackendStorageResourceConfig = (output, context) => {
2884
+ const de_GetBackendStorageResourceConfig = (output, context) => {
2941
2885
  return {
2942
2886
  BucketName: __expectString(output.bucketName),
2943
2887
  Imported: __expectBoolean(output.imported),
2944
- Permissions: output.permissions != null
2945
- ? deserializeAws_restJson1BackendStoragePermissions(output.permissions, context)
2946
- : undefined,
2888
+ Permissions: output.permissions != null ? de_BackendStoragePermissions(output.permissions, context) : undefined,
2947
2889
  ServiceName: __expectString(output.serviceName),
2948
2890
  };
2949
2891
  };
2950
- const deserializeAws_restJson1ListOf__string = (output, context) => {
2892
+ const de_ListOf__string = (output, context) => {
2951
2893
  const retVal = (output || [])
2952
2894
  .filter((e) => e != null)
2953
2895
  .map((entry) => {
@@ -2958,7 +2900,7 @@ const deserializeAws_restJson1ListOf__string = (output, context) => {
2958
2900
  });
2959
2901
  return retVal;
2960
2902
  };
2961
- const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, context) => {
2903
+ const de_ListOfAdditionalConstraintsElement = (output, context) => {
2962
2904
  const retVal = (output || [])
2963
2905
  .filter((e) => e != null)
2964
2906
  .map((entry) => {
@@ -2969,7 +2911,7 @@ const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, cont
2969
2911
  });
2970
2912
  return retVal;
2971
2913
  };
2972
- const deserializeAws_restJson1ListOfAuthenticatedElement = (output, context) => {
2914
+ const de_ListOfAuthenticatedElement = (output, context) => {
2973
2915
  const retVal = (output || [])
2974
2916
  .filter((e) => e != null)
2975
2917
  .map((entry) => {
@@ -2980,29 +2922,29 @@ const deserializeAws_restJson1ListOfAuthenticatedElement = (output, context) =>
2980
2922
  });
2981
2923
  return retVal;
2982
2924
  };
2983
- const deserializeAws_restJson1ListOfBackendAPIAuthType = (output, context) => {
2925
+ const de_ListOfBackendAPIAuthType = (output, context) => {
2984
2926
  const retVal = (output || [])
2985
2927
  .filter((e) => e != null)
2986
2928
  .map((entry) => {
2987
2929
  if (entry === null) {
2988
2930
  return null;
2989
2931
  }
2990
- return deserializeAws_restJson1BackendAPIAuthType(entry, context);
2932
+ return de_BackendAPIAuthType(entry, context);
2991
2933
  });
2992
2934
  return retVal;
2993
2935
  };
2994
- const deserializeAws_restJson1ListOfBackendJobRespObj = (output, context) => {
2936
+ const de_ListOfBackendJobRespObj = (output, context) => {
2995
2937
  const retVal = (output || [])
2996
2938
  .filter((e) => e != null)
2997
2939
  .map((entry) => {
2998
2940
  if (entry === null) {
2999
2941
  return null;
3000
2942
  }
3001
- return deserializeAws_restJson1BackendJobRespObj(entry, context);
2943
+ return de_BackendJobRespObj(entry, context);
3002
2944
  });
3003
2945
  return retVal;
3004
2946
  };
3005
- const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
2947
+ const de_ListOfMfaTypesElement = (output, context) => {
3006
2948
  const retVal = (output || [])
3007
2949
  .filter((e) => e != null)
3008
2950
  .map((entry) => {
@@ -3013,7 +2955,7 @@ const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
3013
2955
  });
3014
2956
  return retVal;
3015
2957
  };
3016
- const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
2958
+ const de_ListOfOAuthScopesElement = (output, context) => {
3017
2959
  const retVal = (output || [])
3018
2960
  .filter((e) => e != null)
3019
2961
  .map((entry) => {
@@ -3024,7 +2966,7 @@ const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
3024
2966
  });
3025
2967
  return retVal;
3026
2968
  };
3027
- const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, context) => {
2969
+ const de_ListOfRequiredSignUpAttributesElement = (output, context) => {
3028
2970
  const retVal = (output || [])
3029
2971
  .filter((e) => e != null)
3030
2972
  .map((entry) => {
@@ -3035,18 +2977,18 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, c
3035
2977
  });
3036
2978
  return retVal;
3037
2979
  };
3038
- const deserializeAws_restJson1ListOfS3BucketInfo = (output, context) => {
2980
+ const de_ListOfS3BucketInfo = (output, context) => {
3039
2981
  const retVal = (output || [])
3040
2982
  .filter((e) => e != null)
3041
2983
  .map((entry) => {
3042
2984
  if (entry === null) {
3043
2985
  return null;
3044
2986
  }
3045
- return deserializeAws_restJson1S3BucketInfo(entry, context);
2987
+ return de_S3BucketInfo(entry, context);
3046
2988
  });
3047
2989
  return retVal;
3048
2990
  };
3049
- const deserializeAws_restJson1ListOfUnAuthenticatedElement = (output, context) => {
2991
+ const de_ListOfUnAuthenticatedElement = (output, context) => {
3050
2992
  const retVal = (output || [])
3051
2993
  .filter((e) => e != null)
3052
2994
  .map((entry) => {
@@ -3057,7 +2999,7 @@ const deserializeAws_restJson1ListOfUnAuthenticatedElement = (output, context) =
3057
2999
  });
3058
3000
  return retVal;
3059
3001
  };
3060
- const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
3002
+ const de_LoginAuthConfigReqObj = (output, context) => {
3061
3003
  return {
3062
3004
  AwsCognitoIdentityPoolId: __expectString(output.aws_cognito_identity_pool_id),
3063
3005
  AwsCognitoRegion: __expectString(output.aws_cognito_region),
@@ -3065,37 +3007,29 @@ const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
3065
3007
  AwsUserPoolsWebClientId: __expectString(output.aws_user_pools_web_client_id),
3066
3008
  };
3067
3009
  };
3068
- const deserializeAws_restJson1S3BucketInfo = (output, context) => {
3010
+ const de_S3BucketInfo = (output, context) => {
3069
3011
  return {
3070
3012
  CreationDate: __expectString(output.creationDate),
3071
3013
  Name: __expectString(output.name),
3072
3014
  };
3073
3015
  };
3074
- const deserializeAws_restJson1Settings = (output, context) => {
3016
+ const de_Settings = (output, context) => {
3075
3017
  return {
3076
- MfaTypes: output.mfaTypes != null ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
3018
+ MfaTypes: output.mfaTypes != null ? de_ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
3077
3019
  SmsMessage: __expectString(output.smsMessage),
3078
3020
  };
3079
3021
  };
3080
- const deserializeAws_restJson1SmsSettings = (output, context) => {
3022
+ const de_SmsSettings = (output, context) => {
3081
3023
  return {
3082
3024
  SmsMessage: __expectString(output.smsMessage),
3083
3025
  };
3084
3026
  };
3085
- const deserializeAws_restJson1SocialProviderSettings = (output, context) => {
3027
+ const de_SocialProviderSettings = (output, context) => {
3086
3028
  return {
3087
- Facebook: output.Facebook != null
3088
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Facebook, context)
3089
- : undefined,
3090
- Google: output.Google != null
3091
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Google, context)
3092
- : undefined,
3093
- LoginWithAmazon: output.LoginWithAmazon != null
3094
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.LoginWithAmazon, context)
3095
- : undefined,
3096
- SignInWithApple: output.SignInWithApple != null
3097
- ? deserializeAws_restJson1BackendAuthAppleProviderConfig(output.SignInWithApple, context)
3098
- : undefined,
3029
+ Facebook: output.Facebook != null ? de_BackendAuthSocialProviderConfig(output.Facebook, context) : undefined,
3030
+ Google: output.Google != null ? de_BackendAuthSocialProviderConfig(output.Google, context) : undefined,
3031
+ LoginWithAmazon: output.LoginWithAmazon != null ? de_BackendAuthSocialProviderConfig(output.LoginWithAmazon, context) : undefined,
3032
+ SignInWithApple: output.SignInWithApple != null ? de_BackendAuthAppleProviderConfig(output.SignInWithApple, context) : undefined,
3099
3033
  };
3100
3034
  };
3101
3035
  const deserializeMetadata = (output) => ({