@aws-sdk/client-chime-sdk-meetings 3.927.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 (40) hide show
  1. package/dist-cjs/index.js +846 -941
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ChimeSDKMeetingsClient.js +2 -0
  4. package/dist-es/commands/BatchCreateAttendeeCommand.js +3 -10
  5. package/dist-es/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.js +3 -9
  6. package/dist-es/commands/CreateAttendeeCommand.js +3 -10
  7. package/dist-es/commands/CreateMeetingCommand.js +3 -10
  8. package/dist-es/commands/CreateMeetingWithAttendeesCommand.js +3 -10
  9. package/dist-es/commands/DeleteAttendeeCommand.js +3 -9
  10. package/dist-es/commands/DeleteMeetingCommand.js +3 -9
  11. package/dist-es/commands/GetAttendeeCommand.js +3 -10
  12. package/dist-es/commands/GetMeetingCommand.js +3 -10
  13. package/dist-es/commands/ListAttendeesCommand.js +3 -10
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/StartMeetingTranscriptionCommand.js +3 -9
  16. package/dist-es/commands/StopMeetingTranscriptionCommand.js +3 -9
  17. package/dist-es/commands/TagResourceCommand.js +3 -9
  18. package/dist-es/commands/UntagResourceCommand.js +3 -9
  19. package/dist-es/commands/UpdateAttendeeCapabilitiesCommand.js +3 -10
  20. package/dist-es/models/models_0.js +0 -87
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-es/schemas/schemas_0.js +784 -0
  23. package/dist-types/ChimeSDKMeetingsClient.d.ts +10 -1
  24. package/dist-types/models/models_0.d.ts +0 -68
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  26. package/dist-types/runtimeConfig.d.ts +1 -0
  27. package/dist-types/runtimeConfig.native.d.ts +1 -0
  28. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +88 -0
  30. package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +4 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +0 -47
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +94 -0
  37. package/package.json +5 -6
  38. package/dist-es/protocols/Aws_restJson1.js +0 -697
  39. package/dist-types/protocols/Aws_restJson1.d.ts +0 -146
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -197
@@ -1,697 +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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { ChimeSDKMeetingsServiceException as __BaseException } from "../models/ChimeSDKMeetingsServiceException";
6
- import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ResourceNotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
7
- export const se_BatchCreateAttendeeCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/meetings/{MeetingId}/attendees");
13
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
14
- const query = map({
15
- [_o]: [, "batch-create"],
16
- });
17
- let body;
18
- body = JSON.stringify(take(input, {
19
- Attendees: (_) => _json(_),
20
- }));
21
- b.m("POST").h(headers).q(query).b(body);
22
- return b.build();
23
- };
24
- export const se_BatchUpdateAttendeeCapabilitiesExceptCommand = async (input, context) => {
25
- const b = rb(input, context);
26
- const headers = {
27
- "content-type": "application/json",
28
- };
29
- b.bp("/meetings/{MeetingId}/attendees/capabilities");
30
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
31
- const query = map({
32
- [_o]: [, "batch-update-except"],
33
- });
34
- let body;
35
- body = JSON.stringify(take(input, {
36
- Capabilities: (_) => _json(_),
37
- ExcludedAttendeeIds: (_) => _json(_),
38
- }));
39
- b.m("PUT").h(headers).q(query).b(body);
40
- return b.build();
41
- };
42
- export const se_CreateAttendeeCommand = async (input, context) => {
43
- const b = rb(input, context);
44
- const headers = {
45
- "content-type": "application/json",
46
- };
47
- b.bp("/meetings/{MeetingId}/attendees");
48
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
49
- let body;
50
- body = JSON.stringify(take(input, {
51
- Capabilities: (_) => _json(_),
52
- ExternalUserId: [],
53
- }));
54
- b.m("POST").h(headers).b(body);
55
- return b.build();
56
- };
57
- export const se_CreateMeetingCommand = async (input, context) => {
58
- const b = rb(input, context);
59
- const headers = {
60
- "content-type": "application/json",
61
- };
62
- b.bp("/meetings");
63
- let body;
64
- body = JSON.stringify(take(input, {
65
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
66
- ExternalMeetingId: [],
67
- MediaPlacementNetworkType: [],
68
- MediaRegion: [],
69
- MeetingFeatures: (_) => _json(_),
70
- MeetingHostId: [],
71
- NotificationsConfiguration: (_) => _json(_),
72
- PrimaryMeetingId: [],
73
- Tags: (_) => _json(_),
74
- TenantIds: (_) => _json(_),
75
- }));
76
- b.m("POST").h(headers).b(body);
77
- return b.build();
78
- };
79
- export const se_CreateMeetingWithAttendeesCommand = async (input, context) => {
80
- const b = rb(input, context);
81
- const headers = {
82
- "content-type": "application/json",
83
- };
84
- b.bp("/meetings");
85
- const query = map({
86
- [_o]: [, "create-attendees"],
87
- });
88
- let body;
89
- body = JSON.stringify(take(input, {
90
- Attendees: (_) => _json(_),
91
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
92
- ExternalMeetingId: [],
93
- MediaPlacementNetworkType: [],
94
- MediaRegion: [],
95
- MeetingFeatures: (_) => _json(_),
96
- MeetingHostId: [],
97
- NotificationsConfiguration: (_) => _json(_),
98
- PrimaryMeetingId: [],
99
- Tags: (_) => _json(_),
100
- TenantIds: (_) => _json(_),
101
- }));
102
- b.m("POST").h(headers).q(query).b(body);
103
- return b.build();
104
- };
105
- export const se_DeleteAttendeeCommand = async (input, context) => {
106
- const b = rb(input, context);
107
- const headers = {};
108
- b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}");
109
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
110
- b.p("AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
111
- let body;
112
- b.m("DELETE").h(headers).b(body);
113
- return b.build();
114
- };
115
- export const se_DeleteMeetingCommand = async (input, context) => {
116
- const b = rb(input, context);
117
- const headers = {};
118
- b.bp("/meetings/{MeetingId}");
119
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
120
- let body;
121
- b.m("DELETE").h(headers).b(body);
122
- return b.build();
123
- };
124
- export const se_GetAttendeeCommand = async (input, context) => {
125
- const b = rb(input, context);
126
- const headers = {};
127
- b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}");
128
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
129
- b.p("AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
130
- let body;
131
- b.m("GET").h(headers).b(body);
132
- return b.build();
133
- };
134
- export const se_GetMeetingCommand = async (input, context) => {
135
- const b = rb(input, context);
136
- const headers = {};
137
- b.bp("/meetings/{MeetingId}");
138
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
139
- let body;
140
- b.m("GET").h(headers).b(body);
141
- return b.build();
142
- };
143
- export const se_ListAttendeesCommand = async (input, context) => {
144
- const b = rb(input, context);
145
- const headers = {};
146
- b.bp("/meetings/{MeetingId}/attendees");
147
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
148
- const query = map({
149
- [_nt]: [, input[_NT]],
150
- [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
151
- });
152
- let body;
153
- b.m("GET").h(headers).q(query).b(body);
154
- return b.build();
155
- };
156
- export const se_ListTagsForResourceCommand = async (input, context) => {
157
- const b = rb(input, context);
158
- const headers = {};
159
- b.bp("/tags");
160
- const query = map({
161
- [_a]: [, __expectNonNull(input[_RARN], `ResourceARN`)],
162
- });
163
- let body;
164
- b.m("GET").h(headers).q(query).b(body);
165
- return b.build();
166
- };
167
- export const se_StartMeetingTranscriptionCommand = async (input, context) => {
168
- const b = rb(input, context);
169
- const headers = {
170
- "content-type": "application/json",
171
- };
172
- b.bp("/meetings/{MeetingId}/transcription");
173
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
174
- const query = map({
175
- [_o]: [, "start"],
176
- });
177
- let body;
178
- body = JSON.stringify(take(input, {
179
- TranscriptionConfiguration: (_) => _json(_),
180
- }));
181
- b.m("POST").h(headers).q(query).b(body);
182
- return b.build();
183
- };
184
- export const se_StopMeetingTranscriptionCommand = async (input, context) => {
185
- const b = rb(input, context);
186
- const headers = {};
187
- b.bp("/meetings/{MeetingId}/transcription");
188
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
189
- const query = map({
190
- [_o]: [, "stop"],
191
- });
192
- let body;
193
- b.m("POST").h(headers).q(query).b(body);
194
- return b.build();
195
- };
196
- export const se_TagResourceCommand = async (input, context) => {
197
- const b = rb(input, context);
198
- const headers = {
199
- "content-type": "application/json",
200
- };
201
- b.bp("/tags");
202
- const query = map({
203
- [_o]: [, "tag-resource"],
204
- });
205
- let body;
206
- body = JSON.stringify(take(input, {
207
- ResourceARN: [],
208
- Tags: (_) => _json(_),
209
- }));
210
- b.m("POST").h(headers).q(query).b(body);
211
- return b.build();
212
- };
213
- export const se_UntagResourceCommand = async (input, context) => {
214
- const b = rb(input, context);
215
- const headers = {
216
- "content-type": "application/json",
217
- };
218
- b.bp("/tags");
219
- const query = map({
220
- [_o]: [, "untag-resource"],
221
- });
222
- let body;
223
- body = JSON.stringify(take(input, {
224
- ResourceARN: [],
225
- TagKeys: (_) => _json(_),
226
- }));
227
- b.m("POST").h(headers).q(query).b(body);
228
- return b.build();
229
- };
230
- export const se_UpdateAttendeeCapabilitiesCommand = async (input, context) => {
231
- const b = rb(input, context);
232
- const headers = {
233
- "content-type": "application/json",
234
- };
235
- b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities");
236
- b.p("MeetingId", () => input.MeetingId, "{MeetingId}", false);
237
- b.p("AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
238
- let body;
239
- body = JSON.stringify(take(input, {
240
- Capabilities: (_) => _json(_),
241
- }));
242
- b.m("PUT").h(headers).b(body);
243
- return b.build();
244
- };
245
- export const de_BatchCreateAttendeeCommand = async (output, context) => {
246
- if (output.statusCode !== 200 && output.statusCode >= 300) {
247
- return de_CommandError(output, context);
248
- }
249
- const contents = map({
250
- $metadata: deserializeMetadata(output),
251
- });
252
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
253
- const doc = take(data, {
254
- Attendees: _json,
255
- Errors: _json,
256
- });
257
- Object.assign(contents, doc);
258
- return contents;
259
- };
260
- export const de_BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
261
- if (output.statusCode !== 200 && output.statusCode >= 300) {
262
- return de_CommandError(output, context);
263
- }
264
- const contents = map({
265
- $metadata: deserializeMetadata(output),
266
- });
267
- await collectBody(output.body, context);
268
- return contents;
269
- };
270
- export const de_CreateAttendeeCommand = async (output, context) => {
271
- if (output.statusCode !== 200 && output.statusCode >= 300) {
272
- return de_CommandError(output, context);
273
- }
274
- const contents = map({
275
- $metadata: deserializeMetadata(output),
276
- });
277
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
278
- const doc = take(data, {
279
- Attendee: _json,
280
- });
281
- Object.assign(contents, doc);
282
- return contents;
283
- };
284
- export const de_CreateMeetingCommand = async (output, context) => {
285
- if (output.statusCode !== 200 && output.statusCode >= 300) {
286
- return de_CommandError(output, context);
287
- }
288
- const contents = map({
289
- $metadata: deserializeMetadata(output),
290
- });
291
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
292
- const doc = take(data, {
293
- Meeting: _json,
294
- });
295
- Object.assign(contents, doc);
296
- return contents;
297
- };
298
- export const de_CreateMeetingWithAttendeesCommand = async (output, context) => {
299
- if (output.statusCode !== 200 && output.statusCode >= 300) {
300
- return de_CommandError(output, context);
301
- }
302
- const contents = map({
303
- $metadata: deserializeMetadata(output),
304
- });
305
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
306
- const doc = take(data, {
307
- Attendees: _json,
308
- Errors: _json,
309
- Meeting: _json,
310
- });
311
- Object.assign(contents, doc);
312
- return contents;
313
- };
314
- export const de_DeleteAttendeeCommand = async (output, context) => {
315
- if (output.statusCode !== 204 && output.statusCode >= 300) {
316
- return de_CommandError(output, context);
317
- }
318
- const contents = map({
319
- $metadata: deserializeMetadata(output),
320
- });
321
- await collectBody(output.body, context);
322
- return contents;
323
- };
324
- export const de_DeleteMeetingCommand = async (output, context) => {
325
- if (output.statusCode !== 204 && output.statusCode >= 300) {
326
- return de_CommandError(output, context);
327
- }
328
- const contents = map({
329
- $metadata: deserializeMetadata(output),
330
- });
331
- await collectBody(output.body, context);
332
- return contents;
333
- };
334
- export const de_GetAttendeeCommand = async (output, context) => {
335
- if (output.statusCode !== 200 && output.statusCode >= 300) {
336
- return de_CommandError(output, context);
337
- }
338
- const contents = map({
339
- $metadata: deserializeMetadata(output),
340
- });
341
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
342
- const doc = take(data, {
343
- Attendee: _json,
344
- });
345
- Object.assign(contents, doc);
346
- return contents;
347
- };
348
- export const de_GetMeetingCommand = async (output, context) => {
349
- if (output.statusCode !== 200 && output.statusCode >= 300) {
350
- return de_CommandError(output, context);
351
- }
352
- const contents = map({
353
- $metadata: deserializeMetadata(output),
354
- });
355
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
356
- const doc = take(data, {
357
- Meeting: _json,
358
- });
359
- Object.assign(contents, doc);
360
- return contents;
361
- };
362
- export const de_ListAttendeesCommand = async (output, context) => {
363
- if (output.statusCode !== 200 && output.statusCode >= 300) {
364
- return de_CommandError(output, context);
365
- }
366
- const contents = map({
367
- $metadata: deserializeMetadata(output),
368
- });
369
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
370
- const doc = take(data, {
371
- Attendees: _json,
372
- NextToken: __expectString,
373
- });
374
- Object.assign(contents, doc);
375
- return contents;
376
- };
377
- export const de_ListTagsForResourceCommand = async (output, context) => {
378
- if (output.statusCode !== 200 && output.statusCode >= 300) {
379
- return de_CommandError(output, context);
380
- }
381
- const contents = map({
382
- $metadata: deserializeMetadata(output),
383
- });
384
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
385
- const doc = take(data, {
386
- Tags: _json,
387
- });
388
- Object.assign(contents, doc);
389
- return contents;
390
- };
391
- export const de_StartMeetingTranscriptionCommand = async (output, context) => {
392
- if (output.statusCode !== 200 && output.statusCode >= 300) {
393
- return de_CommandError(output, context);
394
- }
395
- const contents = map({
396
- $metadata: deserializeMetadata(output),
397
- });
398
- await collectBody(output.body, context);
399
- return contents;
400
- };
401
- export const de_StopMeetingTranscriptionCommand = async (output, context) => {
402
- if (output.statusCode !== 200 && output.statusCode >= 300) {
403
- return de_CommandError(output, context);
404
- }
405
- const contents = map({
406
- $metadata: deserializeMetadata(output),
407
- });
408
- await collectBody(output.body, context);
409
- return contents;
410
- };
411
- export const de_TagResourceCommand = async (output, context) => {
412
- if (output.statusCode !== 204 && output.statusCode >= 300) {
413
- return de_CommandError(output, context);
414
- }
415
- const contents = map({
416
- $metadata: deserializeMetadata(output),
417
- });
418
- await collectBody(output.body, context);
419
- return contents;
420
- };
421
- export const de_UntagResourceCommand = async (output, context) => {
422
- if (output.statusCode !== 204 && output.statusCode >= 300) {
423
- return de_CommandError(output, context);
424
- }
425
- const contents = map({
426
- $metadata: deserializeMetadata(output),
427
- });
428
- await collectBody(output.body, context);
429
- return contents;
430
- };
431
- export const de_UpdateAttendeeCapabilitiesCommand = async (output, context) => {
432
- if (output.statusCode !== 200 && output.statusCode >= 300) {
433
- return de_CommandError(output, context);
434
- }
435
- const contents = map({
436
- $metadata: deserializeMetadata(output),
437
- });
438
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
439
- const doc = take(data, {
440
- Attendee: _json,
441
- });
442
- Object.assign(contents, doc);
443
- return contents;
444
- };
445
- const de_CommandError = async (output, context) => {
446
- const parsedOutput = {
447
- ...output,
448
- body: await parseErrorBody(output.body, context),
449
- };
450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
451
- switch (errorCode) {
452
- case "BadRequestException":
453
- case "com.amazonaws.chimesdkmeetings#BadRequestException":
454
- throw await de_BadRequestExceptionRes(parsedOutput, context);
455
- case "ForbiddenException":
456
- case "com.amazonaws.chimesdkmeetings#ForbiddenException":
457
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
458
- case "LimitExceededException":
459
- case "com.amazonaws.chimesdkmeetings#LimitExceededException":
460
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
461
- case "NotFoundException":
462
- case "com.amazonaws.chimesdkmeetings#NotFoundException":
463
- throw await de_NotFoundExceptionRes(parsedOutput, context);
464
- case "ServiceFailureException":
465
- case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
466
- throw await de_ServiceFailureExceptionRes(parsedOutput, context);
467
- case "ServiceUnavailableException":
468
- case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
469
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
470
- case "ThrottlingException":
471
- case "com.amazonaws.chimesdkmeetings#ThrottlingException":
472
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
473
- case "UnauthorizedException":
474
- case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
475
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
476
- case "UnprocessableEntityException":
477
- case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
478
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
479
- case "ConflictException":
480
- case "com.amazonaws.chimesdkmeetings#ConflictException":
481
- throw await de_ConflictExceptionRes(parsedOutput, context);
482
- case "ResourceNotFoundException":
483
- case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
484
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
485
- case "TooManyTagsException":
486
- case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
487
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
488
- default:
489
- const parsedBody = parsedOutput.body;
490
- return throwDefaultError({
491
- output,
492
- parsedBody,
493
- errorCode,
494
- });
495
- }
496
- };
497
- const throwDefaultError = withBaseException(__BaseException);
498
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
499
- const contents = map({});
500
- const data = parsedOutput.body;
501
- const doc = take(data, {
502
- Code: __expectString,
503
- Message: __expectString,
504
- RequestId: __expectString,
505
- });
506
- Object.assign(contents, doc);
507
- const exception = new BadRequestException({
508
- $metadata: deserializeMetadata(parsedOutput),
509
- ...contents,
510
- });
511
- return __decorateServiceException(exception, parsedOutput.body);
512
- };
513
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
514
- const contents = map({});
515
- const data = parsedOutput.body;
516
- const doc = take(data, {
517
- Code: __expectString,
518
- Message: __expectString,
519
- RequestId: __expectString,
520
- });
521
- Object.assign(contents, doc);
522
- const exception = new ConflictException({
523
- $metadata: deserializeMetadata(parsedOutput),
524
- ...contents,
525
- });
526
- return __decorateServiceException(exception, parsedOutput.body);
527
- };
528
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
529
- const contents = map({});
530
- const data = parsedOutput.body;
531
- const doc = take(data, {
532
- Code: __expectString,
533
- Message: __expectString,
534
- RequestId: __expectString,
535
- });
536
- Object.assign(contents, doc);
537
- const exception = new ForbiddenException({
538
- $metadata: deserializeMetadata(parsedOutput),
539
- ...contents,
540
- });
541
- return __decorateServiceException(exception, parsedOutput.body);
542
- };
543
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
544
- const contents = map({});
545
- const data = parsedOutput.body;
546
- const doc = take(data, {
547
- Code: __expectString,
548
- Message: __expectString,
549
- RequestId: __expectString,
550
- });
551
- Object.assign(contents, doc);
552
- const exception = new LimitExceededException({
553
- $metadata: deserializeMetadata(parsedOutput),
554
- ...contents,
555
- });
556
- return __decorateServiceException(exception, parsedOutput.body);
557
- };
558
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
559
- const contents = map({});
560
- const data = parsedOutput.body;
561
- const doc = take(data, {
562
- Code: __expectString,
563
- Message: __expectString,
564
- RequestId: __expectString,
565
- });
566
- Object.assign(contents, doc);
567
- const exception = new NotFoundException({
568
- $metadata: deserializeMetadata(parsedOutput),
569
- ...contents,
570
- });
571
- return __decorateServiceException(exception, parsedOutput.body);
572
- };
573
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
574
- const contents = map({});
575
- const data = parsedOutput.body;
576
- const doc = take(data, {
577
- Code: __expectString,
578
- Message: __expectString,
579
- RequestId: __expectString,
580
- ResourceName: __expectString,
581
- });
582
- Object.assign(contents, doc);
583
- const exception = new ResourceNotFoundException({
584
- $metadata: deserializeMetadata(parsedOutput),
585
- ...contents,
586
- });
587
- return __decorateServiceException(exception, parsedOutput.body);
588
- };
589
- const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
590
- const contents = map({});
591
- const data = parsedOutput.body;
592
- const doc = take(data, {
593
- Code: __expectString,
594
- Message: __expectString,
595
- RequestId: __expectString,
596
- });
597
- Object.assign(contents, doc);
598
- const exception = new ServiceFailureException({
599
- $metadata: deserializeMetadata(parsedOutput),
600
- ...contents,
601
- });
602
- return __decorateServiceException(exception, parsedOutput.body);
603
- };
604
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
605
- const contents = map({
606
- [_RAS]: [, parsedOutput.headers[_ra]],
607
- });
608
- const data = parsedOutput.body;
609
- const doc = take(data, {
610
- Code: __expectString,
611
- Message: __expectString,
612
- RequestId: __expectString,
613
- });
614
- Object.assign(contents, doc);
615
- const exception = new ServiceUnavailableException({
616
- $metadata: deserializeMetadata(parsedOutput),
617
- ...contents,
618
- });
619
- return __decorateServiceException(exception, parsedOutput.body);
620
- };
621
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
622
- const contents = map({});
623
- const data = parsedOutput.body;
624
- const doc = take(data, {
625
- Code: __expectString,
626
- Message: __expectString,
627
- RequestId: __expectString,
628
- });
629
- Object.assign(contents, doc);
630
- const exception = new ThrottlingException({
631
- $metadata: deserializeMetadata(parsedOutput),
632
- ...contents,
633
- });
634
- return __decorateServiceException(exception, parsedOutput.body);
635
- };
636
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
637
- const contents = map({});
638
- const data = parsedOutput.body;
639
- const doc = take(data, {
640
- Code: __expectString,
641
- Message: __expectString,
642
- RequestId: __expectString,
643
- ResourceName: __expectString,
644
- });
645
- Object.assign(contents, doc);
646
- const exception = new TooManyTagsException({
647
- $metadata: deserializeMetadata(parsedOutput),
648
- ...contents,
649
- });
650
- return __decorateServiceException(exception, parsedOutput.body);
651
- };
652
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
653
- const contents = map({});
654
- const data = parsedOutput.body;
655
- const doc = take(data, {
656
- Code: __expectString,
657
- Message: __expectString,
658
- RequestId: __expectString,
659
- });
660
- Object.assign(contents, doc);
661
- const exception = new UnauthorizedException({
662
- $metadata: deserializeMetadata(parsedOutput),
663
- ...contents,
664
- });
665
- return __decorateServiceException(exception, parsedOutput.body);
666
- };
667
- const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
668
- const contents = map({});
669
- const data = parsedOutput.body;
670
- const doc = take(data, {
671
- Code: __expectString,
672
- Message: __expectString,
673
- RequestId: __expectString,
674
- });
675
- Object.assign(contents, doc);
676
- const exception = new UnprocessableEntityException({
677
- $metadata: deserializeMetadata(parsedOutput),
678
- ...contents,
679
- });
680
- return __decorateServiceException(exception, parsedOutput.body);
681
- };
682
- const deserializeMetadata = (output) => ({
683
- httpStatusCode: output.statusCode,
684
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
685
- extendedRequestId: output.headers["x-amz-id-2"],
686
- cfId: output.headers["x-amz-cf-id"],
687
- });
688
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
689
- const _MR = "MaxResults";
690
- const _NT = "NextToken";
691
- const _RARN = "ResourceARN";
692
- const _RAS = "RetryAfterSeconds";
693
- const _a = "arn";
694
- const _mr = "max-results";
695
- const _nt = "next-token";
696
- const _o = "operation";
697
- const _ra = "retry-after";