@aws-sdk/client-kinesis-video 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 (54) hide show
  1. package/dist-cjs/index.js +1111 -1478
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/KinesisVideoClient.js +2 -0
  4. package/dist-es/commands/CreateSignalingChannelCommand.js +3 -9
  5. package/dist-es/commands/CreateStreamCommand.js +3 -9
  6. package/dist-es/commands/DeleteEdgeConfigurationCommand.js +3 -9
  7. package/dist-es/commands/DeleteSignalingChannelCommand.js +3 -9
  8. package/dist-es/commands/DeleteStreamCommand.js +3 -9
  9. package/dist-es/commands/DescribeEdgeConfigurationCommand.js +3 -10
  10. package/dist-es/commands/DescribeImageGenerationConfigurationCommand.js +3 -9
  11. package/dist-es/commands/DescribeMappedResourceConfigurationCommand.js +3 -9
  12. package/dist-es/commands/DescribeMediaStorageConfigurationCommand.js +3 -9
  13. package/dist-es/commands/DescribeNotificationConfigurationCommand.js +3 -9
  14. package/dist-es/commands/DescribeSignalingChannelCommand.js +3 -9
  15. package/dist-es/commands/DescribeStreamCommand.js +3 -9
  16. package/dist-es/commands/GetDataEndpointCommand.js +3 -9
  17. package/dist-es/commands/GetSignalingChannelEndpointCommand.js +3 -9
  18. package/dist-es/commands/ListEdgeAgentConfigurationsCommand.js +3 -10
  19. package/dist-es/commands/ListSignalingChannelsCommand.js +3 -9
  20. package/dist-es/commands/ListStreamsCommand.js +3 -9
  21. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  22. package/dist-es/commands/ListTagsForStreamCommand.js +3 -9
  23. package/dist-es/commands/StartEdgeConfigurationUpdateCommand.js +3 -10
  24. package/dist-es/commands/TagResourceCommand.js +3 -9
  25. package/dist-es/commands/TagStreamCommand.js +3 -9
  26. package/dist-es/commands/UntagResourceCommand.js +3 -9
  27. package/dist-es/commands/UntagStreamCommand.js +3 -9
  28. package/dist-es/commands/UpdateDataRetentionCommand.js +3 -9
  29. package/dist-es/commands/UpdateImageGenerationConfigurationCommand.js +3 -9
  30. package/dist-es/commands/UpdateMediaStorageConfigurationCommand.js +3 -9
  31. package/dist-es/commands/UpdateNotificationConfigurationCommand.js +3 -9
  32. package/dist-es/commands/UpdateSignalingChannelCommand.js +3 -9
  33. package/dist-es/commands/UpdateStreamCommand.js +3 -9
  34. package/dist-es/models/models_0.js +0 -35
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-es/schemas/schemas_0.js +1009 -0
  37. package/dist-types/KinesisVideoClient.d.ts +10 -1
  38. package/dist-types/models/models_0.d.ts +0 -32
  39. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  40. package/dist-types/runtimeConfig.d.ts +1 -0
  41. package/dist-types/runtimeConfig.native.d.ts +1 -0
  42. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  43. package/dist-types/schemas/schemas_0.d.ts +145 -0
  44. package/dist-types/ts3.4/KinesisVideoClient.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +0 -22
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  50. package/dist-types/ts3.4/schemas/schemas_0.d.ts +151 -0
  51. package/package.json +2 -2
  52. package/dist-es/protocols/Aws_restJson1.js +0 -1182
  53. package/dist-types/protocols/Aws_restJson1.d.ts +0 -272
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -365
@@ -1,1182 +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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { KinesisVideoServiceException as __BaseException } from "../models/KinesisVideoServiceException";
5
- import { AccessDeniedException, AccountChannelLimitExceededException, AccountStreamLimitExceededException, ClientLimitExceededException, DeviceStreamLimitExceededException, InvalidArgumentException, InvalidDeviceException, InvalidResourceFormatException, NoDataRetentionException, NotAuthorizedException, ResourceInUseException, ResourceNotFoundException, StreamEdgeConfigurationNotFoundException, TagsPerResourceExceededLimitException, VersionMismatchException, } from "../models/models_0";
6
- export const se_CreateSignalingChannelCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/createSignalingChannel");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- ChannelName: [],
15
- ChannelType: [],
16
- SingleMasterConfiguration: (_) => _json(_),
17
- Tags: (_) => _json(_),
18
- }));
19
- b.m("POST").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_CreateStreamCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = {
25
- "content-type": "application/json",
26
- };
27
- b.bp("/createStream");
28
- let body;
29
- body = JSON.stringify(take(input, {
30
- DataRetentionInHours: [],
31
- DeviceName: [],
32
- KmsKeyId: [],
33
- MediaType: [],
34
- StreamName: [],
35
- Tags: (_) => _json(_),
36
- }));
37
- b.m("POST").h(headers).b(body);
38
- return b.build();
39
- };
40
- export const se_DeleteEdgeConfigurationCommand = async (input, context) => {
41
- const b = rb(input, context);
42
- const headers = {
43
- "content-type": "application/json",
44
- };
45
- b.bp("/deleteEdgeConfiguration");
46
- let body;
47
- body = JSON.stringify(take(input, {
48
- StreamARN: [],
49
- StreamName: [],
50
- }));
51
- b.m("POST").h(headers).b(body);
52
- return b.build();
53
- };
54
- export const se_DeleteSignalingChannelCommand = async (input, context) => {
55
- const b = rb(input, context);
56
- const headers = {
57
- "content-type": "application/json",
58
- };
59
- b.bp("/deleteSignalingChannel");
60
- let body;
61
- body = JSON.stringify(take(input, {
62
- ChannelARN: [],
63
- CurrentVersion: [],
64
- }));
65
- b.m("POST").h(headers).b(body);
66
- return b.build();
67
- };
68
- export const se_DeleteStreamCommand = async (input, context) => {
69
- const b = rb(input, context);
70
- const headers = {
71
- "content-type": "application/json",
72
- };
73
- b.bp("/deleteStream");
74
- let body;
75
- body = JSON.stringify(take(input, {
76
- CurrentVersion: [],
77
- StreamARN: [],
78
- }));
79
- b.m("POST").h(headers).b(body);
80
- return b.build();
81
- };
82
- export const se_DescribeEdgeConfigurationCommand = async (input, context) => {
83
- const b = rb(input, context);
84
- const headers = {
85
- "content-type": "application/json",
86
- };
87
- b.bp("/describeEdgeConfiguration");
88
- let body;
89
- body = JSON.stringify(take(input, {
90
- StreamARN: [],
91
- StreamName: [],
92
- }));
93
- b.m("POST").h(headers).b(body);
94
- return b.build();
95
- };
96
- export const se_DescribeImageGenerationConfigurationCommand = async (input, context) => {
97
- const b = rb(input, context);
98
- const headers = {
99
- "content-type": "application/json",
100
- };
101
- b.bp("/describeImageGenerationConfiguration");
102
- let body;
103
- body = JSON.stringify(take(input, {
104
- StreamARN: [],
105
- StreamName: [],
106
- }));
107
- b.m("POST").h(headers).b(body);
108
- return b.build();
109
- };
110
- export const se_DescribeMappedResourceConfigurationCommand = async (input, context) => {
111
- const b = rb(input, context);
112
- const headers = {
113
- "content-type": "application/json",
114
- };
115
- b.bp("/describeMappedResourceConfiguration");
116
- let body;
117
- body = JSON.stringify(take(input, {
118
- MaxResults: [],
119
- NextToken: [],
120
- StreamARN: [],
121
- StreamName: [],
122
- }));
123
- b.m("POST").h(headers).b(body);
124
- return b.build();
125
- };
126
- export const se_DescribeMediaStorageConfigurationCommand = async (input, context) => {
127
- const b = rb(input, context);
128
- const headers = {
129
- "content-type": "application/json",
130
- };
131
- b.bp("/describeMediaStorageConfiguration");
132
- let body;
133
- body = JSON.stringify(take(input, {
134
- ChannelARN: [],
135
- ChannelName: [],
136
- }));
137
- b.m("POST").h(headers).b(body);
138
- return b.build();
139
- };
140
- export const se_DescribeNotificationConfigurationCommand = async (input, context) => {
141
- const b = rb(input, context);
142
- const headers = {
143
- "content-type": "application/json",
144
- };
145
- b.bp("/describeNotificationConfiguration");
146
- let body;
147
- body = JSON.stringify(take(input, {
148
- StreamARN: [],
149
- StreamName: [],
150
- }));
151
- b.m("POST").h(headers).b(body);
152
- return b.build();
153
- };
154
- export const se_DescribeSignalingChannelCommand = async (input, context) => {
155
- const b = rb(input, context);
156
- const headers = {
157
- "content-type": "application/json",
158
- };
159
- b.bp("/describeSignalingChannel");
160
- let body;
161
- body = JSON.stringify(take(input, {
162
- ChannelARN: [],
163
- ChannelName: [],
164
- }));
165
- b.m("POST").h(headers).b(body);
166
- return b.build();
167
- };
168
- export const se_DescribeStreamCommand = async (input, context) => {
169
- const b = rb(input, context);
170
- const headers = {
171
- "content-type": "application/json",
172
- };
173
- b.bp("/describeStream");
174
- let body;
175
- body = JSON.stringify(take(input, {
176
- StreamARN: [],
177
- StreamName: [],
178
- }));
179
- b.m("POST").h(headers).b(body);
180
- return b.build();
181
- };
182
- export const se_GetDataEndpointCommand = async (input, context) => {
183
- const b = rb(input, context);
184
- const headers = {
185
- "content-type": "application/json",
186
- };
187
- b.bp("/getDataEndpoint");
188
- let body;
189
- body = JSON.stringify(take(input, {
190
- APIName: [],
191
- StreamARN: [],
192
- StreamName: [],
193
- }));
194
- b.m("POST").h(headers).b(body);
195
- return b.build();
196
- };
197
- export const se_GetSignalingChannelEndpointCommand = async (input, context) => {
198
- const b = rb(input, context);
199
- const headers = {
200
- "content-type": "application/json",
201
- };
202
- b.bp("/getSignalingChannelEndpoint");
203
- let body;
204
- body = JSON.stringify(take(input, {
205
- ChannelARN: [],
206
- SingleMasterChannelEndpointConfiguration: (_) => _json(_),
207
- }));
208
- b.m("POST").h(headers).b(body);
209
- return b.build();
210
- };
211
- export const se_ListEdgeAgentConfigurationsCommand = async (input, context) => {
212
- const b = rb(input, context);
213
- const headers = {
214
- "content-type": "application/json",
215
- };
216
- b.bp("/listEdgeAgentConfigurations");
217
- let body;
218
- body = JSON.stringify(take(input, {
219
- HubDeviceArn: [],
220
- MaxResults: [],
221
- NextToken: [],
222
- }));
223
- b.m("POST").h(headers).b(body);
224
- return b.build();
225
- };
226
- export const se_ListSignalingChannelsCommand = async (input, context) => {
227
- const b = rb(input, context);
228
- const headers = {
229
- "content-type": "application/json",
230
- };
231
- b.bp("/listSignalingChannels");
232
- let body;
233
- body = JSON.stringify(take(input, {
234
- ChannelNameCondition: (_) => _json(_),
235
- MaxResults: [],
236
- NextToken: [],
237
- }));
238
- b.m("POST").h(headers).b(body);
239
- return b.build();
240
- };
241
- export const se_ListStreamsCommand = async (input, context) => {
242
- const b = rb(input, context);
243
- const headers = {
244
- "content-type": "application/json",
245
- };
246
- b.bp("/listStreams");
247
- let body;
248
- body = JSON.stringify(take(input, {
249
- MaxResults: [],
250
- NextToken: [],
251
- StreamNameCondition: (_) => _json(_),
252
- }));
253
- b.m("POST").h(headers).b(body);
254
- return b.build();
255
- };
256
- export const se_ListTagsForResourceCommand = async (input, context) => {
257
- const b = rb(input, context);
258
- const headers = {
259
- "content-type": "application/json",
260
- };
261
- b.bp("/ListTagsForResource");
262
- let body;
263
- body = JSON.stringify(take(input, {
264
- NextToken: [],
265
- ResourceARN: [],
266
- }));
267
- b.m("POST").h(headers).b(body);
268
- return b.build();
269
- };
270
- export const se_ListTagsForStreamCommand = async (input, context) => {
271
- const b = rb(input, context);
272
- const headers = {
273
- "content-type": "application/json",
274
- };
275
- b.bp("/listTagsForStream");
276
- let body;
277
- body = JSON.stringify(take(input, {
278
- NextToken: [],
279
- StreamARN: [],
280
- StreamName: [],
281
- }));
282
- b.m("POST").h(headers).b(body);
283
- return b.build();
284
- };
285
- export const se_StartEdgeConfigurationUpdateCommand = async (input, context) => {
286
- const b = rb(input, context);
287
- const headers = {
288
- "content-type": "application/json",
289
- };
290
- b.bp("/startEdgeConfigurationUpdate");
291
- let body;
292
- body = JSON.stringify(take(input, {
293
- EdgeConfig: (_) => _json(_),
294
- StreamARN: [],
295
- StreamName: [],
296
- }));
297
- b.m("POST").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_TagResourceCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {
303
- "content-type": "application/json",
304
- };
305
- b.bp("/TagResource");
306
- let body;
307
- body = JSON.stringify(take(input, {
308
- ResourceARN: [],
309
- Tags: (_) => _json(_),
310
- }));
311
- b.m("POST").h(headers).b(body);
312
- return b.build();
313
- };
314
- export const se_TagStreamCommand = async (input, context) => {
315
- const b = rb(input, context);
316
- const headers = {
317
- "content-type": "application/json",
318
- };
319
- b.bp("/tagStream");
320
- let body;
321
- body = JSON.stringify(take(input, {
322
- StreamARN: [],
323
- StreamName: [],
324
- Tags: (_) => _json(_),
325
- }));
326
- b.m("POST").h(headers).b(body);
327
- return b.build();
328
- };
329
- export const se_UntagResourceCommand = async (input, context) => {
330
- const b = rb(input, context);
331
- const headers = {
332
- "content-type": "application/json",
333
- };
334
- b.bp("/UntagResource");
335
- let body;
336
- body = JSON.stringify(take(input, {
337
- ResourceARN: [],
338
- TagKeyList: (_) => _json(_),
339
- }));
340
- b.m("POST").h(headers).b(body);
341
- return b.build();
342
- };
343
- export const se_UntagStreamCommand = async (input, context) => {
344
- const b = rb(input, context);
345
- const headers = {
346
- "content-type": "application/json",
347
- };
348
- b.bp("/untagStream");
349
- let body;
350
- body = JSON.stringify(take(input, {
351
- StreamARN: [],
352
- StreamName: [],
353
- TagKeyList: (_) => _json(_),
354
- }));
355
- b.m("POST").h(headers).b(body);
356
- return b.build();
357
- };
358
- export const se_UpdateDataRetentionCommand = async (input, context) => {
359
- const b = rb(input, context);
360
- const headers = {
361
- "content-type": "application/json",
362
- };
363
- b.bp("/updateDataRetention");
364
- let body;
365
- body = JSON.stringify(take(input, {
366
- CurrentVersion: [],
367
- DataRetentionChangeInHours: [],
368
- Operation: [],
369
- StreamARN: [],
370
- StreamName: [],
371
- }));
372
- b.m("POST").h(headers).b(body);
373
- return b.build();
374
- };
375
- export const se_UpdateImageGenerationConfigurationCommand = async (input, context) => {
376
- const b = rb(input, context);
377
- const headers = {
378
- "content-type": "application/json",
379
- };
380
- b.bp("/updateImageGenerationConfiguration");
381
- let body;
382
- body = JSON.stringify(take(input, {
383
- ImageGenerationConfiguration: (_) => _json(_),
384
- StreamARN: [],
385
- StreamName: [],
386
- }));
387
- b.m("POST").h(headers).b(body);
388
- return b.build();
389
- };
390
- export const se_UpdateMediaStorageConfigurationCommand = async (input, context) => {
391
- const b = rb(input, context);
392
- const headers = {
393
- "content-type": "application/json",
394
- };
395
- b.bp("/updateMediaStorageConfiguration");
396
- let body;
397
- body = JSON.stringify(take(input, {
398
- ChannelARN: [],
399
- MediaStorageConfiguration: (_) => _json(_),
400
- }));
401
- b.m("POST").h(headers).b(body);
402
- return b.build();
403
- };
404
- export const se_UpdateNotificationConfigurationCommand = async (input, context) => {
405
- const b = rb(input, context);
406
- const headers = {
407
- "content-type": "application/json",
408
- };
409
- b.bp("/updateNotificationConfiguration");
410
- let body;
411
- body = JSON.stringify(take(input, {
412
- NotificationConfiguration: (_) => _json(_),
413
- StreamARN: [],
414
- StreamName: [],
415
- }));
416
- b.m("POST").h(headers).b(body);
417
- return b.build();
418
- };
419
- export const se_UpdateSignalingChannelCommand = async (input, context) => {
420
- const b = rb(input, context);
421
- const headers = {
422
- "content-type": "application/json",
423
- };
424
- b.bp("/updateSignalingChannel");
425
- let body;
426
- body = JSON.stringify(take(input, {
427
- ChannelARN: [],
428
- CurrentVersion: [],
429
- SingleMasterConfiguration: (_) => _json(_),
430
- }));
431
- b.m("POST").h(headers).b(body);
432
- return b.build();
433
- };
434
- export const se_UpdateStreamCommand = async (input, context) => {
435
- const b = rb(input, context);
436
- const headers = {
437
- "content-type": "application/json",
438
- };
439
- b.bp("/updateStream");
440
- let body;
441
- body = JSON.stringify(take(input, {
442
- CurrentVersion: [],
443
- DeviceName: [],
444
- MediaType: [],
445
- StreamARN: [],
446
- StreamName: [],
447
- }));
448
- b.m("POST").h(headers).b(body);
449
- return b.build();
450
- };
451
- export const de_CreateSignalingChannelCommand = async (output, context) => {
452
- if (output.statusCode !== 200 && output.statusCode >= 300) {
453
- return de_CommandError(output, context);
454
- }
455
- const contents = map({
456
- $metadata: deserializeMetadata(output),
457
- });
458
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
459
- const doc = take(data, {
460
- ChannelARN: __expectString,
461
- });
462
- Object.assign(contents, doc);
463
- return contents;
464
- };
465
- export const de_CreateStreamCommand = async (output, context) => {
466
- if (output.statusCode !== 200 && output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const contents = map({
470
- $metadata: deserializeMetadata(output),
471
- });
472
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
473
- const doc = take(data, {
474
- StreamARN: __expectString,
475
- });
476
- Object.assign(contents, doc);
477
- return contents;
478
- };
479
- export const de_DeleteEdgeConfigurationCommand = async (output, context) => {
480
- if (output.statusCode !== 200 && output.statusCode >= 300) {
481
- return de_CommandError(output, context);
482
- }
483
- const contents = map({
484
- $metadata: deserializeMetadata(output),
485
- });
486
- await collectBody(output.body, context);
487
- return contents;
488
- };
489
- export const de_DeleteSignalingChannelCommand = async (output, context) => {
490
- if (output.statusCode !== 200 && output.statusCode >= 300) {
491
- return de_CommandError(output, context);
492
- }
493
- const contents = map({
494
- $metadata: deserializeMetadata(output),
495
- });
496
- await collectBody(output.body, context);
497
- return contents;
498
- };
499
- export const de_DeleteStreamCommand = async (output, context) => {
500
- if (output.statusCode !== 200 && output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const contents = map({
504
- $metadata: deserializeMetadata(output),
505
- });
506
- await collectBody(output.body, context);
507
- return contents;
508
- };
509
- export const de_DescribeEdgeConfigurationCommand = async (output, context) => {
510
- if (output.statusCode !== 200 && output.statusCode >= 300) {
511
- return de_CommandError(output, context);
512
- }
513
- const contents = map({
514
- $metadata: deserializeMetadata(output),
515
- });
516
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
517
- const doc = take(data, {
518
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
519
- EdgeAgentStatus: (_) => de_EdgeAgentStatus(_, context),
520
- EdgeConfig: _json,
521
- FailedStatusDetails: __expectString,
522
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
523
- StreamARN: __expectString,
524
- StreamName: __expectString,
525
- SyncStatus: __expectString,
526
- });
527
- Object.assign(contents, doc);
528
- return contents;
529
- };
530
- export const de_DescribeImageGenerationConfigurationCommand = async (output, context) => {
531
- if (output.statusCode !== 200 && output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const contents = map({
535
- $metadata: deserializeMetadata(output),
536
- });
537
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
538
- const doc = take(data, {
539
- ImageGenerationConfiguration: _json,
540
- });
541
- Object.assign(contents, doc);
542
- return contents;
543
- };
544
- export const de_DescribeMappedResourceConfigurationCommand = async (output, context) => {
545
- if (output.statusCode !== 200 && output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const contents = map({
549
- $metadata: deserializeMetadata(output),
550
- });
551
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
552
- const doc = take(data, {
553
- MappedResourceConfigurationList: _json,
554
- NextToken: __expectString,
555
- });
556
- Object.assign(contents, doc);
557
- return contents;
558
- };
559
- export const de_DescribeMediaStorageConfigurationCommand = async (output, context) => {
560
- if (output.statusCode !== 200 && output.statusCode >= 300) {
561
- return de_CommandError(output, context);
562
- }
563
- const contents = map({
564
- $metadata: deserializeMetadata(output),
565
- });
566
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
567
- const doc = take(data, {
568
- MediaStorageConfiguration: _json,
569
- });
570
- Object.assign(contents, doc);
571
- return contents;
572
- };
573
- export const de_DescribeNotificationConfigurationCommand = async (output, context) => {
574
- if (output.statusCode !== 200 && output.statusCode >= 300) {
575
- return de_CommandError(output, context);
576
- }
577
- const contents = map({
578
- $metadata: deserializeMetadata(output),
579
- });
580
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
581
- const doc = take(data, {
582
- NotificationConfiguration: _json,
583
- });
584
- Object.assign(contents, doc);
585
- return contents;
586
- };
587
- export const de_DescribeSignalingChannelCommand = async (output, context) => {
588
- if (output.statusCode !== 200 && output.statusCode >= 300) {
589
- return de_CommandError(output, context);
590
- }
591
- const contents = map({
592
- $metadata: deserializeMetadata(output),
593
- });
594
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
595
- const doc = take(data, {
596
- ChannelInfo: (_) => de_ChannelInfo(_, context),
597
- });
598
- Object.assign(contents, doc);
599
- return contents;
600
- };
601
- export const de_DescribeStreamCommand = 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
- StreamInfo: (_) => de_StreamInfo(_, context),
611
- });
612
- Object.assign(contents, doc);
613
- return contents;
614
- };
615
- export const de_GetDataEndpointCommand = async (output, context) => {
616
- if (output.statusCode !== 200 && output.statusCode >= 300) {
617
- return de_CommandError(output, context);
618
- }
619
- const contents = map({
620
- $metadata: deserializeMetadata(output),
621
- });
622
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
623
- const doc = take(data, {
624
- DataEndpoint: __expectString,
625
- });
626
- Object.assign(contents, doc);
627
- return contents;
628
- };
629
- export const de_GetSignalingChannelEndpointCommand = async (output, context) => {
630
- if (output.statusCode !== 200 && output.statusCode >= 300) {
631
- return de_CommandError(output, context);
632
- }
633
- const contents = map({
634
- $metadata: deserializeMetadata(output),
635
- });
636
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
637
- const doc = take(data, {
638
- ResourceEndpointList: _json,
639
- });
640
- Object.assign(contents, doc);
641
- return contents;
642
- };
643
- export const de_ListEdgeAgentConfigurationsCommand = async (output, context) => {
644
- if (output.statusCode !== 200 && output.statusCode >= 300) {
645
- return de_CommandError(output, context);
646
- }
647
- const contents = map({
648
- $metadata: deserializeMetadata(output),
649
- });
650
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
651
- const doc = take(data, {
652
- EdgeConfigs: (_) => de_ListEdgeAgentConfigurationsEdgeConfigList(_, context),
653
- NextToken: __expectString,
654
- });
655
- Object.assign(contents, doc);
656
- return contents;
657
- };
658
- export const de_ListSignalingChannelsCommand = async (output, context) => {
659
- if (output.statusCode !== 200 && output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const contents = map({
663
- $metadata: deserializeMetadata(output),
664
- });
665
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
666
- const doc = take(data, {
667
- ChannelInfoList: (_) => de_ChannelInfoList(_, context),
668
- NextToken: __expectString,
669
- });
670
- Object.assign(contents, doc);
671
- return contents;
672
- };
673
- export const de_ListStreamsCommand = async (output, context) => {
674
- if (output.statusCode !== 200 && output.statusCode >= 300) {
675
- return de_CommandError(output, context);
676
- }
677
- const contents = map({
678
- $metadata: deserializeMetadata(output),
679
- });
680
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
681
- const doc = take(data, {
682
- NextToken: __expectString,
683
- StreamInfoList: (_) => de_StreamInfoList(_, context),
684
- });
685
- Object.assign(contents, doc);
686
- return contents;
687
- };
688
- export const de_ListTagsForResourceCommand = async (output, context) => {
689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const contents = map({
693
- $metadata: deserializeMetadata(output),
694
- });
695
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
696
- const doc = take(data, {
697
- NextToken: __expectString,
698
- Tags: _json,
699
- });
700
- Object.assign(contents, doc);
701
- return contents;
702
- };
703
- export const de_ListTagsForStreamCommand = async (output, context) => {
704
- if (output.statusCode !== 200 && output.statusCode >= 300) {
705
- return de_CommandError(output, context);
706
- }
707
- const contents = map({
708
- $metadata: deserializeMetadata(output),
709
- });
710
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
711
- const doc = take(data, {
712
- NextToken: __expectString,
713
- Tags: _json,
714
- });
715
- Object.assign(contents, doc);
716
- return contents;
717
- };
718
- export const de_StartEdgeConfigurationUpdateCommand = async (output, context) => {
719
- if (output.statusCode !== 200 && output.statusCode >= 300) {
720
- return de_CommandError(output, context);
721
- }
722
- const contents = map({
723
- $metadata: deserializeMetadata(output),
724
- });
725
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
726
- const doc = take(data, {
727
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
728
- EdgeConfig: _json,
729
- FailedStatusDetails: __expectString,
730
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
731
- StreamARN: __expectString,
732
- StreamName: __expectString,
733
- SyncStatus: __expectString,
734
- });
735
- Object.assign(contents, doc);
736
- return contents;
737
- };
738
- export const de_TagResourceCommand = async (output, context) => {
739
- if (output.statusCode !== 200 && output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const contents = map({
743
- $metadata: deserializeMetadata(output),
744
- });
745
- await collectBody(output.body, context);
746
- return contents;
747
- };
748
- export const de_TagStreamCommand = async (output, context) => {
749
- if (output.statusCode !== 200 && output.statusCode >= 300) {
750
- return de_CommandError(output, context);
751
- }
752
- const contents = map({
753
- $metadata: deserializeMetadata(output),
754
- });
755
- await collectBody(output.body, context);
756
- return contents;
757
- };
758
- export const de_UntagResourceCommand = async (output, context) => {
759
- if (output.statusCode !== 200 && output.statusCode >= 300) {
760
- return de_CommandError(output, context);
761
- }
762
- const contents = map({
763
- $metadata: deserializeMetadata(output),
764
- });
765
- await collectBody(output.body, context);
766
- return contents;
767
- };
768
- export const de_UntagStreamCommand = async (output, context) => {
769
- if (output.statusCode !== 200 && output.statusCode >= 300) {
770
- return de_CommandError(output, context);
771
- }
772
- const contents = map({
773
- $metadata: deserializeMetadata(output),
774
- });
775
- await collectBody(output.body, context);
776
- return contents;
777
- };
778
- export const de_UpdateDataRetentionCommand = async (output, context) => {
779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
780
- return de_CommandError(output, context);
781
- }
782
- const contents = map({
783
- $metadata: deserializeMetadata(output),
784
- });
785
- await collectBody(output.body, context);
786
- return contents;
787
- };
788
- export const de_UpdateImageGenerationConfigurationCommand = async (output, context) => {
789
- if (output.statusCode !== 200 && output.statusCode >= 300) {
790
- return de_CommandError(output, context);
791
- }
792
- const contents = map({
793
- $metadata: deserializeMetadata(output),
794
- });
795
- await collectBody(output.body, context);
796
- return contents;
797
- };
798
- export const de_UpdateMediaStorageConfigurationCommand = async (output, context) => {
799
- if (output.statusCode !== 200 && output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const contents = map({
803
- $metadata: deserializeMetadata(output),
804
- });
805
- await collectBody(output.body, context);
806
- return contents;
807
- };
808
- export const de_UpdateNotificationConfigurationCommand = async (output, context) => {
809
- if (output.statusCode !== 200 && output.statusCode >= 300) {
810
- return de_CommandError(output, context);
811
- }
812
- const contents = map({
813
- $metadata: deserializeMetadata(output),
814
- });
815
- await collectBody(output.body, context);
816
- return contents;
817
- };
818
- export const de_UpdateSignalingChannelCommand = async (output, context) => {
819
- if (output.statusCode !== 200 && output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const contents = map({
823
- $metadata: deserializeMetadata(output),
824
- });
825
- await collectBody(output.body, context);
826
- return contents;
827
- };
828
- export const de_UpdateStreamCommand = async (output, context) => {
829
- if (output.statusCode !== 200 && output.statusCode >= 300) {
830
- return de_CommandError(output, context);
831
- }
832
- const contents = map({
833
- $metadata: deserializeMetadata(output),
834
- });
835
- await collectBody(output.body, context);
836
- return contents;
837
- };
838
- const de_CommandError = async (output, context) => {
839
- const parsedOutput = {
840
- ...output,
841
- body: await parseErrorBody(output.body, context),
842
- };
843
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
844
- switch (errorCode) {
845
- case "AccessDeniedException":
846
- case "com.amazonaws.kinesisvideo#AccessDeniedException":
847
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
848
- case "AccountChannelLimitExceededException":
849
- case "com.amazonaws.kinesisvideo#AccountChannelLimitExceededException":
850
- throw await de_AccountChannelLimitExceededExceptionRes(parsedOutput, context);
851
- case "ClientLimitExceededException":
852
- case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
853
- throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
854
- case "InvalidArgumentException":
855
- case "com.amazonaws.kinesisvideo#InvalidArgumentException":
856
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
857
- case "ResourceInUseException":
858
- case "com.amazonaws.kinesisvideo#ResourceInUseException":
859
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
860
- case "TagsPerResourceExceededLimitException":
861
- case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
862
- throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
863
- case "AccountStreamLimitExceededException":
864
- case "com.amazonaws.kinesisvideo#AccountStreamLimitExceededException":
865
- throw await de_AccountStreamLimitExceededExceptionRes(parsedOutput, context);
866
- case "DeviceStreamLimitExceededException":
867
- case "com.amazonaws.kinesisvideo#DeviceStreamLimitExceededException":
868
- throw await de_DeviceStreamLimitExceededExceptionRes(parsedOutput, context);
869
- case "InvalidDeviceException":
870
- case "com.amazonaws.kinesisvideo#InvalidDeviceException":
871
- throw await de_InvalidDeviceExceptionRes(parsedOutput, context);
872
- case "ResourceNotFoundException":
873
- case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
874
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
875
- case "StreamEdgeConfigurationNotFoundException":
876
- case "com.amazonaws.kinesisvideo#StreamEdgeConfigurationNotFoundException":
877
- throw await de_StreamEdgeConfigurationNotFoundExceptionRes(parsedOutput, context);
878
- case "VersionMismatchException":
879
- case "com.amazonaws.kinesisvideo#VersionMismatchException":
880
- throw await de_VersionMismatchExceptionRes(parsedOutput, context);
881
- case "NotAuthorizedException":
882
- case "com.amazonaws.kinesisvideo#NotAuthorizedException":
883
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
884
- case "InvalidResourceFormatException":
885
- case "com.amazonaws.kinesisvideo#InvalidResourceFormatException":
886
- throw await de_InvalidResourceFormatExceptionRes(parsedOutput, context);
887
- case "NoDataRetentionException":
888
- case "com.amazonaws.kinesisvideo#NoDataRetentionException":
889
- throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
890
- default:
891
- const parsedBody = parsedOutput.body;
892
- return throwDefaultError({
893
- output,
894
- parsedBody,
895
- errorCode,
896
- });
897
- }
898
- };
899
- const throwDefaultError = withBaseException(__BaseException);
900
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
901
- const contents = map({});
902
- const data = parsedOutput.body;
903
- const doc = take(data, {
904
- Message: __expectString,
905
- });
906
- Object.assign(contents, doc);
907
- const exception = new AccessDeniedException({
908
- $metadata: deserializeMetadata(parsedOutput),
909
- ...contents,
910
- });
911
- return __decorateServiceException(exception, parsedOutput.body);
912
- };
913
- const de_AccountChannelLimitExceededExceptionRes = async (parsedOutput, context) => {
914
- const contents = map({});
915
- const data = parsedOutput.body;
916
- const doc = take(data, {
917
- Message: __expectString,
918
- });
919
- Object.assign(contents, doc);
920
- const exception = new AccountChannelLimitExceededException({
921
- $metadata: deserializeMetadata(parsedOutput),
922
- ...contents,
923
- });
924
- return __decorateServiceException(exception, parsedOutput.body);
925
- };
926
- const de_AccountStreamLimitExceededExceptionRes = async (parsedOutput, context) => {
927
- const contents = map({});
928
- const data = parsedOutput.body;
929
- const doc = take(data, {
930
- Message: __expectString,
931
- });
932
- Object.assign(contents, doc);
933
- const exception = new AccountStreamLimitExceededException({
934
- $metadata: deserializeMetadata(parsedOutput),
935
- ...contents,
936
- });
937
- return __decorateServiceException(exception, parsedOutput.body);
938
- };
939
- const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
940
- const contents = map({});
941
- const data = parsedOutput.body;
942
- const doc = take(data, {
943
- Message: __expectString,
944
- });
945
- Object.assign(contents, doc);
946
- const exception = new ClientLimitExceededException({
947
- $metadata: deserializeMetadata(parsedOutput),
948
- ...contents,
949
- });
950
- return __decorateServiceException(exception, parsedOutput.body);
951
- };
952
- const de_DeviceStreamLimitExceededExceptionRes = async (parsedOutput, context) => {
953
- const contents = map({});
954
- const data = parsedOutput.body;
955
- const doc = take(data, {
956
- Message: __expectString,
957
- });
958
- Object.assign(contents, doc);
959
- const exception = new DeviceStreamLimitExceededException({
960
- $metadata: deserializeMetadata(parsedOutput),
961
- ...contents,
962
- });
963
- return __decorateServiceException(exception, parsedOutput.body);
964
- };
965
- const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
966
- const contents = map({});
967
- const data = parsedOutput.body;
968
- const doc = take(data, {
969
- Message: __expectString,
970
- });
971
- Object.assign(contents, doc);
972
- const exception = new InvalidArgumentException({
973
- $metadata: deserializeMetadata(parsedOutput),
974
- ...contents,
975
- });
976
- return __decorateServiceException(exception, parsedOutput.body);
977
- };
978
- const de_InvalidDeviceExceptionRes = async (parsedOutput, context) => {
979
- const contents = map({});
980
- const data = parsedOutput.body;
981
- const doc = take(data, {
982
- Message: __expectString,
983
- });
984
- Object.assign(contents, doc);
985
- const exception = new InvalidDeviceException({
986
- $metadata: deserializeMetadata(parsedOutput),
987
- ...contents,
988
- });
989
- return __decorateServiceException(exception, parsedOutput.body);
990
- };
991
- const de_InvalidResourceFormatExceptionRes = async (parsedOutput, context) => {
992
- const contents = map({});
993
- const data = parsedOutput.body;
994
- const doc = take(data, {
995
- Message: __expectString,
996
- });
997
- Object.assign(contents, doc);
998
- const exception = new InvalidResourceFormatException({
999
- $metadata: deserializeMetadata(parsedOutput),
1000
- ...contents,
1001
- });
1002
- return __decorateServiceException(exception, parsedOutput.body);
1003
- };
1004
- const de_NoDataRetentionExceptionRes = async (parsedOutput, context) => {
1005
- const contents = map({});
1006
- const data = parsedOutput.body;
1007
- const doc = take(data, {
1008
- Message: __expectString,
1009
- });
1010
- Object.assign(contents, doc);
1011
- const exception = new NoDataRetentionException({
1012
- $metadata: deserializeMetadata(parsedOutput),
1013
- ...contents,
1014
- });
1015
- return __decorateServiceException(exception, parsedOutput.body);
1016
- };
1017
- const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
1018
- const contents = map({});
1019
- const data = parsedOutput.body;
1020
- const doc = take(data, {
1021
- Message: __expectString,
1022
- });
1023
- Object.assign(contents, doc);
1024
- const exception = new NotAuthorizedException({
1025
- $metadata: deserializeMetadata(parsedOutput),
1026
- ...contents,
1027
- });
1028
- return __decorateServiceException(exception, parsedOutput.body);
1029
- };
1030
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1031
- const contents = map({});
1032
- const data = parsedOutput.body;
1033
- const doc = take(data, {
1034
- Message: __expectString,
1035
- });
1036
- Object.assign(contents, doc);
1037
- const exception = new ResourceInUseException({
1038
- $metadata: deserializeMetadata(parsedOutput),
1039
- ...contents,
1040
- });
1041
- return __decorateServiceException(exception, parsedOutput.body);
1042
- };
1043
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1044
- const contents = map({});
1045
- const data = parsedOutput.body;
1046
- const doc = take(data, {
1047
- Message: __expectString,
1048
- });
1049
- Object.assign(contents, doc);
1050
- const exception = new ResourceNotFoundException({
1051
- $metadata: deserializeMetadata(parsedOutput),
1052
- ...contents,
1053
- });
1054
- return __decorateServiceException(exception, parsedOutput.body);
1055
- };
1056
- const de_StreamEdgeConfigurationNotFoundExceptionRes = async (parsedOutput, context) => {
1057
- const contents = map({});
1058
- const data = parsedOutput.body;
1059
- const doc = take(data, {
1060
- Message: __expectString,
1061
- });
1062
- Object.assign(contents, doc);
1063
- const exception = new StreamEdgeConfigurationNotFoundException({
1064
- $metadata: deserializeMetadata(parsedOutput),
1065
- ...contents,
1066
- });
1067
- return __decorateServiceException(exception, parsedOutput.body);
1068
- };
1069
- const de_TagsPerResourceExceededLimitExceptionRes = async (parsedOutput, context) => {
1070
- const contents = map({});
1071
- const data = parsedOutput.body;
1072
- const doc = take(data, {
1073
- Message: __expectString,
1074
- });
1075
- Object.assign(contents, doc);
1076
- const exception = new TagsPerResourceExceededLimitException({
1077
- $metadata: deserializeMetadata(parsedOutput),
1078
- ...contents,
1079
- });
1080
- return __decorateServiceException(exception, parsedOutput.body);
1081
- };
1082
- const de_VersionMismatchExceptionRes = async (parsedOutput, context) => {
1083
- const contents = map({});
1084
- const data = parsedOutput.body;
1085
- const doc = take(data, {
1086
- Message: __expectString,
1087
- });
1088
- Object.assign(contents, doc);
1089
- const exception = new VersionMismatchException({
1090
- $metadata: deserializeMetadata(parsedOutput),
1091
- ...contents,
1092
- });
1093
- return __decorateServiceException(exception, parsedOutput.body);
1094
- };
1095
- const de_ChannelInfo = (output, context) => {
1096
- return take(output, {
1097
- ChannelARN: __expectString,
1098
- ChannelName: __expectString,
1099
- ChannelStatus: __expectString,
1100
- ChannelType: __expectString,
1101
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1102
- SingleMasterConfiguration: _json,
1103
- Version: __expectString,
1104
- });
1105
- };
1106
- const de_ChannelInfoList = (output, context) => {
1107
- const retVal = (output || [])
1108
- .filter((e) => e != null)
1109
- .map((entry) => {
1110
- return de_ChannelInfo(entry, context);
1111
- });
1112
- return retVal;
1113
- };
1114
- const de_EdgeAgentStatus = (output, context) => {
1115
- return take(output, {
1116
- LastRecorderStatus: (_) => de_LastRecorderStatus(_, context),
1117
- LastUploaderStatus: (_) => de_LastUploaderStatus(_, context),
1118
- });
1119
- };
1120
- const de_LastRecorderStatus = (output, context) => {
1121
- return take(output, {
1122
- JobStatusDetails: __expectString,
1123
- LastCollectedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1124
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1125
- RecorderStatus: __expectString,
1126
- });
1127
- };
1128
- const de_LastUploaderStatus = (output, context) => {
1129
- return take(output, {
1130
- JobStatusDetails: __expectString,
1131
- LastCollectedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1132
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1133
- UploaderStatus: __expectString,
1134
- });
1135
- };
1136
- const de_ListEdgeAgentConfigurationsEdgeConfig = (output, context) => {
1137
- return take(output, {
1138
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1139
- EdgeConfig: _json,
1140
- FailedStatusDetails: __expectString,
1141
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1142
- StreamARN: __expectString,
1143
- StreamName: __expectString,
1144
- SyncStatus: __expectString,
1145
- });
1146
- };
1147
- const de_ListEdgeAgentConfigurationsEdgeConfigList = (output, context) => {
1148
- const retVal = (output || [])
1149
- .filter((e) => e != null)
1150
- .map((entry) => {
1151
- return de_ListEdgeAgentConfigurationsEdgeConfig(entry, context);
1152
- });
1153
- return retVal;
1154
- };
1155
- const de_StreamInfo = (output, context) => {
1156
- return take(output, {
1157
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1158
- DataRetentionInHours: __expectInt32,
1159
- DeviceName: __expectString,
1160
- KmsKeyId: __expectString,
1161
- MediaType: __expectString,
1162
- Status: __expectString,
1163
- StreamARN: __expectString,
1164
- StreamName: __expectString,
1165
- Version: __expectString,
1166
- });
1167
- };
1168
- const de_StreamInfoList = (output, context) => {
1169
- const retVal = (output || [])
1170
- .filter((e) => e != null)
1171
- .map((entry) => {
1172
- return de_StreamInfo(entry, context);
1173
- });
1174
- return retVal;
1175
- };
1176
- const deserializeMetadata = (output) => ({
1177
- httpStatusCode: output.statusCode,
1178
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1179
- extendedRequestId: output.headers["x-amz-id-2"],
1180
- cfId: output.headers["x-amz-cf-id"],
1181
- });
1182
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));