@aws-sdk/client-ivschat 3.303.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist-cjs/commands/CreateChatTokenCommand.js +2 -2
  2. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +2 -2
  3. package/dist-cjs/commands/CreateRoomCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteMessageCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteRoomCommand.js +2 -2
  7. package/dist-cjs/commands/DisconnectUserCommand.js +2 -2
  8. package/dist-cjs/commands/GetLoggingConfigurationCommand.js +2 -2
  9. package/dist-cjs/commands/GetRoomCommand.js +2 -2
  10. package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +2 -2
  11. package/dist-cjs/commands/ListRoomsCommand.js +2 -2
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  13. package/dist-cjs/commands/SendEventCommand.js +2 -2
  14. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  15. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  16. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateRoomCommand.js +2 -2
  18. package/dist-cjs/protocols/Aws_restJson1.js +248 -256
  19. package/dist-es/commands/CreateChatTokenCommand.js +3 -3
  20. package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -3
  21. package/dist-es/commands/CreateRoomCommand.js +3 -3
  22. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -3
  23. package/dist-es/commands/DeleteMessageCommand.js +3 -3
  24. package/dist-es/commands/DeleteRoomCommand.js +3 -3
  25. package/dist-es/commands/DisconnectUserCommand.js +3 -3
  26. package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -3
  27. package/dist-es/commands/GetRoomCommand.js +3 -3
  28. package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -3
  29. package/dist-es/commands/ListRoomsCommand.js +3 -3
  30. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist-es/commands/SendEventCommand.js +3 -3
  32. package/dist-es/commands/TagResourceCommand.js +3 -3
  33. package/dist-es/commands/UntagResourceCommand.js +3 -3
  34. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -3
  35. package/dist-es/commands/UpdateRoomCommand.js +3 -3
  36. package/dist-es/protocols/Aws_restJson1.js +213 -221
  37. package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
  39. package/package.json +29 -29
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateRoomCommand = exports.deserializeAws_restJson1UpdateLoggingConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendEventCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRoomsCommand = exports.deserializeAws_restJson1ListLoggingConfigurationsCommand = exports.deserializeAws_restJson1GetRoomCommand = exports.deserializeAws_restJson1GetLoggingConfigurationCommand = exports.deserializeAws_restJson1DisconnectUserCommand = exports.deserializeAws_restJson1DeleteRoomCommand = exports.deserializeAws_restJson1DeleteMessageCommand = exports.deserializeAws_restJson1DeleteLoggingConfigurationCommand = exports.deserializeAws_restJson1CreateRoomCommand = exports.deserializeAws_restJson1CreateLoggingConfigurationCommand = exports.deserializeAws_restJson1CreateChatTokenCommand = exports.serializeAws_restJson1UpdateRoomCommand = exports.serializeAws_restJson1UpdateLoggingConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SendEventCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRoomsCommand = exports.serializeAws_restJson1ListLoggingConfigurationsCommand = exports.serializeAws_restJson1GetRoomCommand = exports.serializeAws_restJson1GetLoggingConfigurationCommand = exports.serializeAws_restJson1DisconnectUserCommand = exports.serializeAws_restJson1DeleteRoomCommand = exports.serializeAws_restJson1DeleteMessageCommand = exports.serializeAws_restJson1DeleteLoggingConfigurationCommand = exports.serializeAws_restJson1CreateRoomCommand = exports.serializeAws_restJson1CreateLoggingConfigurationCommand = exports.serializeAws_restJson1CreateChatTokenCommand = void 0;
3
+ exports.de_UpdateRoomCommand = exports.de_UpdateLoggingConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendEventCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRoomsCommand = exports.de_ListLoggingConfigurationsCommand = exports.de_GetRoomCommand = exports.de_GetLoggingConfigurationCommand = exports.de_DisconnectUserCommand = exports.de_DeleteRoomCommand = exports.de_DeleteMessageCommand = exports.de_DeleteLoggingConfigurationCommand = exports.de_CreateRoomCommand = exports.de_CreateLoggingConfigurationCommand = exports.de_CreateChatTokenCommand = exports.se_UpdateRoomCommand = exports.se_UpdateLoggingConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendEventCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRoomsCommand = exports.se_ListLoggingConfigurationsCommand = exports.se_GetRoomCommand = exports.se_GetLoggingConfigurationCommand = exports.se_DisconnectUserCommand = exports.se_DeleteRoomCommand = exports.se_DeleteMessageCommand = exports.se_DeleteLoggingConfigurationCommand = exports.se_CreateRoomCommand = exports.se_CreateLoggingConfigurationCommand = exports.se_CreateChatTokenCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const IvschatServiceException_1 = require("../models/IvschatServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1CreateChatTokenCommand = async (input, context) => {
8
+ const se_CreateChatTokenCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -13,12 +13,8 @@ const serializeAws_restJson1CreateChatTokenCommand = async (input, context) => {
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.attributes != null && {
17
- attributes: serializeAws_restJson1ChatTokenAttributes(input.attributes, context),
18
- }),
19
- ...(input.capabilities != null && {
20
- capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
21
- }),
16
+ ...(input.attributes != null && { attributes: se_ChatTokenAttributes(input.attributes, context) }),
17
+ ...(input.capabilities != null && { capabilities: se_ChatTokenCapabilities(input.capabilities, context) }),
22
18
  ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
23
19
  ...(input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
24
20
  ...(input.userId != null && { userId: input.userId }),
@@ -33,8 +29,8 @@ const serializeAws_restJson1CreateChatTokenCommand = async (input, context) => {
33
29
  body,
34
30
  });
35
31
  };
36
- exports.serializeAws_restJson1CreateChatTokenCommand = serializeAws_restJson1CreateChatTokenCommand;
37
- const serializeAws_restJson1CreateLoggingConfigurationCommand = async (input, context) => {
32
+ exports.se_CreateChatTokenCommand = se_CreateChatTokenCommand;
33
+ const se_CreateLoggingConfigurationCommand = async (input, context) => {
38
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
35
  const headers = {
40
36
  "content-type": "application/json",
@@ -43,10 +39,10 @@ const serializeAws_restJson1CreateLoggingConfigurationCommand = async (input, co
43
39
  let body;
44
40
  body = JSON.stringify({
45
41
  ...(input.destinationConfiguration != null && {
46
- destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
42
+ destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
47
43
  }),
48
44
  ...(input.name != null && { name: input.name }),
49
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
45
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
50
46
  });
51
47
  return new protocol_http_1.HttpRequest({
52
48
  protocol,
@@ -58,8 +54,8 @@ const serializeAws_restJson1CreateLoggingConfigurationCommand = async (input, co
58
54
  body,
59
55
  });
60
56
  };
61
- exports.serializeAws_restJson1CreateLoggingConfigurationCommand = serializeAws_restJson1CreateLoggingConfigurationCommand;
62
- const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
57
+ exports.se_CreateLoggingConfigurationCommand = se_CreateLoggingConfigurationCommand;
58
+ const se_CreateRoomCommand = async (input, context) => {
63
59
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
60
  const headers = {
65
61
  "content-type": "application/json",
@@ -68,17 +64,17 @@ const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
68
64
  let body;
69
65
  body = JSON.stringify({
70
66
  ...(input.loggingConfigurationIdentifiers != null && {
71
- loggingConfigurationIdentifiers: serializeAws_restJson1LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
67
+ loggingConfigurationIdentifiers: se_LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
72
68
  }),
73
69
  ...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
74
70
  ...(input.maximumMessageRatePerSecond != null && {
75
71
  maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
76
72
  }),
77
73
  ...(input.messageReviewHandler != null && {
78
- messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
74
+ messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
79
75
  }),
80
76
  ...(input.name != null && { name: input.name }),
81
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
77
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
82
78
  });
83
79
  return new protocol_http_1.HttpRequest({
84
80
  protocol,
@@ -90,8 +86,8 @@ const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
90
86
  body,
91
87
  });
92
88
  };
93
- exports.serializeAws_restJson1CreateRoomCommand = serializeAws_restJson1CreateRoomCommand;
94
- const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (input, context) => {
89
+ exports.se_CreateRoomCommand = se_CreateRoomCommand;
90
+ const se_DeleteLoggingConfigurationCommand = async (input, context) => {
95
91
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
92
  const headers = {
97
93
  "content-type": "application/json",
@@ -111,8 +107,8 @@ const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (input, co
111
107
  body,
112
108
  });
113
109
  };
114
- exports.serializeAws_restJson1DeleteLoggingConfigurationCommand = serializeAws_restJson1DeleteLoggingConfigurationCommand;
115
- const serializeAws_restJson1DeleteMessageCommand = async (input, context) => {
110
+ exports.se_DeleteLoggingConfigurationCommand = se_DeleteLoggingConfigurationCommand;
111
+ const se_DeleteMessageCommand = async (input, context) => {
116
112
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
113
  const headers = {
118
114
  "content-type": "application/json",
@@ -134,8 +130,8 @@ const serializeAws_restJson1DeleteMessageCommand = async (input, context) => {
134
130
  body,
135
131
  });
136
132
  };
137
- exports.serializeAws_restJson1DeleteMessageCommand = serializeAws_restJson1DeleteMessageCommand;
138
- const serializeAws_restJson1DeleteRoomCommand = async (input, context) => {
133
+ exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
134
+ const se_DeleteRoomCommand = async (input, context) => {
139
135
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
140
136
  const headers = {
141
137
  "content-type": "application/json",
@@ -155,8 +151,8 @@ const serializeAws_restJson1DeleteRoomCommand = async (input, context) => {
155
151
  body,
156
152
  });
157
153
  };
158
- exports.serializeAws_restJson1DeleteRoomCommand = serializeAws_restJson1DeleteRoomCommand;
159
- const serializeAws_restJson1DisconnectUserCommand = async (input, context) => {
154
+ exports.se_DeleteRoomCommand = se_DeleteRoomCommand;
155
+ const se_DisconnectUserCommand = async (input, context) => {
160
156
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
157
  const headers = {
162
158
  "content-type": "application/json",
@@ -178,8 +174,8 @@ const serializeAws_restJson1DisconnectUserCommand = async (input, context) => {
178
174
  body,
179
175
  });
180
176
  };
181
- exports.serializeAws_restJson1DisconnectUserCommand = serializeAws_restJson1DisconnectUserCommand;
182
- const serializeAws_restJson1GetLoggingConfigurationCommand = async (input, context) => {
177
+ exports.se_DisconnectUserCommand = se_DisconnectUserCommand;
178
+ const se_GetLoggingConfigurationCommand = async (input, context) => {
183
179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
180
  const headers = {
185
181
  "content-type": "application/json",
@@ -199,8 +195,8 @@ const serializeAws_restJson1GetLoggingConfigurationCommand = async (input, conte
199
195
  body,
200
196
  });
201
197
  };
202
- exports.serializeAws_restJson1GetLoggingConfigurationCommand = serializeAws_restJson1GetLoggingConfigurationCommand;
203
- const serializeAws_restJson1GetRoomCommand = async (input, context) => {
198
+ exports.se_GetLoggingConfigurationCommand = se_GetLoggingConfigurationCommand;
199
+ const se_GetRoomCommand = async (input, context) => {
204
200
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
201
  const headers = {
206
202
  "content-type": "application/json",
@@ -220,8 +216,8 @@ const serializeAws_restJson1GetRoomCommand = async (input, context) => {
220
216
  body,
221
217
  });
222
218
  };
223
- exports.serializeAws_restJson1GetRoomCommand = serializeAws_restJson1GetRoomCommand;
224
- const serializeAws_restJson1ListLoggingConfigurationsCommand = async (input, context) => {
219
+ exports.se_GetRoomCommand = se_GetRoomCommand;
220
+ const se_ListLoggingConfigurationsCommand = async (input, context) => {
225
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
222
  const headers = {
227
223
  "content-type": "application/json",
@@ -242,8 +238,8 @@ const serializeAws_restJson1ListLoggingConfigurationsCommand = async (input, con
242
238
  body,
243
239
  });
244
240
  };
245
- exports.serializeAws_restJson1ListLoggingConfigurationsCommand = serializeAws_restJson1ListLoggingConfigurationsCommand;
246
- const serializeAws_restJson1ListRoomsCommand = async (input, context) => {
241
+ exports.se_ListLoggingConfigurationsCommand = se_ListLoggingConfigurationsCommand;
242
+ const se_ListRoomsCommand = async (input, context) => {
247
243
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
244
  const headers = {
249
245
  "content-type": "application/json",
@@ -269,8 +265,8 @@ const serializeAws_restJson1ListRoomsCommand = async (input, context) => {
269
265
  body,
270
266
  });
271
267
  };
272
- exports.serializeAws_restJson1ListRoomsCommand = serializeAws_restJson1ListRoomsCommand;
273
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
268
+ exports.se_ListRoomsCommand = se_ListRoomsCommand;
269
+ const se_ListTagsForResourceCommand = async (input, context) => {
274
270
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
271
  const headers = {};
276
272
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -286,8 +282,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
286
282
  body,
287
283
  });
288
284
  };
289
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
290
- const serializeAws_restJson1SendEventCommand = async (input, context) => {
285
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
286
+ const se_SendEventCommand = async (input, context) => {
291
287
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
288
  const headers = {
293
289
  "content-type": "application/json",
@@ -295,7 +291,7 @@ const serializeAws_restJson1SendEventCommand = async (input, context) => {
295
291
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent";
296
292
  let body;
297
293
  body = JSON.stringify({
298
- ...(input.attributes != null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) }),
294
+ ...(input.attributes != null && { attributes: se_EventAttributes(input.attributes, context) }),
299
295
  ...(input.eventName != null && { eventName: input.eventName }),
300
296
  ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
301
297
  });
@@ -309,8 +305,8 @@ const serializeAws_restJson1SendEventCommand = async (input, context) => {
309
305
  body,
310
306
  });
311
307
  };
312
- exports.serializeAws_restJson1SendEventCommand = serializeAws_restJson1SendEventCommand;
313
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
308
+ exports.se_SendEventCommand = se_SendEventCommand;
309
+ const se_TagResourceCommand = async (input, context) => {
314
310
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
311
  const headers = {
316
312
  "content-type": "application/json",
@@ -319,7 +315,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
319
315
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
320
316
  let body;
321
317
  body = JSON.stringify({
322
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
318
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
323
319
  });
324
320
  return new protocol_http_1.HttpRequest({
325
321
  protocol,
@@ -331,8 +327,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
331
327
  body,
332
328
  });
333
329
  };
334
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
335
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
330
+ exports.se_TagResourceCommand = se_TagResourceCommand;
331
+ const se_UntagResourceCommand = async (input, context) => {
336
332
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
337
333
  const headers = {};
338
334
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -355,8 +351,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
355
351
  body,
356
352
  });
357
353
  };
358
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
359
- const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (input, context) => {
354
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
355
+ const se_UpdateLoggingConfigurationCommand = async (input, context) => {
360
356
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
357
  const headers = {
362
358
  "content-type": "application/json",
@@ -365,7 +361,7 @@ const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (input, co
365
361
  let body;
366
362
  body = JSON.stringify({
367
363
  ...(input.destinationConfiguration != null && {
368
- destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
364
+ destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
369
365
  }),
370
366
  ...(input.identifier != null && { identifier: input.identifier }),
371
367
  ...(input.name != null && { name: input.name }),
@@ -380,8 +376,8 @@ const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (input, co
380
376
  body,
381
377
  });
382
378
  };
383
- exports.serializeAws_restJson1UpdateLoggingConfigurationCommand = serializeAws_restJson1UpdateLoggingConfigurationCommand;
384
- const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
379
+ exports.se_UpdateLoggingConfigurationCommand = se_UpdateLoggingConfigurationCommand;
380
+ const se_UpdateRoomCommand = async (input, context) => {
385
381
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
386
382
  const headers = {
387
383
  "content-type": "application/json",
@@ -391,14 +387,14 @@ const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
391
387
  body = JSON.stringify({
392
388
  ...(input.identifier != null && { identifier: input.identifier }),
393
389
  ...(input.loggingConfigurationIdentifiers != null && {
394
- loggingConfigurationIdentifiers: serializeAws_restJson1LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
390
+ loggingConfigurationIdentifiers: se_LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
395
391
  }),
396
392
  ...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
397
393
  ...(input.maximumMessageRatePerSecond != null && {
398
394
  maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
399
395
  }),
400
396
  ...(input.messageReviewHandler != null && {
401
- messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
397
+ messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
402
398
  }),
403
399
  ...(input.name != null && { name: input.name }),
404
400
  });
@@ -412,10 +408,10 @@ const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
412
408
  body,
413
409
  });
414
410
  };
415
- exports.serializeAws_restJson1UpdateRoomCommand = serializeAws_restJson1UpdateRoomCommand;
416
- const deserializeAws_restJson1CreateChatTokenCommand = async (output, context) => {
411
+ exports.se_UpdateRoomCommand = se_UpdateRoomCommand;
412
+ const de_CreateChatTokenCommand = async (output, context) => {
417
413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
418
- return deserializeAws_restJson1CreateChatTokenCommandError(output, context);
414
+ return de_CreateChatTokenCommandError(output, context);
419
415
  }
420
416
  const contents = map({
421
417
  $metadata: deserializeMetadata(output),
@@ -432,8 +428,8 @@ const deserializeAws_restJson1CreateChatTokenCommand = async (output, context) =
432
428
  }
433
429
  return contents;
434
430
  };
435
- exports.deserializeAws_restJson1CreateChatTokenCommand = deserializeAws_restJson1CreateChatTokenCommand;
436
- const deserializeAws_restJson1CreateChatTokenCommandError = async (output, context) => {
431
+ exports.de_CreateChatTokenCommand = de_CreateChatTokenCommand;
432
+ const de_CreateChatTokenCommandError = async (output, context) => {
437
433
  const parsedOutput = {
438
434
  ...output,
439
435
  body: await parseErrorBody(output.body, context),
@@ -442,16 +438,16 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
442
438
  switch (errorCode) {
443
439
  case "AccessDeniedException":
444
440
  case "com.amazonaws.ivschat#AccessDeniedException":
445
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
441
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
446
442
  case "PendingVerification":
447
443
  case "com.amazonaws.ivschat#PendingVerification":
448
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
444
+ throw await de_PendingVerificationRes(parsedOutput, context);
449
445
  case "ResourceNotFoundException":
450
446
  case "com.amazonaws.ivschat#ResourceNotFoundException":
451
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
447
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
452
448
  case "ValidationException":
453
449
  case "com.amazonaws.ivschat#ValidationException":
454
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
450
+ throw await de_ValidationExceptionRes(parsedOutput, context);
455
451
  default:
456
452
  const parsedBody = parsedOutput.body;
457
453
  (0, smithy_client_1.throwDefaultError)({
@@ -462,9 +458,9 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
462
458
  });
463
459
  }
464
460
  };
465
- const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (output, context) => {
461
+ const de_CreateLoggingConfigurationCommand = async (output, context) => {
466
462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
467
- return deserializeAws_restJson1CreateLoggingConfigurationCommandError(output, context);
463
+ return de_CreateLoggingConfigurationCommandError(output, context);
468
464
  }
469
465
  const contents = map({
470
466
  $metadata: deserializeMetadata(output),
@@ -477,7 +473,7 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (output,
477
473
  contents.createTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createTime));
478
474
  }
479
475
  if (data.destinationConfiguration != null) {
480
- contents.destinationConfiguration = deserializeAws_restJson1DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
476
+ contents.destinationConfiguration = de_DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
481
477
  }
482
478
  if (data.id != null) {
483
479
  contents.id = (0, smithy_client_1.expectString)(data.id);
@@ -489,15 +485,15 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (output,
489
485
  contents.state = (0, smithy_client_1.expectString)(data.state);
490
486
  }
491
487
  if (data.tags != null) {
492
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
488
+ contents.tags = de_Tags(data.tags, context);
493
489
  }
494
490
  if (data.updateTime != null) {
495
491
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
496
492
  }
497
493
  return contents;
498
494
  };
499
- exports.deserializeAws_restJson1CreateLoggingConfigurationCommand = deserializeAws_restJson1CreateLoggingConfigurationCommand;
500
- const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (output, context) => {
495
+ exports.de_CreateLoggingConfigurationCommand = de_CreateLoggingConfigurationCommand;
496
+ const de_CreateLoggingConfigurationCommandError = async (output, context) => {
501
497
  const parsedOutput = {
502
498
  ...output,
503
499
  body: await parseErrorBody(output.body, context),
@@ -506,22 +502,22 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
506
502
  switch (errorCode) {
507
503
  case "AccessDeniedException":
508
504
  case "com.amazonaws.ivschat#AccessDeniedException":
509
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
505
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
510
506
  case "ConflictException":
511
507
  case "com.amazonaws.ivschat#ConflictException":
512
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
508
+ throw await de_ConflictExceptionRes(parsedOutput, context);
513
509
  case "PendingVerification":
514
510
  case "com.amazonaws.ivschat#PendingVerification":
515
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
511
+ throw await de_PendingVerificationRes(parsedOutput, context);
516
512
  case "ResourceNotFoundException":
517
513
  case "com.amazonaws.ivschat#ResourceNotFoundException":
518
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
514
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
519
515
  case "ServiceQuotaExceededException":
520
516
  case "com.amazonaws.ivschat#ServiceQuotaExceededException":
521
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
517
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
522
518
  case "ValidationException":
523
519
  case "com.amazonaws.ivschat#ValidationException":
524
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
520
+ throw await de_ValidationExceptionRes(parsedOutput, context);
525
521
  default:
526
522
  const parsedBody = parsedOutput.body;
527
523
  (0, smithy_client_1.throwDefaultError)({
@@ -532,9 +528,9 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
532
528
  });
533
529
  }
534
530
  };
535
- const deserializeAws_restJson1CreateRoomCommand = async (output, context) => {
531
+ const de_CreateRoomCommand = async (output, context) => {
536
532
  if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return deserializeAws_restJson1CreateRoomCommandError(output, context);
533
+ return de_CreateRoomCommandError(output, context);
538
534
  }
539
535
  const contents = map({
540
536
  $metadata: deserializeMetadata(output),
@@ -550,7 +546,7 @@ const deserializeAws_restJson1CreateRoomCommand = async (output, context) => {
550
546
  contents.id = (0, smithy_client_1.expectString)(data.id);
551
547
  }
552
548
  if (data.loggingConfigurationIdentifiers != null) {
553
- contents.loggingConfigurationIdentifiers = deserializeAws_restJson1LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
549
+ contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
554
550
  }
555
551
  if (data.maximumMessageLength != null) {
556
552
  contents.maximumMessageLength = (0, smithy_client_1.expectInt32)(data.maximumMessageLength);
@@ -559,21 +555,21 @@ const deserializeAws_restJson1CreateRoomCommand = async (output, context) => {
559
555
  contents.maximumMessageRatePerSecond = (0, smithy_client_1.expectInt32)(data.maximumMessageRatePerSecond);
560
556
  }
561
557
  if (data.messageReviewHandler != null) {
562
- contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
558
+ contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
563
559
  }
564
560
  if (data.name != null) {
565
561
  contents.name = (0, smithy_client_1.expectString)(data.name);
566
562
  }
567
563
  if (data.tags != null) {
568
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
564
+ contents.tags = de_Tags(data.tags, context);
569
565
  }
570
566
  if (data.updateTime != null) {
571
567
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
572
568
  }
573
569
  return contents;
574
570
  };
575
- exports.deserializeAws_restJson1CreateRoomCommand = deserializeAws_restJson1CreateRoomCommand;
576
- const deserializeAws_restJson1CreateRoomCommandError = async (output, context) => {
571
+ exports.de_CreateRoomCommand = de_CreateRoomCommand;
572
+ const de_CreateRoomCommandError = async (output, context) => {
577
573
  const parsedOutput = {
578
574
  ...output,
579
575
  body: await parseErrorBody(output.body, context),
@@ -582,22 +578,22 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
582
578
  switch (errorCode) {
583
579
  case "AccessDeniedException":
584
580
  case "com.amazonaws.ivschat#AccessDeniedException":
585
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
581
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
586
582
  case "ConflictException":
587
583
  case "com.amazonaws.ivschat#ConflictException":
588
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
584
+ throw await de_ConflictExceptionRes(parsedOutput, context);
589
585
  case "PendingVerification":
590
586
  case "com.amazonaws.ivschat#PendingVerification":
591
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
587
+ throw await de_PendingVerificationRes(parsedOutput, context);
592
588
  case "ResourceNotFoundException":
593
589
  case "com.amazonaws.ivschat#ResourceNotFoundException":
594
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
590
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
595
591
  case "ServiceQuotaExceededException":
596
592
  case "com.amazonaws.ivschat#ServiceQuotaExceededException":
597
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
593
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
598
594
  case "ValidationException":
599
595
  case "com.amazonaws.ivschat#ValidationException":
600
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
596
+ throw await de_ValidationExceptionRes(parsedOutput, context);
601
597
  default:
602
598
  const parsedBody = parsedOutput.body;
603
599
  (0, smithy_client_1.throwDefaultError)({
@@ -608,9 +604,9 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
608
604
  });
609
605
  }
610
606
  };
611
- const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (output, context) => {
607
+ const de_DeleteLoggingConfigurationCommand = async (output, context) => {
612
608
  if (output.statusCode !== 204 && output.statusCode >= 300) {
613
- return deserializeAws_restJson1DeleteLoggingConfigurationCommandError(output, context);
609
+ return de_DeleteLoggingConfigurationCommandError(output, context);
614
610
  }
615
611
  const contents = map({
616
612
  $metadata: deserializeMetadata(output),
@@ -618,8 +614,8 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (output,
618
614
  await collectBody(output.body, context);
619
615
  return contents;
620
616
  };
621
- exports.deserializeAws_restJson1DeleteLoggingConfigurationCommand = deserializeAws_restJson1DeleteLoggingConfigurationCommand;
622
- const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (output, context) => {
617
+ exports.de_DeleteLoggingConfigurationCommand = de_DeleteLoggingConfigurationCommand;
618
+ const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
623
619
  const parsedOutput = {
624
620
  ...output,
625
621
  body: await parseErrorBody(output.body, context),
@@ -628,19 +624,19 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
628
624
  switch (errorCode) {
629
625
  case "AccessDeniedException":
630
626
  case "com.amazonaws.ivschat#AccessDeniedException":
631
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
627
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
632
628
  case "ConflictException":
633
629
  case "com.amazonaws.ivschat#ConflictException":
634
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
630
+ throw await de_ConflictExceptionRes(parsedOutput, context);
635
631
  case "PendingVerification":
636
632
  case "com.amazonaws.ivschat#PendingVerification":
637
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
633
+ throw await de_PendingVerificationRes(parsedOutput, context);
638
634
  case "ResourceNotFoundException":
639
635
  case "com.amazonaws.ivschat#ResourceNotFoundException":
640
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
636
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
641
637
  case "ValidationException":
642
638
  case "com.amazonaws.ivschat#ValidationException":
643
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
639
+ throw await de_ValidationExceptionRes(parsedOutput, context);
644
640
  default:
645
641
  const parsedBody = parsedOutput.body;
646
642
  (0, smithy_client_1.throwDefaultError)({
@@ -651,9 +647,9 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
651
647
  });
652
648
  }
653
649
  };
654
- const deserializeAws_restJson1DeleteMessageCommand = async (output, context) => {
650
+ const de_DeleteMessageCommand = async (output, context) => {
655
651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
656
- return deserializeAws_restJson1DeleteMessageCommandError(output, context);
652
+ return de_DeleteMessageCommandError(output, context);
657
653
  }
658
654
  const contents = map({
659
655
  $metadata: deserializeMetadata(output),
@@ -664,8 +660,8 @@ const deserializeAws_restJson1DeleteMessageCommand = async (output, context) =>
664
660
  }
665
661
  return contents;
666
662
  };
667
- exports.deserializeAws_restJson1DeleteMessageCommand = deserializeAws_restJson1DeleteMessageCommand;
668
- const deserializeAws_restJson1DeleteMessageCommandError = async (output, context) => {
663
+ exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
664
+ const de_DeleteMessageCommandError = async (output, context) => {
669
665
  const parsedOutput = {
670
666
  ...output,
671
667
  body: await parseErrorBody(output.body, context),
@@ -674,19 +670,19 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
674
670
  switch (errorCode) {
675
671
  case "AccessDeniedException":
676
672
  case "com.amazonaws.ivschat#AccessDeniedException":
677
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
673
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
678
674
  case "PendingVerification":
679
675
  case "com.amazonaws.ivschat#PendingVerification":
680
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
676
+ throw await de_PendingVerificationRes(parsedOutput, context);
681
677
  case "ResourceNotFoundException":
682
678
  case "com.amazonaws.ivschat#ResourceNotFoundException":
683
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
679
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
684
680
  case "ThrottlingException":
685
681
  case "com.amazonaws.ivschat#ThrottlingException":
686
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
682
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
687
683
  case "ValidationException":
688
684
  case "com.amazonaws.ivschat#ValidationException":
689
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
685
+ throw await de_ValidationExceptionRes(parsedOutput, context);
690
686
  default:
691
687
  const parsedBody = parsedOutput.body;
692
688
  (0, smithy_client_1.throwDefaultError)({
@@ -697,9 +693,9 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
697
693
  });
698
694
  }
699
695
  };
700
- const deserializeAws_restJson1DeleteRoomCommand = async (output, context) => {
696
+ const de_DeleteRoomCommand = async (output, context) => {
701
697
  if (output.statusCode !== 204 && output.statusCode >= 300) {
702
- return deserializeAws_restJson1DeleteRoomCommandError(output, context);
698
+ return de_DeleteRoomCommandError(output, context);
703
699
  }
704
700
  const contents = map({
705
701
  $metadata: deserializeMetadata(output),
@@ -707,8 +703,8 @@ const deserializeAws_restJson1DeleteRoomCommand = async (output, context) => {
707
703
  await collectBody(output.body, context);
708
704
  return contents;
709
705
  };
710
- exports.deserializeAws_restJson1DeleteRoomCommand = deserializeAws_restJson1DeleteRoomCommand;
711
- const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) => {
706
+ exports.de_DeleteRoomCommand = de_DeleteRoomCommand;
707
+ const de_DeleteRoomCommandError = async (output, context) => {
712
708
  const parsedOutput = {
713
709
  ...output,
714
710
  body: await parseErrorBody(output.body, context),
@@ -717,16 +713,16 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
717
713
  switch (errorCode) {
718
714
  case "AccessDeniedException":
719
715
  case "com.amazonaws.ivschat#AccessDeniedException":
720
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
716
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
721
717
  case "PendingVerification":
722
718
  case "com.amazonaws.ivschat#PendingVerification":
723
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
719
+ throw await de_PendingVerificationRes(parsedOutput, context);
724
720
  case "ResourceNotFoundException":
725
721
  case "com.amazonaws.ivschat#ResourceNotFoundException":
726
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
722
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
727
723
  case "ValidationException":
728
724
  case "com.amazonaws.ivschat#ValidationException":
729
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
725
+ throw await de_ValidationExceptionRes(parsedOutput, context);
730
726
  default:
731
727
  const parsedBody = parsedOutput.body;
732
728
  (0, smithy_client_1.throwDefaultError)({
@@ -737,9 +733,9 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
737
733
  });
738
734
  }
739
735
  };
740
- const deserializeAws_restJson1DisconnectUserCommand = async (output, context) => {
736
+ const de_DisconnectUserCommand = async (output, context) => {
741
737
  if (output.statusCode !== 200 && output.statusCode >= 300) {
742
- return deserializeAws_restJson1DisconnectUserCommandError(output, context);
738
+ return de_DisconnectUserCommandError(output, context);
743
739
  }
744
740
  const contents = map({
745
741
  $metadata: deserializeMetadata(output),
@@ -747,8 +743,8 @@ const deserializeAws_restJson1DisconnectUserCommand = async (output, context) =>
747
743
  await collectBody(output.body, context);
748
744
  return contents;
749
745
  };
750
- exports.deserializeAws_restJson1DisconnectUserCommand = deserializeAws_restJson1DisconnectUserCommand;
751
- const deserializeAws_restJson1DisconnectUserCommandError = async (output, context) => {
746
+ exports.de_DisconnectUserCommand = de_DisconnectUserCommand;
747
+ const de_DisconnectUserCommandError = async (output, context) => {
752
748
  const parsedOutput = {
753
749
  ...output,
754
750
  body: await parseErrorBody(output.body, context),
@@ -757,19 +753,19 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
757
753
  switch (errorCode) {
758
754
  case "AccessDeniedException":
759
755
  case "com.amazonaws.ivschat#AccessDeniedException":
760
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
756
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
761
757
  case "PendingVerification":
762
758
  case "com.amazonaws.ivschat#PendingVerification":
763
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
759
+ throw await de_PendingVerificationRes(parsedOutput, context);
764
760
  case "ResourceNotFoundException":
765
761
  case "com.amazonaws.ivschat#ResourceNotFoundException":
766
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
762
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
767
763
  case "ThrottlingException":
768
764
  case "com.amazonaws.ivschat#ThrottlingException":
769
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
765
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
770
766
  case "ValidationException":
771
767
  case "com.amazonaws.ivschat#ValidationException":
772
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
768
+ throw await de_ValidationExceptionRes(parsedOutput, context);
773
769
  default:
774
770
  const parsedBody = parsedOutput.body;
775
771
  (0, smithy_client_1.throwDefaultError)({
@@ -780,9 +776,9 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
780
776
  });
781
777
  }
782
778
  };
783
- const deserializeAws_restJson1GetLoggingConfigurationCommand = async (output, context) => {
779
+ const de_GetLoggingConfigurationCommand = async (output, context) => {
784
780
  if (output.statusCode !== 200 && output.statusCode >= 300) {
785
- return deserializeAws_restJson1GetLoggingConfigurationCommandError(output, context);
781
+ return de_GetLoggingConfigurationCommandError(output, context);
786
782
  }
787
783
  const contents = map({
788
784
  $metadata: deserializeMetadata(output),
@@ -795,7 +791,7 @@ const deserializeAws_restJson1GetLoggingConfigurationCommand = async (output, co
795
791
  contents.createTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createTime));
796
792
  }
797
793
  if (data.destinationConfiguration != null) {
798
- contents.destinationConfiguration = deserializeAws_restJson1DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
794
+ contents.destinationConfiguration = de_DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
799
795
  }
800
796
  if (data.id != null) {
801
797
  contents.id = (0, smithy_client_1.expectString)(data.id);
@@ -807,15 +803,15 @@ const deserializeAws_restJson1GetLoggingConfigurationCommand = async (output, co
807
803
  contents.state = (0, smithy_client_1.expectString)(data.state);
808
804
  }
809
805
  if (data.tags != null) {
810
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
806
+ contents.tags = de_Tags(data.tags, context);
811
807
  }
812
808
  if (data.updateTime != null) {
813
809
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
814
810
  }
815
811
  return contents;
816
812
  };
817
- exports.deserializeAws_restJson1GetLoggingConfigurationCommand = deserializeAws_restJson1GetLoggingConfigurationCommand;
818
- const deserializeAws_restJson1GetLoggingConfigurationCommandError = async (output, context) => {
813
+ exports.de_GetLoggingConfigurationCommand = de_GetLoggingConfigurationCommand;
814
+ const de_GetLoggingConfigurationCommandError = async (output, context) => {
819
815
  const parsedOutput = {
820
816
  ...output,
821
817
  body: await parseErrorBody(output.body, context),
@@ -824,13 +820,13 @@ const deserializeAws_restJson1GetLoggingConfigurationCommandError = async (outpu
824
820
  switch (errorCode) {
825
821
  case "AccessDeniedException":
826
822
  case "com.amazonaws.ivschat#AccessDeniedException":
827
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
823
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
828
824
  case "ResourceNotFoundException":
829
825
  case "com.amazonaws.ivschat#ResourceNotFoundException":
830
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
826
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
831
827
  case "ValidationException":
832
828
  case "com.amazonaws.ivschat#ValidationException":
833
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
829
+ throw await de_ValidationExceptionRes(parsedOutput, context);
834
830
  default:
835
831
  const parsedBody = parsedOutput.body;
836
832
  (0, smithy_client_1.throwDefaultError)({
@@ -841,9 +837,9 @@ const deserializeAws_restJson1GetLoggingConfigurationCommandError = async (outpu
841
837
  });
842
838
  }
843
839
  };
844
- const deserializeAws_restJson1GetRoomCommand = async (output, context) => {
840
+ const de_GetRoomCommand = async (output, context) => {
845
841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
- return deserializeAws_restJson1GetRoomCommandError(output, context);
842
+ return de_GetRoomCommandError(output, context);
847
843
  }
848
844
  const contents = map({
849
845
  $metadata: deserializeMetadata(output),
@@ -859,7 +855,7 @@ const deserializeAws_restJson1GetRoomCommand = async (output, context) => {
859
855
  contents.id = (0, smithy_client_1.expectString)(data.id);
860
856
  }
861
857
  if (data.loggingConfigurationIdentifiers != null) {
862
- contents.loggingConfigurationIdentifiers = deserializeAws_restJson1LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
858
+ contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
863
859
  }
864
860
  if (data.maximumMessageLength != null) {
865
861
  contents.maximumMessageLength = (0, smithy_client_1.expectInt32)(data.maximumMessageLength);
@@ -868,21 +864,21 @@ const deserializeAws_restJson1GetRoomCommand = async (output, context) => {
868
864
  contents.maximumMessageRatePerSecond = (0, smithy_client_1.expectInt32)(data.maximumMessageRatePerSecond);
869
865
  }
870
866
  if (data.messageReviewHandler != null) {
871
- contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
867
+ contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
872
868
  }
873
869
  if (data.name != null) {
874
870
  contents.name = (0, smithy_client_1.expectString)(data.name);
875
871
  }
876
872
  if (data.tags != null) {
877
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
873
+ contents.tags = de_Tags(data.tags, context);
878
874
  }
879
875
  if (data.updateTime != null) {
880
876
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
881
877
  }
882
878
  return contents;
883
879
  };
884
- exports.deserializeAws_restJson1GetRoomCommand = deserializeAws_restJson1GetRoomCommand;
885
- const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
880
+ exports.de_GetRoomCommand = de_GetRoomCommand;
881
+ const de_GetRoomCommandError = async (output, context) => {
886
882
  const parsedOutput = {
887
883
  ...output,
888
884
  body: await parseErrorBody(output.body, context),
@@ -891,13 +887,13 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
891
887
  switch (errorCode) {
892
888
  case "AccessDeniedException":
893
889
  case "com.amazonaws.ivschat#AccessDeniedException":
894
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
890
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
895
891
  case "ResourceNotFoundException":
896
892
  case "com.amazonaws.ivschat#ResourceNotFoundException":
897
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
893
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
898
894
  case "ValidationException":
899
895
  case "com.amazonaws.ivschat#ValidationException":
900
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
896
+ throw await de_ValidationExceptionRes(parsedOutput, context);
901
897
  default:
902
898
  const parsedBody = parsedOutput.body;
903
899
  (0, smithy_client_1.throwDefaultError)({
@@ -908,24 +904,24 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
908
904
  });
909
905
  }
910
906
  };
911
- const deserializeAws_restJson1ListLoggingConfigurationsCommand = async (output, context) => {
907
+ const de_ListLoggingConfigurationsCommand = async (output, context) => {
912
908
  if (output.statusCode !== 200 && output.statusCode >= 300) {
913
- return deserializeAws_restJson1ListLoggingConfigurationsCommandError(output, context);
909
+ return de_ListLoggingConfigurationsCommandError(output, context);
914
910
  }
915
911
  const contents = map({
916
912
  $metadata: deserializeMetadata(output),
917
913
  });
918
914
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
919
915
  if (data.loggingConfigurations != null) {
920
- contents.loggingConfigurations = deserializeAws_restJson1LoggingConfigurationList(data.loggingConfigurations, context);
916
+ contents.loggingConfigurations = de_LoggingConfigurationList(data.loggingConfigurations, context);
921
917
  }
922
918
  if (data.nextToken != null) {
923
919
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
924
920
  }
925
921
  return contents;
926
922
  };
927
- exports.deserializeAws_restJson1ListLoggingConfigurationsCommand = deserializeAws_restJson1ListLoggingConfigurationsCommand;
928
- const deserializeAws_restJson1ListLoggingConfigurationsCommandError = async (output, context) => {
923
+ exports.de_ListLoggingConfigurationsCommand = de_ListLoggingConfigurationsCommand;
924
+ const de_ListLoggingConfigurationsCommandError = async (output, context) => {
929
925
  const parsedOutput = {
930
926
  ...output,
931
927
  body: await parseErrorBody(output.body, context),
@@ -934,10 +930,10 @@ const deserializeAws_restJson1ListLoggingConfigurationsCommandError = async (out
934
930
  switch (errorCode) {
935
931
  case "AccessDeniedException":
936
932
  case "com.amazonaws.ivschat#AccessDeniedException":
937
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
933
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
938
934
  case "ValidationException":
939
935
  case "com.amazonaws.ivschat#ValidationException":
940
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
936
+ throw await de_ValidationExceptionRes(parsedOutput, context);
941
937
  default:
942
938
  const parsedBody = parsedOutput.body;
943
939
  (0, smithy_client_1.throwDefaultError)({
@@ -948,9 +944,9 @@ const deserializeAws_restJson1ListLoggingConfigurationsCommandError = async (out
948
944
  });
949
945
  }
950
946
  };
951
- const deserializeAws_restJson1ListRoomsCommand = async (output, context) => {
947
+ const de_ListRoomsCommand = async (output, context) => {
952
948
  if (output.statusCode !== 200 && output.statusCode >= 300) {
953
- return deserializeAws_restJson1ListRoomsCommandError(output, context);
949
+ return de_ListRoomsCommandError(output, context);
954
950
  }
955
951
  const contents = map({
956
952
  $metadata: deserializeMetadata(output),
@@ -960,12 +956,12 @@ const deserializeAws_restJson1ListRoomsCommand = async (output, context) => {
960
956
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
961
957
  }
962
958
  if (data.rooms != null) {
963
- contents.rooms = deserializeAws_restJson1RoomList(data.rooms, context);
959
+ contents.rooms = de_RoomList(data.rooms, context);
964
960
  }
965
961
  return contents;
966
962
  };
967
- exports.deserializeAws_restJson1ListRoomsCommand = deserializeAws_restJson1ListRoomsCommand;
968
- const deserializeAws_restJson1ListRoomsCommandError = async (output, context) => {
963
+ exports.de_ListRoomsCommand = de_ListRoomsCommand;
964
+ const de_ListRoomsCommandError = async (output, context) => {
969
965
  const parsedOutput = {
970
966
  ...output,
971
967
  body: await parseErrorBody(output.body, context),
@@ -974,13 +970,13 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
974
970
  switch (errorCode) {
975
971
  case "AccessDeniedException":
976
972
  case "com.amazonaws.ivschat#AccessDeniedException":
977
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
973
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
978
974
  case "ResourceNotFoundException":
979
975
  case "com.amazonaws.ivschat#ResourceNotFoundException":
980
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
976
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
981
977
  case "ValidationException":
982
978
  case "com.amazonaws.ivschat#ValidationException":
983
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
979
+ throw await de_ValidationExceptionRes(parsedOutput, context);
984
980
  default:
985
981
  const parsedBody = parsedOutput.body;
986
982
  (0, smithy_client_1.throwDefaultError)({
@@ -991,21 +987,21 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
991
987
  });
992
988
  }
993
989
  };
994
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
990
+ const de_ListTagsForResourceCommand = async (output, context) => {
995
991
  if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
992
+ return de_ListTagsForResourceCommandError(output, context);
997
993
  }
998
994
  const contents = map({
999
995
  $metadata: deserializeMetadata(output),
1000
996
  });
1001
997
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1002
998
  if (data.tags != null) {
1003
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
999
+ contents.tags = de_Tags(data.tags, context);
1004
1000
  }
1005
1001
  return contents;
1006
1002
  };
1007
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
1008
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1003
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1004
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1009
1005
  const parsedOutput = {
1010
1006
  ...output,
1011
1007
  body: await parseErrorBody(output.body, context),
@@ -1014,13 +1010,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1014
1010
  switch (errorCode) {
1015
1011
  case "InternalServerException":
1016
1012
  case "com.amazonaws.ivschat#InternalServerException":
1017
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1013
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1018
1014
  case "ResourceNotFoundException":
1019
1015
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1020
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1016
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1021
1017
  case "ValidationException":
1022
1018
  case "com.amazonaws.ivschat#ValidationException":
1023
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1019
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1024
1020
  default:
1025
1021
  const parsedBody = parsedOutput.body;
1026
1022
  (0, smithy_client_1.throwDefaultError)({
@@ -1031,9 +1027,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1031
1027
  });
1032
1028
  }
1033
1029
  };
1034
- const deserializeAws_restJson1SendEventCommand = async (output, context) => {
1030
+ const de_SendEventCommand = async (output, context) => {
1035
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
- return deserializeAws_restJson1SendEventCommandError(output, context);
1032
+ return de_SendEventCommandError(output, context);
1037
1033
  }
1038
1034
  const contents = map({
1039
1035
  $metadata: deserializeMetadata(output),
@@ -1044,8 +1040,8 @@ const deserializeAws_restJson1SendEventCommand = async (output, context) => {
1044
1040
  }
1045
1041
  return contents;
1046
1042
  };
1047
- exports.deserializeAws_restJson1SendEventCommand = deserializeAws_restJson1SendEventCommand;
1048
- const deserializeAws_restJson1SendEventCommandError = async (output, context) => {
1043
+ exports.de_SendEventCommand = de_SendEventCommand;
1044
+ const de_SendEventCommandError = async (output, context) => {
1049
1045
  const parsedOutput = {
1050
1046
  ...output,
1051
1047
  body: await parseErrorBody(output.body, context),
@@ -1054,19 +1050,19 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
1054
1050
  switch (errorCode) {
1055
1051
  case "AccessDeniedException":
1056
1052
  case "com.amazonaws.ivschat#AccessDeniedException":
1057
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1053
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1058
1054
  case "PendingVerification":
1059
1055
  case "com.amazonaws.ivschat#PendingVerification":
1060
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
1056
+ throw await de_PendingVerificationRes(parsedOutput, context);
1061
1057
  case "ResourceNotFoundException":
1062
1058
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1063
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1059
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1064
1060
  case "ThrottlingException":
1065
1061
  case "com.amazonaws.ivschat#ThrottlingException":
1066
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1062
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1067
1063
  case "ValidationException":
1068
1064
  case "com.amazonaws.ivschat#ValidationException":
1069
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1065
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1070
1066
  default:
1071
1067
  const parsedBody = parsedOutput.body;
1072
1068
  (0, smithy_client_1.throwDefaultError)({
@@ -1077,9 +1073,9 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
1077
1073
  });
1078
1074
  }
1079
1075
  };
1080
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1076
+ const de_TagResourceCommand = async (output, context) => {
1081
1077
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1082
- return deserializeAws_restJson1TagResourceCommandError(output, context);
1078
+ return de_TagResourceCommandError(output, context);
1083
1079
  }
1084
1080
  const contents = map({
1085
1081
  $metadata: deserializeMetadata(output),
@@ -1087,8 +1083,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1087
1083
  await collectBody(output.body, context);
1088
1084
  return contents;
1089
1085
  };
1090
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
1091
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1086
+ exports.de_TagResourceCommand = de_TagResourceCommand;
1087
+ const de_TagResourceCommandError = async (output, context) => {
1092
1088
  const parsedOutput = {
1093
1089
  ...output,
1094
1090
  body: await parseErrorBody(output.body, context),
@@ -1097,13 +1093,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1097
1093
  switch (errorCode) {
1098
1094
  case "InternalServerException":
1099
1095
  case "com.amazonaws.ivschat#InternalServerException":
1100
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1096
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1101
1097
  case "ResourceNotFoundException":
1102
1098
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1103
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1099
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1104
1100
  case "ValidationException":
1105
1101
  case "com.amazonaws.ivschat#ValidationException":
1106
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1102
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1107
1103
  default:
1108
1104
  const parsedBody = parsedOutput.body;
1109
1105
  (0, smithy_client_1.throwDefaultError)({
@@ -1114,9 +1110,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1114
1110
  });
1115
1111
  }
1116
1112
  };
1117
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1113
+ const de_UntagResourceCommand = async (output, context) => {
1118
1114
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
1115
+ return de_UntagResourceCommandError(output, context);
1120
1116
  }
1121
1117
  const contents = map({
1122
1118
  $metadata: deserializeMetadata(output),
@@ -1124,8 +1120,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
1124
1120
  await collectBody(output.body, context);
1125
1121
  return contents;
1126
1122
  };
1127
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
1128
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1123
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
1124
+ const de_UntagResourceCommandError = async (output, context) => {
1129
1125
  const parsedOutput = {
1130
1126
  ...output,
1131
1127
  body: await parseErrorBody(output.body, context),
@@ -1134,13 +1130,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1134
1130
  switch (errorCode) {
1135
1131
  case "InternalServerException":
1136
1132
  case "com.amazonaws.ivschat#InternalServerException":
1137
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1133
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1138
1134
  case "ResourceNotFoundException":
1139
1135
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1140
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1136
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1141
1137
  case "ValidationException":
1142
1138
  case "com.amazonaws.ivschat#ValidationException":
1143
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1139
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1144
1140
  default:
1145
1141
  const parsedBody = parsedOutput.body;
1146
1142
  (0, smithy_client_1.throwDefaultError)({
@@ -1151,9 +1147,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1151
1147
  });
1152
1148
  }
1153
1149
  };
1154
- const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (output, context) => {
1150
+ const de_UpdateLoggingConfigurationCommand = async (output, context) => {
1155
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1156
- return deserializeAws_restJson1UpdateLoggingConfigurationCommandError(output, context);
1152
+ return de_UpdateLoggingConfigurationCommandError(output, context);
1157
1153
  }
1158
1154
  const contents = map({
1159
1155
  $metadata: deserializeMetadata(output),
@@ -1166,7 +1162,7 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (output,
1166
1162
  contents.createTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createTime));
1167
1163
  }
1168
1164
  if (data.destinationConfiguration != null) {
1169
- contents.destinationConfiguration = deserializeAws_restJson1DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
1165
+ contents.destinationConfiguration = de_DestinationConfiguration((0, smithy_client_1.expectUnion)(data.destinationConfiguration), context);
1170
1166
  }
1171
1167
  if (data.id != null) {
1172
1168
  contents.id = (0, smithy_client_1.expectString)(data.id);
@@ -1178,15 +1174,15 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (output,
1178
1174
  contents.state = (0, smithy_client_1.expectString)(data.state);
1179
1175
  }
1180
1176
  if (data.tags != null) {
1181
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1177
+ contents.tags = de_Tags(data.tags, context);
1182
1178
  }
1183
1179
  if (data.updateTime != null) {
1184
1180
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
1185
1181
  }
1186
1182
  return contents;
1187
1183
  };
1188
- exports.deserializeAws_restJson1UpdateLoggingConfigurationCommand = deserializeAws_restJson1UpdateLoggingConfigurationCommand;
1189
- const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (output, context) => {
1184
+ exports.de_UpdateLoggingConfigurationCommand = de_UpdateLoggingConfigurationCommand;
1185
+ const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
1190
1186
  const parsedOutput = {
1191
1187
  ...output,
1192
1188
  body: await parseErrorBody(output.body, context),
@@ -1195,19 +1191,19 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
1195
1191
  switch (errorCode) {
1196
1192
  case "AccessDeniedException":
1197
1193
  case "com.amazonaws.ivschat#AccessDeniedException":
1198
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1194
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1199
1195
  case "ConflictException":
1200
1196
  case "com.amazonaws.ivschat#ConflictException":
1201
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1197
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1202
1198
  case "PendingVerification":
1203
1199
  case "com.amazonaws.ivschat#PendingVerification":
1204
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
1200
+ throw await de_PendingVerificationRes(parsedOutput, context);
1205
1201
  case "ResourceNotFoundException":
1206
1202
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1207
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1203
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1208
1204
  case "ValidationException":
1209
1205
  case "com.amazonaws.ivschat#ValidationException":
1210
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1206
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1211
1207
  default:
1212
1208
  const parsedBody = parsedOutput.body;
1213
1209
  (0, smithy_client_1.throwDefaultError)({
@@ -1218,9 +1214,9 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
1218
1214
  });
1219
1215
  }
1220
1216
  };
1221
- const deserializeAws_restJson1UpdateRoomCommand = async (output, context) => {
1217
+ const de_UpdateRoomCommand = async (output, context) => {
1222
1218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1223
- return deserializeAws_restJson1UpdateRoomCommandError(output, context);
1219
+ return de_UpdateRoomCommandError(output, context);
1224
1220
  }
1225
1221
  const contents = map({
1226
1222
  $metadata: deserializeMetadata(output),
@@ -1236,7 +1232,7 @@ const deserializeAws_restJson1UpdateRoomCommand = async (output, context) => {
1236
1232
  contents.id = (0, smithy_client_1.expectString)(data.id);
1237
1233
  }
1238
1234
  if (data.loggingConfigurationIdentifiers != null) {
1239
- contents.loggingConfigurationIdentifiers = deserializeAws_restJson1LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
1235
+ contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
1240
1236
  }
1241
1237
  if (data.maximumMessageLength != null) {
1242
1238
  contents.maximumMessageLength = (0, smithy_client_1.expectInt32)(data.maximumMessageLength);
@@ -1245,21 +1241,21 @@ const deserializeAws_restJson1UpdateRoomCommand = async (output, context) => {
1245
1241
  contents.maximumMessageRatePerSecond = (0, smithy_client_1.expectInt32)(data.maximumMessageRatePerSecond);
1246
1242
  }
1247
1243
  if (data.messageReviewHandler != null) {
1248
- contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
1244
+ contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
1249
1245
  }
1250
1246
  if (data.name != null) {
1251
1247
  contents.name = (0, smithy_client_1.expectString)(data.name);
1252
1248
  }
1253
1249
  if (data.tags != null) {
1254
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1250
+ contents.tags = de_Tags(data.tags, context);
1255
1251
  }
1256
1252
  if (data.updateTime != null) {
1257
1253
  contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
1258
1254
  }
1259
1255
  return contents;
1260
1256
  };
1261
- exports.deserializeAws_restJson1UpdateRoomCommand = deserializeAws_restJson1UpdateRoomCommand;
1262
- const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) => {
1257
+ exports.de_UpdateRoomCommand = de_UpdateRoomCommand;
1258
+ const de_UpdateRoomCommandError = async (output, context) => {
1263
1259
  const parsedOutput = {
1264
1260
  ...output,
1265
1261
  body: await parseErrorBody(output.body, context),
@@ -1268,16 +1264,16 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
1268
1264
  switch (errorCode) {
1269
1265
  case "AccessDeniedException":
1270
1266
  case "com.amazonaws.ivschat#AccessDeniedException":
1271
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1267
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1272
1268
  case "PendingVerification":
1273
1269
  case "com.amazonaws.ivschat#PendingVerification":
1274
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
1270
+ throw await de_PendingVerificationRes(parsedOutput, context);
1275
1271
  case "ResourceNotFoundException":
1276
1272
  case "com.amazonaws.ivschat#ResourceNotFoundException":
1277
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1273
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1278
1274
  case "ValidationException":
1279
1275
  case "com.amazonaws.ivschat#ValidationException":
1280
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1276
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1281
1277
  default:
1282
1278
  const parsedBody = parsedOutput.body;
1283
1279
  (0, smithy_client_1.throwDefaultError)({
@@ -1289,7 +1285,7 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
1289
1285
  }
1290
1286
  };
1291
1287
  const map = smithy_client_1.map;
1292
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1288
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1293
1289
  const contents = map({});
1294
1290
  const data = parsedOutput.body;
1295
1291
  if (data.message != null) {
@@ -1301,7 +1297,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
1301
1297
  });
1302
1298
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1303
1299
  };
1304
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1300
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1305
1301
  const contents = map({});
1306
1302
  const data = parsedOutput.body;
1307
1303
  if (data.message != null) {
@@ -1319,7 +1315,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1319
1315
  });
1320
1316
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1321
1317
  };
1322
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1318
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1323
1319
  const contents = map({});
1324
1320
  const data = parsedOutput.body;
1325
1321
  if (data.message != null) {
@@ -1331,7 +1327,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
1331
1327
  });
1332
1328
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1333
1329
  };
1334
- const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput, context) => {
1330
+ const de_PendingVerificationRes = async (parsedOutput, context) => {
1335
1331
  const contents = map({});
1336
1332
  const data = parsedOutput.body;
1337
1333
  if (data.message != null) {
@@ -1343,7 +1339,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
1343
1339
  });
1344
1340
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1345
1341
  };
1346
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1342
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1347
1343
  const contents = map({});
1348
1344
  const data = parsedOutput.body;
1349
1345
  if (data.message != null) {
@@ -1361,7 +1357,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1361
1357
  });
1362
1358
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1363
1359
  };
1364
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1360
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1365
1361
  const contents = map({});
1366
1362
  const data = parsedOutput.body;
1367
1363
  if (data.limit != null) {
@@ -1382,7 +1378,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1382
1378
  });
1383
1379
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1384
1380
  };
1385
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1381
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1386
1382
  const contents = map({});
1387
1383
  const data = parsedOutput.body;
1388
1384
  if (data.limit != null) {
@@ -1403,11 +1399,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1403
1399
  });
1404
1400
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1405
1401
  };
1406
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1402
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1407
1403
  const contents = map({});
1408
1404
  const data = parsedOutput.body;
1409
1405
  if (data.fieldList != null) {
1410
- contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
1406
+ contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
1411
1407
  }
1412
1408
  if (data.message != null) {
1413
1409
  contents.message = (0, smithy_client_1.expectString)(data.message);
@@ -1421,7 +1417,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1421
1417
  });
1422
1418
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1423
1419
  };
1424
- const serializeAws_restJson1ChatTokenAttributes = (input, context) => {
1420
+ const se_ChatTokenAttributes = (input, context) => {
1425
1421
  return Object.entries(input).reduce((acc, [key, value]) => {
1426
1422
  if (value === null) {
1427
1423
  return acc;
@@ -1430,29 +1426,27 @@ const serializeAws_restJson1ChatTokenAttributes = (input, context) => {
1430
1426
  return acc;
1431
1427
  }, {});
1432
1428
  };
1433
- const serializeAws_restJson1ChatTokenCapabilities = (input, context) => {
1429
+ const se_ChatTokenCapabilities = (input, context) => {
1434
1430
  return input
1435
1431
  .filter((e) => e != null)
1436
1432
  .map((entry) => {
1437
1433
  return entry;
1438
1434
  });
1439
1435
  };
1440
- const serializeAws_restJson1CloudWatchLogsDestinationConfiguration = (input, context) => {
1436
+ const se_CloudWatchLogsDestinationConfiguration = (input, context) => {
1441
1437
  return {
1442
1438
  ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
1443
1439
  };
1444
1440
  };
1445
- const serializeAws_restJson1DestinationConfiguration = (input, context) => {
1441
+ const se_DestinationConfiguration = (input, context) => {
1446
1442
  return models_0_1.DestinationConfiguration.visit(input, {
1447
- cloudWatchLogs: (value) => ({
1448
- cloudWatchLogs: serializeAws_restJson1CloudWatchLogsDestinationConfiguration(value, context),
1449
- }),
1450
- firehose: (value) => ({ firehose: serializeAws_restJson1FirehoseDestinationConfiguration(value, context) }),
1451
- s3: (value) => ({ s3: serializeAws_restJson1S3DestinationConfiguration(value, context) }),
1443
+ cloudWatchLogs: (value) => ({ cloudWatchLogs: se_CloudWatchLogsDestinationConfiguration(value, context) }),
1444
+ firehose: (value) => ({ firehose: se_FirehoseDestinationConfiguration(value, context) }),
1445
+ s3: (value) => ({ s3: se_S3DestinationConfiguration(value, context) }),
1452
1446
  _: (name, value) => ({ name: value }),
1453
1447
  });
1454
1448
  };
1455
- const serializeAws_restJson1EventAttributes = (input, context) => {
1449
+ const se_EventAttributes = (input, context) => {
1456
1450
  return Object.entries(input).reduce((acc, [key, value]) => {
1457
1451
  if (value === null) {
1458
1452
  return acc;
@@ -1461,30 +1455,30 @@ const serializeAws_restJson1EventAttributes = (input, context) => {
1461
1455
  return acc;
1462
1456
  }, {});
1463
1457
  };
1464
- const serializeAws_restJson1FirehoseDestinationConfiguration = (input, context) => {
1458
+ const se_FirehoseDestinationConfiguration = (input, context) => {
1465
1459
  return {
1466
1460
  ...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
1467
1461
  };
1468
1462
  };
1469
- const serializeAws_restJson1LoggingConfigurationIdentifierList = (input, context) => {
1463
+ const se_LoggingConfigurationIdentifierList = (input, context) => {
1470
1464
  return input
1471
1465
  .filter((e) => e != null)
1472
1466
  .map((entry) => {
1473
1467
  return entry;
1474
1468
  });
1475
1469
  };
1476
- const serializeAws_restJson1MessageReviewHandler = (input, context) => {
1470
+ const se_MessageReviewHandler = (input, context) => {
1477
1471
  return {
1478
1472
  ...(input.fallbackResult != null && { fallbackResult: input.fallbackResult }),
1479
1473
  ...(input.uri != null && { uri: input.uri }),
1480
1474
  };
1481
1475
  };
1482
- const serializeAws_restJson1S3DestinationConfiguration = (input, context) => {
1476
+ const se_S3DestinationConfiguration = (input, context) => {
1483
1477
  return {
1484
1478
  ...(input.bucketName != null && { bucketName: input.bucketName }),
1485
1479
  };
1486
1480
  };
1487
- const serializeAws_restJson1Tags = (input, context) => {
1481
+ const se_Tags = (input, context) => {
1488
1482
  return Object.entries(input).reduce((acc, [key, value]) => {
1489
1483
  if (value === null) {
1490
1484
  return acc;
@@ -1493,35 +1487,35 @@ const serializeAws_restJson1Tags = (input, context) => {
1493
1487
  return acc;
1494
1488
  }, {});
1495
1489
  };
1496
- const deserializeAws_restJson1CloudWatchLogsDestinationConfiguration = (output, context) => {
1490
+ const de_CloudWatchLogsDestinationConfiguration = (output, context) => {
1497
1491
  return {
1498
1492
  logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
1499
1493
  };
1500
1494
  };
1501
- const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
1495
+ const de_DestinationConfiguration = (output, context) => {
1502
1496
  if (output.cloudWatchLogs != null) {
1503
1497
  return {
1504
- cloudWatchLogs: deserializeAws_restJson1CloudWatchLogsDestinationConfiguration(output.cloudWatchLogs, context),
1498
+ cloudWatchLogs: de_CloudWatchLogsDestinationConfiguration(output.cloudWatchLogs, context),
1505
1499
  };
1506
1500
  }
1507
1501
  if (output.firehose != null) {
1508
1502
  return {
1509
- firehose: deserializeAws_restJson1FirehoseDestinationConfiguration(output.firehose, context),
1503
+ firehose: de_FirehoseDestinationConfiguration(output.firehose, context),
1510
1504
  };
1511
1505
  }
1512
1506
  if (output.s3 != null) {
1513
1507
  return {
1514
- s3: deserializeAws_restJson1S3DestinationConfiguration(output.s3, context),
1508
+ s3: de_S3DestinationConfiguration(output.s3, context),
1515
1509
  };
1516
1510
  }
1517
1511
  return { $unknown: Object.entries(output)[0] };
1518
1512
  };
1519
- const deserializeAws_restJson1FirehoseDestinationConfiguration = (output, context) => {
1513
+ const de_FirehoseDestinationConfiguration = (output, context) => {
1520
1514
  return {
1521
1515
  deliveryStreamName: (0, smithy_client_1.expectString)(output.deliveryStreamName),
1522
1516
  };
1523
1517
  };
1524
- const deserializeAws_restJson1LoggingConfigurationIdentifierList = (output, context) => {
1518
+ const de_LoggingConfigurationIdentifierList = (output, context) => {
1525
1519
  const retVal = (output || [])
1526
1520
  .filter((e) => e != null)
1527
1521
  .map((entry) => {
@@ -1532,70 +1526,68 @@ const deserializeAws_restJson1LoggingConfigurationIdentifierList = (output, cont
1532
1526
  });
1533
1527
  return retVal;
1534
1528
  };
1535
- const deserializeAws_restJson1LoggingConfigurationList = (output, context) => {
1529
+ const de_LoggingConfigurationList = (output, context) => {
1536
1530
  const retVal = (output || [])
1537
1531
  .filter((e) => e != null)
1538
1532
  .map((entry) => {
1539
1533
  if (entry === null) {
1540
1534
  return null;
1541
1535
  }
1542
- return deserializeAws_restJson1LoggingConfigurationSummary(entry, context);
1536
+ return de_LoggingConfigurationSummary(entry, context);
1543
1537
  });
1544
1538
  return retVal;
1545
1539
  };
1546
- const deserializeAws_restJson1LoggingConfigurationSummary = (output, context) => {
1540
+ const de_LoggingConfigurationSummary = (output, context) => {
1547
1541
  return {
1548
1542
  arn: (0, smithy_client_1.expectString)(output.arn),
1549
1543
  createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createTime)) : undefined,
1550
1544
  destinationConfiguration: output.destinationConfiguration != null
1551
- ? deserializeAws_restJson1DestinationConfiguration((0, smithy_client_1.expectUnion)(output.destinationConfiguration), context)
1545
+ ? de_DestinationConfiguration((0, smithy_client_1.expectUnion)(output.destinationConfiguration), context)
1552
1546
  : undefined,
1553
1547
  id: (0, smithy_client_1.expectString)(output.id),
1554
1548
  name: (0, smithy_client_1.expectString)(output.name),
1555
1549
  state: (0, smithy_client_1.expectString)(output.state),
1556
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1550
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1557
1551
  updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
1558
1552
  };
1559
1553
  };
1560
- const deserializeAws_restJson1MessageReviewHandler = (output, context) => {
1554
+ const de_MessageReviewHandler = (output, context) => {
1561
1555
  return {
1562
1556
  fallbackResult: (0, smithy_client_1.expectString)(output.fallbackResult),
1563
1557
  uri: (0, smithy_client_1.expectString)(output.uri),
1564
1558
  };
1565
1559
  };
1566
- const deserializeAws_restJson1RoomList = (output, context) => {
1560
+ const de_RoomList = (output, context) => {
1567
1561
  const retVal = (output || [])
1568
1562
  .filter((e) => e != null)
1569
1563
  .map((entry) => {
1570
1564
  if (entry === null) {
1571
1565
  return null;
1572
1566
  }
1573
- return deserializeAws_restJson1RoomSummary(entry, context);
1567
+ return de_RoomSummary(entry, context);
1574
1568
  });
1575
1569
  return retVal;
1576
1570
  };
1577
- const deserializeAws_restJson1RoomSummary = (output, context) => {
1571
+ const de_RoomSummary = (output, context) => {
1578
1572
  return {
1579
1573
  arn: (0, smithy_client_1.expectString)(output.arn),
1580
1574
  createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createTime)) : undefined,
1581
1575
  id: (0, smithy_client_1.expectString)(output.id),
1582
1576
  loggingConfigurationIdentifiers: output.loggingConfigurationIdentifiers != null
1583
- ? deserializeAws_restJson1LoggingConfigurationIdentifierList(output.loggingConfigurationIdentifiers, context)
1584
- : undefined,
1585
- messageReviewHandler: output.messageReviewHandler != null
1586
- ? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
1577
+ ? de_LoggingConfigurationIdentifierList(output.loggingConfigurationIdentifiers, context)
1587
1578
  : undefined,
1579
+ messageReviewHandler: output.messageReviewHandler != null ? de_MessageReviewHandler(output.messageReviewHandler, context) : undefined,
1588
1580
  name: (0, smithy_client_1.expectString)(output.name),
1589
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1581
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1590
1582
  updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
1591
1583
  };
1592
1584
  };
1593
- const deserializeAws_restJson1S3DestinationConfiguration = (output, context) => {
1585
+ const de_S3DestinationConfiguration = (output, context) => {
1594
1586
  return {
1595
1587
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
1596
1588
  };
1597
1589
  };
1598
- const deserializeAws_restJson1Tags = (output, context) => {
1590
+ const de_Tags = (output, context) => {
1599
1591
  return Object.entries(output).reduce((acc, [key, value]) => {
1600
1592
  if (value === null) {
1601
1593
  return acc;
@@ -1604,20 +1596,20 @@ const deserializeAws_restJson1Tags = (output, context) => {
1604
1596
  return acc;
1605
1597
  }, {});
1606
1598
  };
1607
- const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
1599
+ const de_ValidationExceptionField = (output, context) => {
1608
1600
  return {
1609
1601
  message: (0, smithy_client_1.expectString)(output.message),
1610
1602
  name: (0, smithy_client_1.expectString)(output.name),
1611
1603
  };
1612
1604
  };
1613
- const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
1605
+ const de_ValidationExceptionFieldList = (output, context) => {
1614
1606
  const retVal = (output || [])
1615
1607
  .filter((e) => e != null)
1616
1608
  .map((entry) => {
1617
1609
  if (entry === null) {
1618
1610
  return null;
1619
1611
  }
1620
- return deserializeAws_restJson1ValidationExceptionField(entry, context);
1612
+ return de_ValidationExceptionField(entry, context);
1621
1613
  });
1622
1614
  return retVal;
1623
1615
  };