@aws-sdk/client-amplifybackend 3.306.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 +6 -6
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1GetBackendStorageCommand = exports.deserializeAws_restJson1GetBackendJobCommand = exports.deserializeAws_restJson1GetBackendAuthCommand = exports.deserializeAws_restJson1GetBackendAPIModelsCommand = exports.deserializeAws_restJson1GetBackendAPICommand = exports.deserializeAws_restJson1GetBackendCommand = exports.deserializeAws_restJson1GenerateBackendAPIModelsCommand = exports.deserializeAws_restJson1DeleteTokenCommand = exports.deserializeAws_restJson1DeleteBackendStorageCommand = exports.deserializeAws_restJson1DeleteBackendAuthCommand = exports.deserializeAws_restJson1DeleteBackendAPICommand = exports.deserializeAws_restJson1DeleteBackendCommand = exports.deserializeAws_restJson1CreateTokenCommand = exports.deserializeAws_restJson1CreateBackendStorageCommand = exports.deserializeAws_restJson1CreateBackendConfigCommand = exports.deserializeAws_restJson1CreateBackendAuthCommand = exports.deserializeAws_restJson1CreateBackendAPICommand = exports.deserializeAws_restJson1CreateBackendCommand = exports.deserializeAws_restJson1CloneBackendCommand = exports.serializeAws_restJson1UpdateBackendStorageCommand = exports.serializeAws_restJson1UpdateBackendJobCommand = exports.serializeAws_restJson1UpdateBackendConfigCommand = exports.serializeAws_restJson1UpdateBackendAuthCommand = exports.serializeAws_restJson1UpdateBackendAPICommand = exports.serializeAws_restJson1RemoveBackendConfigCommand = exports.serializeAws_restJson1RemoveAllBackendsCommand = exports.serializeAws_restJson1ListS3BucketsCommand = exports.serializeAws_restJson1ListBackendJobsCommand = exports.serializeAws_restJson1ImportBackendStorageCommand = exports.serializeAws_restJson1ImportBackendAuthCommand = exports.serializeAws_restJson1GetTokenCommand = exports.serializeAws_restJson1GetBackendStorageCommand = exports.serializeAws_restJson1GetBackendJobCommand = exports.serializeAws_restJson1GetBackendAuthCommand = exports.serializeAws_restJson1GetBackendAPIModelsCommand = exports.serializeAws_restJson1GetBackendAPICommand = exports.serializeAws_restJson1GetBackendCommand = exports.serializeAws_restJson1GenerateBackendAPIModelsCommand = exports.serializeAws_restJson1DeleteTokenCommand = exports.serializeAws_restJson1DeleteBackendStorageCommand = exports.serializeAws_restJson1DeleteBackendAuthCommand = exports.serializeAws_restJson1DeleteBackendAPICommand = exports.serializeAws_restJson1DeleteBackendCommand = exports.serializeAws_restJson1CreateTokenCommand = exports.serializeAws_restJson1CreateBackendStorageCommand = exports.serializeAws_restJson1CreateBackendConfigCommand = exports.serializeAws_restJson1CreateBackendAuthCommand = exports.serializeAws_restJson1CreateBackendAPICommand = exports.serializeAws_restJson1CreateBackendCommand = exports.serializeAws_restJson1CloneBackendCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateBackendStorageCommand = exports.deserializeAws_restJson1UpdateBackendJobCommand = exports.deserializeAws_restJson1UpdateBackendConfigCommand = exports.deserializeAws_restJson1UpdateBackendAuthCommand = exports.deserializeAws_restJson1UpdateBackendAPICommand = exports.deserializeAws_restJson1RemoveBackendConfigCommand = exports.deserializeAws_restJson1RemoveAllBackendsCommand = exports.deserializeAws_restJson1ListS3BucketsCommand = exports.deserializeAws_restJson1ListBackendJobsCommand = exports.deserializeAws_restJson1ImportBackendStorageCommand = exports.deserializeAws_restJson1ImportBackendAuthCommand = exports.deserializeAws_restJson1GetTokenCommand = void 0;
3
+ exports.de_GetBackendStorageCommand = exports.de_GetBackendJobCommand = exports.de_GetBackendAuthCommand = exports.de_GetBackendAPIModelsCommand = exports.de_GetBackendAPICommand = exports.de_GetBackendCommand = exports.de_GenerateBackendAPIModelsCommand = exports.de_DeleteTokenCommand = exports.de_DeleteBackendStorageCommand = exports.de_DeleteBackendAuthCommand = exports.de_DeleteBackendAPICommand = exports.de_DeleteBackendCommand = exports.de_CreateTokenCommand = exports.de_CreateBackendStorageCommand = exports.de_CreateBackendConfigCommand = exports.de_CreateBackendAuthCommand = exports.de_CreateBackendAPICommand = exports.de_CreateBackendCommand = exports.de_CloneBackendCommand = exports.se_UpdateBackendStorageCommand = exports.se_UpdateBackendJobCommand = exports.se_UpdateBackendConfigCommand = exports.se_UpdateBackendAuthCommand = exports.se_UpdateBackendAPICommand = exports.se_RemoveBackendConfigCommand = exports.se_RemoveAllBackendsCommand = exports.se_ListS3BucketsCommand = exports.se_ListBackendJobsCommand = exports.se_ImportBackendStorageCommand = exports.se_ImportBackendAuthCommand = exports.se_GetTokenCommand = exports.se_GetBackendStorageCommand = exports.se_GetBackendJobCommand = exports.se_GetBackendAuthCommand = exports.se_GetBackendAPIModelsCommand = exports.se_GetBackendAPICommand = exports.se_GetBackendCommand = exports.se_GenerateBackendAPIModelsCommand = exports.se_DeleteTokenCommand = exports.se_DeleteBackendStorageCommand = exports.se_DeleteBackendAuthCommand = exports.se_DeleteBackendAPICommand = exports.se_DeleteBackendCommand = exports.se_CreateTokenCommand = exports.se_CreateBackendStorageCommand = exports.se_CreateBackendConfigCommand = exports.se_CreateBackendAuthCommand = exports.se_CreateBackendAPICommand = exports.se_CreateBackendCommand = exports.se_CloneBackendCommand = void 0;
4
+ exports.de_UpdateBackendStorageCommand = exports.de_UpdateBackendJobCommand = exports.de_UpdateBackendConfigCommand = exports.de_UpdateBackendAuthCommand = exports.de_UpdateBackendAPICommand = exports.de_RemoveBackendConfigCommand = exports.de_RemoveAllBackendsCommand = exports.de_ListS3BucketsCommand = exports.de_ListBackendJobsCommand = exports.de_ImportBackendStorageCommand = exports.de_ImportBackendAuthCommand = exports.de_GetTokenCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const AmplifyBackendServiceException_1 = require("../models/AmplifyBackendServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
- const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
9
+ const se_CloneBackendCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {
12
12
  "content-type": "application/json",
@@ -29,8 +29,8 @@ const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
29
29
  body,
30
30
  });
31
31
  };
32
- exports.serializeAws_restJson1CloneBackendCommand = serializeAws_restJson1CloneBackendCommand;
33
- const serializeAws_restJson1CreateBackendCommand = async (input, context) => {
32
+ exports.se_CloneBackendCommand = se_CloneBackendCommand;
33
+ const se_CreateBackendCommand = async (input, context) => {
34
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
35
  const headers = {
36
36
  "content-type": "application/json",
@@ -41,9 +41,7 @@ const serializeAws_restJson1CreateBackendCommand = async (input, context) => {
41
41
  ...(input.AppId != null && { appId: input.AppId }),
42
42
  ...(input.AppName != null && { appName: input.AppName }),
43
43
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
44
- ...(input.ResourceConfig != null && {
45
- resourceConfig: serializeAws_restJson1ResourceConfig(input.ResourceConfig, context),
46
- }),
44
+ ...(input.ResourceConfig != null && { resourceConfig: se_ResourceConfig(input.ResourceConfig, context) }),
47
45
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
48
46
  });
49
47
  return new protocol_http_1.HttpRequest({
@@ -56,8 +54,8 @@ const serializeAws_restJson1CreateBackendCommand = async (input, context) => {
56
54
  body,
57
55
  });
58
56
  };
59
- exports.serializeAws_restJson1CreateBackendCommand = serializeAws_restJson1CreateBackendCommand;
60
- const serializeAws_restJson1CreateBackendAPICommand = async (input, context) => {
57
+ exports.se_CreateBackendCommand = se_CreateBackendCommand;
58
+ const se_CreateBackendAPICommand = async (input, context) => {
61
59
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
60
  const headers = {
63
61
  "content-type": "application/json",
@@ -67,9 +65,7 @@ const serializeAws_restJson1CreateBackendAPICommand = async (input, context) =>
67
65
  let body;
68
66
  body = JSON.stringify({
69
67
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
70
- ...(input.ResourceConfig != null && {
71
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
72
- }),
68
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
73
69
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
74
70
  });
75
71
  return new protocol_http_1.HttpRequest({
@@ -82,8 +78,8 @@ const serializeAws_restJson1CreateBackendAPICommand = async (input, context) =>
82
78
  body,
83
79
  });
84
80
  };
85
- exports.serializeAws_restJson1CreateBackendAPICommand = serializeAws_restJson1CreateBackendAPICommand;
86
- const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) => {
81
+ exports.se_CreateBackendAPICommand = se_CreateBackendAPICommand;
82
+ const se_CreateBackendAuthCommand = async (input, context) => {
87
83
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
84
  const headers = {
89
85
  "content-type": "application/json",
@@ -94,7 +90,7 @@ const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) =>
94
90
  body = JSON.stringify({
95
91
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
96
92
  ...(input.ResourceConfig != null && {
97
- resourceConfig: serializeAws_restJson1CreateBackendAuthResourceConfig(input.ResourceConfig, context),
93
+ resourceConfig: se_CreateBackendAuthResourceConfig(input.ResourceConfig, context),
98
94
  }),
99
95
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
100
96
  });
@@ -108,8 +104,8 @@ const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) =>
108
104
  body,
109
105
  });
110
106
  };
111
- exports.serializeAws_restJson1CreateBackendAuthCommand = serializeAws_restJson1CreateBackendAuthCommand;
112
- const serializeAws_restJson1CreateBackendConfigCommand = async (input, context) => {
107
+ exports.se_CreateBackendAuthCommand = se_CreateBackendAuthCommand;
108
+ const se_CreateBackendConfigCommand = async (input, context) => {
113
109
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
114
110
  const headers = {
115
111
  "content-type": "application/json",
@@ -130,8 +126,8 @@ const serializeAws_restJson1CreateBackendConfigCommand = async (input, context)
130
126
  body,
131
127
  });
132
128
  };
133
- exports.serializeAws_restJson1CreateBackendConfigCommand = serializeAws_restJson1CreateBackendConfigCommand;
134
- const serializeAws_restJson1CreateBackendStorageCommand = async (input, context) => {
129
+ exports.se_CreateBackendConfigCommand = se_CreateBackendConfigCommand;
130
+ const se_CreateBackendStorageCommand = async (input, context) => {
135
131
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
132
  const headers = {
137
133
  "content-type": "application/json",
@@ -142,7 +138,7 @@ const serializeAws_restJson1CreateBackendStorageCommand = async (input, context)
142
138
  body = JSON.stringify({
143
139
  ...(input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName }),
144
140
  ...(input.ResourceConfig != null && {
145
- resourceConfig: serializeAws_restJson1CreateBackendStorageResourceConfig(input.ResourceConfig, context),
141
+ resourceConfig: se_CreateBackendStorageResourceConfig(input.ResourceConfig, context),
146
142
  }),
147
143
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
148
144
  });
@@ -156,8 +152,8 @@ const serializeAws_restJson1CreateBackendStorageCommand = async (input, context)
156
152
  body,
157
153
  });
158
154
  };
159
- exports.serializeAws_restJson1CreateBackendStorageCommand = serializeAws_restJson1CreateBackendStorageCommand;
160
- const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
155
+ exports.se_CreateBackendStorageCommand = se_CreateBackendStorageCommand;
156
+ const se_CreateTokenCommand = async (input, context) => {
161
157
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
158
  const headers = {};
163
159
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge";
@@ -173,8 +169,8 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
173
169
  body,
174
170
  });
175
171
  };
176
- exports.serializeAws_restJson1CreateTokenCommand = serializeAws_restJson1CreateTokenCommand;
177
- const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
172
+ exports.se_CreateTokenCommand = se_CreateTokenCommand;
173
+ const se_DeleteBackendCommand = async (input, context) => {
178
174
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
175
  const headers = {};
180
176
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -192,8 +188,8 @@ const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
192
188
  body,
193
189
  });
194
190
  };
195
- exports.serializeAws_restJson1DeleteBackendCommand = serializeAws_restJson1DeleteBackendCommand;
196
- const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) => {
191
+ exports.se_DeleteBackendCommand = se_DeleteBackendCommand;
192
+ const se_DeleteBackendAPICommand = async (input, context) => {
197
193
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
194
  const headers = {
199
195
  "content-type": "application/json",
@@ -204,9 +200,7 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
204
200
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
205
201
  let body;
206
202
  body = JSON.stringify({
207
- ...(input.ResourceConfig != null && {
208
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
209
- }),
203
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
210
204
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
211
205
  });
212
206
  return new protocol_http_1.HttpRequest({
@@ -219,8 +213,8 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
219
213
  body,
220
214
  });
221
215
  };
222
- exports.serializeAws_restJson1DeleteBackendAPICommand = serializeAws_restJson1DeleteBackendAPICommand;
223
- const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) => {
216
+ exports.se_DeleteBackendAPICommand = se_DeleteBackendAPICommand;
217
+ const se_DeleteBackendAuthCommand = async (input, context) => {
224
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
219
  const headers = {
226
220
  "content-type": "application/json",
@@ -243,8 +237,8 @@ const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) =>
243
237
  body,
244
238
  });
245
239
  };
246
- exports.serializeAws_restJson1DeleteBackendAuthCommand = serializeAws_restJson1DeleteBackendAuthCommand;
247
- const serializeAws_restJson1DeleteBackendStorageCommand = async (input, context) => {
240
+ exports.se_DeleteBackendAuthCommand = se_DeleteBackendAuthCommand;
241
+ const se_DeleteBackendStorageCommand = async (input, context) => {
248
242
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
243
  const headers = {
250
244
  "content-type": "application/json",
@@ -268,8 +262,8 @@ const serializeAws_restJson1DeleteBackendStorageCommand = async (input, context)
268
262
  body,
269
263
  });
270
264
  };
271
- exports.serializeAws_restJson1DeleteBackendStorageCommand = serializeAws_restJson1DeleteBackendStorageCommand;
272
- const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
265
+ exports.se_DeleteBackendStorageCommand = se_DeleteBackendStorageCommand;
266
+ const se_DeleteTokenCommand = async (input, context) => {
273
267
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
268
  const headers = {};
275
269
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -287,8 +281,8 @@ const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
287
281
  body,
288
282
  });
289
283
  };
290
- exports.serializeAws_restJson1DeleteTokenCommand = serializeAws_restJson1DeleteTokenCommand;
291
- const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, context) => {
284
+ exports.se_DeleteTokenCommand = se_DeleteTokenCommand;
285
+ const se_GenerateBackendAPIModelsCommand = async (input, context) => {
292
286
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
287
  const headers = {
294
288
  "content-type": "application/json",
@@ -311,8 +305,8 @@ const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, cont
311
305
  body,
312
306
  });
313
307
  };
314
- exports.serializeAws_restJson1GenerateBackendAPIModelsCommand = serializeAws_restJson1GenerateBackendAPIModelsCommand;
315
- const serializeAws_restJson1GetBackendCommand = async (input, context) => {
308
+ exports.se_GenerateBackendAPIModelsCommand = se_GenerateBackendAPIModelsCommand;
309
+ const se_GetBackendCommand = async (input, context) => {
316
310
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
311
  const headers = {
318
312
  "content-type": "application/json",
@@ -333,8 +327,8 @@ const serializeAws_restJson1GetBackendCommand = async (input, context) => {
333
327
  body,
334
328
  });
335
329
  };
336
- exports.serializeAws_restJson1GetBackendCommand = serializeAws_restJson1GetBackendCommand;
337
- const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
330
+ exports.se_GetBackendCommand = se_GetBackendCommand;
331
+ const se_GetBackendAPICommand = async (input, context) => {
338
332
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
333
  const headers = {
340
334
  "content-type": "application/json",
@@ -345,9 +339,7 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
345
339
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
346
340
  let body;
347
341
  body = JSON.stringify({
348
- ...(input.ResourceConfig != null && {
349
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
350
- }),
342
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
351
343
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
352
344
  });
353
345
  return new protocol_http_1.HttpRequest({
@@ -360,8 +352,8 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
360
352
  body,
361
353
  });
362
354
  };
363
- exports.serializeAws_restJson1GetBackendAPICommand = serializeAws_restJson1GetBackendAPICommand;
364
- const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context) => {
355
+ exports.se_GetBackendAPICommand = se_GetBackendAPICommand;
356
+ const se_GetBackendAPIModelsCommand = async (input, context) => {
365
357
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
358
  const headers = {
367
359
  "content-type": "application/json",
@@ -384,8 +376,8 @@ const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context)
384
376
  body,
385
377
  });
386
378
  };
387
- exports.serializeAws_restJson1GetBackendAPIModelsCommand = serializeAws_restJson1GetBackendAPIModelsCommand;
388
- const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
379
+ exports.se_GetBackendAPIModelsCommand = se_GetBackendAPIModelsCommand;
380
+ const se_GetBackendAuthCommand = async (input, context) => {
389
381
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
382
  const headers = {
391
383
  "content-type": "application/json",
@@ -408,8 +400,8 @@ const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
408
400
  body,
409
401
  });
410
402
  };
411
- exports.serializeAws_restJson1GetBackendAuthCommand = serializeAws_restJson1GetBackendAuthCommand;
412
- const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
403
+ exports.se_GetBackendAuthCommand = se_GetBackendAuthCommand;
404
+ const se_GetBackendJobCommand = async (input, context) => {
413
405
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
414
406
  const headers = {};
415
407
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -428,8 +420,8 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
428
420
  body,
429
421
  });
430
422
  };
431
- exports.serializeAws_restJson1GetBackendJobCommand = serializeAws_restJson1GetBackendJobCommand;
432
- const serializeAws_restJson1GetBackendStorageCommand = async (input, context) => {
423
+ exports.se_GetBackendJobCommand = se_GetBackendJobCommand;
424
+ const se_GetBackendStorageCommand = async (input, context) => {
433
425
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
434
426
  const headers = {
435
427
  "content-type": "application/json",
@@ -452,8 +444,8 @@ const serializeAws_restJson1GetBackendStorageCommand = async (input, context) =>
452
444
  body,
453
445
  });
454
446
  };
455
- exports.serializeAws_restJson1GetBackendStorageCommand = serializeAws_restJson1GetBackendStorageCommand;
456
- const serializeAws_restJson1GetTokenCommand = async (input, context) => {
447
+ exports.se_GetBackendStorageCommand = se_GetBackendStorageCommand;
448
+ const se_GetTokenCommand = async (input, context) => {
457
449
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
450
  const headers = {};
459
451
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge/{SessionId}";
@@ -470,8 +462,8 @@ const serializeAws_restJson1GetTokenCommand = async (input, context) => {
470
462
  body,
471
463
  });
472
464
  };
473
- exports.serializeAws_restJson1GetTokenCommand = serializeAws_restJson1GetTokenCommand;
474
- const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) => {
465
+ exports.se_GetTokenCommand = se_GetTokenCommand;
466
+ const se_ImportBackendAuthCommand = async (input, context) => {
475
467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
468
  const headers = {
477
469
  "content-type": "application/json",
@@ -497,8 +489,8 @@ const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) =>
497
489
  body,
498
490
  });
499
491
  };
500
- exports.serializeAws_restJson1ImportBackendAuthCommand = serializeAws_restJson1ImportBackendAuthCommand;
501
- const serializeAws_restJson1ImportBackendStorageCommand = async (input, context) => {
492
+ exports.se_ImportBackendAuthCommand = se_ImportBackendAuthCommand;
493
+ const se_ImportBackendStorageCommand = async (input, context) => {
502
494
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
503
495
  const headers = {
504
496
  "content-type": "application/json",
@@ -522,8 +514,8 @@ const serializeAws_restJson1ImportBackendStorageCommand = async (input, context)
522
514
  body,
523
515
  });
524
516
  };
525
- exports.serializeAws_restJson1ImportBackendStorageCommand = serializeAws_restJson1ImportBackendStorageCommand;
526
- const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
517
+ exports.se_ImportBackendStorageCommand = se_ImportBackendStorageCommand;
518
+ const se_ListBackendJobsCommand = async (input, context) => {
527
519
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
520
  const headers = {
529
521
  "content-type": "application/json",
@@ -550,8 +542,8 @@ const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
550
542
  body,
551
543
  });
552
544
  };
553
- exports.serializeAws_restJson1ListBackendJobsCommand = serializeAws_restJson1ListBackendJobsCommand;
554
- const serializeAws_restJson1ListS3BucketsCommand = async (input, context) => {
545
+ exports.se_ListBackendJobsCommand = se_ListBackendJobsCommand;
546
+ const se_ListS3BucketsCommand = async (input, context) => {
555
547
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
556
548
  const headers = {
557
549
  "content-type": "application/json",
@@ -571,8 +563,8 @@ const serializeAws_restJson1ListS3BucketsCommand = async (input, context) => {
571
563
  body,
572
564
  });
573
565
  };
574
- exports.serializeAws_restJson1ListS3BucketsCommand = serializeAws_restJson1ListS3BucketsCommand;
575
- const serializeAws_restJson1RemoveAllBackendsCommand = async (input, context) => {
566
+ exports.se_ListS3BucketsCommand = se_ListS3BucketsCommand;
567
+ const se_RemoveAllBackendsCommand = async (input, context) => {
576
568
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
569
  const headers = {
578
570
  "content-type": "application/json",
@@ -593,8 +585,8 @@ const serializeAws_restJson1RemoveAllBackendsCommand = async (input, context) =>
593
585
  body,
594
586
  });
595
587
  };
596
- exports.serializeAws_restJson1RemoveAllBackendsCommand = serializeAws_restJson1RemoveAllBackendsCommand;
597
- const serializeAws_restJson1RemoveBackendConfigCommand = async (input, context) => {
588
+ exports.se_RemoveAllBackendsCommand = se_RemoveAllBackendsCommand;
589
+ const se_RemoveBackendConfigCommand = async (input, context) => {
598
590
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
599
591
  const headers = {};
600
592
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config/remove";
@@ -610,8 +602,8 @@ const serializeAws_restJson1RemoveBackendConfigCommand = async (input, context)
610
602
  body,
611
603
  });
612
604
  };
613
- exports.serializeAws_restJson1RemoveBackendConfigCommand = serializeAws_restJson1RemoveBackendConfigCommand;
614
- const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) => {
605
+ exports.se_RemoveBackendConfigCommand = se_RemoveBackendConfigCommand;
606
+ const se_UpdateBackendAPICommand = async (input, context) => {
615
607
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
608
  const headers = {
617
609
  "content-type": "application/json",
@@ -622,9 +614,7 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
622
614
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
623
615
  let body;
624
616
  body = JSON.stringify({
625
- ...(input.ResourceConfig != null && {
626
- resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
627
- }),
617
+ ...(input.ResourceConfig != null && { resourceConfig: se_BackendAPIResourceConfig(input.ResourceConfig, context) }),
628
618
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
629
619
  });
630
620
  return new protocol_http_1.HttpRequest({
@@ -637,8 +627,8 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
637
627
  body,
638
628
  });
639
629
  };
640
- exports.serializeAws_restJson1UpdateBackendAPICommand = serializeAws_restJson1UpdateBackendAPICommand;
641
- const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) => {
630
+ exports.se_UpdateBackendAPICommand = se_UpdateBackendAPICommand;
631
+ const se_UpdateBackendAuthCommand = async (input, context) => {
642
632
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
643
633
  const headers = {
644
634
  "content-type": "application/json",
@@ -650,7 +640,7 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
650
640
  let body;
651
641
  body = JSON.stringify({
652
642
  ...(input.ResourceConfig != null && {
653
- resourceConfig: serializeAws_restJson1UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
643
+ resourceConfig: se_UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
654
644
  }),
655
645
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
656
646
  });
@@ -664,8 +654,8 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
664
654
  body,
665
655
  });
666
656
  };
667
- exports.serializeAws_restJson1UpdateBackendAuthCommand = serializeAws_restJson1UpdateBackendAuthCommand;
668
- const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context) => {
657
+ exports.se_UpdateBackendAuthCommand = se_UpdateBackendAuthCommand;
658
+ const se_UpdateBackendConfigCommand = async (input, context) => {
669
659
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
660
  const headers = {
671
661
  "content-type": "application/json",
@@ -674,9 +664,7 @@ const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context)
674
664
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppId", () => input.AppId, "{AppId}", false);
675
665
  let body;
676
666
  body = JSON.stringify({
677
- ...(input.LoginAuthConfig != null && {
678
- loginAuthConfig: serializeAws_restJson1LoginAuthConfigReqObj(input.LoginAuthConfig, context),
679
- }),
667
+ ...(input.LoginAuthConfig != null && { loginAuthConfig: se_LoginAuthConfigReqObj(input.LoginAuthConfig, context) }),
680
668
  });
681
669
  return new protocol_http_1.HttpRequest({
682
670
  protocol,
@@ -688,8 +676,8 @@ const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context)
688
676
  body,
689
677
  });
690
678
  };
691
- exports.serializeAws_restJson1UpdateBackendConfigCommand = serializeAws_restJson1UpdateBackendConfigCommand;
692
- const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) => {
679
+ exports.se_UpdateBackendConfigCommand = se_UpdateBackendConfigCommand;
680
+ const se_UpdateBackendJobCommand = async (input, context) => {
693
681
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
682
  const headers = {
695
683
  "content-type": "application/json",
@@ -714,8 +702,8 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
714
702
  body,
715
703
  });
716
704
  };
717
- exports.serializeAws_restJson1UpdateBackendJobCommand = serializeAws_restJson1UpdateBackendJobCommand;
718
- const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context) => {
705
+ exports.se_UpdateBackendJobCommand = se_UpdateBackendJobCommand;
706
+ const se_UpdateBackendStorageCommand = async (input, context) => {
719
707
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
720
708
  const headers = {
721
709
  "content-type": "application/json",
@@ -727,7 +715,7 @@ const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context)
727
715
  let body;
728
716
  body = JSON.stringify({
729
717
  ...(input.ResourceConfig != null && {
730
- resourceConfig: serializeAws_restJson1UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
718
+ resourceConfig: se_UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
731
719
  }),
732
720
  ...(input.ResourceName != null && { resourceName: input.ResourceName }),
733
721
  });
@@ -741,10 +729,10 @@ const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context)
741
729
  body,
742
730
  });
743
731
  };
744
- exports.serializeAws_restJson1UpdateBackendStorageCommand = serializeAws_restJson1UpdateBackendStorageCommand;
745
- const deserializeAws_restJson1CloneBackendCommand = async (output, context) => {
732
+ exports.se_UpdateBackendStorageCommand = se_UpdateBackendStorageCommand;
733
+ const de_CloneBackendCommand = async (output, context) => {
746
734
  if (output.statusCode !== 200 && output.statusCode >= 300) {
747
- return deserializeAws_restJson1CloneBackendCommandError(output, context);
735
+ return de_CloneBackendCommandError(output, context);
748
736
  }
749
737
  const contents = map({
750
738
  $metadata: deserializeMetadata(output),
@@ -770,8 +758,8 @@ const deserializeAws_restJson1CloneBackendCommand = async (output, context) => {
770
758
  }
771
759
  return contents;
772
760
  };
773
- exports.deserializeAws_restJson1CloneBackendCommand = deserializeAws_restJson1CloneBackendCommand;
774
- const deserializeAws_restJson1CloneBackendCommandError = async (output, context) => {
761
+ exports.de_CloneBackendCommand = de_CloneBackendCommand;
762
+ const de_CloneBackendCommandError = async (output, context) => {
775
763
  const parsedOutput = {
776
764
  ...output,
777
765
  body: await parseErrorBody(output.body, context),
@@ -780,16 +768,16 @@ const deserializeAws_restJson1CloneBackendCommandError = async (output, context)
780
768
  switch (errorCode) {
781
769
  case "BadRequestException":
782
770
  case "com.amazonaws.amplifybackend#BadRequestException":
783
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
771
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
784
772
  case "GatewayTimeoutException":
785
773
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
786
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
774
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
787
775
  case "NotFoundException":
788
776
  case "com.amazonaws.amplifybackend#NotFoundException":
789
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
777
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
790
778
  case "TooManyRequestsException":
791
779
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
792
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
780
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
793
781
  default:
794
782
  const parsedBody = parsedOutput.body;
795
783
  (0, smithy_client_1.throwDefaultError)({
@@ -800,9 +788,9 @@ const deserializeAws_restJson1CloneBackendCommandError = async (output, context)
800
788
  });
801
789
  }
802
790
  };
803
- const deserializeAws_restJson1CreateBackendCommand = async (output, context) => {
791
+ const de_CreateBackendCommand = async (output, context) => {
804
792
  if (output.statusCode !== 200 && output.statusCode >= 300) {
805
- return deserializeAws_restJson1CreateBackendCommandError(output, context);
793
+ return de_CreateBackendCommandError(output, context);
806
794
  }
807
795
  const contents = map({
808
796
  $metadata: deserializeMetadata(output),
@@ -828,8 +816,8 @@ const deserializeAws_restJson1CreateBackendCommand = async (output, context) =>
828
816
  }
829
817
  return contents;
830
818
  };
831
- exports.deserializeAws_restJson1CreateBackendCommand = deserializeAws_restJson1CreateBackendCommand;
832
- const deserializeAws_restJson1CreateBackendCommandError = async (output, context) => {
819
+ exports.de_CreateBackendCommand = de_CreateBackendCommand;
820
+ const de_CreateBackendCommandError = async (output, context) => {
833
821
  const parsedOutput = {
834
822
  ...output,
835
823
  body: await parseErrorBody(output.body, context),
@@ -838,16 +826,16 @@ const deserializeAws_restJson1CreateBackendCommandError = async (output, context
838
826
  switch (errorCode) {
839
827
  case "BadRequestException":
840
828
  case "com.amazonaws.amplifybackend#BadRequestException":
841
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
829
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
842
830
  case "GatewayTimeoutException":
843
831
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
844
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
832
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
845
833
  case "NotFoundException":
846
834
  case "com.amazonaws.amplifybackend#NotFoundException":
847
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
835
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
848
836
  case "TooManyRequestsException":
849
837
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
850
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
838
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
851
839
  default:
852
840
  const parsedBody = parsedOutput.body;
853
841
  (0, smithy_client_1.throwDefaultError)({
@@ -858,9 +846,9 @@ const deserializeAws_restJson1CreateBackendCommandError = async (output, context
858
846
  });
859
847
  }
860
848
  };
861
- const deserializeAws_restJson1CreateBackendAPICommand = async (output, context) => {
849
+ const de_CreateBackendAPICommand = async (output, context) => {
862
850
  if (output.statusCode !== 200 && output.statusCode >= 300) {
863
- return deserializeAws_restJson1CreateBackendAPICommandError(output, context);
851
+ return de_CreateBackendAPICommandError(output, context);
864
852
  }
865
853
  const contents = map({
866
854
  $metadata: deserializeMetadata(output),
@@ -886,8 +874,8 @@ const deserializeAws_restJson1CreateBackendAPICommand = async (output, context)
886
874
  }
887
875
  return contents;
888
876
  };
889
- exports.deserializeAws_restJson1CreateBackendAPICommand = deserializeAws_restJson1CreateBackendAPICommand;
890
- const deserializeAws_restJson1CreateBackendAPICommandError = async (output, context) => {
877
+ exports.de_CreateBackendAPICommand = de_CreateBackendAPICommand;
878
+ const de_CreateBackendAPICommandError = async (output, context) => {
891
879
  const parsedOutput = {
892
880
  ...output,
893
881
  body: await parseErrorBody(output.body, context),
@@ -896,16 +884,16 @@ const deserializeAws_restJson1CreateBackendAPICommandError = async (output, cont
896
884
  switch (errorCode) {
897
885
  case "BadRequestException":
898
886
  case "com.amazonaws.amplifybackend#BadRequestException":
899
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
887
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
900
888
  case "GatewayTimeoutException":
901
889
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
902
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
890
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
903
891
  case "NotFoundException":
904
892
  case "com.amazonaws.amplifybackend#NotFoundException":
905
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
893
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
906
894
  case "TooManyRequestsException":
907
895
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
908
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
896
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
909
897
  default:
910
898
  const parsedBody = parsedOutput.body;
911
899
  (0, smithy_client_1.throwDefaultError)({
@@ -916,9 +904,9 @@ const deserializeAws_restJson1CreateBackendAPICommandError = async (output, cont
916
904
  });
917
905
  }
918
906
  };
919
- const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context) => {
907
+ const de_CreateBackendAuthCommand = async (output, context) => {
920
908
  if (output.statusCode !== 200 && output.statusCode >= 300) {
921
- return deserializeAws_restJson1CreateBackendAuthCommandError(output, context);
909
+ return de_CreateBackendAuthCommandError(output, context);
922
910
  }
923
911
  const contents = map({
924
912
  $metadata: deserializeMetadata(output),
@@ -944,8 +932,8 @@ const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context)
944
932
  }
945
933
  return contents;
946
934
  };
947
- exports.deserializeAws_restJson1CreateBackendAuthCommand = deserializeAws_restJson1CreateBackendAuthCommand;
948
- const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, context) => {
935
+ exports.de_CreateBackendAuthCommand = de_CreateBackendAuthCommand;
936
+ const de_CreateBackendAuthCommandError = async (output, context) => {
949
937
  const parsedOutput = {
950
938
  ...output,
951
939
  body: await parseErrorBody(output.body, context),
@@ -954,16 +942,16 @@ const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, con
954
942
  switch (errorCode) {
955
943
  case "BadRequestException":
956
944
  case "com.amazonaws.amplifybackend#BadRequestException":
957
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
945
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
958
946
  case "GatewayTimeoutException":
959
947
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
960
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
948
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
961
949
  case "NotFoundException":
962
950
  case "com.amazonaws.amplifybackend#NotFoundException":
963
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
951
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
964
952
  case "TooManyRequestsException":
965
953
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
966
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
954
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
967
955
  default:
968
956
  const parsedBody = parsedOutput.body;
969
957
  (0, smithy_client_1.throwDefaultError)({
@@ -974,9 +962,9 @@ const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, con
974
962
  });
975
963
  }
976
964
  };
977
- const deserializeAws_restJson1CreateBackendConfigCommand = async (output, context) => {
965
+ const de_CreateBackendConfigCommand = async (output, context) => {
978
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
979
- return deserializeAws_restJson1CreateBackendConfigCommandError(output, context);
967
+ return de_CreateBackendConfigCommandError(output, context);
980
968
  }
981
969
  const contents = map({
982
970
  $metadata: deserializeMetadata(output),
@@ -996,8 +984,8 @@ const deserializeAws_restJson1CreateBackendConfigCommand = async (output, contex
996
984
  }
997
985
  return contents;
998
986
  };
999
- exports.deserializeAws_restJson1CreateBackendConfigCommand = deserializeAws_restJson1CreateBackendConfigCommand;
1000
- const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, context) => {
987
+ exports.de_CreateBackendConfigCommand = de_CreateBackendConfigCommand;
988
+ const de_CreateBackendConfigCommandError = async (output, context) => {
1001
989
  const parsedOutput = {
1002
990
  ...output,
1003
991
  body: await parseErrorBody(output.body, context),
@@ -1006,16 +994,16 @@ const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, c
1006
994
  switch (errorCode) {
1007
995
  case "BadRequestException":
1008
996
  case "com.amazonaws.amplifybackend#BadRequestException":
1009
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
997
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1010
998
  case "GatewayTimeoutException":
1011
999
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1012
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1000
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1013
1001
  case "NotFoundException":
1014
1002
  case "com.amazonaws.amplifybackend#NotFoundException":
1015
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1003
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1016
1004
  case "TooManyRequestsException":
1017
1005
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1018
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1006
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1019
1007
  default:
1020
1008
  const parsedBody = parsedOutput.body;
1021
1009
  (0, smithy_client_1.throwDefaultError)({
@@ -1026,9 +1014,9 @@ const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, c
1026
1014
  });
1027
1015
  }
1028
1016
  };
1029
- const deserializeAws_restJson1CreateBackendStorageCommand = async (output, context) => {
1017
+ const de_CreateBackendStorageCommand = async (output, context) => {
1030
1018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
- return deserializeAws_restJson1CreateBackendStorageCommandError(output, context);
1019
+ return de_CreateBackendStorageCommandError(output, context);
1032
1020
  }
1033
1021
  const contents = map({
1034
1022
  $metadata: deserializeMetadata(output),
@@ -1048,8 +1036,8 @@ const deserializeAws_restJson1CreateBackendStorageCommand = async (output, conte
1048
1036
  }
1049
1037
  return contents;
1050
1038
  };
1051
- exports.deserializeAws_restJson1CreateBackendStorageCommand = deserializeAws_restJson1CreateBackendStorageCommand;
1052
- const deserializeAws_restJson1CreateBackendStorageCommandError = async (output, context) => {
1039
+ exports.de_CreateBackendStorageCommand = de_CreateBackendStorageCommand;
1040
+ const de_CreateBackendStorageCommandError = async (output, context) => {
1053
1041
  const parsedOutput = {
1054
1042
  ...output,
1055
1043
  body: await parseErrorBody(output.body, context),
@@ -1058,16 +1046,16 @@ const deserializeAws_restJson1CreateBackendStorageCommandError = async (output,
1058
1046
  switch (errorCode) {
1059
1047
  case "BadRequestException":
1060
1048
  case "com.amazonaws.amplifybackend#BadRequestException":
1061
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1049
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1062
1050
  case "GatewayTimeoutException":
1063
1051
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1064
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1052
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1065
1053
  case "NotFoundException":
1066
1054
  case "com.amazonaws.amplifybackend#NotFoundException":
1067
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1055
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1068
1056
  case "TooManyRequestsException":
1069
1057
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1070
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1058
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1071
1059
  default:
1072
1060
  const parsedBody = parsedOutput.body;
1073
1061
  (0, smithy_client_1.throwDefaultError)({
@@ -1078,9 +1066,9 @@ const deserializeAws_restJson1CreateBackendStorageCommandError = async (output,
1078
1066
  });
1079
1067
  }
1080
1068
  };
1081
- const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
1069
+ const de_CreateTokenCommand = async (output, context) => {
1082
1070
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1083
- return deserializeAws_restJson1CreateTokenCommandError(output, context);
1071
+ return de_CreateTokenCommandError(output, context);
1084
1072
  }
1085
1073
  const contents = map({
1086
1074
  $metadata: deserializeMetadata(output),
@@ -1100,8 +1088,8 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
1100
1088
  }
1101
1089
  return contents;
1102
1090
  };
1103
- exports.deserializeAws_restJson1CreateTokenCommand = deserializeAws_restJson1CreateTokenCommand;
1104
- const deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
1091
+ exports.de_CreateTokenCommand = de_CreateTokenCommand;
1092
+ const de_CreateTokenCommandError = async (output, context) => {
1105
1093
  const parsedOutput = {
1106
1094
  ...output,
1107
1095
  body: await parseErrorBody(output.body, context),
@@ -1110,16 +1098,16 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
1110
1098
  switch (errorCode) {
1111
1099
  case "BadRequestException":
1112
1100
  case "com.amazonaws.amplifybackend#BadRequestException":
1113
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1101
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1114
1102
  case "GatewayTimeoutException":
1115
1103
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1116
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1104
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1117
1105
  case "NotFoundException":
1118
1106
  case "com.amazonaws.amplifybackend#NotFoundException":
1119
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1107
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1120
1108
  case "TooManyRequestsException":
1121
1109
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1122
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1110
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1123
1111
  default:
1124
1112
  const parsedBody = parsedOutput.body;
1125
1113
  (0, smithy_client_1.throwDefaultError)({
@@ -1130,9 +1118,9 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
1130
1118
  });
1131
1119
  }
1132
1120
  };
1133
- const deserializeAws_restJson1DeleteBackendCommand = async (output, context) => {
1121
+ const de_DeleteBackendCommand = async (output, context) => {
1134
1122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
- return deserializeAws_restJson1DeleteBackendCommandError(output, context);
1123
+ return de_DeleteBackendCommandError(output, context);
1136
1124
  }
1137
1125
  const contents = map({
1138
1126
  $metadata: deserializeMetadata(output),
@@ -1158,8 +1146,8 @@ const deserializeAws_restJson1DeleteBackendCommand = async (output, context) =>
1158
1146
  }
1159
1147
  return contents;
1160
1148
  };
1161
- exports.deserializeAws_restJson1DeleteBackendCommand = deserializeAws_restJson1DeleteBackendCommand;
1162
- const deserializeAws_restJson1DeleteBackendCommandError = async (output, context) => {
1149
+ exports.de_DeleteBackendCommand = de_DeleteBackendCommand;
1150
+ const de_DeleteBackendCommandError = async (output, context) => {
1163
1151
  const parsedOutput = {
1164
1152
  ...output,
1165
1153
  body: await parseErrorBody(output.body, context),
@@ -1168,16 +1156,16 @@ const deserializeAws_restJson1DeleteBackendCommandError = async (output, context
1168
1156
  switch (errorCode) {
1169
1157
  case "BadRequestException":
1170
1158
  case "com.amazonaws.amplifybackend#BadRequestException":
1171
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1159
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1172
1160
  case "GatewayTimeoutException":
1173
1161
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1174
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1162
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1175
1163
  case "NotFoundException":
1176
1164
  case "com.amazonaws.amplifybackend#NotFoundException":
1177
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1165
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1178
1166
  case "TooManyRequestsException":
1179
1167
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1180
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1168
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1181
1169
  default:
1182
1170
  const parsedBody = parsedOutput.body;
1183
1171
  (0, smithy_client_1.throwDefaultError)({
@@ -1188,9 +1176,9 @@ const deserializeAws_restJson1DeleteBackendCommandError = async (output, context
1188
1176
  });
1189
1177
  }
1190
1178
  };
1191
- const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context) => {
1179
+ const de_DeleteBackendAPICommand = async (output, context) => {
1192
1180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
- return deserializeAws_restJson1DeleteBackendAPICommandError(output, context);
1181
+ return de_DeleteBackendAPICommandError(output, context);
1194
1182
  }
1195
1183
  const contents = map({
1196
1184
  $metadata: deserializeMetadata(output),
@@ -1216,8 +1204,8 @@ const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context)
1216
1204
  }
1217
1205
  return contents;
1218
1206
  };
1219
- exports.deserializeAws_restJson1DeleteBackendAPICommand = deserializeAws_restJson1DeleteBackendAPICommand;
1220
- const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, context) => {
1207
+ exports.de_DeleteBackendAPICommand = de_DeleteBackendAPICommand;
1208
+ const de_DeleteBackendAPICommandError = async (output, context) => {
1221
1209
  const parsedOutput = {
1222
1210
  ...output,
1223
1211
  body: await parseErrorBody(output.body, context),
@@ -1226,16 +1214,16 @@ const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, cont
1226
1214
  switch (errorCode) {
1227
1215
  case "BadRequestException":
1228
1216
  case "com.amazonaws.amplifybackend#BadRequestException":
1229
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1217
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1230
1218
  case "GatewayTimeoutException":
1231
1219
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1232
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1220
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1233
1221
  case "NotFoundException":
1234
1222
  case "com.amazonaws.amplifybackend#NotFoundException":
1235
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1223
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1236
1224
  case "TooManyRequestsException":
1237
1225
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1238
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1226
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1239
1227
  default:
1240
1228
  const parsedBody = parsedOutput.body;
1241
1229
  (0, smithy_client_1.throwDefaultError)({
@@ -1246,9 +1234,9 @@ const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, cont
1246
1234
  });
1247
1235
  }
1248
1236
  };
1249
- const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context) => {
1237
+ const de_DeleteBackendAuthCommand = async (output, context) => {
1250
1238
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1251
- return deserializeAws_restJson1DeleteBackendAuthCommandError(output, context);
1239
+ return de_DeleteBackendAuthCommandError(output, context);
1252
1240
  }
1253
1241
  const contents = map({
1254
1242
  $metadata: deserializeMetadata(output),
@@ -1274,8 +1262,8 @@ const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context)
1274
1262
  }
1275
1263
  return contents;
1276
1264
  };
1277
- exports.deserializeAws_restJson1DeleteBackendAuthCommand = deserializeAws_restJson1DeleteBackendAuthCommand;
1278
- const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, context) => {
1265
+ exports.de_DeleteBackendAuthCommand = de_DeleteBackendAuthCommand;
1266
+ const de_DeleteBackendAuthCommandError = async (output, context) => {
1279
1267
  const parsedOutput = {
1280
1268
  ...output,
1281
1269
  body: await parseErrorBody(output.body, context),
@@ -1284,16 +1272,16 @@ const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, con
1284
1272
  switch (errorCode) {
1285
1273
  case "BadRequestException":
1286
1274
  case "com.amazonaws.amplifybackend#BadRequestException":
1287
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1275
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1288
1276
  case "GatewayTimeoutException":
1289
1277
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1290
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1278
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1291
1279
  case "NotFoundException":
1292
1280
  case "com.amazonaws.amplifybackend#NotFoundException":
1293
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1281
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1294
1282
  case "TooManyRequestsException":
1295
1283
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1296
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1284
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1297
1285
  default:
1298
1286
  const parsedBody = parsedOutput.body;
1299
1287
  (0, smithy_client_1.throwDefaultError)({
@@ -1304,9 +1292,9 @@ const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, con
1304
1292
  });
1305
1293
  }
1306
1294
  };
1307
- const deserializeAws_restJson1DeleteBackendStorageCommand = async (output, context) => {
1295
+ const de_DeleteBackendStorageCommand = async (output, context) => {
1308
1296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1309
- return deserializeAws_restJson1DeleteBackendStorageCommandError(output, context);
1297
+ return de_DeleteBackendStorageCommandError(output, context);
1310
1298
  }
1311
1299
  const contents = map({
1312
1300
  $metadata: deserializeMetadata(output),
@@ -1326,8 +1314,8 @@ const deserializeAws_restJson1DeleteBackendStorageCommand = async (output, conte
1326
1314
  }
1327
1315
  return contents;
1328
1316
  };
1329
- exports.deserializeAws_restJson1DeleteBackendStorageCommand = deserializeAws_restJson1DeleteBackendStorageCommand;
1330
- const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output, context) => {
1317
+ exports.de_DeleteBackendStorageCommand = de_DeleteBackendStorageCommand;
1318
+ const de_DeleteBackendStorageCommandError = async (output, context) => {
1331
1319
  const parsedOutput = {
1332
1320
  ...output,
1333
1321
  body: await parseErrorBody(output.body, context),
@@ -1336,16 +1324,16 @@ const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output,
1336
1324
  switch (errorCode) {
1337
1325
  case "BadRequestException":
1338
1326
  case "com.amazonaws.amplifybackend#BadRequestException":
1339
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1327
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1340
1328
  case "GatewayTimeoutException":
1341
1329
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1342
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1330
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1343
1331
  case "NotFoundException":
1344
1332
  case "com.amazonaws.amplifybackend#NotFoundException":
1345
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1333
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1346
1334
  case "TooManyRequestsException":
1347
1335
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1348
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1336
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1349
1337
  default:
1350
1338
  const parsedBody = parsedOutput.body;
1351
1339
  (0, smithy_client_1.throwDefaultError)({
@@ -1356,9 +1344,9 @@ const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output,
1356
1344
  });
1357
1345
  }
1358
1346
  };
1359
- const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
1347
+ const de_DeleteTokenCommand = async (output, context) => {
1360
1348
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1361
- return deserializeAws_restJson1DeleteTokenCommandError(output, context);
1349
+ return de_DeleteTokenCommandError(output, context);
1362
1350
  }
1363
1351
  const contents = map({
1364
1352
  $metadata: deserializeMetadata(output),
@@ -1369,8 +1357,8 @@ const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
1369
1357
  }
1370
1358
  return contents;
1371
1359
  };
1372
- exports.deserializeAws_restJson1DeleteTokenCommand = deserializeAws_restJson1DeleteTokenCommand;
1373
- const deserializeAws_restJson1DeleteTokenCommandError = async (output, context) => {
1360
+ exports.de_DeleteTokenCommand = de_DeleteTokenCommand;
1361
+ const de_DeleteTokenCommandError = async (output, context) => {
1374
1362
  const parsedOutput = {
1375
1363
  ...output,
1376
1364
  body: await parseErrorBody(output.body, context),
@@ -1379,16 +1367,16 @@ const deserializeAws_restJson1DeleteTokenCommandError = async (output, context)
1379
1367
  switch (errorCode) {
1380
1368
  case "BadRequestException":
1381
1369
  case "com.amazonaws.amplifybackend#BadRequestException":
1382
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1370
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1383
1371
  case "GatewayTimeoutException":
1384
1372
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1385
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1373
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1386
1374
  case "NotFoundException":
1387
1375
  case "com.amazonaws.amplifybackend#NotFoundException":
1388
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1376
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1389
1377
  case "TooManyRequestsException":
1390
1378
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1391
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1379
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1392
1380
  default:
1393
1381
  const parsedBody = parsedOutput.body;
1394
1382
  (0, smithy_client_1.throwDefaultError)({
@@ -1399,9 +1387,9 @@ const deserializeAws_restJson1DeleteTokenCommandError = async (output, context)
1399
1387
  });
1400
1388
  }
1401
1389
  };
1402
- const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, context) => {
1390
+ const de_GenerateBackendAPIModelsCommand = async (output, context) => {
1403
1391
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1404
- return deserializeAws_restJson1GenerateBackendAPIModelsCommandError(output, context);
1392
+ return de_GenerateBackendAPIModelsCommandError(output, context);
1405
1393
  }
1406
1394
  const contents = map({
1407
1395
  $metadata: deserializeMetadata(output),
@@ -1427,8 +1415,8 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, c
1427
1415
  }
1428
1416
  return contents;
1429
1417
  };
1430
- exports.deserializeAws_restJson1GenerateBackendAPIModelsCommand = deserializeAws_restJson1GenerateBackendAPIModelsCommand;
1431
- const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (output, context) => {
1418
+ exports.de_GenerateBackendAPIModelsCommand = de_GenerateBackendAPIModelsCommand;
1419
+ const de_GenerateBackendAPIModelsCommandError = async (output, context) => {
1432
1420
  const parsedOutput = {
1433
1421
  ...output,
1434
1422
  body: await parseErrorBody(output.body, context),
@@ -1437,16 +1425,16 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (outp
1437
1425
  switch (errorCode) {
1438
1426
  case "BadRequestException":
1439
1427
  case "com.amazonaws.amplifybackend#BadRequestException":
1440
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1428
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1441
1429
  case "GatewayTimeoutException":
1442
1430
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1443
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1431
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1444
1432
  case "NotFoundException":
1445
1433
  case "com.amazonaws.amplifybackend#NotFoundException":
1446
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1434
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1447
1435
  case "TooManyRequestsException":
1448
1436
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1449
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1437
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1450
1438
  default:
1451
1439
  const parsedBody = parsedOutput.body;
1452
1440
  (0, smithy_client_1.throwDefaultError)({
@@ -1457,9 +1445,9 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (outp
1457
1445
  });
1458
1446
  }
1459
1447
  };
1460
- const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
1448
+ const de_GetBackendCommand = async (output, context) => {
1461
1449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1462
- return deserializeAws_restJson1GetBackendCommandError(output, context);
1450
+ return de_GetBackendCommandError(output, context);
1463
1451
  }
1464
1452
  const contents = map({
1465
1453
  $metadata: deserializeMetadata(output),
@@ -1478,7 +1466,7 @@ const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
1478
1466
  contents.AppName = (0, smithy_client_1.expectString)(data.appName);
1479
1467
  }
1480
1468
  if (data.backendEnvironmentList != null) {
1481
- contents.BackendEnvironmentList = deserializeAws_restJson1ListOf__string(data.backendEnvironmentList, context);
1469
+ contents.BackendEnvironmentList = de_ListOf__string(data.backendEnvironmentList, context);
1482
1470
  }
1483
1471
  if (data.backendEnvironmentName != null) {
1484
1472
  contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
@@ -1488,8 +1476,8 @@ const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
1488
1476
  }
1489
1477
  return contents;
1490
1478
  };
1491
- exports.deserializeAws_restJson1GetBackendCommand = deserializeAws_restJson1GetBackendCommand;
1492
- const deserializeAws_restJson1GetBackendCommandError = async (output, context) => {
1479
+ exports.de_GetBackendCommand = de_GetBackendCommand;
1480
+ const de_GetBackendCommandError = async (output, context) => {
1493
1481
  const parsedOutput = {
1494
1482
  ...output,
1495
1483
  body: await parseErrorBody(output.body, context),
@@ -1498,16 +1486,16 @@ const deserializeAws_restJson1GetBackendCommandError = async (output, context) =
1498
1486
  switch (errorCode) {
1499
1487
  case "BadRequestException":
1500
1488
  case "com.amazonaws.amplifybackend#BadRequestException":
1501
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1489
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1502
1490
  case "GatewayTimeoutException":
1503
1491
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1504
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1492
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1505
1493
  case "NotFoundException":
1506
1494
  case "com.amazonaws.amplifybackend#NotFoundException":
1507
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1495
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1508
1496
  case "TooManyRequestsException":
1509
1497
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1510
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1498
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1511
1499
  default:
1512
1500
  const parsedBody = parsedOutput.body;
1513
1501
  (0, smithy_client_1.throwDefaultError)({
@@ -1518,9 +1506,9 @@ const deserializeAws_restJson1GetBackendCommandError = async (output, context) =
1518
1506
  });
1519
1507
  }
1520
1508
  };
1521
- const deserializeAws_restJson1GetBackendAPICommand = async (output, context) => {
1509
+ const de_GetBackendAPICommand = async (output, context) => {
1522
1510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1523
- return deserializeAws_restJson1GetBackendAPICommandError(output, context);
1511
+ return de_GetBackendAPICommandError(output, context);
1524
1512
  }
1525
1513
  const contents = map({
1526
1514
  $metadata: deserializeMetadata(output),
@@ -1536,15 +1524,15 @@ const deserializeAws_restJson1GetBackendAPICommand = async (output, context) =>
1536
1524
  contents.Error = (0, smithy_client_1.expectString)(data.error);
1537
1525
  }
1538
1526
  if (data.resourceConfig != null) {
1539
- contents.ResourceConfig = deserializeAws_restJson1BackendAPIResourceConfig(data.resourceConfig, context);
1527
+ contents.ResourceConfig = de_BackendAPIResourceConfig(data.resourceConfig, context);
1540
1528
  }
1541
1529
  if (data.resourceName != null) {
1542
1530
  contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
1543
1531
  }
1544
1532
  return contents;
1545
1533
  };
1546
- exports.deserializeAws_restJson1GetBackendAPICommand = deserializeAws_restJson1GetBackendAPICommand;
1547
- const deserializeAws_restJson1GetBackendAPICommandError = async (output, context) => {
1534
+ exports.de_GetBackendAPICommand = de_GetBackendAPICommand;
1535
+ const de_GetBackendAPICommandError = async (output, context) => {
1548
1536
  const parsedOutput = {
1549
1537
  ...output,
1550
1538
  body: await parseErrorBody(output.body, context),
@@ -1553,16 +1541,16 @@ const deserializeAws_restJson1GetBackendAPICommandError = async (output, context
1553
1541
  switch (errorCode) {
1554
1542
  case "BadRequestException":
1555
1543
  case "com.amazonaws.amplifybackend#BadRequestException":
1556
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1544
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1557
1545
  case "GatewayTimeoutException":
1558
1546
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1559
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1547
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1560
1548
  case "NotFoundException":
1561
1549
  case "com.amazonaws.amplifybackend#NotFoundException":
1562
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1550
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1563
1551
  case "TooManyRequestsException":
1564
1552
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1565
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1553
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1566
1554
  default:
1567
1555
  const parsedBody = parsedOutput.body;
1568
1556
  (0, smithy_client_1.throwDefaultError)({
@@ -1573,9 +1561,9 @@ const deserializeAws_restJson1GetBackendAPICommandError = async (output, context
1573
1561
  });
1574
1562
  }
1575
1563
  };
1576
- const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, context) => {
1564
+ const de_GetBackendAPIModelsCommand = async (output, context) => {
1577
1565
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1578
- return deserializeAws_restJson1GetBackendAPIModelsCommandError(output, context);
1566
+ return de_GetBackendAPIModelsCommandError(output, context);
1579
1567
  }
1580
1568
  const contents = map({
1581
1569
  $metadata: deserializeMetadata(output),
@@ -1592,8 +1580,8 @@ const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, contex
1592
1580
  }
1593
1581
  return contents;
1594
1582
  };
1595
- exports.deserializeAws_restJson1GetBackendAPIModelsCommand = deserializeAws_restJson1GetBackendAPIModelsCommand;
1596
- const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, context) => {
1583
+ exports.de_GetBackendAPIModelsCommand = de_GetBackendAPIModelsCommand;
1584
+ const de_GetBackendAPIModelsCommandError = async (output, context) => {
1597
1585
  const parsedOutput = {
1598
1586
  ...output,
1599
1587
  body: await parseErrorBody(output.body, context),
@@ -1602,16 +1590,16 @@ const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, c
1602
1590
  switch (errorCode) {
1603
1591
  case "BadRequestException":
1604
1592
  case "com.amazonaws.amplifybackend#BadRequestException":
1605
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1593
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1606
1594
  case "GatewayTimeoutException":
1607
1595
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1608
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1596
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1609
1597
  case "NotFoundException":
1610
1598
  case "com.amazonaws.amplifybackend#NotFoundException":
1611
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1599
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1612
1600
  case "TooManyRequestsException":
1613
1601
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1614
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1602
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1615
1603
  default:
1616
1604
  const parsedBody = parsedOutput.body;
1617
1605
  (0, smithy_client_1.throwDefaultError)({
@@ -1622,9 +1610,9 @@ const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, c
1622
1610
  });
1623
1611
  }
1624
1612
  };
1625
- const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) => {
1613
+ const de_GetBackendAuthCommand = async (output, context) => {
1626
1614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return deserializeAws_restJson1GetBackendAuthCommandError(output, context);
1615
+ return de_GetBackendAuthCommandError(output, context);
1628
1616
  }
1629
1617
  const contents = map({
1630
1618
  $metadata: deserializeMetadata(output),
@@ -1640,15 +1628,15 @@ const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) =>
1640
1628
  contents.Error = (0, smithy_client_1.expectString)(data.error);
1641
1629
  }
1642
1630
  if (data.resourceConfig != null) {
1643
- contents.ResourceConfig = deserializeAws_restJson1CreateBackendAuthResourceConfig(data.resourceConfig, context);
1631
+ contents.ResourceConfig = de_CreateBackendAuthResourceConfig(data.resourceConfig, context);
1644
1632
  }
1645
1633
  if (data.resourceName != null) {
1646
1634
  contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
1647
1635
  }
1648
1636
  return contents;
1649
1637
  };
1650
- exports.deserializeAws_restJson1GetBackendAuthCommand = deserializeAws_restJson1GetBackendAuthCommand;
1651
- const deserializeAws_restJson1GetBackendAuthCommandError = async (output, context) => {
1638
+ exports.de_GetBackendAuthCommand = de_GetBackendAuthCommand;
1639
+ const de_GetBackendAuthCommandError = async (output, context) => {
1652
1640
  const parsedOutput = {
1653
1641
  ...output,
1654
1642
  body: await parseErrorBody(output.body, context),
@@ -1657,16 +1645,16 @@ const deserializeAws_restJson1GetBackendAuthCommandError = async (output, contex
1657
1645
  switch (errorCode) {
1658
1646
  case "BadRequestException":
1659
1647
  case "com.amazonaws.amplifybackend#BadRequestException":
1660
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1648
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1661
1649
  case "GatewayTimeoutException":
1662
1650
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1663
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1651
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1664
1652
  case "NotFoundException":
1665
1653
  case "com.amazonaws.amplifybackend#NotFoundException":
1666
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1654
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1667
1655
  case "TooManyRequestsException":
1668
1656
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1669
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1657
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1670
1658
  default:
1671
1659
  const parsedBody = parsedOutput.body;
1672
1660
  (0, smithy_client_1.throwDefaultError)({
@@ -1677,9 +1665,9 @@ const deserializeAws_restJson1GetBackendAuthCommandError = async (output, contex
1677
1665
  });
1678
1666
  }
1679
1667
  };
1680
- const deserializeAws_restJson1GetBackendJobCommand = async (output, context) => {
1668
+ const de_GetBackendJobCommand = async (output, context) => {
1681
1669
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1682
- return deserializeAws_restJson1GetBackendJobCommandError(output, context);
1670
+ return de_GetBackendJobCommandError(output, context);
1683
1671
  }
1684
1672
  const contents = map({
1685
1673
  $metadata: deserializeMetadata(output),
@@ -1711,8 +1699,8 @@ const deserializeAws_restJson1GetBackendJobCommand = async (output, context) =>
1711
1699
  }
1712
1700
  return contents;
1713
1701
  };
1714
- exports.deserializeAws_restJson1GetBackendJobCommand = deserializeAws_restJson1GetBackendJobCommand;
1715
- const deserializeAws_restJson1GetBackendJobCommandError = async (output, context) => {
1702
+ exports.de_GetBackendJobCommand = de_GetBackendJobCommand;
1703
+ const de_GetBackendJobCommandError = async (output, context) => {
1716
1704
  const parsedOutput = {
1717
1705
  ...output,
1718
1706
  body: await parseErrorBody(output.body, context),
@@ -1721,16 +1709,16 @@ const deserializeAws_restJson1GetBackendJobCommandError = async (output, context
1721
1709
  switch (errorCode) {
1722
1710
  case "BadRequestException":
1723
1711
  case "com.amazonaws.amplifybackend#BadRequestException":
1724
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1712
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1725
1713
  case "GatewayTimeoutException":
1726
1714
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1727
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1715
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1728
1716
  case "NotFoundException":
1729
1717
  case "com.amazonaws.amplifybackend#NotFoundException":
1730
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1718
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1731
1719
  case "TooManyRequestsException":
1732
1720
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1733
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1721
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1734
1722
  default:
1735
1723
  const parsedBody = parsedOutput.body;
1736
1724
  (0, smithy_client_1.throwDefaultError)({
@@ -1741,9 +1729,9 @@ const deserializeAws_restJson1GetBackendJobCommandError = async (output, context
1741
1729
  });
1742
1730
  }
1743
1731
  };
1744
- const deserializeAws_restJson1GetBackendStorageCommand = async (output, context) => {
1732
+ const de_GetBackendStorageCommand = async (output, context) => {
1745
1733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1746
- return deserializeAws_restJson1GetBackendStorageCommandError(output, context);
1734
+ return de_GetBackendStorageCommandError(output, context);
1747
1735
  }
1748
1736
  const contents = map({
1749
1737
  $metadata: deserializeMetadata(output),
@@ -1756,15 +1744,15 @@ const deserializeAws_restJson1GetBackendStorageCommand = async (output, context)
1756
1744
  contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1757
1745
  }
1758
1746
  if (data.resourceConfig != null) {
1759
- contents.ResourceConfig = deserializeAws_restJson1GetBackendStorageResourceConfig(data.resourceConfig, context);
1747
+ contents.ResourceConfig = de_GetBackendStorageResourceConfig(data.resourceConfig, context);
1760
1748
  }
1761
1749
  if (data.resourceName != null) {
1762
1750
  contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
1763
1751
  }
1764
1752
  return contents;
1765
1753
  };
1766
- exports.deserializeAws_restJson1GetBackendStorageCommand = deserializeAws_restJson1GetBackendStorageCommand;
1767
- const deserializeAws_restJson1GetBackendStorageCommandError = async (output, context) => {
1754
+ exports.de_GetBackendStorageCommand = de_GetBackendStorageCommand;
1755
+ const de_GetBackendStorageCommandError = async (output, context) => {
1768
1756
  const parsedOutput = {
1769
1757
  ...output,
1770
1758
  body: await parseErrorBody(output.body, context),
@@ -1773,16 +1761,16 @@ const deserializeAws_restJson1GetBackendStorageCommandError = async (output, con
1773
1761
  switch (errorCode) {
1774
1762
  case "BadRequestException":
1775
1763
  case "com.amazonaws.amplifybackend#BadRequestException":
1776
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1764
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1777
1765
  case "GatewayTimeoutException":
1778
1766
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1779
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1767
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1780
1768
  case "NotFoundException":
1781
1769
  case "com.amazonaws.amplifybackend#NotFoundException":
1782
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1770
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1783
1771
  case "TooManyRequestsException":
1784
1772
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1785
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1773
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1786
1774
  default:
1787
1775
  const parsedBody = parsedOutput.body;
1788
1776
  (0, smithy_client_1.throwDefaultError)({
@@ -1793,9 +1781,9 @@ const deserializeAws_restJson1GetBackendStorageCommandError = async (output, con
1793
1781
  });
1794
1782
  }
1795
1783
  };
1796
- const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
1784
+ const de_GetTokenCommand = async (output, context) => {
1797
1785
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1798
- return deserializeAws_restJson1GetTokenCommandError(output, context);
1786
+ return de_GetTokenCommandError(output, context);
1799
1787
  }
1800
1788
  const contents = map({
1801
1789
  $metadata: deserializeMetadata(output),
@@ -1815,8 +1803,8 @@ const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
1815
1803
  }
1816
1804
  return contents;
1817
1805
  };
1818
- exports.deserializeAws_restJson1GetTokenCommand = deserializeAws_restJson1GetTokenCommand;
1819
- const deserializeAws_restJson1GetTokenCommandError = async (output, context) => {
1806
+ exports.de_GetTokenCommand = de_GetTokenCommand;
1807
+ const de_GetTokenCommandError = async (output, context) => {
1820
1808
  const parsedOutput = {
1821
1809
  ...output,
1822
1810
  body: await parseErrorBody(output.body, context),
@@ -1825,16 +1813,16 @@ const deserializeAws_restJson1GetTokenCommandError = async (output, context) =>
1825
1813
  switch (errorCode) {
1826
1814
  case "BadRequestException":
1827
1815
  case "com.amazonaws.amplifybackend#BadRequestException":
1828
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1816
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1829
1817
  case "GatewayTimeoutException":
1830
1818
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1831
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1819
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1832
1820
  case "NotFoundException":
1833
1821
  case "com.amazonaws.amplifybackend#NotFoundException":
1834
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1822
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1835
1823
  case "TooManyRequestsException":
1836
1824
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1837
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1825
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1838
1826
  default:
1839
1827
  const parsedBody = parsedOutput.body;
1840
1828
  (0, smithy_client_1.throwDefaultError)({
@@ -1845,9 +1833,9 @@ const deserializeAws_restJson1GetTokenCommandError = async (output, context) =>
1845
1833
  });
1846
1834
  }
1847
1835
  };
1848
- const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context) => {
1836
+ const de_ImportBackendAuthCommand = async (output, context) => {
1849
1837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1850
- return deserializeAws_restJson1ImportBackendAuthCommandError(output, context);
1838
+ return de_ImportBackendAuthCommandError(output, context);
1851
1839
  }
1852
1840
  const contents = map({
1853
1841
  $metadata: deserializeMetadata(output),
@@ -1873,8 +1861,8 @@ const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context)
1873
1861
  }
1874
1862
  return contents;
1875
1863
  };
1876
- exports.deserializeAws_restJson1ImportBackendAuthCommand = deserializeAws_restJson1ImportBackendAuthCommand;
1877
- const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, context) => {
1864
+ exports.de_ImportBackendAuthCommand = de_ImportBackendAuthCommand;
1865
+ const de_ImportBackendAuthCommandError = async (output, context) => {
1878
1866
  const parsedOutput = {
1879
1867
  ...output,
1880
1868
  body: await parseErrorBody(output.body, context),
@@ -1883,16 +1871,16 @@ const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, con
1883
1871
  switch (errorCode) {
1884
1872
  case "BadRequestException":
1885
1873
  case "com.amazonaws.amplifybackend#BadRequestException":
1886
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1874
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1887
1875
  case "GatewayTimeoutException":
1888
1876
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1889
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1877
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1890
1878
  case "NotFoundException":
1891
1879
  case "com.amazonaws.amplifybackend#NotFoundException":
1892
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1880
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1893
1881
  case "TooManyRequestsException":
1894
1882
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1895
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1883
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1896
1884
  default:
1897
1885
  const parsedBody = parsedOutput.body;
1898
1886
  (0, smithy_client_1.throwDefaultError)({
@@ -1903,9 +1891,9 @@ const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, con
1903
1891
  });
1904
1892
  }
1905
1893
  };
1906
- const deserializeAws_restJson1ImportBackendStorageCommand = async (output, context) => {
1894
+ const de_ImportBackendStorageCommand = async (output, context) => {
1907
1895
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1908
- return deserializeAws_restJson1ImportBackendStorageCommandError(output, context);
1896
+ return de_ImportBackendStorageCommandError(output, context);
1909
1897
  }
1910
1898
  const contents = map({
1911
1899
  $metadata: deserializeMetadata(output),
@@ -1925,8 +1913,8 @@ const deserializeAws_restJson1ImportBackendStorageCommand = async (output, conte
1925
1913
  }
1926
1914
  return contents;
1927
1915
  };
1928
- exports.deserializeAws_restJson1ImportBackendStorageCommand = deserializeAws_restJson1ImportBackendStorageCommand;
1929
- const deserializeAws_restJson1ImportBackendStorageCommandError = async (output, context) => {
1916
+ exports.de_ImportBackendStorageCommand = de_ImportBackendStorageCommand;
1917
+ const de_ImportBackendStorageCommandError = async (output, context) => {
1930
1918
  const parsedOutput = {
1931
1919
  ...output,
1932
1920
  body: await parseErrorBody(output.body, context),
@@ -1935,16 +1923,16 @@ const deserializeAws_restJson1ImportBackendStorageCommandError = async (output,
1935
1923
  switch (errorCode) {
1936
1924
  case "BadRequestException":
1937
1925
  case "com.amazonaws.amplifybackend#BadRequestException":
1938
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1926
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1939
1927
  case "GatewayTimeoutException":
1940
1928
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1941
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1929
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1942
1930
  case "NotFoundException":
1943
1931
  case "com.amazonaws.amplifybackend#NotFoundException":
1944
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1932
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1945
1933
  case "TooManyRequestsException":
1946
1934
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1947
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1935
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1948
1936
  default:
1949
1937
  const parsedBody = parsedOutput.body;
1950
1938
  (0, smithy_client_1.throwDefaultError)({
@@ -1955,24 +1943,24 @@ const deserializeAws_restJson1ImportBackendStorageCommandError = async (output,
1955
1943
  });
1956
1944
  }
1957
1945
  };
1958
- const deserializeAws_restJson1ListBackendJobsCommand = async (output, context) => {
1946
+ const de_ListBackendJobsCommand = async (output, context) => {
1959
1947
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1960
- return deserializeAws_restJson1ListBackendJobsCommandError(output, context);
1948
+ return de_ListBackendJobsCommandError(output, context);
1961
1949
  }
1962
1950
  const contents = map({
1963
1951
  $metadata: deserializeMetadata(output),
1964
1952
  });
1965
1953
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1966
1954
  if (data.jobs != null) {
1967
- contents.Jobs = deserializeAws_restJson1ListOfBackendJobRespObj(data.jobs, context);
1955
+ contents.Jobs = de_ListOfBackendJobRespObj(data.jobs, context);
1968
1956
  }
1969
1957
  if (data.nextToken != null) {
1970
1958
  contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1971
1959
  }
1972
1960
  return contents;
1973
1961
  };
1974
- exports.deserializeAws_restJson1ListBackendJobsCommand = deserializeAws_restJson1ListBackendJobsCommand;
1975
- const deserializeAws_restJson1ListBackendJobsCommandError = async (output, context) => {
1962
+ exports.de_ListBackendJobsCommand = de_ListBackendJobsCommand;
1963
+ const de_ListBackendJobsCommandError = async (output, context) => {
1976
1964
  const parsedOutput = {
1977
1965
  ...output,
1978
1966
  body: await parseErrorBody(output.body, context),
@@ -1981,16 +1969,16 @@ const deserializeAws_restJson1ListBackendJobsCommandError = async (output, conte
1981
1969
  switch (errorCode) {
1982
1970
  case "BadRequestException":
1983
1971
  case "com.amazonaws.amplifybackend#BadRequestException":
1984
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1972
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1985
1973
  case "GatewayTimeoutException":
1986
1974
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1987
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
1975
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1988
1976
  case "NotFoundException":
1989
1977
  case "com.amazonaws.amplifybackend#NotFoundException":
1990
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1978
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1991
1979
  case "TooManyRequestsException":
1992
1980
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
1993
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1981
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1994
1982
  default:
1995
1983
  const parsedBody = parsedOutput.body;
1996
1984
  (0, smithy_client_1.throwDefaultError)({
@@ -2001,24 +1989,24 @@ const deserializeAws_restJson1ListBackendJobsCommandError = async (output, conte
2001
1989
  });
2002
1990
  }
2003
1991
  };
2004
- const deserializeAws_restJson1ListS3BucketsCommand = async (output, context) => {
1992
+ const de_ListS3BucketsCommand = async (output, context) => {
2005
1993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2006
- return deserializeAws_restJson1ListS3BucketsCommandError(output, context);
1994
+ return de_ListS3BucketsCommandError(output, context);
2007
1995
  }
2008
1996
  const contents = map({
2009
1997
  $metadata: deserializeMetadata(output),
2010
1998
  });
2011
1999
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2012
2000
  if (data.buckets != null) {
2013
- contents.Buckets = deserializeAws_restJson1ListOfS3BucketInfo(data.buckets, context);
2001
+ contents.Buckets = de_ListOfS3BucketInfo(data.buckets, context);
2014
2002
  }
2015
2003
  if (data.nextToken != null) {
2016
2004
  contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2017
2005
  }
2018
2006
  return contents;
2019
2007
  };
2020
- exports.deserializeAws_restJson1ListS3BucketsCommand = deserializeAws_restJson1ListS3BucketsCommand;
2021
- const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context) => {
2008
+ exports.de_ListS3BucketsCommand = de_ListS3BucketsCommand;
2009
+ const de_ListS3BucketsCommandError = async (output, context) => {
2022
2010
  const parsedOutput = {
2023
2011
  ...output,
2024
2012
  body: await parseErrorBody(output.body, context),
@@ -2027,16 +2015,16 @@ const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context
2027
2015
  switch (errorCode) {
2028
2016
  case "BadRequestException":
2029
2017
  case "com.amazonaws.amplifybackend#BadRequestException":
2030
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2018
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2031
2019
  case "GatewayTimeoutException":
2032
2020
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2033
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2021
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2034
2022
  case "NotFoundException":
2035
2023
  case "com.amazonaws.amplifybackend#NotFoundException":
2036
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2024
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2037
2025
  case "TooManyRequestsException":
2038
2026
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2039
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2027
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2040
2028
  default:
2041
2029
  const parsedBody = parsedOutput.body;
2042
2030
  (0, smithy_client_1.throwDefaultError)({
@@ -2047,9 +2035,9 @@ const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context
2047
2035
  });
2048
2036
  }
2049
2037
  };
2050
- const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context) => {
2038
+ const de_RemoveAllBackendsCommand = async (output, context) => {
2051
2039
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2052
- return deserializeAws_restJson1RemoveAllBackendsCommandError(output, context);
2040
+ return de_RemoveAllBackendsCommandError(output, context);
2053
2041
  }
2054
2042
  const contents = map({
2055
2043
  $metadata: deserializeMetadata(output),
@@ -2072,8 +2060,8 @@ const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context)
2072
2060
  }
2073
2061
  return contents;
2074
2062
  };
2075
- exports.deserializeAws_restJson1RemoveAllBackendsCommand = deserializeAws_restJson1RemoveAllBackendsCommand;
2076
- const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, context) => {
2063
+ exports.de_RemoveAllBackendsCommand = de_RemoveAllBackendsCommand;
2064
+ const de_RemoveAllBackendsCommandError = async (output, context) => {
2077
2065
  const parsedOutput = {
2078
2066
  ...output,
2079
2067
  body: await parseErrorBody(output.body, context),
@@ -2082,16 +2070,16 @@ const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, con
2082
2070
  switch (errorCode) {
2083
2071
  case "BadRequestException":
2084
2072
  case "com.amazonaws.amplifybackend#BadRequestException":
2085
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2073
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2086
2074
  case "GatewayTimeoutException":
2087
2075
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2088
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2076
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2089
2077
  case "NotFoundException":
2090
2078
  case "com.amazonaws.amplifybackend#NotFoundException":
2091
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2079
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2092
2080
  case "TooManyRequestsException":
2093
2081
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2094
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2082
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2095
2083
  default:
2096
2084
  const parsedBody = parsedOutput.body;
2097
2085
  (0, smithy_client_1.throwDefaultError)({
@@ -2102,9 +2090,9 @@ const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, con
2102
2090
  });
2103
2091
  }
2104
2092
  };
2105
- const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, context) => {
2093
+ const de_RemoveBackendConfigCommand = async (output, context) => {
2106
2094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2107
- return deserializeAws_restJson1RemoveBackendConfigCommandError(output, context);
2095
+ return de_RemoveBackendConfigCommandError(output, context);
2108
2096
  }
2109
2097
  const contents = map({
2110
2098
  $metadata: deserializeMetadata(output),
@@ -2115,8 +2103,8 @@ const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, contex
2115
2103
  }
2116
2104
  return contents;
2117
2105
  };
2118
- exports.deserializeAws_restJson1RemoveBackendConfigCommand = deserializeAws_restJson1RemoveBackendConfigCommand;
2119
- const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, context) => {
2106
+ exports.de_RemoveBackendConfigCommand = de_RemoveBackendConfigCommand;
2107
+ const de_RemoveBackendConfigCommandError = async (output, context) => {
2120
2108
  const parsedOutput = {
2121
2109
  ...output,
2122
2110
  body: await parseErrorBody(output.body, context),
@@ -2125,16 +2113,16 @@ const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, c
2125
2113
  switch (errorCode) {
2126
2114
  case "BadRequestException":
2127
2115
  case "com.amazonaws.amplifybackend#BadRequestException":
2128
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2116
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2129
2117
  case "GatewayTimeoutException":
2130
2118
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2131
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2119
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2132
2120
  case "NotFoundException":
2133
2121
  case "com.amazonaws.amplifybackend#NotFoundException":
2134
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2122
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2135
2123
  case "TooManyRequestsException":
2136
2124
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2137
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2125
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2138
2126
  default:
2139
2127
  const parsedBody = parsedOutput.body;
2140
2128
  (0, smithy_client_1.throwDefaultError)({
@@ -2145,9 +2133,9 @@ const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, c
2145
2133
  });
2146
2134
  }
2147
2135
  };
2148
- const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context) => {
2136
+ const de_UpdateBackendAPICommand = async (output, context) => {
2149
2137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2150
- return deserializeAws_restJson1UpdateBackendAPICommandError(output, context);
2138
+ return de_UpdateBackendAPICommandError(output, context);
2151
2139
  }
2152
2140
  const contents = map({
2153
2141
  $metadata: deserializeMetadata(output),
@@ -2173,8 +2161,8 @@ const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context)
2173
2161
  }
2174
2162
  return contents;
2175
2163
  };
2176
- exports.deserializeAws_restJson1UpdateBackendAPICommand = deserializeAws_restJson1UpdateBackendAPICommand;
2177
- const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, context) => {
2164
+ exports.de_UpdateBackendAPICommand = de_UpdateBackendAPICommand;
2165
+ const de_UpdateBackendAPICommandError = async (output, context) => {
2178
2166
  const parsedOutput = {
2179
2167
  ...output,
2180
2168
  body: await parseErrorBody(output.body, context),
@@ -2183,16 +2171,16 @@ const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, cont
2183
2171
  switch (errorCode) {
2184
2172
  case "BadRequestException":
2185
2173
  case "com.amazonaws.amplifybackend#BadRequestException":
2186
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2174
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2187
2175
  case "GatewayTimeoutException":
2188
2176
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2189
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2177
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2190
2178
  case "NotFoundException":
2191
2179
  case "com.amazonaws.amplifybackend#NotFoundException":
2192
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2180
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2193
2181
  case "TooManyRequestsException":
2194
2182
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2195
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2183
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2196
2184
  default:
2197
2185
  const parsedBody = parsedOutput.body;
2198
2186
  (0, smithy_client_1.throwDefaultError)({
@@ -2203,9 +2191,9 @@ const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, cont
2203
2191
  });
2204
2192
  }
2205
2193
  };
2206
- const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context) => {
2194
+ const de_UpdateBackendAuthCommand = async (output, context) => {
2207
2195
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2208
- return deserializeAws_restJson1UpdateBackendAuthCommandError(output, context);
2196
+ return de_UpdateBackendAuthCommandError(output, context);
2209
2197
  }
2210
2198
  const contents = map({
2211
2199
  $metadata: deserializeMetadata(output),
@@ -2231,8 +2219,8 @@ const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context)
2231
2219
  }
2232
2220
  return contents;
2233
2221
  };
2234
- exports.deserializeAws_restJson1UpdateBackendAuthCommand = deserializeAws_restJson1UpdateBackendAuthCommand;
2235
- const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, context) => {
2222
+ exports.de_UpdateBackendAuthCommand = de_UpdateBackendAuthCommand;
2223
+ const de_UpdateBackendAuthCommandError = async (output, context) => {
2236
2224
  const parsedOutput = {
2237
2225
  ...output,
2238
2226
  body: await parseErrorBody(output.body, context),
@@ -2241,16 +2229,16 @@ const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, con
2241
2229
  switch (errorCode) {
2242
2230
  case "BadRequestException":
2243
2231
  case "com.amazonaws.amplifybackend#BadRequestException":
2244
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2232
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2245
2233
  case "GatewayTimeoutException":
2246
2234
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2247
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2235
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2248
2236
  case "NotFoundException":
2249
2237
  case "com.amazonaws.amplifybackend#NotFoundException":
2250
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2238
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2251
2239
  case "TooManyRequestsException":
2252
2240
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2253
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2241
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2254
2242
  default:
2255
2243
  const parsedBody = parsedOutput.body;
2256
2244
  (0, smithy_client_1.throwDefaultError)({
@@ -2261,9 +2249,9 @@ const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, con
2261
2249
  });
2262
2250
  }
2263
2251
  };
2264
- const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, context) => {
2252
+ const de_UpdateBackendConfigCommand = async (output, context) => {
2265
2253
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2266
- return deserializeAws_restJson1UpdateBackendConfigCommandError(output, context);
2254
+ return de_UpdateBackendConfigCommandError(output, context);
2267
2255
  }
2268
2256
  const contents = map({
2269
2257
  $metadata: deserializeMetadata(output),
@@ -2279,12 +2267,12 @@ const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, contex
2279
2267
  contents.Error = (0, smithy_client_1.expectString)(data.error);
2280
2268
  }
2281
2269
  if (data.loginAuthConfig != null) {
2282
- contents.LoginAuthConfig = deserializeAws_restJson1LoginAuthConfigReqObj(data.loginAuthConfig, context);
2270
+ contents.LoginAuthConfig = de_LoginAuthConfigReqObj(data.loginAuthConfig, context);
2283
2271
  }
2284
2272
  return contents;
2285
2273
  };
2286
- exports.deserializeAws_restJson1UpdateBackendConfigCommand = deserializeAws_restJson1UpdateBackendConfigCommand;
2287
- const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, context) => {
2274
+ exports.de_UpdateBackendConfigCommand = de_UpdateBackendConfigCommand;
2275
+ const de_UpdateBackendConfigCommandError = async (output, context) => {
2288
2276
  const parsedOutput = {
2289
2277
  ...output,
2290
2278
  body: await parseErrorBody(output.body, context),
@@ -2293,16 +2281,16 @@ const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, c
2293
2281
  switch (errorCode) {
2294
2282
  case "BadRequestException":
2295
2283
  case "com.amazonaws.amplifybackend#BadRequestException":
2296
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2284
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2297
2285
  case "GatewayTimeoutException":
2298
2286
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2299
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2287
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2300
2288
  case "NotFoundException":
2301
2289
  case "com.amazonaws.amplifybackend#NotFoundException":
2302
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2290
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2303
2291
  case "TooManyRequestsException":
2304
2292
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2305
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2293
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2306
2294
  default:
2307
2295
  const parsedBody = parsedOutput.body;
2308
2296
  (0, smithy_client_1.throwDefaultError)({
@@ -2313,9 +2301,9 @@ const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, c
2313
2301
  });
2314
2302
  }
2315
2303
  };
2316
- const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context) => {
2304
+ const de_UpdateBackendJobCommand = async (output, context) => {
2317
2305
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2318
- return deserializeAws_restJson1UpdateBackendJobCommandError(output, context);
2306
+ return de_UpdateBackendJobCommandError(output, context);
2319
2307
  }
2320
2308
  const contents = map({
2321
2309
  $metadata: deserializeMetadata(output),
@@ -2347,8 +2335,8 @@ const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context)
2347
2335
  }
2348
2336
  return contents;
2349
2337
  };
2350
- exports.deserializeAws_restJson1UpdateBackendJobCommand = deserializeAws_restJson1UpdateBackendJobCommand;
2351
- const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, context) => {
2338
+ exports.de_UpdateBackendJobCommand = de_UpdateBackendJobCommand;
2339
+ const de_UpdateBackendJobCommandError = async (output, context) => {
2352
2340
  const parsedOutput = {
2353
2341
  ...output,
2354
2342
  body: await parseErrorBody(output.body, context),
@@ -2357,16 +2345,16 @@ const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, cont
2357
2345
  switch (errorCode) {
2358
2346
  case "BadRequestException":
2359
2347
  case "com.amazonaws.amplifybackend#BadRequestException":
2360
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2348
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2361
2349
  case "GatewayTimeoutException":
2362
2350
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2363
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2351
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2364
2352
  case "NotFoundException":
2365
2353
  case "com.amazonaws.amplifybackend#NotFoundException":
2366
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2354
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2367
2355
  case "TooManyRequestsException":
2368
2356
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2369
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2357
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2370
2358
  default:
2371
2359
  const parsedBody = parsedOutput.body;
2372
2360
  (0, smithy_client_1.throwDefaultError)({
@@ -2377,9 +2365,9 @@ const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, cont
2377
2365
  });
2378
2366
  }
2379
2367
  };
2380
- const deserializeAws_restJson1UpdateBackendStorageCommand = async (output, context) => {
2368
+ const de_UpdateBackendStorageCommand = async (output, context) => {
2381
2369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2382
- return deserializeAws_restJson1UpdateBackendStorageCommandError(output, context);
2370
+ return de_UpdateBackendStorageCommandError(output, context);
2383
2371
  }
2384
2372
  const contents = map({
2385
2373
  $metadata: deserializeMetadata(output),
@@ -2399,8 +2387,8 @@ const deserializeAws_restJson1UpdateBackendStorageCommand = async (output, conte
2399
2387
  }
2400
2388
  return contents;
2401
2389
  };
2402
- exports.deserializeAws_restJson1UpdateBackendStorageCommand = deserializeAws_restJson1UpdateBackendStorageCommand;
2403
- const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output, context) => {
2390
+ exports.de_UpdateBackendStorageCommand = de_UpdateBackendStorageCommand;
2391
+ const de_UpdateBackendStorageCommandError = async (output, context) => {
2404
2392
  const parsedOutput = {
2405
2393
  ...output,
2406
2394
  body: await parseErrorBody(output.body, context),
@@ -2409,16 +2397,16 @@ const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output,
2409
2397
  switch (errorCode) {
2410
2398
  case "BadRequestException":
2411
2399
  case "com.amazonaws.amplifybackend#BadRequestException":
2412
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2400
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2413
2401
  case "GatewayTimeoutException":
2414
2402
  case "com.amazonaws.amplifybackend#GatewayTimeoutException":
2415
- throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
2403
+ throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2416
2404
  case "NotFoundException":
2417
2405
  case "com.amazonaws.amplifybackend#NotFoundException":
2418
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2406
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2419
2407
  case "TooManyRequestsException":
2420
2408
  case "com.amazonaws.amplifybackend#TooManyRequestsException":
2421
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2409
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2422
2410
  default:
2423
2411
  const parsedBody = parsedOutput.body;
2424
2412
  (0, smithy_client_1.throwDefaultError)({
@@ -2430,7 +2418,7 @@ const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output,
2430
2418
  }
2431
2419
  };
2432
2420
  const map = smithy_client_1.map;
2433
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
2421
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2434
2422
  const contents = map({});
2435
2423
  const data = parsedOutput.body;
2436
2424
  if (data.message != null) {
@@ -2442,7 +2430,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
2442
2430
  });
2443
2431
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2444
2432
  };
2445
- const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOutput, context) => {
2433
+ const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
2446
2434
  const contents = map({});
2447
2435
  const data = parsedOutput.body;
2448
2436
  if (data.message != null) {
@@ -2454,7 +2442,7 @@ const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOut
2454
2442
  });
2455
2443
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2456
2444
  };
2457
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
2445
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
2458
2446
  const contents = map({});
2459
2447
  const data = parsedOutput.body;
2460
2448
  if (data.message != null) {
@@ -2469,7 +2457,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
2469
2457
  });
2470
2458
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2471
2459
  };
2472
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
2460
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2473
2461
  const contents = map({});
2474
2462
  const data = parsedOutput.body;
2475
2463
  if (data.limitType != null) {
@@ -2484,7 +2472,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
2484
2472
  });
2485
2473
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2486
2474
  };
2487
- const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) => {
2475
+ const se_BackendAPIAppSyncAuthSettings = (input, context) => {
2488
2476
  return {
2489
2477
  ...(input.CognitoUserPoolId != null && { cognitoUserPoolId: input.CognitoUserPoolId }),
2490
2478
  ...(input.Description != null && { description: input.Description }),
@@ -2496,36 +2484,32 @@ const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) =>
2496
2484
  ...(input.OpenIDProviderName != null && { openIDProviderName: input.OpenIDProviderName }),
2497
2485
  };
2498
2486
  };
2499
- const serializeAws_restJson1BackendAPIAuthType = (input, context) => {
2487
+ const se_BackendAPIAuthType = (input, context) => {
2500
2488
  return {
2501
2489
  ...(input.Mode != null && { mode: input.Mode }),
2502
- ...(input.Settings != null && {
2503
- settings: serializeAws_restJson1BackendAPIAppSyncAuthSettings(input.Settings, context),
2504
- }),
2490
+ ...(input.Settings != null && { settings: se_BackendAPIAppSyncAuthSettings(input.Settings, context) }),
2505
2491
  };
2506
2492
  };
2507
- const serializeAws_restJson1BackendAPIConflictResolution = (input, context) => {
2493
+ const se_BackendAPIConflictResolution = (input, context) => {
2508
2494
  return {
2509
2495
  ...(input.ResolutionStrategy != null && { resolutionStrategy: input.ResolutionStrategy }),
2510
2496
  };
2511
2497
  };
2512
- const serializeAws_restJson1BackendAPIResourceConfig = (input, context) => {
2498
+ const se_BackendAPIResourceConfig = (input, context) => {
2513
2499
  return {
2514
2500
  ...(input.AdditionalAuthTypes != null && {
2515
- additionalAuthTypes: serializeAws_restJson1ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
2501
+ additionalAuthTypes: se_ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
2516
2502
  }),
2517
2503
  ...(input.ApiName != null && { apiName: input.ApiName }),
2518
2504
  ...(input.ConflictResolution != null && {
2519
- conflictResolution: serializeAws_restJson1BackendAPIConflictResolution(input.ConflictResolution, context),
2520
- }),
2521
- ...(input.DefaultAuthType != null && {
2522
- defaultAuthType: serializeAws_restJson1BackendAPIAuthType(input.DefaultAuthType, context),
2505
+ conflictResolution: se_BackendAPIConflictResolution(input.ConflictResolution, context),
2523
2506
  }),
2507
+ ...(input.DefaultAuthType != null && { defaultAuthType: se_BackendAPIAuthType(input.DefaultAuthType, context) }),
2524
2508
  ...(input.Service != null && { service: input.Service }),
2525
2509
  ...(input.TransformSchema != null && { transformSchema: input.TransformSchema }),
2526
2510
  };
2527
2511
  };
2528
- const serializeAws_restJson1BackendAuthAppleProviderConfig = (input, context) => {
2512
+ const se_BackendAuthAppleProviderConfig = (input, context) => {
2529
2513
  return {
2530
2514
  ...(input.ClientId != null && { client_id: input.ClientId }),
2531
2515
  ...(input.KeyId != null && { key_id: input.KeyId }),
@@ -2533,182 +2517,172 @@ const serializeAws_restJson1BackendAuthAppleProviderConfig = (input, context) =>
2533
2517
  ...(input.TeamId != null && { team_id: input.TeamId }),
2534
2518
  };
2535
2519
  };
2536
- const serializeAws_restJson1BackendAuthSocialProviderConfig = (input, context) => {
2520
+ const se_BackendAuthSocialProviderConfig = (input, context) => {
2537
2521
  return {
2538
2522
  ...(input.ClientId != null && { client_id: input.ClientId }),
2539
2523
  ...(input.ClientSecret != null && { client_secret: input.ClientSecret }),
2540
2524
  };
2541
2525
  };
2542
- const serializeAws_restJson1BackendStoragePermissions = (input, context) => {
2526
+ const se_BackendStoragePermissions = (input, context) => {
2543
2527
  return {
2544
- ...(input.Authenticated != null && {
2545
- authenticated: serializeAws_restJson1ListOfAuthenticatedElement(input.Authenticated, context),
2546
- }),
2528
+ ...(input.Authenticated != null && { authenticated: se_ListOfAuthenticatedElement(input.Authenticated, context) }),
2547
2529
  ...(input.UnAuthenticated != null && {
2548
- unAuthenticated: serializeAws_restJson1ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
2530
+ unAuthenticated: se_ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
2549
2531
  }),
2550
2532
  };
2551
2533
  };
2552
- const serializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (input, context) => {
2534
+ const se_CreateBackendAuthForgotPasswordConfig = (input, context) => {
2553
2535
  return {
2554
2536
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2555
- ...(input.EmailSettings != null && {
2556
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2557
- }),
2558
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2537
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2538
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2559
2539
  };
2560
2540
  };
2561
- const serializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (input, context) => {
2541
+ const se_CreateBackendAuthIdentityPoolConfig = (input, context) => {
2562
2542
  return {
2563
2543
  ...(input.IdentityPoolName != null && { identityPoolName: input.IdentityPoolName }),
2564
2544
  ...(input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }),
2565
2545
  };
2566
2546
  };
2567
- const serializeAws_restJson1CreateBackendAuthMFAConfig = (input, context) => {
2547
+ const se_CreateBackendAuthMFAConfig = (input, context) => {
2568
2548
  return {
2569
2549
  ...(input.MFAMode != null && { MFAMode: input.MFAMode }),
2570
- ...(input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }),
2550
+ ...(input.Settings != null && { settings: se_Settings(input.Settings, context) }),
2571
2551
  };
2572
2552
  };
2573
- const serializeAws_restJson1CreateBackendAuthOAuthConfig = (input, context) => {
2553
+ const se_CreateBackendAuthOAuthConfig = (input, context) => {
2574
2554
  return {
2575
2555
  ...(input.DomainPrefix != null && { domainPrefix: input.DomainPrefix }),
2576
2556
  ...(input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType }),
2577
- ...(input.OAuthScopes != null && {
2578
- oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
2579
- }),
2557
+ ...(input.OAuthScopes != null && { oAuthScopes: se_ListOfOAuthScopesElement(input.OAuthScopes, context) }),
2580
2558
  ...(input.RedirectSignInURIs != null && {
2581
- redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
2559
+ redirectSignInURIs: se_ListOf__string(input.RedirectSignInURIs, context),
2582
2560
  }),
2583
2561
  ...(input.RedirectSignOutURIs != null && {
2584
- redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
2562
+ redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
2585
2563
  }),
2586
2564
  ...(input.SocialProviderSettings != null && {
2587
- socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
2565
+ socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
2588
2566
  }),
2589
2567
  };
2590
2568
  };
2591
- const serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (input, context) => {
2569
+ const se_CreateBackendAuthPasswordPolicyConfig = (input, context) => {
2592
2570
  return {
2593
2571
  ...(input.AdditionalConstraints != null && {
2594
- additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2572
+ additionalConstraints: se_ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2595
2573
  }),
2596
2574
  ...(input.MinimumLength != null && { minimumLength: (0, smithy_client_1.serializeFloat)(input.MinimumLength) }),
2597
2575
  };
2598
2576
  };
2599
- const serializeAws_restJson1CreateBackendAuthResourceConfig = (input, context) => {
2577
+ const se_CreateBackendAuthResourceConfig = (input, context) => {
2600
2578
  return {
2601
2579
  ...(input.AuthResources != null && { authResources: input.AuthResources }),
2602
2580
  ...(input.IdentityPoolConfigs != null && {
2603
- identityPoolConfigs: serializeAws_restJson1CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2581
+ identityPoolConfigs: se_CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2604
2582
  }),
2605
2583
  ...(input.Service != null && { service: input.Service }),
2606
2584
  ...(input.UserPoolConfigs != null && {
2607
- userPoolConfigs: serializeAws_restJson1CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2585
+ userPoolConfigs: se_CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2608
2586
  }),
2609
2587
  };
2610
2588
  };
2611
- const serializeAws_restJson1CreateBackendAuthUserPoolConfig = (input, context) => {
2589
+ const se_CreateBackendAuthUserPoolConfig = (input, context) => {
2612
2590
  return {
2613
2591
  ...(input.ForgotPassword != null && {
2614
- forgotPassword: serializeAws_restJson1CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2592
+ forgotPassword: se_CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2615
2593
  }),
2616
- ...(input.Mfa != null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) }),
2617
- ...(input.OAuth != null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) }),
2594
+ ...(input.Mfa != null && { mfa: se_CreateBackendAuthMFAConfig(input.Mfa, context) }),
2595
+ ...(input.OAuth != null && { oAuth: se_CreateBackendAuthOAuthConfig(input.OAuth, context) }),
2618
2596
  ...(input.PasswordPolicy != null && {
2619
- passwordPolicy: serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2597
+ passwordPolicy: se_CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2620
2598
  }),
2621
2599
  ...(input.RequiredSignUpAttributes != null && {
2622
- requiredSignUpAttributes: serializeAws_restJson1ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
2600
+ requiredSignUpAttributes: se_ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
2623
2601
  }),
2624
2602
  ...(input.SignInMethod != null && { signInMethod: input.SignInMethod }),
2625
2603
  ...(input.UserPoolName != null && { userPoolName: input.UserPoolName }),
2626
2604
  ...(input.VerificationMessage != null && {
2627
- verificationMessage: serializeAws_restJson1CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2605
+ verificationMessage: se_CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2628
2606
  }),
2629
2607
  };
2630
2608
  };
2631
- const serializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (input, context) => {
2609
+ const se_CreateBackendAuthVerificationMessageConfig = (input, context) => {
2632
2610
  return {
2633
2611
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2634
- ...(input.EmailSettings != null && {
2635
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2636
- }),
2637
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2612
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2613
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2638
2614
  };
2639
2615
  };
2640
- const serializeAws_restJson1CreateBackendStorageResourceConfig = (input, context) => {
2616
+ const se_CreateBackendStorageResourceConfig = (input, context) => {
2641
2617
  return {
2642
2618
  ...(input.BucketName != null && { bucketName: input.BucketName }),
2643
- ...(input.Permissions != null && {
2644
- permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
2645
- }),
2619
+ ...(input.Permissions != null && { permissions: se_BackendStoragePermissions(input.Permissions, context) }),
2646
2620
  ...(input.ServiceName != null && { serviceName: input.ServiceName }),
2647
2621
  };
2648
2622
  };
2649
- const serializeAws_restJson1EmailSettings = (input, context) => {
2623
+ const se_EmailSettings = (input, context) => {
2650
2624
  return {
2651
2625
  ...(input.EmailMessage != null && { emailMessage: input.EmailMessage }),
2652
2626
  ...(input.EmailSubject != null && { emailSubject: input.EmailSubject }),
2653
2627
  };
2654
2628
  };
2655
- const serializeAws_restJson1ListOf__string = (input, context) => {
2629
+ const se_ListOf__string = (input, context) => {
2656
2630
  return input
2657
2631
  .filter((e) => e != null)
2658
2632
  .map((entry) => {
2659
2633
  return entry;
2660
2634
  });
2661
2635
  };
2662
- const serializeAws_restJson1ListOfAdditionalConstraintsElement = (input, context) => {
2636
+ const se_ListOfAdditionalConstraintsElement = (input, context) => {
2663
2637
  return input
2664
2638
  .filter((e) => e != null)
2665
2639
  .map((entry) => {
2666
2640
  return entry;
2667
2641
  });
2668
2642
  };
2669
- const serializeAws_restJson1ListOfAuthenticatedElement = (input, context) => {
2643
+ const se_ListOfAuthenticatedElement = (input, context) => {
2670
2644
  return input
2671
2645
  .filter((e) => e != null)
2672
2646
  .map((entry) => {
2673
2647
  return entry;
2674
2648
  });
2675
2649
  };
2676
- const serializeAws_restJson1ListOfBackendAPIAuthType = (input, context) => {
2650
+ const se_ListOfBackendAPIAuthType = (input, context) => {
2677
2651
  return input
2678
2652
  .filter((e) => e != null)
2679
2653
  .map((entry) => {
2680
- return serializeAws_restJson1BackendAPIAuthType(entry, context);
2654
+ return se_BackendAPIAuthType(entry, context);
2681
2655
  });
2682
2656
  };
2683
- const serializeAws_restJson1ListOfMfaTypesElement = (input, context) => {
2657
+ const se_ListOfMfaTypesElement = (input, context) => {
2684
2658
  return input
2685
2659
  .filter((e) => e != null)
2686
2660
  .map((entry) => {
2687
2661
  return entry;
2688
2662
  });
2689
2663
  };
2690
- const serializeAws_restJson1ListOfOAuthScopesElement = (input, context) => {
2664
+ const se_ListOfOAuthScopesElement = (input, context) => {
2691
2665
  return input
2692
2666
  .filter((e) => e != null)
2693
2667
  .map((entry) => {
2694
2668
  return entry;
2695
2669
  });
2696
2670
  };
2697
- const serializeAws_restJson1ListOfRequiredSignUpAttributesElement = (input, context) => {
2671
+ const se_ListOfRequiredSignUpAttributesElement = (input, context) => {
2698
2672
  return input
2699
2673
  .filter((e) => e != null)
2700
2674
  .map((entry) => {
2701
2675
  return entry;
2702
2676
  });
2703
2677
  };
2704
- const serializeAws_restJson1ListOfUnAuthenticatedElement = (input, context) => {
2678
+ const se_ListOfUnAuthenticatedElement = (input, context) => {
2705
2679
  return input
2706
2680
  .filter((e) => e != null)
2707
2681
  .map((entry) => {
2708
2682
  return entry;
2709
2683
  });
2710
2684
  };
2711
- const serializeAws_restJson1LoginAuthConfigReqObj = (input, context) => {
2685
+ const se_LoginAuthConfigReqObj = (input, context) => {
2712
2686
  return {
2713
2687
  ...(input.AwsCognitoIdentityPoolId != null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId }),
2714
2688
  ...(input.AwsCognitoRegion != null && { aws_cognito_region: input.AwsCognitoRegion }),
@@ -2716,127 +2690,115 @@ const serializeAws_restJson1LoginAuthConfigReqObj = (input, context) => {
2716
2690
  ...(input.AwsUserPoolsWebClientId != null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }),
2717
2691
  };
2718
2692
  };
2719
- const serializeAws_restJson1ResourceConfig = (input, context) => {
2693
+ const se_ResourceConfig = (input, context) => {
2720
2694
  return {};
2721
2695
  };
2722
- const serializeAws_restJson1Settings = (input, context) => {
2696
+ const se_Settings = (input, context) => {
2723
2697
  return {
2724
- ...(input.MfaTypes != null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) }),
2698
+ ...(input.MfaTypes != null && { mfaTypes: se_ListOfMfaTypesElement(input.MfaTypes, context) }),
2725
2699
  ...(input.SmsMessage != null && { smsMessage: input.SmsMessage }),
2726
2700
  };
2727
2701
  };
2728
- const serializeAws_restJson1SmsSettings = (input, context) => {
2702
+ const se_SmsSettings = (input, context) => {
2729
2703
  return {
2730
2704
  ...(input.SmsMessage != null && { smsMessage: input.SmsMessage }),
2731
2705
  };
2732
2706
  };
2733
- const serializeAws_restJson1SocialProviderSettings = (input, context) => {
2707
+ const se_SocialProviderSettings = (input, context) => {
2734
2708
  return {
2735
- ...(input.Facebook != null && {
2736
- Facebook: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Facebook, context),
2737
- }),
2738
- ...(input.Google != null && {
2739
- Google: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Google, context),
2740
- }),
2709
+ ...(input.Facebook != null && { Facebook: se_BackendAuthSocialProviderConfig(input.Facebook, context) }),
2710
+ ...(input.Google != null && { Google: se_BackendAuthSocialProviderConfig(input.Google, context) }),
2741
2711
  ...(input.LoginWithAmazon != null && {
2742
- LoginWithAmazon: serializeAws_restJson1BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
2712
+ LoginWithAmazon: se_BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
2743
2713
  }),
2744
2714
  ...(input.SignInWithApple != null && {
2745
- SignInWithApple: serializeAws_restJson1BackendAuthAppleProviderConfig(input.SignInWithApple, context),
2715
+ SignInWithApple: se_BackendAuthAppleProviderConfig(input.SignInWithApple, context),
2746
2716
  }),
2747
2717
  };
2748
2718
  };
2749
- const serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig = (input, context) => {
2719
+ const se_UpdateBackendAuthForgotPasswordConfig = (input, context) => {
2750
2720
  return {
2751
2721
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2752
- ...(input.EmailSettings != null && {
2753
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2754
- }),
2755
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2722
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2723
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2756
2724
  };
2757
2725
  };
2758
- const serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig = (input, context) => {
2726
+ const se_UpdateBackendAuthIdentityPoolConfig = (input, context) => {
2759
2727
  return {
2760
2728
  ...(input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }),
2761
2729
  };
2762
2730
  };
2763
- const serializeAws_restJson1UpdateBackendAuthMFAConfig = (input, context) => {
2731
+ const se_UpdateBackendAuthMFAConfig = (input, context) => {
2764
2732
  return {
2765
2733
  ...(input.MFAMode != null && { MFAMode: input.MFAMode }),
2766
- ...(input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }),
2734
+ ...(input.Settings != null && { settings: se_Settings(input.Settings, context) }),
2767
2735
  };
2768
2736
  };
2769
- const serializeAws_restJson1UpdateBackendAuthOAuthConfig = (input, context) => {
2737
+ const se_UpdateBackendAuthOAuthConfig = (input, context) => {
2770
2738
  return {
2771
2739
  ...(input.DomainPrefix != null && { domainPrefix: input.DomainPrefix }),
2772
2740
  ...(input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType }),
2773
- ...(input.OAuthScopes != null && {
2774
- oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
2775
- }),
2741
+ ...(input.OAuthScopes != null && { oAuthScopes: se_ListOfOAuthScopesElement(input.OAuthScopes, context) }),
2776
2742
  ...(input.RedirectSignInURIs != null && {
2777
- redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
2743
+ redirectSignInURIs: se_ListOf__string(input.RedirectSignInURIs, context),
2778
2744
  }),
2779
2745
  ...(input.RedirectSignOutURIs != null && {
2780
- redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
2746
+ redirectSignOutURIs: se_ListOf__string(input.RedirectSignOutURIs, context),
2781
2747
  }),
2782
2748
  ...(input.SocialProviderSettings != null && {
2783
- socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
2749
+ socialProviderSettings: se_SocialProviderSettings(input.SocialProviderSettings, context),
2784
2750
  }),
2785
2751
  };
2786
2752
  };
2787
- const serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
2753
+ const se_UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
2788
2754
  return {
2789
2755
  ...(input.AdditionalConstraints != null && {
2790
- additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2756
+ additionalConstraints: se_ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
2791
2757
  }),
2792
2758
  ...(input.MinimumLength != null && { minimumLength: (0, smithy_client_1.serializeFloat)(input.MinimumLength) }),
2793
2759
  };
2794
2760
  };
2795
- const serializeAws_restJson1UpdateBackendAuthResourceConfig = (input, context) => {
2761
+ const se_UpdateBackendAuthResourceConfig = (input, context) => {
2796
2762
  return {
2797
2763
  ...(input.AuthResources != null && { authResources: input.AuthResources }),
2798
2764
  ...(input.IdentityPoolConfigs != null && {
2799
- identityPoolConfigs: serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2765
+ identityPoolConfigs: se_UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
2800
2766
  }),
2801
2767
  ...(input.Service != null && { service: input.Service }),
2802
2768
  ...(input.UserPoolConfigs != null && {
2803
- userPoolConfigs: serializeAws_restJson1UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2769
+ userPoolConfigs: se_UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
2804
2770
  }),
2805
2771
  };
2806
2772
  };
2807
- const serializeAws_restJson1UpdateBackendAuthUserPoolConfig = (input, context) => {
2773
+ const se_UpdateBackendAuthUserPoolConfig = (input, context) => {
2808
2774
  return {
2809
2775
  ...(input.ForgotPassword != null && {
2810
- forgotPassword: serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2776
+ forgotPassword: se_UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
2811
2777
  }),
2812
- ...(input.Mfa != null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) }),
2813
- ...(input.OAuth != null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) }),
2778
+ ...(input.Mfa != null && { mfa: se_UpdateBackendAuthMFAConfig(input.Mfa, context) }),
2779
+ ...(input.OAuth != null && { oAuth: se_UpdateBackendAuthOAuthConfig(input.OAuth, context) }),
2814
2780
  ...(input.PasswordPolicy != null && {
2815
- passwordPolicy: serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2781
+ passwordPolicy: se_UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
2816
2782
  }),
2817
2783
  ...(input.VerificationMessage != null && {
2818
- verificationMessage: serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2784
+ verificationMessage: se_UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
2819
2785
  }),
2820
2786
  };
2821
2787
  };
2822
- const serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig = (input, context) => {
2788
+ const se_UpdateBackendAuthVerificationMessageConfig = (input, context) => {
2823
2789
  return {
2824
2790
  ...(input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod }),
2825
- ...(input.EmailSettings != null && {
2826
- emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
2827
- }),
2828
- ...(input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
2791
+ ...(input.EmailSettings != null && { emailSettings: se_EmailSettings(input.EmailSettings, context) }),
2792
+ ...(input.SmsSettings != null && { smsSettings: se_SmsSettings(input.SmsSettings, context) }),
2829
2793
  };
2830
2794
  };
2831
- const serializeAws_restJson1UpdateBackendStorageResourceConfig = (input, context) => {
2795
+ const se_UpdateBackendStorageResourceConfig = (input, context) => {
2832
2796
  return {
2833
- ...(input.Permissions != null && {
2834
- permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
2835
- }),
2797
+ ...(input.Permissions != null && { permissions: se_BackendStoragePermissions(input.Permissions, context) }),
2836
2798
  ...(input.ServiceName != null && { serviceName: input.ServiceName }),
2837
2799
  };
2838
2800
  };
2839
- const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context) => {
2801
+ const de_BackendAPIAppSyncAuthSettings = (output, context) => {
2840
2802
  return {
2841
2803
  CognitoUserPoolId: (0, smithy_client_1.expectString)(output.cognitoUserPoolId),
2842
2804
  Description: (0, smithy_client_1.expectString)(output.description),
@@ -2848,36 +2810,30 @@ const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context)
2848
2810
  OpenIDProviderName: (0, smithy_client_1.expectString)(output.openIDProviderName),
2849
2811
  };
2850
2812
  };
2851
- const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
2813
+ const de_BackendAPIAuthType = (output, context) => {
2852
2814
  return {
2853
2815
  Mode: (0, smithy_client_1.expectString)(output.mode),
2854
- Settings: output.settings != null
2855
- ? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
2856
- : undefined,
2816
+ Settings: output.settings != null ? de_BackendAPIAppSyncAuthSettings(output.settings, context) : undefined,
2857
2817
  };
2858
2818
  };
2859
- const deserializeAws_restJson1BackendAPIConflictResolution = (output, context) => {
2819
+ const de_BackendAPIConflictResolution = (output, context) => {
2860
2820
  return {
2861
2821
  ResolutionStrategy: (0, smithy_client_1.expectString)(output.resolutionStrategy),
2862
2822
  };
2863
2823
  };
2864
- const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
2824
+ const de_BackendAPIResourceConfig = (output, context) => {
2865
2825
  return {
2866
- AdditionalAuthTypes: output.additionalAuthTypes != null
2867
- ? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
2868
- : undefined,
2826
+ AdditionalAuthTypes: output.additionalAuthTypes != null ? de_ListOfBackendAPIAuthType(output.additionalAuthTypes, context) : undefined,
2869
2827
  ApiName: (0, smithy_client_1.expectString)(output.apiName),
2870
2828
  ConflictResolution: output.conflictResolution != null
2871
- ? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
2872
- : undefined,
2873
- DefaultAuthType: output.defaultAuthType != null
2874
- ? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
2829
+ ? de_BackendAPIConflictResolution(output.conflictResolution, context)
2875
2830
  : undefined,
2831
+ DefaultAuthType: output.defaultAuthType != null ? de_BackendAPIAuthType(output.defaultAuthType, context) : undefined,
2876
2832
  Service: (0, smithy_client_1.expectString)(output.service),
2877
2833
  TransformSchema: (0, smithy_client_1.expectString)(output.transformSchema),
2878
2834
  };
2879
2835
  };
2880
- const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context) => {
2836
+ const de_BackendAuthAppleProviderConfig = (output, context) => {
2881
2837
  return {
2882
2838
  ClientId: (0, smithy_client_1.expectString)(output.client_id),
2883
2839
  KeyId: (0, smithy_client_1.expectString)(output.key_id),
@@ -2885,13 +2841,13 @@ const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context)
2885
2841
  TeamId: (0, smithy_client_1.expectString)(output.team_id),
2886
2842
  };
2887
2843
  };
2888
- const deserializeAws_restJson1BackendAuthSocialProviderConfig = (output, context) => {
2844
+ const de_BackendAuthSocialProviderConfig = (output, context) => {
2889
2845
  return {
2890
2846
  ClientId: (0, smithy_client_1.expectString)(output.client_id),
2891
2847
  ClientSecret: (0, smithy_client_1.expectString)(output.client_secret),
2892
2848
  };
2893
2849
  };
2894
- const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
2850
+ const de_BackendJobRespObj = (output, context) => {
2895
2851
  return {
2896
2852
  AppId: (0, smithy_client_1.expectString)(output.appId),
2897
2853
  BackendEnvironmentName: (0, smithy_client_1.expectString)(output.backendEnvironmentName),
@@ -2903,117 +2859,103 @@ const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
2903
2859
  UpdateTime: (0, smithy_client_1.expectString)(output.updateTime),
2904
2860
  };
2905
2861
  };
2906
- const deserializeAws_restJson1BackendStoragePermissions = (output, context) => {
2862
+ const de_BackendStoragePermissions = (output, context) => {
2907
2863
  return {
2908
- Authenticated: output.authenticated != null
2909
- ? deserializeAws_restJson1ListOfAuthenticatedElement(output.authenticated, context)
2910
- : undefined,
2911
- UnAuthenticated: output.unAuthenticated != null
2912
- ? deserializeAws_restJson1ListOfUnAuthenticatedElement(output.unAuthenticated, context)
2913
- : undefined,
2864
+ Authenticated: output.authenticated != null ? de_ListOfAuthenticatedElement(output.authenticated, context) : undefined,
2865
+ UnAuthenticated: output.unAuthenticated != null ? de_ListOfUnAuthenticatedElement(output.unAuthenticated, context) : undefined,
2914
2866
  };
2915
2867
  };
2916
- const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, context) => {
2868
+ const de_CreateBackendAuthForgotPasswordConfig = (output, context) => {
2917
2869
  return {
2918
2870
  DeliveryMethod: (0, smithy_client_1.expectString)(output.deliveryMethod),
2919
- EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
2920
- SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
2871
+ EmailSettings: output.emailSettings != null ? de_EmailSettings(output.emailSettings, context) : undefined,
2872
+ SmsSettings: output.smsSettings != null ? de_SmsSettings(output.smsSettings, context) : undefined,
2921
2873
  };
2922
2874
  };
2923
- const deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (output, context) => {
2875
+ const de_CreateBackendAuthIdentityPoolConfig = (output, context) => {
2924
2876
  return {
2925
2877
  IdentityPoolName: (0, smithy_client_1.expectString)(output.identityPoolName),
2926
2878
  UnauthenticatedLogin: (0, smithy_client_1.expectBoolean)(output.unauthenticatedLogin),
2927
2879
  };
2928
2880
  };
2929
- const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) => {
2881
+ const de_CreateBackendAuthMFAConfig = (output, context) => {
2930
2882
  return {
2931
2883
  MFAMode: (0, smithy_client_1.expectString)(output.MFAMode),
2932
- Settings: output.settings != null ? deserializeAws_restJson1Settings(output.settings, context) : undefined,
2884
+ Settings: output.settings != null ? de_Settings(output.settings, context) : undefined,
2933
2885
  };
2934
2886
  };
2935
- const deserializeAws_restJson1CreateBackendAuthOAuthConfig = (output, context) => {
2887
+ const de_CreateBackendAuthOAuthConfig = (output, context) => {
2936
2888
  return {
2937
2889
  DomainPrefix: (0, smithy_client_1.expectString)(output.domainPrefix),
2938
2890
  OAuthGrantType: (0, smithy_client_1.expectString)(output.oAuthGrantType),
2939
- OAuthScopes: output.oAuthScopes != null
2940
- ? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
2941
- : undefined,
2942
- RedirectSignInURIs: output.redirectSignInURIs != null
2943
- ? deserializeAws_restJson1ListOf__string(output.redirectSignInURIs, context)
2944
- : undefined,
2945
- RedirectSignOutURIs: output.redirectSignOutURIs != null
2946
- ? deserializeAws_restJson1ListOf__string(output.redirectSignOutURIs, context)
2947
- : undefined,
2891
+ OAuthScopes: output.oAuthScopes != null ? de_ListOfOAuthScopesElement(output.oAuthScopes, context) : undefined,
2892
+ RedirectSignInURIs: output.redirectSignInURIs != null ? de_ListOf__string(output.redirectSignInURIs, context) : undefined,
2893
+ RedirectSignOutURIs: output.redirectSignOutURIs != null ? de_ListOf__string(output.redirectSignOutURIs, context) : undefined,
2948
2894
  SocialProviderSettings: output.socialProviderSettings != null
2949
- ? deserializeAws_restJson1SocialProviderSettings(output.socialProviderSettings, context)
2895
+ ? de_SocialProviderSettings(output.socialProviderSettings, context)
2950
2896
  : undefined,
2951
2897
  };
2952
2898
  };
2953
- const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (output, context) => {
2899
+ const de_CreateBackendAuthPasswordPolicyConfig = (output, context) => {
2954
2900
  return {
2955
2901
  AdditionalConstraints: output.additionalConstraints != null
2956
- ? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
2902
+ ? de_ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
2957
2903
  : undefined,
2958
2904
  MinimumLength: (0, smithy_client_1.limitedParseDouble)(output.minimumLength),
2959
2905
  };
2960
2906
  };
2961
- const deserializeAws_restJson1CreateBackendAuthResourceConfig = (output, context) => {
2907
+ const de_CreateBackendAuthResourceConfig = (output, context) => {
2962
2908
  return {
2963
2909
  AuthResources: (0, smithy_client_1.expectString)(output.authResources),
2964
2910
  IdentityPoolConfigs: output.identityPoolConfigs != null
2965
- ? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
2911
+ ? de_CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
2966
2912
  : undefined,
2967
2913
  Service: (0, smithy_client_1.expectString)(output.service),
2968
- UserPoolConfigs: output.userPoolConfigs != null
2969
- ? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
2970
- : undefined,
2914
+ UserPoolConfigs: output.userPoolConfigs != null ? de_CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context) : undefined,
2971
2915
  };
2972
2916
  };
2973
- const deserializeAws_restJson1CreateBackendAuthUserPoolConfig = (output, context) => {
2917
+ const de_CreateBackendAuthUserPoolConfig = (output, context) => {
2974
2918
  return {
2975
2919
  ForgotPassword: output.forgotPassword != null
2976
- ? deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
2920
+ ? de_CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
2977
2921
  : undefined,
2978
- Mfa: output.mfa != null ? deserializeAws_restJson1CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
2979
- OAuth: output.oAuth != null ? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
2922
+ Mfa: output.mfa != null ? de_CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
2923
+ OAuth: output.oAuth != null ? de_CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
2980
2924
  PasswordPolicy: output.passwordPolicy != null
2981
- ? deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
2925
+ ? de_CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
2982
2926
  : undefined,
2983
2927
  RequiredSignUpAttributes: output.requiredSignUpAttributes != null
2984
- ? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
2928
+ ? de_ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
2985
2929
  : undefined,
2986
2930
  SignInMethod: (0, smithy_client_1.expectString)(output.signInMethod),
2987
2931
  UserPoolName: (0, smithy_client_1.expectString)(output.userPoolName),
2988
2932
  VerificationMessage: output.verificationMessage != null
2989
- ? deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
2933
+ ? de_CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
2990
2934
  : undefined,
2991
2935
  };
2992
2936
  };
2993
- const deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (output, context) => {
2937
+ const de_CreateBackendAuthVerificationMessageConfig = (output, context) => {
2994
2938
  return {
2995
2939
  DeliveryMethod: (0, smithy_client_1.expectString)(output.deliveryMethod),
2996
- EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
2997
- SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
2940
+ EmailSettings: output.emailSettings != null ? de_EmailSettings(output.emailSettings, context) : undefined,
2941
+ SmsSettings: output.smsSettings != null ? de_SmsSettings(output.smsSettings, context) : undefined,
2998
2942
  };
2999
2943
  };
3000
- const deserializeAws_restJson1EmailSettings = (output, context) => {
2944
+ const de_EmailSettings = (output, context) => {
3001
2945
  return {
3002
2946
  EmailMessage: (0, smithy_client_1.expectString)(output.emailMessage),
3003
2947
  EmailSubject: (0, smithy_client_1.expectString)(output.emailSubject),
3004
2948
  };
3005
2949
  };
3006
- const deserializeAws_restJson1GetBackendStorageResourceConfig = (output, context) => {
2950
+ const de_GetBackendStorageResourceConfig = (output, context) => {
3007
2951
  return {
3008
2952
  BucketName: (0, smithy_client_1.expectString)(output.bucketName),
3009
2953
  Imported: (0, smithy_client_1.expectBoolean)(output.imported),
3010
- Permissions: output.permissions != null
3011
- ? deserializeAws_restJson1BackendStoragePermissions(output.permissions, context)
3012
- : undefined,
2954
+ Permissions: output.permissions != null ? de_BackendStoragePermissions(output.permissions, context) : undefined,
3013
2955
  ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
3014
2956
  };
3015
2957
  };
3016
- const deserializeAws_restJson1ListOf__string = (output, context) => {
2958
+ const de_ListOf__string = (output, context) => {
3017
2959
  const retVal = (output || [])
3018
2960
  .filter((e) => e != null)
3019
2961
  .map((entry) => {
@@ -3024,7 +2966,7 @@ const deserializeAws_restJson1ListOf__string = (output, context) => {
3024
2966
  });
3025
2967
  return retVal;
3026
2968
  };
3027
- const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, context) => {
2969
+ const de_ListOfAdditionalConstraintsElement = (output, context) => {
3028
2970
  const retVal = (output || [])
3029
2971
  .filter((e) => e != null)
3030
2972
  .map((entry) => {
@@ -3035,7 +2977,7 @@ const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, cont
3035
2977
  });
3036
2978
  return retVal;
3037
2979
  };
3038
- const deserializeAws_restJson1ListOfAuthenticatedElement = (output, context) => {
2980
+ const de_ListOfAuthenticatedElement = (output, context) => {
3039
2981
  const retVal = (output || [])
3040
2982
  .filter((e) => e != null)
3041
2983
  .map((entry) => {
@@ -3046,29 +2988,29 @@ const deserializeAws_restJson1ListOfAuthenticatedElement = (output, context) =>
3046
2988
  });
3047
2989
  return retVal;
3048
2990
  };
3049
- const deserializeAws_restJson1ListOfBackendAPIAuthType = (output, context) => {
2991
+ const de_ListOfBackendAPIAuthType = (output, context) => {
3050
2992
  const retVal = (output || [])
3051
2993
  .filter((e) => e != null)
3052
2994
  .map((entry) => {
3053
2995
  if (entry === null) {
3054
2996
  return null;
3055
2997
  }
3056
- return deserializeAws_restJson1BackendAPIAuthType(entry, context);
2998
+ return de_BackendAPIAuthType(entry, context);
3057
2999
  });
3058
3000
  return retVal;
3059
3001
  };
3060
- const deserializeAws_restJson1ListOfBackendJobRespObj = (output, context) => {
3002
+ const de_ListOfBackendJobRespObj = (output, context) => {
3061
3003
  const retVal = (output || [])
3062
3004
  .filter((e) => e != null)
3063
3005
  .map((entry) => {
3064
3006
  if (entry === null) {
3065
3007
  return null;
3066
3008
  }
3067
- return deserializeAws_restJson1BackendJobRespObj(entry, context);
3009
+ return de_BackendJobRespObj(entry, context);
3068
3010
  });
3069
3011
  return retVal;
3070
3012
  };
3071
- const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
3013
+ const de_ListOfMfaTypesElement = (output, context) => {
3072
3014
  const retVal = (output || [])
3073
3015
  .filter((e) => e != null)
3074
3016
  .map((entry) => {
@@ -3079,7 +3021,7 @@ const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
3079
3021
  });
3080
3022
  return retVal;
3081
3023
  };
3082
- const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
3024
+ const de_ListOfOAuthScopesElement = (output, context) => {
3083
3025
  const retVal = (output || [])
3084
3026
  .filter((e) => e != null)
3085
3027
  .map((entry) => {
@@ -3090,7 +3032,7 @@ const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
3090
3032
  });
3091
3033
  return retVal;
3092
3034
  };
3093
- const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, context) => {
3035
+ const de_ListOfRequiredSignUpAttributesElement = (output, context) => {
3094
3036
  const retVal = (output || [])
3095
3037
  .filter((e) => e != null)
3096
3038
  .map((entry) => {
@@ -3101,18 +3043,18 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, c
3101
3043
  });
3102
3044
  return retVal;
3103
3045
  };
3104
- const deserializeAws_restJson1ListOfS3BucketInfo = (output, context) => {
3046
+ const de_ListOfS3BucketInfo = (output, context) => {
3105
3047
  const retVal = (output || [])
3106
3048
  .filter((e) => e != null)
3107
3049
  .map((entry) => {
3108
3050
  if (entry === null) {
3109
3051
  return null;
3110
3052
  }
3111
- return deserializeAws_restJson1S3BucketInfo(entry, context);
3053
+ return de_S3BucketInfo(entry, context);
3112
3054
  });
3113
3055
  return retVal;
3114
3056
  };
3115
- const deserializeAws_restJson1ListOfUnAuthenticatedElement = (output, context) => {
3057
+ const de_ListOfUnAuthenticatedElement = (output, context) => {
3116
3058
  const retVal = (output || [])
3117
3059
  .filter((e) => e != null)
3118
3060
  .map((entry) => {
@@ -3123,7 +3065,7 @@ const deserializeAws_restJson1ListOfUnAuthenticatedElement = (output, context) =
3123
3065
  });
3124
3066
  return retVal;
3125
3067
  };
3126
- const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
3068
+ const de_LoginAuthConfigReqObj = (output, context) => {
3127
3069
  return {
3128
3070
  AwsCognitoIdentityPoolId: (0, smithy_client_1.expectString)(output.aws_cognito_identity_pool_id),
3129
3071
  AwsCognitoRegion: (0, smithy_client_1.expectString)(output.aws_cognito_region),
@@ -3131,37 +3073,29 @@ const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
3131
3073
  AwsUserPoolsWebClientId: (0, smithy_client_1.expectString)(output.aws_user_pools_web_client_id),
3132
3074
  };
3133
3075
  };
3134
- const deserializeAws_restJson1S3BucketInfo = (output, context) => {
3076
+ const de_S3BucketInfo = (output, context) => {
3135
3077
  return {
3136
3078
  CreationDate: (0, smithy_client_1.expectString)(output.creationDate),
3137
3079
  Name: (0, smithy_client_1.expectString)(output.name),
3138
3080
  };
3139
3081
  };
3140
- const deserializeAws_restJson1Settings = (output, context) => {
3082
+ const de_Settings = (output, context) => {
3141
3083
  return {
3142
- MfaTypes: output.mfaTypes != null ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
3084
+ MfaTypes: output.mfaTypes != null ? de_ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
3143
3085
  SmsMessage: (0, smithy_client_1.expectString)(output.smsMessage),
3144
3086
  };
3145
3087
  };
3146
- const deserializeAws_restJson1SmsSettings = (output, context) => {
3088
+ const de_SmsSettings = (output, context) => {
3147
3089
  return {
3148
3090
  SmsMessage: (0, smithy_client_1.expectString)(output.smsMessage),
3149
3091
  };
3150
3092
  };
3151
- const deserializeAws_restJson1SocialProviderSettings = (output, context) => {
3093
+ const de_SocialProviderSettings = (output, context) => {
3152
3094
  return {
3153
- Facebook: output.Facebook != null
3154
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Facebook, context)
3155
- : undefined,
3156
- Google: output.Google != null
3157
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Google, context)
3158
- : undefined,
3159
- LoginWithAmazon: output.LoginWithAmazon != null
3160
- ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.LoginWithAmazon, context)
3161
- : undefined,
3162
- SignInWithApple: output.SignInWithApple != null
3163
- ? deserializeAws_restJson1BackendAuthAppleProviderConfig(output.SignInWithApple, context)
3164
- : undefined,
3095
+ Facebook: output.Facebook != null ? de_BackendAuthSocialProviderConfig(output.Facebook, context) : undefined,
3096
+ Google: output.Google != null ? de_BackendAuthSocialProviderConfig(output.Google, context) : undefined,
3097
+ LoginWithAmazon: output.LoginWithAmazon != null ? de_BackendAuthSocialProviderConfig(output.LoginWithAmazon, context) : undefined,
3098
+ SignInWithApple: output.SignInWithApple != null ? de_BackendAuthAppleProviderConfig(output.SignInWithApple, context) : undefined,
3165
3099
  };
3166
3100
  };
3167
3101
  const deserializeMetadata = (output) => ({