@aws-sdk/client-amplifybackend 3.928.0 → 3.929.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 (55) hide show
  1. package/dist-cjs/index.js +3547 -1864
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AmplifyBackendClient.js +2 -0
  4. package/dist-es/commands/CloneBackendCommand.js +3 -9
  5. package/dist-es/commands/CreateBackendAPICommand.js +3 -9
  6. package/dist-es/commands/CreateBackendAuthCommand.js +3 -10
  7. package/dist-es/commands/CreateBackendCommand.js +3 -9
  8. package/dist-es/commands/CreateBackendConfigCommand.js +3 -9
  9. package/dist-es/commands/CreateBackendStorageCommand.js +3 -9
  10. package/dist-es/commands/CreateTokenCommand.js +3 -9
  11. package/dist-es/commands/DeleteBackendAPICommand.js +3 -9
  12. package/dist-es/commands/DeleteBackendAuthCommand.js +3 -9
  13. package/dist-es/commands/DeleteBackendCommand.js +3 -9
  14. package/dist-es/commands/DeleteBackendStorageCommand.js +3 -9
  15. package/dist-es/commands/DeleteTokenCommand.js +3 -9
  16. package/dist-es/commands/GenerateBackendAPIModelsCommand.js +3 -9
  17. package/dist-es/commands/GetBackendAPICommand.js +3 -9
  18. package/dist-es/commands/GetBackendAPIModelsCommand.js +3 -9
  19. package/dist-es/commands/GetBackendAuthCommand.js +3 -10
  20. package/dist-es/commands/GetBackendCommand.js +3 -9
  21. package/dist-es/commands/GetBackendJobCommand.js +3 -9
  22. package/dist-es/commands/GetBackendStorageCommand.js +3 -9
  23. package/dist-es/commands/GetTokenCommand.js +3 -9
  24. package/dist-es/commands/ImportBackendAuthCommand.js +3 -9
  25. package/dist-es/commands/ImportBackendStorageCommand.js +3 -9
  26. package/dist-es/commands/ListBackendJobsCommand.js +3 -9
  27. package/dist-es/commands/ListS3BucketsCommand.js +3 -9
  28. package/dist-es/commands/RemoveAllBackendsCommand.js +3 -9
  29. package/dist-es/commands/RemoveBackendConfigCommand.js +3 -9
  30. package/dist-es/commands/UpdateBackendAPICommand.js +3 -9
  31. package/dist-es/commands/UpdateBackendAuthCommand.js +3 -10
  32. package/dist-es/commands/UpdateBackendConfigCommand.js +3 -9
  33. package/dist-es/commands/UpdateBackendJobCommand.js +3 -9
  34. package/dist-es/commands/UpdateBackendStorageCommand.js +3 -9
  35. package/dist-es/models/models_0.js +0 -96
  36. package/dist-es/runtimeConfig.shared.js +2 -0
  37. package/dist-es/schemas/schemas_0.js +3480 -0
  38. package/dist-types/AmplifyBackendClient.d.ts +10 -1
  39. package/dist-types/models/models_0.d.ts +0 -72
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  41. package/dist-types/runtimeConfig.d.ts +1 -0
  42. package/dist-types/runtimeConfig.native.d.ts +1 -0
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/schemas/schemas_0.d.ts +144 -0
  45. package/dist-types/ts3.4/AmplifyBackendClient.d.ts +4 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +0 -52
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  50. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +149 -0
  52. package/package.json +2 -2
  53. package/dist-es/protocols/Aws_restJson1.js +0 -1524
  54. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
@@ -1,1524 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AmplifyBackendServiceException as __BaseException } from "../models/AmplifyBackendServiceException";
5
- import { BadRequestException, GatewayTimeoutException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
6
- export const se_CloneBackendCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/clone");
12
- b.p("AppId", () => input.AppId, "{AppId}", false);
13
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
14
- let body;
15
- body = JSON.stringify(take(input, {
16
- targetEnvironmentName: [, , `TargetEnvironmentName`],
17
- }));
18
- b.m("POST").h(headers).b(body);
19
- return b.build();
20
- };
21
- export const se_CreateBackendCommand = async (input, context) => {
22
- const b = rb(input, context);
23
- const headers = {
24
- "content-type": "application/json",
25
- };
26
- b.bp("/backend");
27
- let body;
28
- body = JSON.stringify(take(input, {
29
- appId: [, , `AppId`],
30
- appName: [, , `AppName`],
31
- backendEnvironmentName: [, , `BackendEnvironmentName`],
32
- resourceConfig: [, (_) => _json(_), `ResourceConfig`],
33
- resourceName: [, , `ResourceName`],
34
- }));
35
- b.m("POST").h(headers).b(body);
36
- return b.build();
37
- };
38
- export const se_CreateBackendAPICommand = async (input, context) => {
39
- const b = rb(input, context);
40
- const headers = {
41
- "content-type": "application/json",
42
- };
43
- b.bp("/backend/{AppId}/api");
44
- b.p("AppId", () => input.AppId, "{AppId}", false);
45
- let body;
46
- body = JSON.stringify(take(input, {
47
- backendEnvironmentName: [, , `BackendEnvironmentName`],
48
- resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
49
- resourceName: [, , `ResourceName`],
50
- }));
51
- b.m("POST").h(headers).b(body);
52
- return b.build();
53
- };
54
- export const se_CreateBackendAuthCommand = async (input, context) => {
55
- const b = rb(input, context);
56
- const headers = {
57
- "content-type": "application/json",
58
- };
59
- b.bp("/backend/{AppId}/auth");
60
- b.p("AppId", () => input.AppId, "{AppId}", false);
61
- let body;
62
- body = JSON.stringify(take(input, {
63
- backendEnvironmentName: [, , `BackendEnvironmentName`],
64
- resourceConfig: [, (_) => se_CreateBackendAuthResourceConfig(_, context), `ResourceConfig`],
65
- resourceName: [, , `ResourceName`],
66
- }));
67
- b.m("POST").h(headers).b(body);
68
- return b.build();
69
- };
70
- export const se_CreateBackendConfigCommand = async (input, context) => {
71
- const b = rb(input, context);
72
- const headers = {
73
- "content-type": "application/json",
74
- };
75
- b.bp("/backend/{AppId}/config");
76
- b.p("AppId", () => input.AppId, "{AppId}", false);
77
- let body;
78
- body = JSON.stringify(take(input, {
79
- backendManagerAppId: [, , `BackendManagerAppId`],
80
- }));
81
- b.m("POST").h(headers).b(body);
82
- return b.build();
83
- };
84
- export const se_CreateBackendStorageCommand = async (input, context) => {
85
- const b = rb(input, context);
86
- const headers = {
87
- "content-type": "application/json",
88
- };
89
- b.bp("/backend/{AppId}/storage");
90
- b.p("AppId", () => input.AppId, "{AppId}", false);
91
- let body;
92
- body = JSON.stringify(take(input, {
93
- backendEnvironmentName: [, , `BackendEnvironmentName`],
94
- resourceConfig: [, (_) => se_CreateBackendStorageResourceConfig(_, context), `ResourceConfig`],
95
- resourceName: [, , `ResourceName`],
96
- }));
97
- b.m("POST").h(headers).b(body);
98
- return b.build();
99
- };
100
- export const se_CreateTokenCommand = async (input, context) => {
101
- const b = rb(input, context);
102
- const headers = {};
103
- b.bp("/backend/{AppId}/challenge");
104
- b.p("AppId", () => input.AppId, "{AppId}", false);
105
- let body;
106
- b.m("POST").h(headers).b(body);
107
- return b.build();
108
- };
109
- export const se_DeleteBackendCommand = async (input, context) => {
110
- const b = rb(input, context);
111
- const headers = {};
112
- b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/remove");
113
- b.p("AppId", () => input.AppId, "{AppId}", false);
114
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
115
- let body;
116
- b.m("POST").h(headers).b(body);
117
- return b.build();
118
- };
119
- export const se_DeleteBackendAPICommand = async (input, context) => {
120
- const b = rb(input, context);
121
- const headers = {
122
- "content-type": "application/json",
123
- };
124
- b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/remove");
125
- b.p("AppId", () => input.AppId, "{AppId}", false);
126
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
127
- let body;
128
- body = JSON.stringify(take(input, {
129
- resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
130
- resourceName: [, , `ResourceName`],
131
- }));
132
- b.m("POST").h(headers).b(body);
133
- return b.build();
134
- };
135
- export const se_DeleteBackendAuthCommand = async (input, context) => {
136
- const b = rb(input, context);
137
- const headers = {
138
- "content-type": "application/json",
139
- };
140
- b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/remove");
141
- b.p("AppId", () => input.AppId, "{AppId}", false);
142
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
143
- let body;
144
- body = JSON.stringify(take(input, {
145
- resourceName: [, , `ResourceName`],
146
- }));
147
- b.m("POST").h(headers).b(body);
148
- return b.build();
149
- };
150
- export const se_DeleteBackendStorageCommand = async (input, context) => {
151
- const b = rb(input, context);
152
- const headers = {
153
- "content-type": "application/json",
154
- };
155
- b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/remove");
156
- b.p("AppId", () => input.AppId, "{AppId}", false);
157
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
158
- let body;
159
- body = JSON.stringify(take(input, {
160
- resourceName: [, , `ResourceName`],
161
- serviceName: [, , `ServiceName`],
162
- }));
163
- b.m("POST").h(headers).b(body);
164
- return b.build();
165
- };
166
- export const se_DeleteTokenCommand = async (input, context) => {
167
- const b = rb(input, context);
168
- const headers = {};
169
- b.bp("/backend/{AppId}/challenge/{SessionId}/remove");
170
- b.p("AppId", () => input.AppId, "{AppId}", false);
171
- b.p("SessionId", () => input.SessionId, "{SessionId}", false);
172
- let body;
173
- b.m("POST").h(headers).b(body);
174
- return b.build();
175
- };
176
- export const se_GenerateBackendAPIModelsCommand = async (input, context) => {
177
- const b = rb(input, context);
178
- const headers = {
179
- "content-type": "application/json",
180
- };
181
- b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/generateModels");
182
- b.p("AppId", () => input.AppId, "{AppId}", false);
183
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
184
- let body;
185
- body = JSON.stringify(take(input, {
186
- resourceName: [, , `ResourceName`],
187
- }));
188
- b.m("POST").h(headers).b(body);
189
- return b.build();
190
- };
191
- export const se_GetBackendCommand = async (input, context) => {
192
- const b = rb(input, context);
193
- const headers = {
194
- "content-type": "application/json",
195
- };
196
- b.bp("/backend/{AppId}/details");
197
- b.p("AppId", () => input.AppId, "{AppId}", false);
198
- let body;
199
- body = JSON.stringify(take(input, {
200
- backendEnvironmentName: [, , `BackendEnvironmentName`],
201
- }));
202
- b.m("POST").h(headers).b(body);
203
- return b.build();
204
- };
205
- export const se_GetBackendAPICommand = async (input, context) => {
206
- const b = rb(input, context);
207
- const headers = {
208
- "content-type": "application/json",
209
- };
210
- b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/details");
211
- b.p("AppId", () => input.AppId, "{AppId}", false);
212
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
213
- let body;
214
- body = JSON.stringify(take(input, {
215
- resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
216
- resourceName: [, , `ResourceName`],
217
- }));
218
- b.m("POST").h(headers).b(body);
219
- return b.build();
220
- };
221
- export const se_GetBackendAPIModelsCommand = async (input, context) => {
222
- const b = rb(input, context);
223
- const headers = {
224
- "content-type": "application/json",
225
- };
226
- b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/getModels");
227
- b.p("AppId", () => input.AppId, "{AppId}", false);
228
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
229
- let body;
230
- body = JSON.stringify(take(input, {
231
- resourceName: [, , `ResourceName`],
232
- }));
233
- b.m("POST").h(headers).b(body);
234
- return b.build();
235
- };
236
- export const se_GetBackendAuthCommand = async (input, context) => {
237
- const b = rb(input, context);
238
- const headers = {
239
- "content-type": "application/json",
240
- };
241
- b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/details");
242
- b.p("AppId", () => input.AppId, "{AppId}", false);
243
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
244
- let body;
245
- body = JSON.stringify(take(input, {
246
- resourceName: [, , `ResourceName`],
247
- }));
248
- b.m("POST").h(headers).b(body);
249
- return b.build();
250
- };
251
- export const se_GetBackendJobCommand = async (input, context) => {
252
- const b = rb(input, context);
253
- const headers = {};
254
- b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
255
- b.p("AppId", () => input.AppId, "{AppId}", false);
256
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
257
- b.p("JobId", () => input.JobId, "{JobId}", false);
258
- let body;
259
- b.m("GET").h(headers).b(body);
260
- return b.build();
261
- };
262
- export const se_GetBackendStorageCommand = async (input, context) => {
263
- const b = rb(input, context);
264
- const headers = {
265
- "content-type": "application/json",
266
- };
267
- b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/details");
268
- b.p("AppId", () => input.AppId, "{AppId}", false);
269
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
270
- let body;
271
- body = JSON.stringify(take(input, {
272
- resourceName: [, , `ResourceName`],
273
- }));
274
- b.m("POST").h(headers).b(body);
275
- return b.build();
276
- };
277
- export const se_GetTokenCommand = async (input, context) => {
278
- const b = rb(input, context);
279
- const headers = {};
280
- b.bp("/backend/{AppId}/challenge/{SessionId}");
281
- b.p("AppId", () => input.AppId, "{AppId}", false);
282
- b.p("SessionId", () => input.SessionId, "{SessionId}", false);
283
- let body;
284
- b.m("GET").h(headers).b(body);
285
- return b.build();
286
- };
287
- export const se_ImportBackendAuthCommand = async (input, context) => {
288
- const b = rb(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/import");
293
- b.p("AppId", () => input.AppId, "{AppId}", false);
294
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
295
- let body;
296
- body = JSON.stringify(take(input, {
297
- identityPoolId: [, , `IdentityPoolId`],
298
- nativeClientId: [, , `NativeClientId`],
299
- userPoolId: [, , `UserPoolId`],
300
- webClientId: [, , `WebClientId`],
301
- }));
302
- b.m("POST").h(headers).b(body);
303
- return b.build();
304
- };
305
- export const se_ImportBackendStorageCommand = async (input, context) => {
306
- const b = rb(input, context);
307
- const headers = {
308
- "content-type": "application/json",
309
- };
310
- b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/import");
311
- b.p("AppId", () => input.AppId, "{AppId}", false);
312
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
313
- let body;
314
- body = JSON.stringify(take(input, {
315
- bucketName: [, , `BucketName`],
316
- serviceName: [, , `ServiceName`],
317
- }));
318
- b.m("POST").h(headers).b(body);
319
- return b.build();
320
- };
321
- export const se_ListBackendJobsCommand = async (input, context) => {
322
- const b = rb(input, context);
323
- const headers = {
324
- "content-type": "application/json",
325
- };
326
- b.bp("/backend/{AppId}/job/{BackendEnvironmentName}");
327
- b.p("AppId", () => input.AppId, "{AppId}", false);
328
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
329
- let body;
330
- body = JSON.stringify(take(input, {
331
- jobId: [, , `JobId`],
332
- maxResults: [, , `MaxResults`],
333
- nextToken: [, , `NextToken`],
334
- operation: [, , `Operation`],
335
- status: [, , `Status`],
336
- }));
337
- b.m("POST").h(headers).b(body);
338
- return b.build();
339
- };
340
- export const se_ListS3BucketsCommand = async (input, context) => {
341
- const b = rb(input, context);
342
- const headers = {
343
- "content-type": "application/json",
344
- };
345
- b.bp("/s3Buckets");
346
- let body;
347
- body = JSON.stringify(take(input, {
348
- nextToken: [, , `NextToken`],
349
- }));
350
- b.m("POST").h(headers).b(body);
351
- return b.build();
352
- };
353
- export const se_RemoveAllBackendsCommand = async (input, context) => {
354
- const b = rb(input, context);
355
- const headers = {
356
- "content-type": "application/json",
357
- };
358
- b.bp("/backend/{AppId}/remove");
359
- b.p("AppId", () => input.AppId, "{AppId}", false);
360
- let body;
361
- body = JSON.stringify(take(input, {
362
- cleanAmplifyApp: [, , `CleanAmplifyApp`],
363
- }));
364
- b.m("POST").h(headers).b(body);
365
- return b.build();
366
- };
367
- export const se_RemoveBackendConfigCommand = async (input, context) => {
368
- const b = rb(input, context);
369
- const headers = {};
370
- b.bp("/backend/{AppId}/config/remove");
371
- b.p("AppId", () => input.AppId, "{AppId}", false);
372
- let body;
373
- b.m("POST").h(headers).b(body);
374
- return b.build();
375
- };
376
- export const se_UpdateBackendAPICommand = async (input, context) => {
377
- const b = rb(input, context);
378
- const headers = {
379
- "content-type": "application/json",
380
- };
381
- b.bp("/backend/{AppId}/api/{BackendEnvironmentName}");
382
- b.p("AppId", () => input.AppId, "{AppId}", false);
383
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
384
- let body;
385
- body = JSON.stringify(take(input, {
386
- resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
387
- resourceName: [, , `ResourceName`],
388
- }));
389
- b.m("POST").h(headers).b(body);
390
- return b.build();
391
- };
392
- export const se_UpdateBackendAuthCommand = async (input, context) => {
393
- const b = rb(input, context);
394
- const headers = {
395
- "content-type": "application/json",
396
- };
397
- b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}");
398
- b.p("AppId", () => input.AppId, "{AppId}", false);
399
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
400
- let body;
401
- body = JSON.stringify(take(input, {
402
- resourceConfig: [, (_) => se_UpdateBackendAuthResourceConfig(_, context), `ResourceConfig`],
403
- resourceName: [, , `ResourceName`],
404
- }));
405
- b.m("POST").h(headers).b(body);
406
- return b.build();
407
- };
408
- export const se_UpdateBackendConfigCommand = async (input, context) => {
409
- const b = rb(input, context);
410
- const headers = {
411
- "content-type": "application/json",
412
- };
413
- b.bp("/backend/{AppId}/config/update");
414
- b.p("AppId", () => input.AppId, "{AppId}", false);
415
- let body;
416
- body = JSON.stringify(take(input, {
417
- loginAuthConfig: [, (_) => se_LoginAuthConfigReqObj(_, context), `LoginAuthConfig`],
418
- }));
419
- b.m("POST").h(headers).b(body);
420
- return b.build();
421
- };
422
- export const se_UpdateBackendJobCommand = async (input, context) => {
423
- const b = rb(input, context);
424
- const headers = {
425
- "content-type": "application/json",
426
- };
427
- b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
428
- b.p("AppId", () => input.AppId, "{AppId}", false);
429
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
430
- b.p("JobId", () => input.JobId, "{JobId}", false);
431
- let body;
432
- body = JSON.stringify(take(input, {
433
- operation: [, , `Operation`],
434
- status: [, , `Status`],
435
- }));
436
- b.m("POST").h(headers).b(body);
437
- return b.build();
438
- };
439
- export const se_UpdateBackendStorageCommand = async (input, context) => {
440
- const b = rb(input, context);
441
- const headers = {
442
- "content-type": "application/json",
443
- };
444
- b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}");
445
- b.p("AppId", () => input.AppId, "{AppId}", false);
446
- b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
447
- let body;
448
- body = JSON.stringify(take(input, {
449
- resourceConfig: [, (_) => se_UpdateBackendStorageResourceConfig(_, context), `ResourceConfig`],
450
- resourceName: [, , `ResourceName`],
451
- }));
452
- b.m("POST").h(headers).b(body);
453
- return b.build();
454
- };
455
- export const de_CloneBackendCommand = async (output, context) => {
456
- if (output.statusCode !== 200 && output.statusCode >= 300) {
457
- return de_CommandError(output, context);
458
- }
459
- const contents = map({
460
- $metadata: deserializeMetadata(output),
461
- });
462
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
463
- const doc = take(data, {
464
- AppId: [, __expectString, `appId`],
465
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
466
- Error: [, __expectString, `error`],
467
- JobId: [, __expectString, `jobId`],
468
- Operation: [, __expectString, `operation`],
469
- Status: [, __expectString, `status`],
470
- });
471
- Object.assign(contents, doc);
472
- return contents;
473
- };
474
- export const de_CreateBackendCommand = async (output, context) => {
475
- if (output.statusCode !== 200 && output.statusCode >= 300) {
476
- return de_CommandError(output, context);
477
- }
478
- const contents = map({
479
- $metadata: deserializeMetadata(output),
480
- });
481
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
482
- const doc = take(data, {
483
- AppId: [, __expectString, `appId`],
484
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
485
- Error: [, __expectString, `error`],
486
- JobId: [, __expectString, `jobId`],
487
- Operation: [, __expectString, `operation`],
488
- Status: [, __expectString, `status`],
489
- });
490
- Object.assign(contents, doc);
491
- return contents;
492
- };
493
- export const de_CreateBackendAPICommand = async (output, context) => {
494
- if (output.statusCode !== 200 && output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const contents = map({
498
- $metadata: deserializeMetadata(output),
499
- });
500
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
501
- const doc = take(data, {
502
- AppId: [, __expectString, `appId`],
503
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
504
- Error: [, __expectString, `error`],
505
- JobId: [, __expectString, `jobId`],
506
- Operation: [, __expectString, `operation`],
507
- Status: [, __expectString, `status`],
508
- });
509
- Object.assign(contents, doc);
510
- return contents;
511
- };
512
- export const de_CreateBackendAuthCommand = async (output, context) => {
513
- if (output.statusCode !== 200 && output.statusCode >= 300) {
514
- return de_CommandError(output, context);
515
- }
516
- const contents = map({
517
- $metadata: deserializeMetadata(output),
518
- });
519
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
520
- const doc = take(data, {
521
- AppId: [, __expectString, `appId`],
522
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
523
- Error: [, __expectString, `error`],
524
- JobId: [, __expectString, `jobId`],
525
- Operation: [, __expectString, `operation`],
526
- Status: [, __expectString, `status`],
527
- });
528
- Object.assign(contents, doc);
529
- return contents;
530
- };
531
- export const de_CreateBackendConfigCommand = async (output, context) => {
532
- if (output.statusCode !== 200 && output.statusCode >= 300) {
533
- return de_CommandError(output, context);
534
- }
535
- const contents = map({
536
- $metadata: deserializeMetadata(output),
537
- });
538
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
539
- const doc = take(data, {
540
- AppId: [, __expectString, `appId`],
541
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
542
- JobId: [, __expectString, `jobId`],
543
- Status: [, __expectString, `status`],
544
- });
545
- Object.assign(contents, doc);
546
- return contents;
547
- };
548
- export const de_CreateBackendStorageCommand = async (output, context) => {
549
- if (output.statusCode !== 200 && output.statusCode >= 300) {
550
- return de_CommandError(output, context);
551
- }
552
- const contents = map({
553
- $metadata: deserializeMetadata(output),
554
- });
555
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
556
- const doc = take(data, {
557
- AppId: [, __expectString, `appId`],
558
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
559
- JobId: [, __expectString, `jobId`],
560
- Status: [, __expectString, `status`],
561
- });
562
- Object.assign(contents, doc);
563
- return contents;
564
- };
565
- export const de_CreateTokenCommand = async (output, context) => {
566
- if (output.statusCode !== 200 && output.statusCode >= 300) {
567
- return de_CommandError(output, context);
568
- }
569
- const contents = map({
570
- $metadata: deserializeMetadata(output),
571
- });
572
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
573
- const doc = take(data, {
574
- AppId: [, __expectString, `appId`],
575
- ChallengeCode: [, __expectString, `challengeCode`],
576
- SessionId: [, __expectString, `sessionId`],
577
- Ttl: [, __expectString, `ttl`],
578
- });
579
- Object.assign(contents, doc);
580
- return contents;
581
- };
582
- export const de_DeleteBackendCommand = async (output, context) => {
583
- if (output.statusCode !== 200 && output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const contents = map({
587
- $metadata: deserializeMetadata(output),
588
- });
589
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
590
- const doc = take(data, {
591
- AppId: [, __expectString, `appId`],
592
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
593
- Error: [, __expectString, `error`],
594
- JobId: [, __expectString, `jobId`],
595
- Operation: [, __expectString, `operation`],
596
- Status: [, __expectString, `status`],
597
- });
598
- Object.assign(contents, doc);
599
- return contents;
600
- };
601
- export const de_DeleteBackendAPICommand = async (output, context) => {
602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
603
- return de_CommandError(output, context);
604
- }
605
- const contents = map({
606
- $metadata: deserializeMetadata(output),
607
- });
608
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
609
- const doc = take(data, {
610
- AppId: [, __expectString, `appId`],
611
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
612
- Error: [, __expectString, `error`],
613
- JobId: [, __expectString, `jobId`],
614
- Operation: [, __expectString, `operation`],
615
- Status: [, __expectString, `status`],
616
- });
617
- Object.assign(contents, doc);
618
- return contents;
619
- };
620
- export const de_DeleteBackendAuthCommand = async (output, context) => {
621
- if (output.statusCode !== 200 && output.statusCode >= 300) {
622
- return de_CommandError(output, context);
623
- }
624
- const contents = map({
625
- $metadata: deserializeMetadata(output),
626
- });
627
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
628
- const doc = take(data, {
629
- AppId: [, __expectString, `appId`],
630
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
631
- Error: [, __expectString, `error`],
632
- JobId: [, __expectString, `jobId`],
633
- Operation: [, __expectString, `operation`],
634
- Status: [, __expectString, `status`],
635
- });
636
- Object.assign(contents, doc);
637
- return contents;
638
- };
639
- export const de_DeleteBackendStorageCommand = async (output, context) => {
640
- if (output.statusCode !== 200 && output.statusCode >= 300) {
641
- return de_CommandError(output, context);
642
- }
643
- const contents = map({
644
- $metadata: deserializeMetadata(output),
645
- });
646
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
647
- const doc = take(data, {
648
- AppId: [, __expectString, `appId`],
649
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
650
- JobId: [, __expectString, `jobId`],
651
- Status: [, __expectString, `status`],
652
- });
653
- Object.assign(contents, doc);
654
- return contents;
655
- };
656
- export const de_DeleteTokenCommand = async (output, context) => {
657
- if (output.statusCode !== 200 && output.statusCode >= 300) {
658
- return de_CommandError(output, context);
659
- }
660
- const contents = map({
661
- $metadata: deserializeMetadata(output),
662
- });
663
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
664
- const doc = take(data, {
665
- IsSuccess: [, __expectBoolean, `isSuccess`],
666
- });
667
- Object.assign(contents, doc);
668
- return contents;
669
- };
670
- export const de_GenerateBackendAPIModelsCommand = async (output, context) => {
671
- if (output.statusCode !== 200 && output.statusCode >= 300) {
672
- return de_CommandError(output, context);
673
- }
674
- const contents = map({
675
- $metadata: deserializeMetadata(output),
676
- });
677
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
678
- const doc = take(data, {
679
- AppId: [, __expectString, `appId`],
680
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
681
- Error: [, __expectString, `error`],
682
- JobId: [, __expectString, `jobId`],
683
- Operation: [, __expectString, `operation`],
684
- Status: [, __expectString, `status`],
685
- });
686
- Object.assign(contents, doc);
687
- return contents;
688
- };
689
- export const de_GetBackendCommand = async (output, context) => {
690
- if (output.statusCode !== 200 && output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const contents = map({
694
- $metadata: deserializeMetadata(output),
695
- });
696
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
697
- const doc = take(data, {
698
- AmplifyFeatureFlags: [, __expectString, `amplifyFeatureFlags`],
699
- AmplifyMetaConfig: [, __expectString, `amplifyMetaConfig`],
700
- AppId: [, __expectString, `appId`],
701
- AppName: [, __expectString, `appName`],
702
- BackendEnvironmentList: [, _json, `backendEnvironmentList`],
703
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
704
- Error: [, __expectString, `error`],
705
- });
706
- Object.assign(contents, doc);
707
- return contents;
708
- };
709
- export const de_GetBackendAPICommand = async (output, context) => {
710
- if (output.statusCode !== 200 && output.statusCode >= 300) {
711
- return de_CommandError(output, context);
712
- }
713
- const contents = map({
714
- $metadata: deserializeMetadata(output),
715
- });
716
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
717
- const doc = take(data, {
718
- AppId: [, __expectString, `appId`],
719
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
720
- Error: [, __expectString, `error`],
721
- ResourceConfig: [, (_) => de_BackendAPIResourceConfig(_, context), `resourceConfig`],
722
- ResourceName: [, __expectString, `resourceName`],
723
- });
724
- Object.assign(contents, doc);
725
- return contents;
726
- };
727
- export const de_GetBackendAPIModelsCommand = async (output, context) => {
728
- if (output.statusCode !== 200 && output.statusCode >= 300) {
729
- return de_CommandError(output, context);
730
- }
731
- const contents = map({
732
- $metadata: deserializeMetadata(output),
733
- });
734
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
735
- const doc = take(data, {
736
- ModelIntrospectionSchema: [, __expectString, `modelIntrospectionSchema`],
737
- Models: [, __expectString, `models`],
738
- Status: [, __expectString, `status`],
739
- });
740
- Object.assign(contents, doc);
741
- return contents;
742
- };
743
- export const de_GetBackendAuthCommand = async (output, context) => {
744
- if (output.statusCode !== 200 && output.statusCode >= 300) {
745
- return de_CommandError(output, context);
746
- }
747
- const contents = map({
748
- $metadata: deserializeMetadata(output),
749
- });
750
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
751
- const doc = take(data, {
752
- AppId: [, __expectString, `appId`],
753
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
754
- Error: [, __expectString, `error`],
755
- ResourceConfig: [, (_) => de_CreateBackendAuthResourceConfig(_, context), `resourceConfig`],
756
- ResourceName: [, __expectString, `resourceName`],
757
- });
758
- Object.assign(contents, doc);
759
- return contents;
760
- };
761
- export const de_GetBackendJobCommand = async (output, context) => {
762
- if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return de_CommandError(output, context);
764
- }
765
- const contents = map({
766
- $metadata: deserializeMetadata(output),
767
- });
768
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
769
- const doc = take(data, {
770
- AppId: [, __expectString, `appId`],
771
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
772
- CreateTime: [, __expectString, `createTime`],
773
- Error: [, __expectString, `error`],
774
- JobId: [, __expectString, `jobId`],
775
- Operation: [, __expectString, `operation`],
776
- Status: [, __expectString, `status`],
777
- UpdateTime: [, __expectString, `updateTime`],
778
- });
779
- Object.assign(contents, doc);
780
- return contents;
781
- };
782
- export const de_GetBackendStorageCommand = async (output, context) => {
783
- if (output.statusCode !== 200 && output.statusCode >= 300) {
784
- return de_CommandError(output, context);
785
- }
786
- const contents = map({
787
- $metadata: deserializeMetadata(output),
788
- });
789
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
790
- const doc = take(data, {
791
- AppId: [, __expectString, `appId`],
792
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
793
- ResourceConfig: [, (_) => de_GetBackendStorageResourceConfig(_, context), `resourceConfig`],
794
- ResourceName: [, __expectString, `resourceName`],
795
- });
796
- Object.assign(contents, doc);
797
- return contents;
798
- };
799
- export const de_GetTokenCommand = async (output, context) => {
800
- if (output.statusCode !== 200 && output.statusCode >= 300) {
801
- return de_CommandError(output, context);
802
- }
803
- const contents = map({
804
- $metadata: deserializeMetadata(output),
805
- });
806
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
807
- const doc = take(data, {
808
- AppId: [, __expectString, `appId`],
809
- ChallengeCode: [, __expectString, `challengeCode`],
810
- SessionId: [, __expectString, `sessionId`],
811
- Ttl: [, __expectString, `ttl`],
812
- });
813
- Object.assign(contents, doc);
814
- return contents;
815
- };
816
- export const de_ImportBackendAuthCommand = async (output, context) => {
817
- if (output.statusCode !== 200 && output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const contents = map({
821
- $metadata: deserializeMetadata(output),
822
- });
823
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
824
- const doc = take(data, {
825
- AppId: [, __expectString, `appId`],
826
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
827
- Error: [, __expectString, `error`],
828
- JobId: [, __expectString, `jobId`],
829
- Operation: [, __expectString, `operation`],
830
- Status: [, __expectString, `status`],
831
- });
832
- Object.assign(contents, doc);
833
- return contents;
834
- };
835
- export const de_ImportBackendStorageCommand = async (output, context) => {
836
- if (output.statusCode !== 200 && output.statusCode >= 300) {
837
- return de_CommandError(output, context);
838
- }
839
- const contents = map({
840
- $metadata: deserializeMetadata(output),
841
- });
842
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
843
- const doc = take(data, {
844
- AppId: [, __expectString, `appId`],
845
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
846
- JobId: [, __expectString, `jobId`],
847
- Status: [, __expectString, `status`],
848
- });
849
- Object.assign(contents, doc);
850
- return contents;
851
- };
852
- export const de_ListBackendJobsCommand = async (output, context) => {
853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const contents = map({
857
- $metadata: deserializeMetadata(output),
858
- });
859
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
860
- const doc = take(data, {
861
- Jobs: [, (_) => de_ListOfBackendJobRespObj(_, context), `jobs`],
862
- NextToken: [, __expectString, `nextToken`],
863
- });
864
- Object.assign(contents, doc);
865
- return contents;
866
- };
867
- export const de_ListS3BucketsCommand = async (output, context) => {
868
- if (output.statusCode !== 200 && output.statusCode >= 300) {
869
- return de_CommandError(output, context);
870
- }
871
- const contents = map({
872
- $metadata: deserializeMetadata(output),
873
- });
874
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
875
- const doc = take(data, {
876
- Buckets: [, (_) => de_ListOfS3BucketInfo(_, context), `buckets`],
877
- NextToken: [, __expectString, `nextToken`],
878
- });
879
- Object.assign(contents, doc);
880
- return contents;
881
- };
882
- export const de_RemoveAllBackendsCommand = async (output, context) => {
883
- if (output.statusCode !== 200 && output.statusCode >= 300) {
884
- return de_CommandError(output, context);
885
- }
886
- const contents = map({
887
- $metadata: deserializeMetadata(output),
888
- });
889
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
890
- const doc = take(data, {
891
- AppId: [, __expectString, `appId`],
892
- Error: [, __expectString, `error`],
893
- JobId: [, __expectString, `jobId`],
894
- Operation: [, __expectString, `operation`],
895
- Status: [, __expectString, `status`],
896
- });
897
- Object.assign(contents, doc);
898
- return contents;
899
- };
900
- export const de_RemoveBackendConfigCommand = async (output, context) => {
901
- if (output.statusCode !== 200 && output.statusCode >= 300) {
902
- return de_CommandError(output, context);
903
- }
904
- const contents = map({
905
- $metadata: deserializeMetadata(output),
906
- });
907
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
908
- const doc = take(data, {
909
- Error: [, __expectString, `error`],
910
- });
911
- Object.assign(contents, doc);
912
- return contents;
913
- };
914
- export const de_UpdateBackendAPICommand = async (output, context) => {
915
- if (output.statusCode !== 200 && output.statusCode >= 300) {
916
- return de_CommandError(output, context);
917
- }
918
- const contents = map({
919
- $metadata: deserializeMetadata(output),
920
- });
921
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
922
- const doc = take(data, {
923
- AppId: [, __expectString, `appId`],
924
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
925
- Error: [, __expectString, `error`],
926
- JobId: [, __expectString, `jobId`],
927
- Operation: [, __expectString, `operation`],
928
- Status: [, __expectString, `status`],
929
- });
930
- Object.assign(contents, doc);
931
- return contents;
932
- };
933
- export const de_UpdateBackendAuthCommand = async (output, context) => {
934
- if (output.statusCode !== 200 && output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const contents = map({
938
- $metadata: deserializeMetadata(output),
939
- });
940
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
941
- const doc = take(data, {
942
- AppId: [, __expectString, `appId`],
943
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
944
- Error: [, __expectString, `error`],
945
- JobId: [, __expectString, `jobId`],
946
- Operation: [, __expectString, `operation`],
947
- Status: [, __expectString, `status`],
948
- });
949
- Object.assign(contents, doc);
950
- return contents;
951
- };
952
- export const de_UpdateBackendConfigCommand = async (output, context) => {
953
- if (output.statusCode !== 200 && output.statusCode >= 300) {
954
- return de_CommandError(output, context);
955
- }
956
- const contents = map({
957
- $metadata: deserializeMetadata(output),
958
- });
959
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
960
- const doc = take(data, {
961
- AppId: [, __expectString, `appId`],
962
- BackendManagerAppId: [, __expectString, `backendManagerAppId`],
963
- Error: [, __expectString, `error`],
964
- LoginAuthConfig: [, (_) => de_LoginAuthConfigReqObj(_, context), `loginAuthConfig`],
965
- });
966
- Object.assign(contents, doc);
967
- return contents;
968
- };
969
- export const de_UpdateBackendJobCommand = async (output, context) => {
970
- if (output.statusCode !== 200 && output.statusCode >= 300) {
971
- return de_CommandError(output, context);
972
- }
973
- const contents = map({
974
- $metadata: deserializeMetadata(output),
975
- });
976
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
977
- const doc = take(data, {
978
- AppId: [, __expectString, `appId`],
979
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
980
- CreateTime: [, __expectString, `createTime`],
981
- Error: [, __expectString, `error`],
982
- JobId: [, __expectString, `jobId`],
983
- Operation: [, __expectString, `operation`],
984
- Status: [, __expectString, `status`],
985
- UpdateTime: [, __expectString, `updateTime`],
986
- });
987
- Object.assign(contents, doc);
988
- return contents;
989
- };
990
- export const de_UpdateBackendStorageCommand = async (output, context) => {
991
- if (output.statusCode !== 200 && output.statusCode >= 300) {
992
- return de_CommandError(output, context);
993
- }
994
- const contents = map({
995
- $metadata: deserializeMetadata(output),
996
- });
997
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
998
- const doc = take(data, {
999
- AppId: [, __expectString, `appId`],
1000
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
1001
- JobId: [, __expectString, `jobId`],
1002
- Status: [, __expectString, `status`],
1003
- });
1004
- Object.assign(contents, doc);
1005
- return contents;
1006
- };
1007
- const de_CommandError = async (output, context) => {
1008
- const parsedOutput = {
1009
- ...output,
1010
- body: await parseErrorBody(output.body, context),
1011
- };
1012
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1013
- switch (errorCode) {
1014
- case "BadRequestException":
1015
- case "com.amazonaws.amplifybackend#BadRequestException":
1016
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1017
- case "GatewayTimeoutException":
1018
- case "com.amazonaws.amplifybackend#GatewayTimeoutException":
1019
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
1020
- case "NotFoundException":
1021
- case "com.amazonaws.amplifybackend#NotFoundException":
1022
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1023
- case "TooManyRequestsException":
1024
- case "com.amazonaws.amplifybackend#TooManyRequestsException":
1025
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1026
- default:
1027
- const parsedBody = parsedOutput.body;
1028
- return throwDefaultError({
1029
- output,
1030
- parsedBody,
1031
- errorCode,
1032
- });
1033
- }
1034
- };
1035
- const throwDefaultError = withBaseException(__BaseException);
1036
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1037
- const contents = map({});
1038
- const data = parsedOutput.body;
1039
- const doc = take(data, {
1040
- Message: [, __expectString, `message`],
1041
- });
1042
- Object.assign(contents, doc);
1043
- const exception = new BadRequestException({
1044
- $metadata: deserializeMetadata(parsedOutput),
1045
- ...contents,
1046
- });
1047
- return __decorateServiceException(exception, parsedOutput.body);
1048
- };
1049
- const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
1050
- const contents = map({});
1051
- const data = parsedOutput.body;
1052
- const doc = take(data, {
1053
- Message: [, __expectString, `message`],
1054
- });
1055
- Object.assign(contents, doc);
1056
- const exception = new GatewayTimeoutException({
1057
- $metadata: deserializeMetadata(parsedOutput),
1058
- ...contents,
1059
- });
1060
- return __decorateServiceException(exception, parsedOutput.body);
1061
- };
1062
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1063
- const contents = map({});
1064
- const data = parsedOutput.body;
1065
- const doc = take(data, {
1066
- Message: [, __expectString, `message`],
1067
- ResourceType: [, __expectString, `resourceType`],
1068
- });
1069
- Object.assign(contents, doc);
1070
- const exception = new NotFoundException({
1071
- $metadata: deserializeMetadata(parsedOutput),
1072
- ...contents,
1073
- });
1074
- return __decorateServiceException(exception, parsedOutput.body);
1075
- };
1076
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1077
- const contents = map({});
1078
- const data = parsedOutput.body;
1079
- const doc = take(data, {
1080
- LimitType: [, __expectString, `limitType`],
1081
- Message: [, __expectString, `message`],
1082
- });
1083
- Object.assign(contents, doc);
1084
- const exception = new TooManyRequestsException({
1085
- $metadata: deserializeMetadata(parsedOutput),
1086
- ...contents,
1087
- });
1088
- return __decorateServiceException(exception, parsedOutput.body);
1089
- };
1090
- const se_BackendAPIAppSyncAuthSettings = (input, context) => {
1091
- return take(input, {
1092
- cognitoUserPoolId: [, , `CognitoUserPoolId`],
1093
- description: [, , `Description`],
1094
- expirationTime: [, __serializeFloat, `ExpirationTime`],
1095
- openIDAuthTTL: [, , `OpenIDAuthTTL`],
1096
- openIDClientId: [, , `OpenIDClientId`],
1097
- openIDIatTTL: [, , `OpenIDIatTTL`],
1098
- openIDIssueURL: [, , `OpenIDIssueURL`],
1099
- openIDProviderName: [, , `OpenIDProviderName`],
1100
- });
1101
- };
1102
- const se_BackendAPIAuthType = (input, context) => {
1103
- return take(input, {
1104
- mode: [, , `Mode`],
1105
- settings: [, (_) => se_BackendAPIAppSyncAuthSettings(_, context), `Settings`],
1106
- });
1107
- };
1108
- const se_BackendAPIConflictResolution = (input, context) => {
1109
- return take(input, {
1110
- resolutionStrategy: [, , `ResolutionStrategy`],
1111
- });
1112
- };
1113
- const se_BackendAPIResourceConfig = (input, context) => {
1114
- return take(input, {
1115
- additionalAuthTypes: [, (_) => se_ListOfBackendAPIAuthType(_, context), `AdditionalAuthTypes`],
1116
- apiName: [, , `ApiName`],
1117
- conflictResolution: [, (_) => se_BackendAPIConflictResolution(_, context), `ConflictResolution`],
1118
- defaultAuthType: [, (_) => se_BackendAPIAuthType(_, context), `DefaultAuthType`],
1119
- service: [, , `Service`],
1120
- transformSchema: [, , `TransformSchema`],
1121
- });
1122
- };
1123
- const se_BackendAuthAppleProviderConfig = (input, context) => {
1124
- return take(input, {
1125
- client_id: [, , `ClientId`],
1126
- key_id: [, , `KeyId`],
1127
- private_key: [, , `PrivateKey`],
1128
- team_id: [, , `TeamId`],
1129
- });
1130
- };
1131
- const se_BackendAuthSocialProviderConfig = (input, context) => {
1132
- return take(input, {
1133
- client_id: [, , `ClientId`],
1134
- client_secret: [, , `ClientSecret`],
1135
- });
1136
- };
1137
- const se_BackendStoragePermissions = (input, context) => {
1138
- return take(input, {
1139
- authenticated: [, _json, `Authenticated`],
1140
- unAuthenticated: [, _json, `UnAuthenticated`],
1141
- });
1142
- };
1143
- const se_CreateBackendAuthForgotPasswordConfig = (input, context) => {
1144
- return take(input, {
1145
- deliveryMethod: [, , `DeliveryMethod`],
1146
- emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
1147
- smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
1148
- });
1149
- };
1150
- const se_CreateBackendAuthIdentityPoolConfig = (input, context) => {
1151
- return take(input, {
1152
- identityPoolName: [, , `IdentityPoolName`],
1153
- unauthenticatedLogin: [, , `UnauthenticatedLogin`],
1154
- });
1155
- };
1156
- const se_CreateBackendAuthMFAConfig = (input, context) => {
1157
- return take(input, {
1158
- MFAMode: [],
1159
- settings: [, (_) => se_Settings(_, context), `Settings`],
1160
- });
1161
- };
1162
- const se_CreateBackendAuthOAuthConfig = (input, context) => {
1163
- return take(input, {
1164
- domainPrefix: [, , `DomainPrefix`],
1165
- oAuthGrantType: [, , `OAuthGrantType`],
1166
- oAuthScopes: [, _json, `OAuthScopes`],
1167
- redirectSignInURIs: [, _json, `RedirectSignInURIs`],
1168
- redirectSignOutURIs: [, _json, `RedirectSignOutURIs`],
1169
- socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`],
1170
- });
1171
- };
1172
- const se_CreateBackendAuthPasswordPolicyConfig = (input, context) => {
1173
- return take(input, {
1174
- additionalConstraints: [, _json, `AdditionalConstraints`],
1175
- minimumLength: [, __serializeFloat, `MinimumLength`],
1176
- });
1177
- };
1178
- const se_CreateBackendAuthResourceConfig = (input, context) => {
1179
- return take(input, {
1180
- authResources: [, , `AuthResources`],
1181
- identityPoolConfigs: [, (_) => se_CreateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
1182
- service: [, , `Service`],
1183
- userPoolConfigs: [, (_) => se_CreateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`],
1184
- });
1185
- };
1186
- const se_CreateBackendAuthUserPoolConfig = (input, context) => {
1187
- return take(input, {
1188
- forgotPassword: [, (_) => se_CreateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
1189
- mfa: [, (_) => se_CreateBackendAuthMFAConfig(_, context), `Mfa`],
1190
- oAuth: [, (_) => se_CreateBackendAuthOAuthConfig(_, context), `OAuth`],
1191
- passwordPolicy: [, (_) => se_CreateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
1192
- requiredSignUpAttributes: [, _json, `RequiredSignUpAttributes`],
1193
- signInMethod: [, , `SignInMethod`],
1194
- userPoolName: [, , `UserPoolName`],
1195
- verificationMessage: [, (_) => se_CreateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`],
1196
- });
1197
- };
1198
- const se_CreateBackendAuthVerificationMessageConfig = (input, context) => {
1199
- return take(input, {
1200
- deliveryMethod: [, , `DeliveryMethod`],
1201
- emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
1202
- smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
1203
- });
1204
- };
1205
- const se_CreateBackendStorageResourceConfig = (input, context) => {
1206
- return take(input, {
1207
- bucketName: [, , `BucketName`],
1208
- permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
1209
- serviceName: [, , `ServiceName`],
1210
- });
1211
- };
1212
- const se_EmailSettings = (input, context) => {
1213
- return take(input, {
1214
- emailMessage: [, , `EmailMessage`],
1215
- emailSubject: [, , `EmailSubject`],
1216
- });
1217
- };
1218
- const se_ListOfBackendAPIAuthType = (input, context) => {
1219
- return input
1220
- .filter((e) => e != null)
1221
- .map((entry) => {
1222
- return se_BackendAPIAuthType(entry, context);
1223
- });
1224
- };
1225
- const se_LoginAuthConfigReqObj = (input, context) => {
1226
- return take(input, {
1227
- aws_cognito_identity_pool_id: [, , `AwsCognitoIdentityPoolId`],
1228
- aws_cognito_region: [, , `AwsCognitoRegion`],
1229
- aws_user_pools_id: [, , `AwsUserPoolsId`],
1230
- aws_user_pools_web_client_id: [, , `AwsUserPoolsWebClientId`],
1231
- });
1232
- };
1233
- const se_Settings = (input, context) => {
1234
- return take(input, {
1235
- mfaTypes: [, _json, `MfaTypes`],
1236
- smsMessage: [, , `SmsMessage`],
1237
- });
1238
- };
1239
- const se_SmsSettings = (input, context) => {
1240
- return take(input, {
1241
- smsMessage: [, , `SmsMessage`],
1242
- });
1243
- };
1244
- const se_SocialProviderSettings = (input, context) => {
1245
- return take(input, {
1246
- Facebook: (_) => se_BackendAuthSocialProviderConfig(_, context),
1247
- Google: (_) => se_BackendAuthSocialProviderConfig(_, context),
1248
- LoginWithAmazon: (_) => se_BackendAuthSocialProviderConfig(_, context),
1249
- SignInWithApple: (_) => se_BackendAuthAppleProviderConfig(_, context),
1250
- });
1251
- };
1252
- const se_UpdateBackendAuthForgotPasswordConfig = (input, context) => {
1253
- return take(input, {
1254
- deliveryMethod: [, , `DeliveryMethod`],
1255
- emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
1256
- smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
1257
- });
1258
- };
1259
- const se_UpdateBackendAuthIdentityPoolConfig = (input, context) => {
1260
- return take(input, {
1261
- unauthenticatedLogin: [, , `UnauthenticatedLogin`],
1262
- });
1263
- };
1264
- const se_UpdateBackendAuthMFAConfig = (input, context) => {
1265
- return take(input, {
1266
- MFAMode: [],
1267
- settings: [, (_) => se_Settings(_, context), `Settings`],
1268
- });
1269
- };
1270
- const se_UpdateBackendAuthOAuthConfig = (input, context) => {
1271
- return take(input, {
1272
- domainPrefix: [, , `DomainPrefix`],
1273
- oAuthGrantType: [, , `OAuthGrantType`],
1274
- oAuthScopes: [, _json, `OAuthScopes`],
1275
- redirectSignInURIs: [, _json, `RedirectSignInURIs`],
1276
- redirectSignOutURIs: [, _json, `RedirectSignOutURIs`],
1277
- socialProviderSettings: [, (_) => se_SocialProviderSettings(_, context), `SocialProviderSettings`],
1278
- });
1279
- };
1280
- const se_UpdateBackendAuthPasswordPolicyConfig = (input, context) => {
1281
- return take(input, {
1282
- additionalConstraints: [, _json, `AdditionalConstraints`],
1283
- minimumLength: [, __serializeFloat, `MinimumLength`],
1284
- });
1285
- };
1286
- const se_UpdateBackendAuthResourceConfig = (input, context) => {
1287
- return take(input, {
1288
- authResources: [, , `AuthResources`],
1289
- identityPoolConfigs: [, (_) => se_UpdateBackendAuthIdentityPoolConfig(_, context), `IdentityPoolConfigs`],
1290
- service: [, , `Service`],
1291
- userPoolConfigs: [, (_) => se_UpdateBackendAuthUserPoolConfig(_, context), `UserPoolConfigs`],
1292
- });
1293
- };
1294
- const se_UpdateBackendAuthUserPoolConfig = (input, context) => {
1295
- return take(input, {
1296
- forgotPassword: [, (_) => se_UpdateBackendAuthForgotPasswordConfig(_, context), `ForgotPassword`],
1297
- mfa: [, (_) => se_UpdateBackendAuthMFAConfig(_, context), `Mfa`],
1298
- oAuth: [, (_) => se_UpdateBackendAuthOAuthConfig(_, context), `OAuth`],
1299
- passwordPolicy: [, (_) => se_UpdateBackendAuthPasswordPolicyConfig(_, context), `PasswordPolicy`],
1300
- verificationMessage: [, (_) => se_UpdateBackendAuthVerificationMessageConfig(_, context), `VerificationMessage`],
1301
- });
1302
- };
1303
- const se_UpdateBackendAuthVerificationMessageConfig = (input, context) => {
1304
- return take(input, {
1305
- deliveryMethod: [, , `DeliveryMethod`],
1306
- emailSettings: [, (_) => se_EmailSettings(_, context), `EmailSettings`],
1307
- smsSettings: [, (_) => se_SmsSettings(_, context), `SmsSettings`],
1308
- });
1309
- };
1310
- const se_UpdateBackendStorageResourceConfig = (input, context) => {
1311
- return take(input, {
1312
- permissions: [, (_) => se_BackendStoragePermissions(_, context), `Permissions`],
1313
- serviceName: [, , `ServiceName`],
1314
- });
1315
- };
1316
- const de_BackendAPIAppSyncAuthSettings = (output, context) => {
1317
- return take(output, {
1318
- CognitoUserPoolId: [, __expectString, `cognitoUserPoolId`],
1319
- Description: [, __expectString, `description`],
1320
- ExpirationTime: [, __limitedParseDouble, `expirationTime`],
1321
- OpenIDAuthTTL: [, __expectString, `openIDAuthTTL`],
1322
- OpenIDClientId: [, __expectString, `openIDClientId`],
1323
- OpenIDIatTTL: [, __expectString, `openIDIatTTL`],
1324
- OpenIDIssueURL: [, __expectString, `openIDIssueURL`],
1325
- OpenIDProviderName: [, __expectString, `openIDProviderName`],
1326
- });
1327
- };
1328
- const de_BackendAPIAuthType = (output, context) => {
1329
- return take(output, {
1330
- Mode: [, __expectString, `mode`],
1331
- Settings: [, (_) => de_BackendAPIAppSyncAuthSettings(_, context), `settings`],
1332
- });
1333
- };
1334
- const de_BackendAPIConflictResolution = (output, context) => {
1335
- return take(output, {
1336
- ResolutionStrategy: [, __expectString, `resolutionStrategy`],
1337
- });
1338
- };
1339
- const de_BackendAPIResourceConfig = (output, context) => {
1340
- return take(output, {
1341
- AdditionalAuthTypes: [, (_) => de_ListOfBackendAPIAuthType(_, context), `additionalAuthTypes`],
1342
- ApiName: [, __expectString, `apiName`],
1343
- ConflictResolution: [, (_) => de_BackendAPIConflictResolution(_, context), `conflictResolution`],
1344
- DefaultAuthType: [, (_) => de_BackendAPIAuthType(_, context), `defaultAuthType`],
1345
- Service: [, __expectString, `service`],
1346
- TransformSchema: [, __expectString, `transformSchema`],
1347
- });
1348
- };
1349
- const de_BackendAuthAppleProviderConfig = (output, context) => {
1350
- return take(output, {
1351
- ClientId: [, __expectString, `client_id`],
1352
- KeyId: [, __expectString, `key_id`],
1353
- PrivateKey: [, __expectString, `private_key`],
1354
- TeamId: [, __expectString, `team_id`],
1355
- });
1356
- };
1357
- const de_BackendAuthSocialProviderConfig = (output, context) => {
1358
- return take(output, {
1359
- ClientId: [, __expectString, `client_id`],
1360
- ClientSecret: [, __expectString, `client_secret`],
1361
- });
1362
- };
1363
- const de_BackendJobRespObj = (output, context) => {
1364
- return take(output, {
1365
- AppId: [, __expectString, `appId`],
1366
- BackendEnvironmentName: [, __expectString, `backendEnvironmentName`],
1367
- CreateTime: [, __expectString, `createTime`],
1368
- Error: [, __expectString, `error`],
1369
- JobId: [, __expectString, `jobId`],
1370
- Operation: [, __expectString, `operation`],
1371
- Status: [, __expectString, `status`],
1372
- UpdateTime: [, __expectString, `updateTime`],
1373
- });
1374
- };
1375
- const de_BackendStoragePermissions = (output, context) => {
1376
- return take(output, {
1377
- Authenticated: [, _json, `authenticated`],
1378
- UnAuthenticated: [, _json, `unAuthenticated`],
1379
- });
1380
- };
1381
- const de_CreateBackendAuthForgotPasswordConfig = (output, context) => {
1382
- return take(output, {
1383
- DeliveryMethod: [, __expectString, `deliveryMethod`],
1384
- EmailSettings: [, (_) => de_EmailSettings(_, context), `emailSettings`],
1385
- SmsSettings: [, (_) => de_SmsSettings(_, context), `smsSettings`],
1386
- });
1387
- };
1388
- const de_CreateBackendAuthIdentityPoolConfig = (output, context) => {
1389
- return take(output, {
1390
- IdentityPoolName: [, __expectString, `identityPoolName`],
1391
- UnauthenticatedLogin: [, __expectBoolean, `unauthenticatedLogin`],
1392
- });
1393
- };
1394
- const de_CreateBackendAuthMFAConfig = (output, context) => {
1395
- return take(output, {
1396
- MFAMode: __expectString,
1397
- Settings: [, (_) => de_Settings(_, context), `settings`],
1398
- });
1399
- };
1400
- const de_CreateBackendAuthOAuthConfig = (output, context) => {
1401
- return take(output, {
1402
- DomainPrefix: [, __expectString, `domainPrefix`],
1403
- OAuthGrantType: [, __expectString, `oAuthGrantType`],
1404
- OAuthScopes: [, _json, `oAuthScopes`],
1405
- RedirectSignInURIs: [, _json, `redirectSignInURIs`],
1406
- RedirectSignOutURIs: [, _json, `redirectSignOutURIs`],
1407
- SocialProviderSettings: [, (_) => de_SocialProviderSettings(_, context), `socialProviderSettings`],
1408
- });
1409
- };
1410
- const de_CreateBackendAuthPasswordPolicyConfig = (output, context) => {
1411
- return take(output, {
1412
- AdditionalConstraints: [, _json, `additionalConstraints`],
1413
- MinimumLength: [, __limitedParseDouble, `minimumLength`],
1414
- });
1415
- };
1416
- const de_CreateBackendAuthResourceConfig = (output, context) => {
1417
- return take(output, {
1418
- AuthResources: [, __expectString, `authResources`],
1419
- IdentityPoolConfigs: [, (_) => de_CreateBackendAuthIdentityPoolConfig(_, context), `identityPoolConfigs`],
1420
- Service: [, __expectString, `service`],
1421
- UserPoolConfigs: [, (_) => de_CreateBackendAuthUserPoolConfig(_, context), `userPoolConfigs`],
1422
- });
1423
- };
1424
- const de_CreateBackendAuthUserPoolConfig = (output, context) => {
1425
- return take(output, {
1426
- ForgotPassword: [, (_) => de_CreateBackendAuthForgotPasswordConfig(_, context), `forgotPassword`],
1427
- Mfa: [, (_) => de_CreateBackendAuthMFAConfig(_, context), `mfa`],
1428
- OAuth: [, (_) => de_CreateBackendAuthOAuthConfig(_, context), `oAuth`],
1429
- PasswordPolicy: [, (_) => de_CreateBackendAuthPasswordPolicyConfig(_, context), `passwordPolicy`],
1430
- RequiredSignUpAttributes: [, _json, `requiredSignUpAttributes`],
1431
- SignInMethod: [, __expectString, `signInMethod`],
1432
- UserPoolName: [, __expectString, `userPoolName`],
1433
- VerificationMessage: [
1434
- ,
1435
- (_) => de_CreateBackendAuthVerificationMessageConfig(_, context),
1436
- `verificationMessage`,
1437
- ],
1438
- });
1439
- };
1440
- const de_CreateBackendAuthVerificationMessageConfig = (output, context) => {
1441
- return take(output, {
1442
- DeliveryMethod: [, __expectString, `deliveryMethod`],
1443
- EmailSettings: [, (_) => de_EmailSettings(_, context), `emailSettings`],
1444
- SmsSettings: [, (_) => de_SmsSettings(_, context), `smsSettings`],
1445
- });
1446
- };
1447
- const de_EmailSettings = (output, context) => {
1448
- return take(output, {
1449
- EmailMessage: [, __expectString, `emailMessage`],
1450
- EmailSubject: [, __expectString, `emailSubject`],
1451
- });
1452
- };
1453
- const de_GetBackendStorageResourceConfig = (output, context) => {
1454
- return take(output, {
1455
- BucketName: [, __expectString, `bucketName`],
1456
- Imported: [, __expectBoolean, `imported`],
1457
- Permissions: [, (_) => de_BackendStoragePermissions(_, context), `permissions`],
1458
- ServiceName: [, __expectString, `serviceName`],
1459
- });
1460
- };
1461
- const de_ListOfBackendAPIAuthType = (output, context) => {
1462
- const retVal = (output || [])
1463
- .filter((e) => e != null)
1464
- .map((entry) => {
1465
- return de_BackendAPIAuthType(entry, context);
1466
- });
1467
- return retVal;
1468
- };
1469
- const de_ListOfBackendJobRespObj = (output, context) => {
1470
- const retVal = (output || [])
1471
- .filter((e) => e != null)
1472
- .map((entry) => {
1473
- return de_BackendJobRespObj(entry, context);
1474
- });
1475
- return retVal;
1476
- };
1477
- const de_ListOfS3BucketInfo = (output, context) => {
1478
- const retVal = (output || [])
1479
- .filter((e) => e != null)
1480
- .map((entry) => {
1481
- return de_S3BucketInfo(entry, context);
1482
- });
1483
- return retVal;
1484
- };
1485
- const de_LoginAuthConfigReqObj = (output, context) => {
1486
- return take(output, {
1487
- AwsCognitoIdentityPoolId: [, __expectString, `aws_cognito_identity_pool_id`],
1488
- AwsCognitoRegion: [, __expectString, `aws_cognito_region`],
1489
- AwsUserPoolsId: [, __expectString, `aws_user_pools_id`],
1490
- AwsUserPoolsWebClientId: [, __expectString, `aws_user_pools_web_client_id`],
1491
- });
1492
- };
1493
- const de_S3BucketInfo = (output, context) => {
1494
- return take(output, {
1495
- CreationDate: [, __expectString, `creationDate`],
1496
- Name: [, __expectString, `name`],
1497
- });
1498
- };
1499
- const de_Settings = (output, context) => {
1500
- return take(output, {
1501
- MfaTypes: [, _json, `mfaTypes`],
1502
- SmsMessage: [, __expectString, `smsMessage`],
1503
- });
1504
- };
1505
- const de_SmsSettings = (output, context) => {
1506
- return take(output, {
1507
- SmsMessage: [, __expectString, `smsMessage`],
1508
- });
1509
- };
1510
- const de_SocialProviderSettings = (output, context) => {
1511
- return take(output, {
1512
- Facebook: (_) => de_BackendAuthSocialProviderConfig(_, context),
1513
- Google: (_) => de_BackendAuthSocialProviderConfig(_, context),
1514
- LoginWithAmazon: (_) => de_BackendAuthSocialProviderConfig(_, context),
1515
- SignInWithApple: (_) => de_BackendAuthAppleProviderConfig(_, context),
1516
- });
1517
- };
1518
- const deserializeMetadata = (output) => ({
1519
- httpStatusCode: output.statusCode,
1520
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1521
- extendedRequestId: output.headers["x-amz-id-2"],
1522
- cfId: output.headers["x-amz-cf-id"],
1523
- });
1524
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));