@aws-sdk/client-ivschat 3.310.0 → 3.315.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.
- package/dist-cjs/protocols/Aws_restJson1.js +281 -580
- package/dist-es/protocols/Aws_restJson1.js +257 -556
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IvschatServiceException as __BaseException } from "../models/IvschatServiceException";
|
|
4
|
-
import { AccessDeniedException, ConflictException,
|
|
4
|
+
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateChatTokenCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
@@ -9,13 +9,13 @@ export const se_CreateChatTokenCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
attributes: (_) => _json(_),
|
|
14
|
+
capabilities: (_) => _json(_),
|
|
15
|
+
roomIdentifier: [],
|
|
16
|
+
sessionDurationInMinutes: [],
|
|
17
|
+
userId: [],
|
|
18
|
+
}));
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -33,13 +33,11 @@ export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
|
33
33
|
};
|
|
34
34
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLoggingConfiguration";
|
|
35
35
|
let body;
|
|
36
|
-
body = JSON.stringify({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
42
|
-
});
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
destinationConfiguration: (_) => _json(_),
|
|
38
|
+
name: [],
|
|
39
|
+
tags: (_) => _json(_),
|
|
40
|
+
}));
|
|
43
41
|
return new __HttpRequest({
|
|
44
42
|
protocol,
|
|
45
43
|
hostname,
|
|
@@ -57,20 +55,14 @@ export const se_CreateRoomCommand = async (input, context) => {
|
|
|
57
55
|
};
|
|
58
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRoom";
|
|
59
57
|
let body;
|
|
60
|
-
body = JSON.stringify({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
...(input.messageReviewHandler != null && {
|
|
69
|
-
messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
|
|
70
|
-
}),
|
|
71
|
-
...(input.name != null && { name: input.name }),
|
|
72
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
73
|
-
});
|
|
58
|
+
body = JSON.stringify(take(input, {
|
|
59
|
+
loggingConfigurationIdentifiers: (_) => _json(_),
|
|
60
|
+
maximumMessageLength: [],
|
|
61
|
+
maximumMessageRatePerSecond: [],
|
|
62
|
+
messageReviewHandler: (_) => _json(_),
|
|
63
|
+
name: [],
|
|
64
|
+
tags: (_) => _json(_),
|
|
65
|
+
}));
|
|
74
66
|
return new __HttpRequest({
|
|
75
67
|
protocol,
|
|
76
68
|
hostname,
|
|
@@ -88,9 +80,9 @@ export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
|
88
80
|
};
|
|
89
81
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLoggingConfiguration";
|
|
90
82
|
let body;
|
|
91
|
-
body = JSON.stringify({
|
|
92
|
-
|
|
93
|
-
});
|
|
83
|
+
body = JSON.stringify(take(input, {
|
|
84
|
+
identifier: [],
|
|
85
|
+
}));
|
|
94
86
|
return new __HttpRequest({
|
|
95
87
|
protocol,
|
|
96
88
|
hostname,
|
|
@@ -108,11 +100,11 @@ export const se_DeleteMessageCommand = async (input, context) => {
|
|
|
108
100
|
};
|
|
109
101
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteMessage";
|
|
110
102
|
let body;
|
|
111
|
-
body = JSON.stringify({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
});
|
|
103
|
+
body = JSON.stringify(take(input, {
|
|
104
|
+
id: [],
|
|
105
|
+
reason: [],
|
|
106
|
+
roomIdentifier: [],
|
|
107
|
+
}));
|
|
116
108
|
return new __HttpRequest({
|
|
117
109
|
protocol,
|
|
118
110
|
hostname,
|
|
@@ -130,9 +122,9 @@ export const se_DeleteRoomCommand = async (input, context) => {
|
|
|
130
122
|
};
|
|
131
123
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRoom";
|
|
132
124
|
let body;
|
|
133
|
-
body = JSON.stringify({
|
|
134
|
-
|
|
135
|
-
});
|
|
125
|
+
body = JSON.stringify(take(input, {
|
|
126
|
+
identifier: [],
|
|
127
|
+
}));
|
|
136
128
|
return new __HttpRequest({
|
|
137
129
|
protocol,
|
|
138
130
|
hostname,
|
|
@@ -150,11 +142,11 @@ export const se_DisconnectUserCommand = async (input, context) => {
|
|
|
150
142
|
};
|
|
151
143
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectUser";
|
|
152
144
|
let body;
|
|
153
|
-
body = JSON.stringify({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
});
|
|
145
|
+
body = JSON.stringify(take(input, {
|
|
146
|
+
reason: [],
|
|
147
|
+
roomIdentifier: [],
|
|
148
|
+
userId: [],
|
|
149
|
+
}));
|
|
158
150
|
return new __HttpRequest({
|
|
159
151
|
protocol,
|
|
160
152
|
hostname,
|
|
@@ -172,9 +164,9 @@ export const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
|
172
164
|
};
|
|
173
165
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLoggingConfiguration";
|
|
174
166
|
let body;
|
|
175
|
-
body = JSON.stringify({
|
|
176
|
-
|
|
177
|
-
});
|
|
167
|
+
body = JSON.stringify(take(input, {
|
|
168
|
+
identifier: [],
|
|
169
|
+
}));
|
|
178
170
|
return new __HttpRequest({
|
|
179
171
|
protocol,
|
|
180
172
|
hostname,
|
|
@@ -192,9 +184,9 @@ export const se_GetRoomCommand = async (input, context) => {
|
|
|
192
184
|
};
|
|
193
185
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetRoom";
|
|
194
186
|
let body;
|
|
195
|
-
body = JSON.stringify({
|
|
196
|
-
|
|
197
|
-
});
|
|
187
|
+
body = JSON.stringify(take(input, {
|
|
188
|
+
identifier: [],
|
|
189
|
+
}));
|
|
198
190
|
return new __HttpRequest({
|
|
199
191
|
protocol,
|
|
200
192
|
hostname,
|
|
@@ -212,10 +204,10 @@ export const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
|
212
204
|
};
|
|
213
205
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLoggingConfigurations";
|
|
214
206
|
let body;
|
|
215
|
-
body = JSON.stringify({
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
});
|
|
207
|
+
body = JSON.stringify(take(input, {
|
|
208
|
+
maxResults: [],
|
|
209
|
+
nextToken: [],
|
|
210
|
+
}));
|
|
219
211
|
return new __HttpRequest({
|
|
220
212
|
protocol,
|
|
221
213
|
hostname,
|
|
@@ -233,15 +225,13 @@ export const se_ListRoomsCommand = async (input, context) => {
|
|
|
233
225
|
};
|
|
234
226
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListRooms";
|
|
235
227
|
let body;
|
|
236
|
-
body = JSON.stringify({
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
244
|
-
});
|
|
228
|
+
body = JSON.stringify(take(input, {
|
|
229
|
+
loggingConfigurationIdentifier: [],
|
|
230
|
+
maxResults: [],
|
|
231
|
+
messageReviewHandlerUri: [],
|
|
232
|
+
name: [],
|
|
233
|
+
nextToken: [],
|
|
234
|
+
}));
|
|
245
235
|
return new __HttpRequest({
|
|
246
236
|
protocol,
|
|
247
237
|
hostname,
|
|
@@ -275,11 +265,11 @@ export const se_SendEventCommand = async (input, context) => {
|
|
|
275
265
|
};
|
|
276
266
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent";
|
|
277
267
|
let body;
|
|
278
|
-
body = JSON.stringify({
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
});
|
|
268
|
+
body = JSON.stringify(take(input, {
|
|
269
|
+
attributes: (_) => _json(_),
|
|
270
|
+
eventName: [],
|
|
271
|
+
roomIdentifier: [],
|
|
272
|
+
}));
|
|
283
273
|
return new __HttpRequest({
|
|
284
274
|
protocol,
|
|
285
275
|
hostname,
|
|
@@ -298,9 +288,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
298
288
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
299
289
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
300
290
|
let body;
|
|
301
|
-
body = JSON.stringify({
|
|
302
|
-
|
|
303
|
-
});
|
|
291
|
+
body = JSON.stringify(take(input, {
|
|
292
|
+
tags: (_) => _json(_),
|
|
293
|
+
}));
|
|
304
294
|
return new __HttpRequest({
|
|
305
295
|
protocol,
|
|
306
296
|
hostname,
|
|
@@ -341,13 +331,11 @@ export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
|
341
331
|
};
|
|
342
332
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLoggingConfiguration";
|
|
343
333
|
let body;
|
|
344
|
-
body = JSON.stringify({
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
...(input.name != null && { name: input.name }),
|
|
350
|
-
});
|
|
334
|
+
body = JSON.stringify(take(input, {
|
|
335
|
+
destinationConfiguration: (_) => _json(_),
|
|
336
|
+
identifier: [],
|
|
337
|
+
name: [],
|
|
338
|
+
}));
|
|
351
339
|
return new __HttpRequest({
|
|
352
340
|
protocol,
|
|
353
341
|
hostname,
|
|
@@ -365,20 +353,14 @@ export const se_UpdateRoomCommand = async (input, context) => {
|
|
|
365
353
|
};
|
|
366
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateRoom";
|
|
367
355
|
let body;
|
|
368
|
-
body = JSON.stringify({
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}),
|
|
377
|
-
...(input.messageReviewHandler != null && {
|
|
378
|
-
messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
|
|
379
|
-
}),
|
|
380
|
-
...(input.name != null && { name: input.name }),
|
|
381
|
-
});
|
|
356
|
+
body = JSON.stringify(take(input, {
|
|
357
|
+
identifier: [],
|
|
358
|
+
loggingConfigurationIdentifiers: (_) => _json(_),
|
|
359
|
+
maximumMessageLength: [],
|
|
360
|
+
maximumMessageRatePerSecond: [],
|
|
361
|
+
messageReviewHandler: (_) => _json(_),
|
|
362
|
+
name: [],
|
|
363
|
+
}));
|
|
382
364
|
return new __HttpRequest({
|
|
383
365
|
protocol,
|
|
384
366
|
hostname,
|
|
@@ -397,15 +379,12 @@ export const de_CreateChatTokenCommand = async (output, context) => {
|
|
|
397
379
|
$metadata: deserializeMetadata(output),
|
|
398
380
|
});
|
|
399
381
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if (data.tokenExpirationTime != null) {
|
|
407
|
-
contents.tokenExpirationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.tokenExpirationTime));
|
|
408
|
-
}
|
|
382
|
+
const doc = take(data, {
|
|
383
|
+
sessionExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
384
|
+
token: __expectString,
|
|
385
|
+
tokenExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
386
|
+
});
|
|
387
|
+
Object.assign(contents, doc);
|
|
409
388
|
return contents;
|
|
410
389
|
};
|
|
411
390
|
const de_CreateChatTokenCommandError = async (output, context) => {
|
|
@@ -429,10 +408,9 @@ const de_CreateChatTokenCommandError = async (output, context) => {
|
|
|
429
408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
430
409
|
default:
|
|
431
410
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
throwDefaultError({
|
|
411
|
+
return throwDefaultError({
|
|
433
412
|
output,
|
|
434
413
|
parsedBody,
|
|
435
|
-
exceptionCtor: __BaseException,
|
|
436
414
|
errorCode,
|
|
437
415
|
});
|
|
438
416
|
}
|
|
@@ -445,30 +423,17 @@ export const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
|
445
423
|
$metadata: deserializeMetadata(output),
|
|
446
424
|
});
|
|
447
425
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
if (data.name != null) {
|
|
461
|
-
contents.name = __expectString(data.name);
|
|
462
|
-
}
|
|
463
|
-
if (data.state != null) {
|
|
464
|
-
contents.state = __expectString(data.state);
|
|
465
|
-
}
|
|
466
|
-
if (data.tags != null) {
|
|
467
|
-
contents.tags = de_Tags(data.tags, context);
|
|
468
|
-
}
|
|
469
|
-
if (data.updateTime != null) {
|
|
470
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
471
|
-
}
|
|
426
|
+
const doc = take(data, {
|
|
427
|
+
arn: __expectString,
|
|
428
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
429
|
+
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
430
|
+
id: __expectString,
|
|
431
|
+
name: __expectString,
|
|
432
|
+
state: __expectString,
|
|
433
|
+
tags: _json,
|
|
434
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
435
|
+
});
|
|
436
|
+
Object.assign(contents, doc);
|
|
472
437
|
return contents;
|
|
473
438
|
};
|
|
474
439
|
const de_CreateLoggingConfigurationCommandError = async (output, context) => {
|
|
@@ -498,10 +463,9 @@ const de_CreateLoggingConfigurationCommandError = async (output, context) => {
|
|
|
498
463
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
499
464
|
default:
|
|
500
465
|
const parsedBody = parsedOutput.body;
|
|
501
|
-
throwDefaultError({
|
|
466
|
+
return throwDefaultError({
|
|
502
467
|
output,
|
|
503
468
|
parsedBody,
|
|
504
|
-
exceptionCtor: __BaseException,
|
|
505
469
|
errorCode,
|
|
506
470
|
});
|
|
507
471
|
}
|
|
@@ -514,36 +478,19 @@ export const de_CreateRoomCommand = async (output, context) => {
|
|
|
514
478
|
$metadata: deserializeMetadata(output),
|
|
515
479
|
});
|
|
516
480
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
531
|
-
}
|
|
532
|
-
if (data.maximumMessageRatePerSecond != null) {
|
|
533
|
-
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
534
|
-
}
|
|
535
|
-
if (data.messageReviewHandler != null) {
|
|
536
|
-
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
537
|
-
}
|
|
538
|
-
if (data.name != null) {
|
|
539
|
-
contents.name = __expectString(data.name);
|
|
540
|
-
}
|
|
541
|
-
if (data.tags != null) {
|
|
542
|
-
contents.tags = de_Tags(data.tags, context);
|
|
543
|
-
}
|
|
544
|
-
if (data.updateTime != null) {
|
|
545
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
546
|
-
}
|
|
481
|
+
const doc = take(data, {
|
|
482
|
+
arn: __expectString,
|
|
483
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
484
|
+
id: __expectString,
|
|
485
|
+
loggingConfigurationIdentifiers: _json,
|
|
486
|
+
maximumMessageLength: __expectInt32,
|
|
487
|
+
maximumMessageRatePerSecond: __expectInt32,
|
|
488
|
+
messageReviewHandler: _json,
|
|
489
|
+
name: __expectString,
|
|
490
|
+
tags: _json,
|
|
491
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
492
|
+
});
|
|
493
|
+
Object.assign(contents, doc);
|
|
547
494
|
return contents;
|
|
548
495
|
};
|
|
549
496
|
const de_CreateRoomCommandError = async (output, context) => {
|
|
@@ -573,10 +520,9 @@ const de_CreateRoomCommandError = async (output, context) => {
|
|
|
573
520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
521
|
default:
|
|
575
522
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
throwDefaultError({
|
|
523
|
+
return throwDefaultError({
|
|
577
524
|
output,
|
|
578
525
|
parsedBody,
|
|
579
|
-
exceptionCtor: __BaseException,
|
|
580
526
|
errorCode,
|
|
581
527
|
});
|
|
582
528
|
}
|
|
@@ -615,10 +561,9 @@ const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
|
615
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
616
562
|
default:
|
|
617
563
|
const parsedBody = parsedOutput.body;
|
|
618
|
-
throwDefaultError({
|
|
564
|
+
return throwDefaultError({
|
|
619
565
|
output,
|
|
620
566
|
parsedBody,
|
|
621
|
-
exceptionCtor: __BaseException,
|
|
622
567
|
errorCode,
|
|
623
568
|
});
|
|
624
569
|
}
|
|
@@ -631,9 +576,10 @@ export const de_DeleteMessageCommand = async (output, context) => {
|
|
|
631
576
|
$metadata: deserializeMetadata(output),
|
|
632
577
|
});
|
|
633
578
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}
|
|
579
|
+
const doc = take(data, {
|
|
580
|
+
id: __expectString,
|
|
581
|
+
});
|
|
582
|
+
Object.assign(contents, doc);
|
|
637
583
|
return contents;
|
|
638
584
|
};
|
|
639
585
|
const de_DeleteMessageCommandError = async (output, context) => {
|
|
@@ -660,10 +606,9 @@ const de_DeleteMessageCommandError = async (output, context) => {
|
|
|
660
606
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
661
607
|
default:
|
|
662
608
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
609
|
+
return throwDefaultError({
|
|
664
610
|
output,
|
|
665
611
|
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
612
|
errorCode,
|
|
668
613
|
});
|
|
669
614
|
}
|
|
@@ -699,10 +644,9 @@ const de_DeleteRoomCommandError = async (output, context) => {
|
|
|
699
644
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
645
|
default:
|
|
701
646
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
647
|
+
return throwDefaultError({
|
|
703
648
|
output,
|
|
704
649
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
650
|
errorCode,
|
|
707
651
|
});
|
|
708
652
|
}
|
|
@@ -741,10 +685,9 @@ const de_DisconnectUserCommandError = async (output, context) => {
|
|
|
741
685
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
742
686
|
default:
|
|
743
687
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
throwDefaultError({
|
|
688
|
+
return throwDefaultError({
|
|
745
689
|
output,
|
|
746
690
|
parsedBody,
|
|
747
|
-
exceptionCtor: __BaseException,
|
|
748
691
|
errorCode,
|
|
749
692
|
});
|
|
750
693
|
}
|
|
@@ -757,30 +700,17 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
|
757
700
|
$metadata: deserializeMetadata(output),
|
|
758
701
|
});
|
|
759
702
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
772
|
-
if (data.name != null) {
|
|
773
|
-
contents.name = __expectString(data.name);
|
|
774
|
-
}
|
|
775
|
-
if (data.state != null) {
|
|
776
|
-
contents.state = __expectString(data.state);
|
|
777
|
-
}
|
|
778
|
-
if (data.tags != null) {
|
|
779
|
-
contents.tags = de_Tags(data.tags, context);
|
|
780
|
-
}
|
|
781
|
-
if (data.updateTime != null) {
|
|
782
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
783
|
-
}
|
|
703
|
+
const doc = take(data, {
|
|
704
|
+
arn: __expectString,
|
|
705
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
706
|
+
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
707
|
+
id: __expectString,
|
|
708
|
+
name: __expectString,
|
|
709
|
+
state: __expectString,
|
|
710
|
+
tags: _json,
|
|
711
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
712
|
+
});
|
|
713
|
+
Object.assign(contents, doc);
|
|
784
714
|
return contents;
|
|
785
715
|
};
|
|
786
716
|
const de_GetLoggingConfigurationCommandError = async (output, context) => {
|
|
@@ -801,10 +731,9 @@ const de_GetLoggingConfigurationCommandError = async (output, context) => {
|
|
|
801
731
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
802
732
|
default:
|
|
803
733
|
const parsedBody = parsedOutput.body;
|
|
804
|
-
throwDefaultError({
|
|
734
|
+
return throwDefaultError({
|
|
805
735
|
output,
|
|
806
736
|
parsedBody,
|
|
807
|
-
exceptionCtor: __BaseException,
|
|
808
737
|
errorCode,
|
|
809
738
|
});
|
|
810
739
|
}
|
|
@@ -817,36 +746,19 @@ export const de_GetRoomCommand = async (output, context) => {
|
|
|
817
746
|
$metadata: deserializeMetadata(output),
|
|
818
747
|
});
|
|
819
748
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
834
|
-
}
|
|
835
|
-
if (data.maximumMessageRatePerSecond != null) {
|
|
836
|
-
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
837
|
-
}
|
|
838
|
-
if (data.messageReviewHandler != null) {
|
|
839
|
-
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
840
|
-
}
|
|
841
|
-
if (data.name != null) {
|
|
842
|
-
contents.name = __expectString(data.name);
|
|
843
|
-
}
|
|
844
|
-
if (data.tags != null) {
|
|
845
|
-
contents.tags = de_Tags(data.tags, context);
|
|
846
|
-
}
|
|
847
|
-
if (data.updateTime != null) {
|
|
848
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
849
|
-
}
|
|
749
|
+
const doc = take(data, {
|
|
750
|
+
arn: __expectString,
|
|
751
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
752
|
+
id: __expectString,
|
|
753
|
+
loggingConfigurationIdentifiers: _json,
|
|
754
|
+
maximumMessageLength: __expectInt32,
|
|
755
|
+
maximumMessageRatePerSecond: __expectInt32,
|
|
756
|
+
messageReviewHandler: _json,
|
|
757
|
+
name: __expectString,
|
|
758
|
+
tags: _json,
|
|
759
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
850
762
|
return contents;
|
|
851
763
|
};
|
|
852
764
|
const de_GetRoomCommandError = async (output, context) => {
|
|
@@ -867,10 +779,9 @@ const de_GetRoomCommandError = async (output, context) => {
|
|
|
867
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
780
|
default:
|
|
869
781
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
throwDefaultError({
|
|
782
|
+
return throwDefaultError({
|
|
871
783
|
output,
|
|
872
784
|
parsedBody,
|
|
873
|
-
exceptionCtor: __BaseException,
|
|
874
785
|
errorCode,
|
|
875
786
|
});
|
|
876
787
|
}
|
|
@@ -883,12 +794,11 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
|
883
794
|
$metadata: deserializeMetadata(output),
|
|
884
795
|
});
|
|
885
796
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
}
|
|
797
|
+
const doc = take(data, {
|
|
798
|
+
loggingConfigurations: (_) => de_LoggingConfigurationList(_, context),
|
|
799
|
+
nextToken: __expectString,
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
892
802
|
return contents;
|
|
893
803
|
};
|
|
894
804
|
const de_ListLoggingConfigurationsCommandError = async (output, context) => {
|
|
@@ -906,10 +816,9 @@ const de_ListLoggingConfigurationsCommandError = async (output, context) => {
|
|
|
906
816
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
907
817
|
default:
|
|
908
818
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
throwDefaultError({
|
|
819
|
+
return throwDefaultError({
|
|
910
820
|
output,
|
|
911
821
|
parsedBody,
|
|
912
|
-
exceptionCtor: __BaseException,
|
|
913
822
|
errorCode,
|
|
914
823
|
});
|
|
915
824
|
}
|
|
@@ -922,12 +831,11 @@ export const de_ListRoomsCommand = async (output, context) => {
|
|
|
922
831
|
$metadata: deserializeMetadata(output),
|
|
923
832
|
});
|
|
924
833
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
834
|
+
const doc = take(data, {
|
|
835
|
+
nextToken: __expectString,
|
|
836
|
+
rooms: (_) => de_RoomList(_, context),
|
|
837
|
+
});
|
|
838
|
+
Object.assign(contents, doc);
|
|
931
839
|
return contents;
|
|
932
840
|
};
|
|
933
841
|
const de_ListRoomsCommandError = async (output, context) => {
|
|
@@ -948,10 +856,9 @@ const de_ListRoomsCommandError = async (output, context) => {
|
|
|
948
856
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
949
857
|
default:
|
|
950
858
|
const parsedBody = parsedOutput.body;
|
|
951
|
-
throwDefaultError({
|
|
859
|
+
return throwDefaultError({
|
|
952
860
|
output,
|
|
953
861
|
parsedBody,
|
|
954
|
-
exceptionCtor: __BaseException,
|
|
955
862
|
errorCode,
|
|
956
863
|
});
|
|
957
864
|
}
|
|
@@ -964,9 +871,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
964
871
|
$metadata: deserializeMetadata(output),
|
|
965
872
|
});
|
|
966
873
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
}
|
|
874
|
+
const doc = take(data, {
|
|
875
|
+
tags: _json,
|
|
876
|
+
});
|
|
877
|
+
Object.assign(contents, doc);
|
|
970
878
|
return contents;
|
|
971
879
|
};
|
|
972
880
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -987,10 +895,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
987
895
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
988
896
|
default:
|
|
989
897
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
throwDefaultError({
|
|
898
|
+
return throwDefaultError({
|
|
991
899
|
output,
|
|
992
900
|
parsedBody,
|
|
993
|
-
exceptionCtor: __BaseException,
|
|
994
901
|
errorCode,
|
|
995
902
|
});
|
|
996
903
|
}
|
|
@@ -1003,9 +910,10 @@ export const de_SendEventCommand = async (output, context) => {
|
|
|
1003
910
|
$metadata: deserializeMetadata(output),
|
|
1004
911
|
});
|
|
1005
912
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}
|
|
913
|
+
const doc = take(data, {
|
|
914
|
+
id: __expectString,
|
|
915
|
+
});
|
|
916
|
+
Object.assign(contents, doc);
|
|
1009
917
|
return contents;
|
|
1010
918
|
};
|
|
1011
919
|
const de_SendEventCommandError = async (output, context) => {
|
|
@@ -1032,10 +940,9 @@ const de_SendEventCommandError = async (output, context) => {
|
|
|
1032
940
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
941
|
default:
|
|
1034
942
|
const parsedBody = parsedOutput.body;
|
|
1035
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
1036
944
|
output,
|
|
1037
945
|
parsedBody,
|
|
1038
|
-
exceptionCtor: __BaseException,
|
|
1039
946
|
errorCode,
|
|
1040
947
|
});
|
|
1041
948
|
}
|
|
@@ -1068,10 +975,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1068
975
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
976
|
default:
|
|
1070
977
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
throwDefaultError({
|
|
978
|
+
return throwDefaultError({
|
|
1072
979
|
output,
|
|
1073
980
|
parsedBody,
|
|
1074
|
-
exceptionCtor: __BaseException,
|
|
1075
981
|
errorCode,
|
|
1076
982
|
});
|
|
1077
983
|
}
|
|
@@ -1104,10 +1010,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1104
1010
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
1011
|
default:
|
|
1106
1012
|
const parsedBody = parsedOutput.body;
|
|
1107
|
-
throwDefaultError({
|
|
1013
|
+
return throwDefaultError({
|
|
1108
1014
|
output,
|
|
1109
1015
|
parsedBody,
|
|
1110
|
-
exceptionCtor: __BaseException,
|
|
1111
1016
|
errorCode,
|
|
1112
1017
|
});
|
|
1113
1018
|
}
|
|
@@ -1120,30 +1025,17 @@ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
|
1120
1025
|
$metadata: deserializeMetadata(output),
|
|
1121
1026
|
});
|
|
1122
1027
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1135
|
-
if (data.name != null) {
|
|
1136
|
-
contents.name = __expectString(data.name);
|
|
1137
|
-
}
|
|
1138
|
-
if (data.state != null) {
|
|
1139
|
-
contents.state = __expectString(data.state);
|
|
1140
|
-
}
|
|
1141
|
-
if (data.tags != null) {
|
|
1142
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1143
|
-
}
|
|
1144
|
-
if (data.updateTime != null) {
|
|
1145
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
1146
|
-
}
|
|
1028
|
+
const doc = take(data, {
|
|
1029
|
+
arn: __expectString,
|
|
1030
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1031
|
+
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
1032
|
+
id: __expectString,
|
|
1033
|
+
name: __expectString,
|
|
1034
|
+
state: __expectString,
|
|
1035
|
+
tags: _json,
|
|
1036
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1037
|
+
});
|
|
1038
|
+
Object.assign(contents, doc);
|
|
1147
1039
|
return contents;
|
|
1148
1040
|
};
|
|
1149
1041
|
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
@@ -1170,10 +1062,9 @@ const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
|
1170
1062
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1171
1063
|
default:
|
|
1172
1064
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1174
1066
|
output,
|
|
1175
1067
|
parsedBody,
|
|
1176
|
-
exceptionCtor: __BaseException,
|
|
1177
1068
|
errorCode,
|
|
1178
1069
|
});
|
|
1179
1070
|
}
|
|
@@ -1186,36 +1077,19 @@ export const de_UpdateRoomCommand = async (output, context) => {
|
|
|
1186
1077
|
$metadata: deserializeMetadata(output),
|
|
1187
1078
|
});
|
|
1188
1079
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
1203
|
-
}
|
|
1204
|
-
if (data.maximumMessageRatePerSecond != null) {
|
|
1205
|
-
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
1206
|
-
}
|
|
1207
|
-
if (data.messageReviewHandler != null) {
|
|
1208
|
-
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
1209
|
-
}
|
|
1210
|
-
if (data.name != null) {
|
|
1211
|
-
contents.name = __expectString(data.name);
|
|
1212
|
-
}
|
|
1213
|
-
if (data.tags != null) {
|
|
1214
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1215
|
-
}
|
|
1216
|
-
if (data.updateTime != null) {
|
|
1217
|
-
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
1218
|
-
}
|
|
1080
|
+
const doc = take(data, {
|
|
1081
|
+
arn: __expectString,
|
|
1082
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1083
|
+
id: __expectString,
|
|
1084
|
+
loggingConfigurationIdentifiers: _json,
|
|
1085
|
+
maximumMessageLength: __expectInt32,
|
|
1086
|
+
maximumMessageRatePerSecond: __expectInt32,
|
|
1087
|
+
messageReviewHandler: _json,
|
|
1088
|
+
name: __expectString,
|
|
1089
|
+
tags: _json,
|
|
1090
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1091
|
+
});
|
|
1092
|
+
Object.assign(contents, doc);
|
|
1219
1093
|
return contents;
|
|
1220
1094
|
};
|
|
1221
1095
|
const de_UpdateRoomCommandError = async (output, context) => {
|
|
@@ -1239,21 +1113,21 @@ const de_UpdateRoomCommandError = async (output, context) => {
|
|
|
1239
1113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1240
1114
|
default:
|
|
1241
1115
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1243
1117
|
output,
|
|
1244
1118
|
parsedBody,
|
|
1245
|
-
exceptionCtor: __BaseException,
|
|
1246
1119
|
errorCode,
|
|
1247
1120
|
});
|
|
1248
1121
|
}
|
|
1249
1122
|
};
|
|
1250
|
-
const
|
|
1123
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1251
1124
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1252
1125
|
const contents = map({});
|
|
1253
1126
|
const data = parsedOutput.body;
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
}
|
|
1127
|
+
const doc = take(data, {
|
|
1128
|
+
message: __expectString,
|
|
1129
|
+
});
|
|
1130
|
+
Object.assign(contents, doc);
|
|
1257
1131
|
const exception = new AccessDeniedException({
|
|
1258
1132
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1259
1133
|
...contents,
|
|
@@ -1263,15 +1137,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1263
1137
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1264
1138
|
const contents = map({});
|
|
1265
1139
|
const data = parsedOutput.body;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
if (data.resourceType != null) {
|
|
1273
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1274
|
-
}
|
|
1140
|
+
const doc = take(data, {
|
|
1141
|
+
message: __expectString,
|
|
1142
|
+
resourceId: __expectString,
|
|
1143
|
+
resourceType: __expectString,
|
|
1144
|
+
});
|
|
1145
|
+
Object.assign(contents, doc);
|
|
1275
1146
|
const exception = new ConflictException({
|
|
1276
1147
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1277
1148
|
...contents,
|
|
@@ -1281,9 +1152,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1281
1152
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1282
1153
|
const contents = map({});
|
|
1283
1154
|
const data = parsedOutput.body;
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1155
|
+
const doc = take(data, {
|
|
1156
|
+
message: __expectString,
|
|
1157
|
+
});
|
|
1158
|
+
Object.assign(contents, doc);
|
|
1287
1159
|
const exception = new InternalServerException({
|
|
1288
1160
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1289
1161
|
...contents,
|
|
@@ -1293,9 +1165,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1293
1165
|
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
1294
1166
|
const contents = map({});
|
|
1295
1167
|
const data = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1168
|
+
const doc = take(data, {
|
|
1169
|
+
message: __expectString,
|
|
1170
|
+
});
|
|
1171
|
+
Object.assign(contents, doc);
|
|
1299
1172
|
const exception = new PendingVerification({
|
|
1300
1173
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1301
1174
|
...contents,
|
|
@@ -1305,15 +1178,12 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
|
1305
1178
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1306
1179
|
const contents = map({});
|
|
1307
1180
|
const data = parsedOutput.body;
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
if (data.resourceType != null) {
|
|
1315
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1316
|
-
}
|
|
1181
|
+
const doc = take(data, {
|
|
1182
|
+
message: __expectString,
|
|
1183
|
+
resourceId: __expectString,
|
|
1184
|
+
resourceType: __expectString,
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1317
1187
|
const exception = new ResourceNotFoundException({
|
|
1318
1188
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
1189
|
...contents,
|
|
@@ -1323,18 +1193,13 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1323
1193
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1324
1194
|
const contents = map({});
|
|
1325
1195
|
const data = parsedOutput.body;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
contents.resourceId = __expectString(data.resourceId);
|
|
1334
|
-
}
|
|
1335
|
-
if (data.resourceType != null) {
|
|
1336
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1337
|
-
}
|
|
1196
|
+
const doc = take(data, {
|
|
1197
|
+
limit: __expectInt32,
|
|
1198
|
+
message: __expectString,
|
|
1199
|
+
resourceId: __expectString,
|
|
1200
|
+
resourceType: __expectString,
|
|
1201
|
+
});
|
|
1202
|
+
Object.assign(contents, doc);
|
|
1338
1203
|
const exception = new ServiceQuotaExceededException({
|
|
1339
1204
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1340
1205
|
...contents,
|
|
@@ -1344,18 +1209,13 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1344
1209
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1345
1210
|
const contents = map({});
|
|
1346
1211
|
const data = parsedOutput.body;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
contents.resourceId = __expectString(data.resourceId);
|
|
1355
|
-
}
|
|
1356
|
-
if (data.resourceType != null) {
|
|
1357
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1358
|
-
}
|
|
1212
|
+
const doc = take(data, {
|
|
1213
|
+
limit: __expectInt32,
|
|
1214
|
+
message: __expectString,
|
|
1215
|
+
resourceId: __expectString,
|
|
1216
|
+
resourceType: __expectString,
|
|
1217
|
+
});
|
|
1218
|
+
Object.assign(contents, doc);
|
|
1359
1219
|
const exception = new ThrottlingException({
|
|
1360
1220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
1221
|
...contents,
|
|
@@ -1365,216 +1225,57 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1365
1225
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1366
1226
|
const contents = map({});
|
|
1367
1227
|
const data = parsedOutput.body;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
if (data.reason != null) {
|
|
1375
|
-
contents.reason = __expectString(data.reason);
|
|
1376
|
-
}
|
|
1228
|
+
const doc = take(data, {
|
|
1229
|
+
fieldList: _json,
|
|
1230
|
+
message: __expectString,
|
|
1231
|
+
reason: __expectString,
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1377
1234
|
const exception = new ValidationException({
|
|
1378
1235
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
1236
|
...contents,
|
|
1380
1237
|
});
|
|
1381
1238
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1382
1239
|
};
|
|
1383
|
-
const se_ChatTokenAttributes = (input, context) => {
|
|
1384
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1385
|
-
if (value === null) {
|
|
1386
|
-
return acc;
|
|
1387
|
-
}
|
|
1388
|
-
acc[key] = value;
|
|
1389
|
-
return acc;
|
|
1390
|
-
}, {});
|
|
1391
|
-
};
|
|
1392
|
-
const se_ChatTokenCapabilities = (input, context) => {
|
|
1393
|
-
return input
|
|
1394
|
-
.filter((e) => e != null)
|
|
1395
|
-
.map((entry) => {
|
|
1396
|
-
return entry;
|
|
1397
|
-
});
|
|
1398
|
-
};
|
|
1399
|
-
const se_CloudWatchLogsDestinationConfiguration = (input, context) => {
|
|
1400
|
-
return {
|
|
1401
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
1402
|
-
};
|
|
1403
|
-
};
|
|
1404
|
-
const se_DestinationConfiguration = (input, context) => {
|
|
1405
|
-
return DestinationConfiguration.visit(input, {
|
|
1406
|
-
cloudWatchLogs: (value) => ({ cloudWatchLogs: se_CloudWatchLogsDestinationConfiguration(value, context) }),
|
|
1407
|
-
firehose: (value) => ({ firehose: se_FirehoseDestinationConfiguration(value, context) }),
|
|
1408
|
-
s3: (value) => ({ s3: se_S3DestinationConfiguration(value, context) }),
|
|
1409
|
-
_: (name, value) => ({ name: value }),
|
|
1410
|
-
});
|
|
1411
|
-
};
|
|
1412
|
-
const se_EventAttributes = (input, context) => {
|
|
1413
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1414
|
-
if (value === null) {
|
|
1415
|
-
return acc;
|
|
1416
|
-
}
|
|
1417
|
-
acc[key] = value;
|
|
1418
|
-
return acc;
|
|
1419
|
-
}, {});
|
|
1420
|
-
};
|
|
1421
|
-
const se_FirehoseDestinationConfiguration = (input, context) => {
|
|
1422
|
-
return {
|
|
1423
|
-
...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
const se_LoggingConfigurationIdentifierList = (input, context) => {
|
|
1427
|
-
return input
|
|
1428
|
-
.filter((e) => e != null)
|
|
1429
|
-
.map((entry) => {
|
|
1430
|
-
return entry;
|
|
1431
|
-
});
|
|
1432
|
-
};
|
|
1433
|
-
const se_MessageReviewHandler = (input, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
...(input.fallbackResult != null && { fallbackResult: input.fallbackResult }),
|
|
1436
|
-
...(input.uri != null && { uri: input.uri }),
|
|
1437
|
-
};
|
|
1438
|
-
};
|
|
1439
|
-
const se_S3DestinationConfiguration = (input, context) => {
|
|
1440
|
-
return {
|
|
1441
|
-
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
const se_Tags = (input, context) => {
|
|
1445
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1446
|
-
if (value === null) {
|
|
1447
|
-
return acc;
|
|
1448
|
-
}
|
|
1449
|
-
acc[key] = value;
|
|
1450
|
-
return acc;
|
|
1451
|
-
}, {});
|
|
1452
|
-
};
|
|
1453
|
-
const de_CloudWatchLogsDestinationConfiguration = (output, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
logGroupName: __expectString(output.logGroupName),
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
const de_DestinationConfiguration = (output, context) => {
|
|
1459
|
-
if (output.cloudWatchLogs != null) {
|
|
1460
|
-
return {
|
|
1461
|
-
cloudWatchLogs: de_CloudWatchLogsDestinationConfiguration(output.cloudWatchLogs, context),
|
|
1462
|
-
};
|
|
1463
|
-
}
|
|
1464
|
-
if (output.firehose != null) {
|
|
1465
|
-
return {
|
|
1466
|
-
firehose: de_FirehoseDestinationConfiguration(output.firehose, context),
|
|
1467
|
-
};
|
|
1468
|
-
}
|
|
1469
|
-
if (output.s3 != null) {
|
|
1470
|
-
return {
|
|
1471
|
-
s3: de_S3DestinationConfiguration(output.s3, context),
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1475
|
-
};
|
|
1476
|
-
const de_FirehoseDestinationConfiguration = (output, context) => {
|
|
1477
|
-
return {
|
|
1478
|
-
deliveryStreamName: __expectString(output.deliveryStreamName),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const de_LoggingConfigurationIdentifierList = (output, context) => {
|
|
1482
|
-
const retVal = (output || [])
|
|
1483
|
-
.filter((e) => e != null)
|
|
1484
|
-
.map((entry) => {
|
|
1485
|
-
if (entry === null) {
|
|
1486
|
-
return null;
|
|
1487
|
-
}
|
|
1488
|
-
return __expectString(entry);
|
|
1489
|
-
});
|
|
1490
|
-
return retVal;
|
|
1491
|
-
};
|
|
1492
1240
|
const de_LoggingConfigurationList = (output, context) => {
|
|
1493
1241
|
const retVal = (output || [])
|
|
1494
1242
|
.filter((e) => e != null)
|
|
1495
1243
|
.map((entry) => {
|
|
1496
|
-
if (entry === null) {
|
|
1497
|
-
return null;
|
|
1498
|
-
}
|
|
1499
1244
|
return de_LoggingConfigurationSummary(entry, context);
|
|
1500
1245
|
});
|
|
1501
1246
|
return retVal;
|
|
1502
1247
|
};
|
|
1503
1248
|
const de_LoggingConfigurationSummary = (output, context) => {
|
|
1504
|
-
return {
|
|
1505
|
-
arn: __expectString
|
|
1506
|
-
createTime:
|
|
1507
|
-
destinationConfiguration:
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
const de_MessageReviewHandler = (output, context) => {
|
|
1518
|
-
return {
|
|
1519
|
-
fallbackResult: __expectString(output.fallbackResult),
|
|
1520
|
-
uri: __expectString(output.uri),
|
|
1521
|
-
};
|
|
1249
|
+
return take(output, {
|
|
1250
|
+
arn: __expectString,
|
|
1251
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1252
|
+
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
1253
|
+
id: __expectString,
|
|
1254
|
+
name: __expectString,
|
|
1255
|
+
state: __expectString,
|
|
1256
|
+
tags: _json,
|
|
1257
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1258
|
+
});
|
|
1522
1259
|
};
|
|
1523
1260
|
const de_RoomList = (output, context) => {
|
|
1524
1261
|
const retVal = (output || [])
|
|
1525
1262
|
.filter((e) => e != null)
|
|
1526
1263
|
.map((entry) => {
|
|
1527
|
-
if (entry === null) {
|
|
1528
|
-
return null;
|
|
1529
|
-
}
|
|
1530
1264
|
return de_RoomSummary(entry, context);
|
|
1531
1265
|
});
|
|
1532
1266
|
return retVal;
|
|
1533
1267
|
};
|
|
1534
1268
|
const de_RoomSummary = (output, context) => {
|
|
1535
|
-
return {
|
|
1536
|
-
arn: __expectString
|
|
1537
|
-
createTime:
|
|
1538
|
-
id: __expectString
|
|
1539
|
-
loggingConfigurationIdentifiers:
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1545
|
-
updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
const de_S3DestinationConfiguration = (output, context) => {
|
|
1549
|
-
return {
|
|
1550
|
-
bucketName: __expectString(output.bucketName),
|
|
1551
|
-
};
|
|
1552
|
-
};
|
|
1553
|
-
const de_Tags = (output, context) => {
|
|
1554
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1555
|
-
if (value === null) {
|
|
1556
|
-
return acc;
|
|
1557
|
-
}
|
|
1558
|
-
acc[key] = __expectString(value);
|
|
1559
|
-
return acc;
|
|
1560
|
-
}, {});
|
|
1561
|
-
};
|
|
1562
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
1563
|
-
return {
|
|
1564
|
-
message: __expectString(output.message),
|
|
1565
|
-
name: __expectString(output.name),
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1569
|
-
const retVal = (output || [])
|
|
1570
|
-
.filter((e) => e != null)
|
|
1571
|
-
.map((entry) => {
|
|
1572
|
-
if (entry === null) {
|
|
1573
|
-
return null;
|
|
1574
|
-
}
|
|
1575
|
-
return de_ValidationExceptionField(entry, context);
|
|
1269
|
+
return take(output, {
|
|
1270
|
+
arn: __expectString,
|
|
1271
|
+
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1272
|
+
id: __expectString,
|
|
1273
|
+
loggingConfigurationIdentifiers: _json,
|
|
1274
|
+
messageReviewHandler: _json,
|
|
1275
|
+
name: __expectString,
|
|
1276
|
+
tags: _json,
|
|
1277
|
+
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1576
1278
|
});
|
|
1577
|
-
return retVal;
|
|
1578
1279
|
};
|
|
1579
1280
|
const deserializeMetadata = (output) => ({
|
|
1580
1281
|
httpStatusCode: output.statusCode,
|