@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.
- package/dist-cjs/commands/CreateChatTokenCommand.js +2 -2
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateRoomCommand.js +2 -2
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteMessageCommand.js +2 -2
- package/dist-cjs/commands/DeleteRoomCommand.js +2 -2
- package/dist-cjs/commands/DisconnectUserCommand.js +2 -2
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetRoomCommand.js +2 -2
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListRoomsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/SendEventCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateRoomCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +248 -256
- package/dist-es/commands/CreateChatTokenCommand.js +3 -3
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateRoomCommand.js +3 -3
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteMessageCommand.js +3 -3
- package/dist-es/commands/DeleteRoomCommand.js +3 -3
- package/dist-es/commands/DisconnectUserCommand.js +3 -3
- package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/GetRoomCommand.js +3 -3
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListRoomsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/SendEventCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateRoomCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +213 -221
- package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IvschatServiceException as __BaseException } from "../models/IvschatServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, DestinationConfiguration, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateChatTokenCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -10,12 +10,8 @@ export const serializeAws_restJson1CreateChatTokenCommand = async (input, contex
|
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken";
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify({
|
|
13
|
-
...(input.attributes != null && {
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
...(input.capabilities != null && {
|
|
17
|
-
capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
|
|
18
|
-
}),
|
|
13
|
+
...(input.attributes != null && { attributes: se_ChatTokenAttributes(input.attributes, context) }),
|
|
14
|
+
...(input.capabilities != null && { capabilities: se_ChatTokenCapabilities(input.capabilities, context) }),
|
|
19
15
|
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
20
16
|
...(input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
|
|
21
17
|
...(input.userId != null && { userId: input.userId }),
|
|
@@ -30,7 +26,7 @@ export const serializeAws_restJson1CreateChatTokenCommand = async (input, contex
|
|
|
30
26
|
body,
|
|
31
27
|
});
|
|
32
28
|
};
|
|
33
|
-
export const
|
|
29
|
+
export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
34
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
31
|
const headers = {
|
|
36
32
|
"content-type": "application/json",
|
|
@@ -39,10 +35,10 @@ export const serializeAws_restJson1CreateLoggingConfigurationCommand = async (in
|
|
|
39
35
|
let body;
|
|
40
36
|
body = JSON.stringify({
|
|
41
37
|
...(input.destinationConfiguration != null && {
|
|
42
|
-
destinationConfiguration:
|
|
38
|
+
destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
|
|
43
39
|
}),
|
|
44
40
|
...(input.name != null && { name: input.name }),
|
|
45
|
-
...(input.tags != null && { tags:
|
|
41
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
46
42
|
});
|
|
47
43
|
return new __HttpRequest({
|
|
48
44
|
protocol,
|
|
@@ -54,7 +50,7 @@ export const serializeAws_restJson1CreateLoggingConfigurationCommand = async (in
|
|
|
54
50
|
body,
|
|
55
51
|
});
|
|
56
52
|
};
|
|
57
|
-
export const
|
|
53
|
+
export const se_CreateRoomCommand = async (input, context) => {
|
|
58
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
55
|
const headers = {
|
|
60
56
|
"content-type": "application/json",
|
|
@@ -63,17 +59,17 @@ export const serializeAws_restJson1CreateRoomCommand = async (input, context) =>
|
|
|
63
59
|
let body;
|
|
64
60
|
body = JSON.stringify({
|
|
65
61
|
...(input.loggingConfigurationIdentifiers != null && {
|
|
66
|
-
loggingConfigurationIdentifiers:
|
|
62
|
+
loggingConfigurationIdentifiers: se_LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
|
|
67
63
|
}),
|
|
68
64
|
...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
|
|
69
65
|
...(input.maximumMessageRatePerSecond != null && {
|
|
70
66
|
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
71
67
|
}),
|
|
72
68
|
...(input.messageReviewHandler != null && {
|
|
73
|
-
messageReviewHandler:
|
|
69
|
+
messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
|
|
74
70
|
}),
|
|
75
71
|
...(input.name != null && { name: input.name }),
|
|
76
|
-
...(input.tags != null && { tags:
|
|
72
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
77
73
|
});
|
|
78
74
|
return new __HttpRequest({
|
|
79
75
|
protocol,
|
|
@@ -85,7 +81,7 @@ export const serializeAws_restJson1CreateRoomCommand = async (input, context) =>
|
|
|
85
81
|
body,
|
|
86
82
|
});
|
|
87
83
|
};
|
|
88
|
-
export const
|
|
84
|
+
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
89
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
86
|
const headers = {
|
|
91
87
|
"content-type": "application/json",
|
|
@@ -105,7 +101,7 @@ export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (in
|
|
|
105
101
|
body,
|
|
106
102
|
});
|
|
107
103
|
};
|
|
108
|
-
export const
|
|
104
|
+
export const se_DeleteMessageCommand = async (input, context) => {
|
|
109
105
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
110
106
|
const headers = {
|
|
111
107
|
"content-type": "application/json",
|
|
@@ -127,7 +123,7 @@ export const serializeAws_restJson1DeleteMessageCommand = async (input, context)
|
|
|
127
123
|
body,
|
|
128
124
|
});
|
|
129
125
|
};
|
|
130
|
-
export const
|
|
126
|
+
export const se_DeleteRoomCommand = async (input, context) => {
|
|
131
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
128
|
const headers = {
|
|
133
129
|
"content-type": "application/json",
|
|
@@ -147,7 +143,7 @@ export const serializeAws_restJson1DeleteRoomCommand = async (input, context) =>
|
|
|
147
143
|
body,
|
|
148
144
|
});
|
|
149
145
|
};
|
|
150
|
-
export const
|
|
146
|
+
export const se_DisconnectUserCommand = async (input, context) => {
|
|
151
147
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
148
|
const headers = {
|
|
153
149
|
"content-type": "application/json",
|
|
@@ -169,7 +165,7 @@ export const serializeAws_restJson1DisconnectUserCommand = async (input, context
|
|
|
169
165
|
body,
|
|
170
166
|
});
|
|
171
167
|
};
|
|
172
|
-
export const
|
|
168
|
+
export const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
173
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
170
|
const headers = {
|
|
175
171
|
"content-type": "application/json",
|
|
@@ -189,7 +185,7 @@ export const serializeAws_restJson1GetLoggingConfigurationCommand = async (input
|
|
|
189
185
|
body,
|
|
190
186
|
});
|
|
191
187
|
};
|
|
192
|
-
export const
|
|
188
|
+
export const se_GetRoomCommand = async (input, context) => {
|
|
193
189
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
194
190
|
const headers = {
|
|
195
191
|
"content-type": "application/json",
|
|
@@ -209,7 +205,7 @@ export const serializeAws_restJson1GetRoomCommand = async (input, context) => {
|
|
|
209
205
|
body,
|
|
210
206
|
});
|
|
211
207
|
};
|
|
212
|
-
export const
|
|
208
|
+
export const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
213
209
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
210
|
const headers = {
|
|
215
211
|
"content-type": "application/json",
|
|
@@ -230,7 +226,7 @@ export const serializeAws_restJson1ListLoggingConfigurationsCommand = async (inp
|
|
|
230
226
|
body,
|
|
231
227
|
});
|
|
232
228
|
};
|
|
233
|
-
export const
|
|
229
|
+
export const se_ListRoomsCommand = async (input, context) => {
|
|
234
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
231
|
const headers = {
|
|
236
232
|
"content-type": "application/json",
|
|
@@ -256,7 +252,7 @@ export const serializeAws_restJson1ListRoomsCommand = async (input, context) =>
|
|
|
256
252
|
body,
|
|
257
253
|
});
|
|
258
254
|
};
|
|
259
|
-
export const
|
|
255
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
260
256
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
261
257
|
const headers = {};
|
|
262
258
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -272,7 +268,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
272
268
|
body,
|
|
273
269
|
});
|
|
274
270
|
};
|
|
275
|
-
export const
|
|
271
|
+
export const se_SendEventCommand = async (input, context) => {
|
|
276
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
273
|
const headers = {
|
|
278
274
|
"content-type": "application/json",
|
|
@@ -280,7 +276,7 @@ export const serializeAws_restJson1SendEventCommand = async (input, context) =>
|
|
|
280
276
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent";
|
|
281
277
|
let body;
|
|
282
278
|
body = JSON.stringify({
|
|
283
|
-
...(input.attributes != null && { attributes:
|
|
279
|
+
...(input.attributes != null && { attributes: se_EventAttributes(input.attributes, context) }),
|
|
284
280
|
...(input.eventName != null && { eventName: input.eventName }),
|
|
285
281
|
...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
|
|
286
282
|
});
|
|
@@ -294,7 +290,7 @@ export const serializeAws_restJson1SendEventCommand = async (input, context) =>
|
|
|
294
290
|
body,
|
|
295
291
|
});
|
|
296
292
|
};
|
|
297
|
-
export const
|
|
293
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
298
294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
295
|
const headers = {
|
|
300
296
|
"content-type": "application/json",
|
|
@@ -303,7 +299,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
303
299
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
304
300
|
let body;
|
|
305
301
|
body = JSON.stringify({
|
|
306
|
-
...(input.tags != null && { tags:
|
|
302
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
307
303
|
});
|
|
308
304
|
return new __HttpRequest({
|
|
309
305
|
protocol,
|
|
@@ -315,7 +311,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
315
311
|
body,
|
|
316
312
|
});
|
|
317
313
|
};
|
|
318
|
-
export const
|
|
314
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
319
315
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
316
|
const headers = {};
|
|
321
317
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -338,7 +334,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
338
334
|
body,
|
|
339
335
|
});
|
|
340
336
|
};
|
|
341
|
-
export const
|
|
337
|
+
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
342
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
339
|
const headers = {
|
|
344
340
|
"content-type": "application/json",
|
|
@@ -347,7 +343,7 @@ export const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (in
|
|
|
347
343
|
let body;
|
|
348
344
|
body = JSON.stringify({
|
|
349
345
|
...(input.destinationConfiguration != null && {
|
|
350
|
-
destinationConfiguration:
|
|
346
|
+
destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
|
|
351
347
|
}),
|
|
352
348
|
...(input.identifier != null && { identifier: input.identifier }),
|
|
353
349
|
...(input.name != null && { name: input.name }),
|
|
@@ -362,7 +358,7 @@ export const serializeAws_restJson1UpdateLoggingConfigurationCommand = async (in
|
|
|
362
358
|
body,
|
|
363
359
|
});
|
|
364
360
|
};
|
|
365
|
-
export const
|
|
361
|
+
export const se_UpdateRoomCommand = async (input, context) => {
|
|
366
362
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
363
|
const headers = {
|
|
368
364
|
"content-type": "application/json",
|
|
@@ -372,14 +368,14 @@ export const serializeAws_restJson1UpdateRoomCommand = async (input, context) =>
|
|
|
372
368
|
body = JSON.stringify({
|
|
373
369
|
...(input.identifier != null && { identifier: input.identifier }),
|
|
374
370
|
...(input.loggingConfigurationIdentifiers != null && {
|
|
375
|
-
loggingConfigurationIdentifiers:
|
|
371
|
+
loggingConfigurationIdentifiers: se_LoggingConfigurationIdentifierList(input.loggingConfigurationIdentifiers, context),
|
|
376
372
|
}),
|
|
377
373
|
...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
|
|
378
374
|
...(input.maximumMessageRatePerSecond != null && {
|
|
379
375
|
maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
|
|
380
376
|
}),
|
|
381
377
|
...(input.messageReviewHandler != null && {
|
|
382
|
-
messageReviewHandler:
|
|
378
|
+
messageReviewHandler: se_MessageReviewHandler(input.messageReviewHandler, context),
|
|
383
379
|
}),
|
|
384
380
|
...(input.name != null && { name: input.name }),
|
|
385
381
|
});
|
|
@@ -393,9 +389,9 @@ export const serializeAws_restJson1UpdateRoomCommand = async (input, context) =>
|
|
|
393
389
|
body,
|
|
394
390
|
});
|
|
395
391
|
};
|
|
396
|
-
export const
|
|
392
|
+
export const de_CreateChatTokenCommand = async (output, context) => {
|
|
397
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
-
return
|
|
394
|
+
return de_CreateChatTokenCommandError(output, context);
|
|
399
395
|
}
|
|
400
396
|
const contents = map({
|
|
401
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -412,7 +408,7 @@ export const deserializeAws_restJson1CreateChatTokenCommand = async (output, con
|
|
|
412
408
|
}
|
|
413
409
|
return contents;
|
|
414
410
|
};
|
|
415
|
-
const
|
|
411
|
+
const de_CreateChatTokenCommandError = async (output, context) => {
|
|
416
412
|
const parsedOutput = {
|
|
417
413
|
...output,
|
|
418
414
|
body: await parseErrorBody(output.body, context),
|
|
@@ -421,16 +417,16 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
|
|
|
421
417
|
switch (errorCode) {
|
|
422
418
|
case "AccessDeniedException":
|
|
423
419
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
424
|
-
throw await
|
|
420
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
425
421
|
case "PendingVerification":
|
|
426
422
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
427
|
-
throw await
|
|
423
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
428
424
|
case "ResourceNotFoundException":
|
|
429
425
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
430
|
-
throw await
|
|
426
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
427
|
case "ValidationException":
|
|
432
428
|
case "com.amazonaws.ivschat#ValidationException":
|
|
433
|
-
throw await
|
|
429
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
430
|
default:
|
|
435
431
|
const parsedBody = parsedOutput.body;
|
|
436
432
|
throwDefaultError({
|
|
@@ -441,9 +437,9 @@ const deserializeAws_restJson1CreateChatTokenCommandError = async (output, conte
|
|
|
441
437
|
});
|
|
442
438
|
}
|
|
443
439
|
};
|
|
444
|
-
export const
|
|
440
|
+
export const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
445
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
-
return
|
|
442
|
+
return de_CreateLoggingConfigurationCommandError(output, context);
|
|
447
443
|
}
|
|
448
444
|
const contents = map({
|
|
449
445
|
$metadata: deserializeMetadata(output),
|
|
@@ -456,7 +452,7 @@ export const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (
|
|
|
456
452
|
contents.createTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createTime));
|
|
457
453
|
}
|
|
458
454
|
if (data.destinationConfiguration != null) {
|
|
459
|
-
contents.destinationConfiguration =
|
|
455
|
+
contents.destinationConfiguration = de_DestinationConfiguration(__expectUnion(data.destinationConfiguration), context);
|
|
460
456
|
}
|
|
461
457
|
if (data.id != null) {
|
|
462
458
|
contents.id = __expectString(data.id);
|
|
@@ -468,14 +464,14 @@ export const deserializeAws_restJson1CreateLoggingConfigurationCommand = async (
|
|
|
468
464
|
contents.state = __expectString(data.state);
|
|
469
465
|
}
|
|
470
466
|
if (data.tags != null) {
|
|
471
|
-
contents.tags =
|
|
467
|
+
contents.tags = de_Tags(data.tags, context);
|
|
472
468
|
}
|
|
473
469
|
if (data.updateTime != null) {
|
|
474
470
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
475
471
|
}
|
|
476
472
|
return contents;
|
|
477
473
|
};
|
|
478
|
-
const
|
|
474
|
+
const de_CreateLoggingConfigurationCommandError = async (output, context) => {
|
|
479
475
|
const parsedOutput = {
|
|
480
476
|
...output,
|
|
481
477
|
body: await parseErrorBody(output.body, context),
|
|
@@ -484,22 +480,22 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
|
|
|
484
480
|
switch (errorCode) {
|
|
485
481
|
case "AccessDeniedException":
|
|
486
482
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
487
|
-
throw await
|
|
483
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
488
484
|
case "ConflictException":
|
|
489
485
|
case "com.amazonaws.ivschat#ConflictException":
|
|
490
|
-
throw await
|
|
486
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
491
487
|
case "PendingVerification":
|
|
492
488
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
493
|
-
throw await
|
|
489
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
494
490
|
case "ResourceNotFoundException":
|
|
495
491
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
496
|
-
throw await
|
|
492
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
497
493
|
case "ServiceQuotaExceededException":
|
|
498
494
|
case "com.amazonaws.ivschat#ServiceQuotaExceededException":
|
|
499
|
-
throw await
|
|
495
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
500
496
|
case "ValidationException":
|
|
501
497
|
case "com.amazonaws.ivschat#ValidationException":
|
|
502
|
-
throw await
|
|
498
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
503
499
|
default:
|
|
504
500
|
const parsedBody = parsedOutput.body;
|
|
505
501
|
throwDefaultError({
|
|
@@ -510,9 +506,9 @@ const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (ou
|
|
|
510
506
|
});
|
|
511
507
|
}
|
|
512
508
|
};
|
|
513
|
-
export const
|
|
509
|
+
export const de_CreateRoomCommand = async (output, context) => {
|
|
514
510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
515
|
-
return
|
|
511
|
+
return de_CreateRoomCommandError(output, context);
|
|
516
512
|
}
|
|
517
513
|
const contents = map({
|
|
518
514
|
$metadata: deserializeMetadata(output),
|
|
@@ -528,7 +524,7 @@ export const deserializeAws_restJson1CreateRoomCommand = async (output, context)
|
|
|
528
524
|
contents.id = __expectString(data.id);
|
|
529
525
|
}
|
|
530
526
|
if (data.loggingConfigurationIdentifiers != null) {
|
|
531
|
-
contents.loggingConfigurationIdentifiers =
|
|
527
|
+
contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
|
|
532
528
|
}
|
|
533
529
|
if (data.maximumMessageLength != null) {
|
|
534
530
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
@@ -537,20 +533,20 @@ export const deserializeAws_restJson1CreateRoomCommand = async (output, context)
|
|
|
537
533
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
538
534
|
}
|
|
539
535
|
if (data.messageReviewHandler != null) {
|
|
540
|
-
contents.messageReviewHandler =
|
|
536
|
+
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
541
537
|
}
|
|
542
538
|
if (data.name != null) {
|
|
543
539
|
contents.name = __expectString(data.name);
|
|
544
540
|
}
|
|
545
541
|
if (data.tags != null) {
|
|
546
|
-
contents.tags =
|
|
542
|
+
contents.tags = de_Tags(data.tags, context);
|
|
547
543
|
}
|
|
548
544
|
if (data.updateTime != null) {
|
|
549
545
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
550
546
|
}
|
|
551
547
|
return contents;
|
|
552
548
|
};
|
|
553
|
-
const
|
|
549
|
+
const de_CreateRoomCommandError = async (output, context) => {
|
|
554
550
|
const parsedOutput = {
|
|
555
551
|
...output,
|
|
556
552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -559,22 +555,22 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
559
555
|
switch (errorCode) {
|
|
560
556
|
case "AccessDeniedException":
|
|
561
557
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
562
|
-
throw await
|
|
558
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
563
559
|
case "ConflictException":
|
|
564
560
|
case "com.amazonaws.ivschat#ConflictException":
|
|
565
|
-
throw await
|
|
561
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
566
562
|
case "PendingVerification":
|
|
567
563
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
568
|
-
throw await
|
|
564
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
569
565
|
case "ResourceNotFoundException":
|
|
570
566
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
571
|
-
throw await
|
|
567
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
572
568
|
case "ServiceQuotaExceededException":
|
|
573
569
|
case "com.amazonaws.ivschat#ServiceQuotaExceededException":
|
|
574
|
-
throw await
|
|
570
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
575
571
|
case "ValidationException":
|
|
576
572
|
case "com.amazonaws.ivschat#ValidationException":
|
|
577
|
-
throw await
|
|
573
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
574
|
default:
|
|
579
575
|
const parsedBody = parsedOutput.body;
|
|
580
576
|
throwDefaultError({
|
|
@@ -585,9 +581,9 @@ const deserializeAws_restJson1CreateRoomCommandError = async (output, context) =
|
|
|
585
581
|
});
|
|
586
582
|
}
|
|
587
583
|
};
|
|
588
|
-
export const
|
|
584
|
+
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
589
585
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
590
|
-
return
|
|
586
|
+
return de_DeleteLoggingConfigurationCommandError(output, context);
|
|
591
587
|
}
|
|
592
588
|
const contents = map({
|
|
593
589
|
$metadata: deserializeMetadata(output),
|
|
@@ -595,7 +591,7 @@ export const deserializeAws_restJson1DeleteLoggingConfigurationCommand = async (
|
|
|
595
591
|
await collectBody(output.body, context);
|
|
596
592
|
return contents;
|
|
597
593
|
};
|
|
598
|
-
const
|
|
594
|
+
const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
599
595
|
const parsedOutput = {
|
|
600
596
|
...output,
|
|
601
597
|
body: await parseErrorBody(output.body, context),
|
|
@@ -604,19 +600,19 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
|
|
|
604
600
|
switch (errorCode) {
|
|
605
601
|
case "AccessDeniedException":
|
|
606
602
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
607
|
-
throw await
|
|
603
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
608
604
|
case "ConflictException":
|
|
609
605
|
case "com.amazonaws.ivschat#ConflictException":
|
|
610
|
-
throw await
|
|
606
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
611
607
|
case "PendingVerification":
|
|
612
608
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
613
|
-
throw await
|
|
609
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
614
610
|
case "ResourceNotFoundException":
|
|
615
611
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
616
|
-
throw await
|
|
612
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
613
|
case "ValidationException":
|
|
618
614
|
case "com.amazonaws.ivschat#ValidationException":
|
|
619
|
-
throw await
|
|
615
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
620
616
|
default:
|
|
621
617
|
const parsedBody = parsedOutput.body;
|
|
622
618
|
throwDefaultError({
|
|
@@ -627,9 +623,9 @@ const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (ou
|
|
|
627
623
|
});
|
|
628
624
|
}
|
|
629
625
|
};
|
|
630
|
-
export const
|
|
626
|
+
export const de_DeleteMessageCommand = async (output, context) => {
|
|
631
627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return
|
|
628
|
+
return de_DeleteMessageCommandError(output, context);
|
|
633
629
|
}
|
|
634
630
|
const contents = map({
|
|
635
631
|
$metadata: deserializeMetadata(output),
|
|
@@ -640,7 +636,7 @@ export const deserializeAws_restJson1DeleteMessageCommand = async (output, conte
|
|
|
640
636
|
}
|
|
641
637
|
return contents;
|
|
642
638
|
};
|
|
643
|
-
const
|
|
639
|
+
const de_DeleteMessageCommandError = async (output, context) => {
|
|
644
640
|
const parsedOutput = {
|
|
645
641
|
...output,
|
|
646
642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -649,19 +645,19 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
|
|
|
649
645
|
switch (errorCode) {
|
|
650
646
|
case "AccessDeniedException":
|
|
651
647
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
652
|
-
throw await
|
|
648
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
653
649
|
case "PendingVerification":
|
|
654
650
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
655
|
-
throw await
|
|
651
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
656
652
|
case "ResourceNotFoundException":
|
|
657
653
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
658
|
-
throw await
|
|
654
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
659
655
|
case "ThrottlingException":
|
|
660
656
|
case "com.amazonaws.ivschat#ThrottlingException":
|
|
661
|
-
throw await
|
|
657
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
662
658
|
case "ValidationException":
|
|
663
659
|
case "com.amazonaws.ivschat#ValidationException":
|
|
664
|
-
throw await
|
|
660
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
665
661
|
default:
|
|
666
662
|
const parsedBody = parsedOutput.body;
|
|
667
663
|
throwDefaultError({
|
|
@@ -672,9 +668,9 @@ const deserializeAws_restJson1DeleteMessageCommandError = async (output, context
|
|
|
672
668
|
});
|
|
673
669
|
}
|
|
674
670
|
};
|
|
675
|
-
export const
|
|
671
|
+
export const de_DeleteRoomCommand = async (output, context) => {
|
|
676
672
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
677
|
-
return
|
|
673
|
+
return de_DeleteRoomCommandError(output, context);
|
|
678
674
|
}
|
|
679
675
|
const contents = map({
|
|
680
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -682,7 +678,7 @@ export const deserializeAws_restJson1DeleteRoomCommand = async (output, context)
|
|
|
682
678
|
await collectBody(output.body, context);
|
|
683
679
|
return contents;
|
|
684
680
|
};
|
|
685
|
-
const
|
|
681
|
+
const de_DeleteRoomCommandError = async (output, context) => {
|
|
686
682
|
const parsedOutput = {
|
|
687
683
|
...output,
|
|
688
684
|
body: await parseErrorBody(output.body, context),
|
|
@@ -691,16 +687,16 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
691
687
|
switch (errorCode) {
|
|
692
688
|
case "AccessDeniedException":
|
|
693
689
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
694
|
-
throw await
|
|
690
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
695
691
|
case "PendingVerification":
|
|
696
692
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
697
|
-
throw await
|
|
693
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
698
694
|
case "ResourceNotFoundException":
|
|
699
695
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
700
|
-
throw await
|
|
696
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
697
|
case "ValidationException":
|
|
702
698
|
case "com.amazonaws.ivschat#ValidationException":
|
|
703
|
-
throw await
|
|
699
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
700
|
default:
|
|
705
701
|
const parsedBody = parsedOutput.body;
|
|
706
702
|
throwDefaultError({
|
|
@@ -711,9 +707,9 @@ const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) =
|
|
|
711
707
|
});
|
|
712
708
|
}
|
|
713
709
|
};
|
|
714
|
-
export const
|
|
710
|
+
export const de_DisconnectUserCommand = async (output, context) => {
|
|
715
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
-
return
|
|
712
|
+
return de_DisconnectUserCommandError(output, context);
|
|
717
713
|
}
|
|
718
714
|
const contents = map({
|
|
719
715
|
$metadata: deserializeMetadata(output),
|
|
@@ -721,7 +717,7 @@ export const deserializeAws_restJson1DisconnectUserCommand = async (output, cont
|
|
|
721
717
|
await collectBody(output.body, context);
|
|
722
718
|
return contents;
|
|
723
719
|
};
|
|
724
|
-
const
|
|
720
|
+
const de_DisconnectUserCommandError = async (output, context) => {
|
|
725
721
|
const parsedOutput = {
|
|
726
722
|
...output,
|
|
727
723
|
body: await parseErrorBody(output.body, context),
|
|
@@ -730,19 +726,19 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
|
|
|
730
726
|
switch (errorCode) {
|
|
731
727
|
case "AccessDeniedException":
|
|
732
728
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
733
|
-
throw await
|
|
729
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
734
730
|
case "PendingVerification":
|
|
735
731
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
736
|
-
throw await
|
|
732
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
737
733
|
case "ResourceNotFoundException":
|
|
738
734
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
739
|
-
throw await
|
|
735
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
740
736
|
case "ThrottlingException":
|
|
741
737
|
case "com.amazonaws.ivschat#ThrottlingException":
|
|
742
|
-
throw await
|
|
738
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
743
739
|
case "ValidationException":
|
|
744
740
|
case "com.amazonaws.ivschat#ValidationException":
|
|
745
|
-
throw await
|
|
741
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
746
742
|
default:
|
|
747
743
|
const parsedBody = parsedOutput.body;
|
|
748
744
|
throwDefaultError({
|
|
@@ -753,9 +749,9 @@ const deserializeAws_restJson1DisconnectUserCommandError = async (output, contex
|
|
|
753
749
|
});
|
|
754
750
|
}
|
|
755
751
|
};
|
|
756
|
-
export const
|
|
752
|
+
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
757
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
-
return
|
|
754
|
+
return de_GetLoggingConfigurationCommandError(output, context);
|
|
759
755
|
}
|
|
760
756
|
const contents = map({
|
|
761
757
|
$metadata: deserializeMetadata(output),
|
|
@@ -768,7 +764,7 @@ export const deserializeAws_restJson1GetLoggingConfigurationCommand = async (out
|
|
|
768
764
|
contents.createTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createTime));
|
|
769
765
|
}
|
|
770
766
|
if (data.destinationConfiguration != null) {
|
|
771
|
-
contents.destinationConfiguration =
|
|
767
|
+
contents.destinationConfiguration = de_DestinationConfiguration(__expectUnion(data.destinationConfiguration), context);
|
|
772
768
|
}
|
|
773
769
|
if (data.id != null) {
|
|
774
770
|
contents.id = __expectString(data.id);
|
|
@@ -780,14 +776,14 @@ export const deserializeAws_restJson1GetLoggingConfigurationCommand = async (out
|
|
|
780
776
|
contents.state = __expectString(data.state);
|
|
781
777
|
}
|
|
782
778
|
if (data.tags != null) {
|
|
783
|
-
contents.tags =
|
|
779
|
+
contents.tags = de_Tags(data.tags, context);
|
|
784
780
|
}
|
|
785
781
|
if (data.updateTime != null) {
|
|
786
782
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
787
783
|
}
|
|
788
784
|
return contents;
|
|
789
785
|
};
|
|
790
|
-
const
|
|
786
|
+
const de_GetLoggingConfigurationCommandError = async (output, context) => {
|
|
791
787
|
const parsedOutput = {
|
|
792
788
|
...output,
|
|
793
789
|
body: await parseErrorBody(output.body, context),
|
|
@@ -796,13 +792,13 @@ const deserializeAws_restJson1GetLoggingConfigurationCommandError = async (outpu
|
|
|
796
792
|
switch (errorCode) {
|
|
797
793
|
case "AccessDeniedException":
|
|
798
794
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
799
|
-
throw await
|
|
795
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
800
796
|
case "ResourceNotFoundException":
|
|
801
797
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
802
|
-
throw await
|
|
798
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
803
799
|
case "ValidationException":
|
|
804
800
|
case "com.amazonaws.ivschat#ValidationException":
|
|
805
|
-
throw await
|
|
801
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
806
802
|
default:
|
|
807
803
|
const parsedBody = parsedOutput.body;
|
|
808
804
|
throwDefaultError({
|
|
@@ -813,9 +809,9 @@ const deserializeAws_restJson1GetLoggingConfigurationCommandError = async (outpu
|
|
|
813
809
|
});
|
|
814
810
|
}
|
|
815
811
|
};
|
|
816
|
-
export const
|
|
812
|
+
export const de_GetRoomCommand = async (output, context) => {
|
|
817
813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
-
return
|
|
814
|
+
return de_GetRoomCommandError(output, context);
|
|
819
815
|
}
|
|
820
816
|
const contents = map({
|
|
821
817
|
$metadata: deserializeMetadata(output),
|
|
@@ -831,7 +827,7 @@ export const deserializeAws_restJson1GetRoomCommand = async (output, context) =>
|
|
|
831
827
|
contents.id = __expectString(data.id);
|
|
832
828
|
}
|
|
833
829
|
if (data.loggingConfigurationIdentifiers != null) {
|
|
834
|
-
contents.loggingConfigurationIdentifiers =
|
|
830
|
+
contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
|
|
835
831
|
}
|
|
836
832
|
if (data.maximumMessageLength != null) {
|
|
837
833
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
@@ -840,20 +836,20 @@ export const deserializeAws_restJson1GetRoomCommand = async (output, context) =>
|
|
|
840
836
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
841
837
|
}
|
|
842
838
|
if (data.messageReviewHandler != null) {
|
|
843
|
-
contents.messageReviewHandler =
|
|
839
|
+
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
844
840
|
}
|
|
845
841
|
if (data.name != null) {
|
|
846
842
|
contents.name = __expectString(data.name);
|
|
847
843
|
}
|
|
848
844
|
if (data.tags != null) {
|
|
849
|
-
contents.tags =
|
|
845
|
+
contents.tags = de_Tags(data.tags, context);
|
|
850
846
|
}
|
|
851
847
|
if (data.updateTime != null) {
|
|
852
848
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
853
849
|
}
|
|
854
850
|
return contents;
|
|
855
851
|
};
|
|
856
|
-
const
|
|
852
|
+
const de_GetRoomCommandError = async (output, context) => {
|
|
857
853
|
const parsedOutput = {
|
|
858
854
|
...output,
|
|
859
855
|
body: await parseErrorBody(output.body, context),
|
|
@@ -862,13 +858,13 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
862
858
|
switch (errorCode) {
|
|
863
859
|
case "AccessDeniedException":
|
|
864
860
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
865
|
-
throw await
|
|
861
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
862
|
case "ResourceNotFoundException":
|
|
867
863
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
868
|
-
throw await
|
|
864
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
865
|
case "ValidationException":
|
|
870
866
|
case "com.amazonaws.ivschat#ValidationException":
|
|
871
|
-
throw await
|
|
867
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
868
|
default:
|
|
873
869
|
const parsedBody = parsedOutput.body;
|
|
874
870
|
throwDefaultError({
|
|
@@ -879,23 +875,23 @@ const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
|
|
|
879
875
|
});
|
|
880
876
|
}
|
|
881
877
|
};
|
|
882
|
-
export const
|
|
878
|
+
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
883
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
-
return
|
|
880
|
+
return de_ListLoggingConfigurationsCommandError(output, context);
|
|
885
881
|
}
|
|
886
882
|
const contents = map({
|
|
887
883
|
$metadata: deserializeMetadata(output),
|
|
888
884
|
});
|
|
889
885
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
890
886
|
if (data.loggingConfigurations != null) {
|
|
891
|
-
contents.loggingConfigurations =
|
|
887
|
+
contents.loggingConfigurations = de_LoggingConfigurationList(data.loggingConfigurations, context);
|
|
892
888
|
}
|
|
893
889
|
if (data.nextToken != null) {
|
|
894
890
|
contents.nextToken = __expectString(data.nextToken);
|
|
895
891
|
}
|
|
896
892
|
return contents;
|
|
897
893
|
};
|
|
898
|
-
const
|
|
894
|
+
const de_ListLoggingConfigurationsCommandError = async (output, context) => {
|
|
899
895
|
const parsedOutput = {
|
|
900
896
|
...output,
|
|
901
897
|
body: await parseErrorBody(output.body, context),
|
|
@@ -904,10 +900,10 @@ const deserializeAws_restJson1ListLoggingConfigurationsCommandError = async (out
|
|
|
904
900
|
switch (errorCode) {
|
|
905
901
|
case "AccessDeniedException":
|
|
906
902
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
907
|
-
throw await
|
|
903
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
908
904
|
case "ValidationException":
|
|
909
905
|
case "com.amazonaws.ivschat#ValidationException":
|
|
910
|
-
throw await
|
|
906
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
911
907
|
default:
|
|
912
908
|
const parsedBody = parsedOutput.body;
|
|
913
909
|
throwDefaultError({
|
|
@@ -918,9 +914,9 @@ const deserializeAws_restJson1ListLoggingConfigurationsCommandError = async (out
|
|
|
918
914
|
});
|
|
919
915
|
}
|
|
920
916
|
};
|
|
921
|
-
export const
|
|
917
|
+
export const de_ListRoomsCommand = async (output, context) => {
|
|
922
918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
|
-
return
|
|
919
|
+
return de_ListRoomsCommandError(output, context);
|
|
924
920
|
}
|
|
925
921
|
const contents = map({
|
|
926
922
|
$metadata: deserializeMetadata(output),
|
|
@@ -930,11 +926,11 @@ export const deserializeAws_restJson1ListRoomsCommand = async (output, context)
|
|
|
930
926
|
contents.nextToken = __expectString(data.nextToken);
|
|
931
927
|
}
|
|
932
928
|
if (data.rooms != null) {
|
|
933
|
-
contents.rooms =
|
|
929
|
+
contents.rooms = de_RoomList(data.rooms, context);
|
|
934
930
|
}
|
|
935
931
|
return contents;
|
|
936
932
|
};
|
|
937
|
-
const
|
|
933
|
+
const de_ListRoomsCommandError = async (output, context) => {
|
|
938
934
|
const parsedOutput = {
|
|
939
935
|
...output,
|
|
940
936
|
body: await parseErrorBody(output.body, context),
|
|
@@ -943,13 +939,13 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
943
939
|
switch (errorCode) {
|
|
944
940
|
case "AccessDeniedException":
|
|
945
941
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
946
|
-
throw await
|
|
942
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
943
|
case "ResourceNotFoundException":
|
|
948
944
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
949
|
-
throw await
|
|
945
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
950
946
|
case "ValidationException":
|
|
951
947
|
case "com.amazonaws.ivschat#ValidationException":
|
|
952
|
-
throw await
|
|
948
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
949
|
default:
|
|
954
950
|
const parsedBody = parsedOutput.body;
|
|
955
951
|
throwDefaultError({
|
|
@@ -960,20 +956,20 @@ const deserializeAws_restJson1ListRoomsCommandError = async (output, context) =>
|
|
|
960
956
|
});
|
|
961
957
|
}
|
|
962
958
|
};
|
|
963
|
-
export const
|
|
959
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
964
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
-
return
|
|
961
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
966
962
|
}
|
|
967
963
|
const contents = map({
|
|
968
964
|
$metadata: deserializeMetadata(output),
|
|
969
965
|
});
|
|
970
966
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
971
967
|
if (data.tags != null) {
|
|
972
|
-
contents.tags =
|
|
968
|
+
contents.tags = de_Tags(data.tags, context);
|
|
973
969
|
}
|
|
974
970
|
return contents;
|
|
975
971
|
};
|
|
976
|
-
const
|
|
972
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
977
973
|
const parsedOutput = {
|
|
978
974
|
...output,
|
|
979
975
|
body: await parseErrorBody(output.body, context),
|
|
@@ -982,13 +978,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
982
978
|
switch (errorCode) {
|
|
983
979
|
case "InternalServerException":
|
|
984
980
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
985
|
-
throw await
|
|
981
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
986
982
|
case "ResourceNotFoundException":
|
|
987
983
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
988
|
-
throw await
|
|
984
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
989
985
|
case "ValidationException":
|
|
990
986
|
case "com.amazonaws.ivschat#ValidationException":
|
|
991
|
-
throw await
|
|
987
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
992
988
|
default:
|
|
993
989
|
const parsedBody = parsedOutput.body;
|
|
994
990
|
throwDefaultError({
|
|
@@ -999,9 +995,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
999
995
|
});
|
|
1000
996
|
}
|
|
1001
997
|
};
|
|
1002
|
-
export const
|
|
998
|
+
export const de_SendEventCommand = async (output, context) => {
|
|
1003
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1004
|
-
return
|
|
1000
|
+
return de_SendEventCommandError(output, context);
|
|
1005
1001
|
}
|
|
1006
1002
|
const contents = map({
|
|
1007
1003
|
$metadata: deserializeMetadata(output),
|
|
@@ -1012,7 +1008,7 @@ export const deserializeAws_restJson1SendEventCommand = async (output, context)
|
|
|
1012
1008
|
}
|
|
1013
1009
|
return contents;
|
|
1014
1010
|
};
|
|
1015
|
-
const
|
|
1011
|
+
const de_SendEventCommandError = async (output, context) => {
|
|
1016
1012
|
const parsedOutput = {
|
|
1017
1013
|
...output,
|
|
1018
1014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1021,19 +1017,19 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
|
|
|
1021
1017
|
switch (errorCode) {
|
|
1022
1018
|
case "AccessDeniedException":
|
|
1023
1019
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
1024
|
-
throw await
|
|
1020
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1025
1021
|
case "PendingVerification":
|
|
1026
1022
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
1027
|
-
throw await
|
|
1023
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1028
1024
|
case "ResourceNotFoundException":
|
|
1029
1025
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1030
|
-
throw await
|
|
1026
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1031
1027
|
case "ThrottlingException":
|
|
1032
1028
|
case "com.amazonaws.ivschat#ThrottlingException":
|
|
1033
|
-
throw await
|
|
1029
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1034
1030
|
case "ValidationException":
|
|
1035
1031
|
case "com.amazonaws.ivschat#ValidationException":
|
|
1036
|
-
throw await
|
|
1032
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1037
1033
|
default:
|
|
1038
1034
|
const parsedBody = parsedOutput.body;
|
|
1039
1035
|
throwDefaultError({
|
|
@@ -1044,9 +1040,9 @@ const deserializeAws_restJson1SendEventCommandError = async (output, context) =>
|
|
|
1044
1040
|
});
|
|
1045
1041
|
}
|
|
1046
1042
|
};
|
|
1047
|
-
export const
|
|
1043
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1048
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
-
return
|
|
1045
|
+
return de_TagResourceCommandError(output, context);
|
|
1050
1046
|
}
|
|
1051
1047
|
const contents = map({
|
|
1052
1048
|
$metadata: deserializeMetadata(output),
|
|
@@ -1054,7 +1050,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1054
1050
|
await collectBody(output.body, context);
|
|
1055
1051
|
return contents;
|
|
1056
1052
|
};
|
|
1057
|
-
const
|
|
1053
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1058
1054
|
const parsedOutput = {
|
|
1059
1055
|
...output,
|
|
1060
1056
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1063,13 +1059,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1063
1059
|
switch (errorCode) {
|
|
1064
1060
|
case "InternalServerException":
|
|
1065
1061
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
1066
|
-
throw await
|
|
1062
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
1063
|
case "ResourceNotFoundException":
|
|
1068
1064
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1069
|
-
throw await
|
|
1065
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
1066
|
case "ValidationException":
|
|
1071
1067
|
case "com.amazonaws.ivschat#ValidationException":
|
|
1072
|
-
throw await
|
|
1068
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
1069
|
default:
|
|
1074
1070
|
const parsedBody = parsedOutput.body;
|
|
1075
1071
|
throwDefaultError({
|
|
@@ -1080,9 +1076,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1080
1076
|
});
|
|
1081
1077
|
}
|
|
1082
1078
|
};
|
|
1083
|
-
export const
|
|
1079
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1084
1080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
1081
|
+
return de_UntagResourceCommandError(output, context);
|
|
1086
1082
|
}
|
|
1087
1083
|
const contents = map({
|
|
1088
1084
|
$metadata: deserializeMetadata(output),
|
|
@@ -1090,7 +1086,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1090
1086
|
await collectBody(output.body, context);
|
|
1091
1087
|
return contents;
|
|
1092
1088
|
};
|
|
1093
|
-
const
|
|
1089
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1094
1090
|
const parsedOutput = {
|
|
1095
1091
|
...output,
|
|
1096
1092
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1099,13 +1095,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1099
1095
|
switch (errorCode) {
|
|
1100
1096
|
case "InternalServerException":
|
|
1101
1097
|
case "com.amazonaws.ivschat#InternalServerException":
|
|
1102
|
-
throw await
|
|
1098
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1103
1099
|
case "ResourceNotFoundException":
|
|
1104
1100
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1105
|
-
throw await
|
|
1101
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1106
1102
|
case "ValidationException":
|
|
1107
1103
|
case "com.amazonaws.ivschat#ValidationException":
|
|
1108
|
-
throw await
|
|
1104
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1109
1105
|
default:
|
|
1110
1106
|
const parsedBody = parsedOutput.body;
|
|
1111
1107
|
throwDefaultError({
|
|
@@ -1116,9 +1112,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1116
1112
|
});
|
|
1117
1113
|
}
|
|
1118
1114
|
};
|
|
1119
|
-
export const
|
|
1115
|
+
export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
1120
1116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
1117
|
+
return de_UpdateLoggingConfigurationCommandError(output, context);
|
|
1122
1118
|
}
|
|
1123
1119
|
const contents = map({
|
|
1124
1120
|
$metadata: deserializeMetadata(output),
|
|
@@ -1131,7 +1127,7 @@ export const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (
|
|
|
1131
1127
|
contents.createTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createTime));
|
|
1132
1128
|
}
|
|
1133
1129
|
if (data.destinationConfiguration != null) {
|
|
1134
|
-
contents.destinationConfiguration =
|
|
1130
|
+
contents.destinationConfiguration = de_DestinationConfiguration(__expectUnion(data.destinationConfiguration), context);
|
|
1135
1131
|
}
|
|
1136
1132
|
if (data.id != null) {
|
|
1137
1133
|
contents.id = __expectString(data.id);
|
|
@@ -1143,14 +1139,14 @@ export const deserializeAws_restJson1UpdateLoggingConfigurationCommand = async (
|
|
|
1143
1139
|
contents.state = __expectString(data.state);
|
|
1144
1140
|
}
|
|
1145
1141
|
if (data.tags != null) {
|
|
1146
|
-
contents.tags =
|
|
1142
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1147
1143
|
}
|
|
1148
1144
|
if (data.updateTime != null) {
|
|
1149
1145
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
1150
1146
|
}
|
|
1151
1147
|
return contents;
|
|
1152
1148
|
};
|
|
1153
|
-
const
|
|
1149
|
+
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1154
1150
|
const parsedOutput = {
|
|
1155
1151
|
...output,
|
|
1156
1152
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1159,19 +1155,19 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
|
|
|
1159
1155
|
switch (errorCode) {
|
|
1160
1156
|
case "AccessDeniedException":
|
|
1161
1157
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
1162
|
-
throw await
|
|
1158
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1163
1159
|
case "ConflictException":
|
|
1164
1160
|
case "com.amazonaws.ivschat#ConflictException":
|
|
1165
|
-
throw await
|
|
1161
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1166
1162
|
case "PendingVerification":
|
|
1167
1163
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
1168
|
-
throw await
|
|
1164
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1169
1165
|
case "ResourceNotFoundException":
|
|
1170
1166
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1171
|
-
throw await
|
|
1167
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
1168
|
case "ValidationException":
|
|
1173
1169
|
case "com.amazonaws.ivschat#ValidationException":
|
|
1174
|
-
throw await
|
|
1170
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
1171
|
default:
|
|
1176
1172
|
const parsedBody = parsedOutput.body;
|
|
1177
1173
|
throwDefaultError({
|
|
@@ -1182,9 +1178,9 @@ const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (ou
|
|
|
1182
1178
|
});
|
|
1183
1179
|
}
|
|
1184
1180
|
};
|
|
1185
|
-
export const
|
|
1181
|
+
export const de_UpdateRoomCommand = async (output, context) => {
|
|
1186
1182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
|
-
return
|
|
1183
|
+
return de_UpdateRoomCommandError(output, context);
|
|
1188
1184
|
}
|
|
1189
1185
|
const contents = map({
|
|
1190
1186
|
$metadata: deserializeMetadata(output),
|
|
@@ -1200,7 +1196,7 @@ export const deserializeAws_restJson1UpdateRoomCommand = async (output, context)
|
|
|
1200
1196
|
contents.id = __expectString(data.id);
|
|
1201
1197
|
}
|
|
1202
1198
|
if (data.loggingConfigurationIdentifiers != null) {
|
|
1203
|
-
contents.loggingConfigurationIdentifiers =
|
|
1199
|
+
contents.loggingConfigurationIdentifiers = de_LoggingConfigurationIdentifierList(data.loggingConfigurationIdentifiers, context);
|
|
1204
1200
|
}
|
|
1205
1201
|
if (data.maximumMessageLength != null) {
|
|
1206
1202
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
@@ -1209,20 +1205,20 @@ export const deserializeAws_restJson1UpdateRoomCommand = async (output, context)
|
|
|
1209
1205
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
1210
1206
|
}
|
|
1211
1207
|
if (data.messageReviewHandler != null) {
|
|
1212
|
-
contents.messageReviewHandler =
|
|
1208
|
+
contents.messageReviewHandler = de_MessageReviewHandler(data.messageReviewHandler, context);
|
|
1213
1209
|
}
|
|
1214
1210
|
if (data.name != null) {
|
|
1215
1211
|
contents.name = __expectString(data.name);
|
|
1216
1212
|
}
|
|
1217
1213
|
if (data.tags != null) {
|
|
1218
|
-
contents.tags =
|
|
1214
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1219
1215
|
}
|
|
1220
1216
|
if (data.updateTime != null) {
|
|
1221
1217
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
|
|
1222
1218
|
}
|
|
1223
1219
|
return contents;
|
|
1224
1220
|
};
|
|
1225
|
-
const
|
|
1221
|
+
const de_UpdateRoomCommandError = async (output, context) => {
|
|
1226
1222
|
const parsedOutput = {
|
|
1227
1223
|
...output,
|
|
1228
1224
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1231,16 +1227,16 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
1231
1227
|
switch (errorCode) {
|
|
1232
1228
|
case "AccessDeniedException":
|
|
1233
1229
|
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
1234
|
-
throw await
|
|
1230
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1235
1231
|
case "PendingVerification":
|
|
1236
1232
|
case "com.amazonaws.ivschat#PendingVerification":
|
|
1237
|
-
throw await
|
|
1233
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1238
1234
|
case "ResourceNotFoundException":
|
|
1239
1235
|
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1240
|
-
throw await
|
|
1236
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1241
1237
|
case "ValidationException":
|
|
1242
1238
|
case "com.amazonaws.ivschat#ValidationException":
|
|
1243
|
-
throw await
|
|
1239
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1244
1240
|
default:
|
|
1245
1241
|
const parsedBody = parsedOutput.body;
|
|
1246
1242
|
throwDefaultError({
|
|
@@ -1252,7 +1248,7 @@ const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) =
|
|
|
1252
1248
|
}
|
|
1253
1249
|
};
|
|
1254
1250
|
const map = __map;
|
|
1255
|
-
const
|
|
1251
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1256
1252
|
const contents = map({});
|
|
1257
1253
|
const data = parsedOutput.body;
|
|
1258
1254
|
if (data.message != null) {
|
|
@@ -1264,7 +1260,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1264
1260
|
});
|
|
1265
1261
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1266
1262
|
};
|
|
1267
|
-
const
|
|
1263
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1268
1264
|
const contents = map({});
|
|
1269
1265
|
const data = parsedOutput.body;
|
|
1270
1266
|
if (data.message != null) {
|
|
@@ -1282,7 +1278,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1282
1278
|
});
|
|
1283
1279
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1284
1280
|
};
|
|
1285
|
-
const
|
|
1281
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1286
1282
|
const contents = map({});
|
|
1287
1283
|
const data = parsedOutput.body;
|
|
1288
1284
|
if (data.message != null) {
|
|
@@ -1294,7 +1290,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1294
1290
|
});
|
|
1295
1291
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1296
1292
|
};
|
|
1297
|
-
const
|
|
1293
|
+
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
1298
1294
|
const contents = map({});
|
|
1299
1295
|
const data = parsedOutput.body;
|
|
1300
1296
|
if (data.message != null) {
|
|
@@ -1306,7 +1302,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
|
|
|
1306
1302
|
});
|
|
1307
1303
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1308
1304
|
};
|
|
1309
|
-
const
|
|
1305
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1310
1306
|
const contents = map({});
|
|
1311
1307
|
const data = parsedOutput.body;
|
|
1312
1308
|
if (data.message != null) {
|
|
@@ -1324,7 +1320,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1324
1320
|
});
|
|
1325
1321
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1326
1322
|
};
|
|
1327
|
-
const
|
|
1323
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1328
1324
|
const contents = map({});
|
|
1329
1325
|
const data = parsedOutput.body;
|
|
1330
1326
|
if (data.limit != null) {
|
|
@@ -1345,7 +1341,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1345
1341
|
});
|
|
1346
1342
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1347
1343
|
};
|
|
1348
|
-
const
|
|
1344
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1349
1345
|
const contents = map({});
|
|
1350
1346
|
const data = parsedOutput.body;
|
|
1351
1347
|
if (data.limit != null) {
|
|
@@ -1366,11 +1362,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1366
1362
|
});
|
|
1367
1363
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1368
1364
|
};
|
|
1369
|
-
const
|
|
1365
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1370
1366
|
const contents = map({});
|
|
1371
1367
|
const data = parsedOutput.body;
|
|
1372
1368
|
if (data.fieldList != null) {
|
|
1373
|
-
contents.fieldList =
|
|
1369
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
1374
1370
|
}
|
|
1375
1371
|
if (data.message != null) {
|
|
1376
1372
|
contents.message = __expectString(data.message);
|
|
@@ -1384,7 +1380,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1384
1380
|
});
|
|
1385
1381
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1386
1382
|
};
|
|
1387
|
-
const
|
|
1383
|
+
const se_ChatTokenAttributes = (input, context) => {
|
|
1388
1384
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1389
1385
|
if (value === null) {
|
|
1390
1386
|
return acc;
|
|
@@ -1393,29 +1389,27 @@ const serializeAws_restJson1ChatTokenAttributes = (input, context) => {
|
|
|
1393
1389
|
return acc;
|
|
1394
1390
|
}, {});
|
|
1395
1391
|
};
|
|
1396
|
-
const
|
|
1392
|
+
const se_ChatTokenCapabilities = (input, context) => {
|
|
1397
1393
|
return input
|
|
1398
1394
|
.filter((e) => e != null)
|
|
1399
1395
|
.map((entry) => {
|
|
1400
1396
|
return entry;
|
|
1401
1397
|
});
|
|
1402
1398
|
};
|
|
1403
|
-
const
|
|
1399
|
+
const se_CloudWatchLogsDestinationConfiguration = (input, context) => {
|
|
1404
1400
|
return {
|
|
1405
1401
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
1406
1402
|
};
|
|
1407
1403
|
};
|
|
1408
|
-
const
|
|
1404
|
+
const se_DestinationConfiguration = (input, context) => {
|
|
1409
1405
|
return DestinationConfiguration.visit(input, {
|
|
1410
|
-
cloudWatchLogs: (value) => ({
|
|
1411
|
-
|
|
1412
|
-
}),
|
|
1413
|
-
firehose: (value) => ({ firehose: serializeAws_restJson1FirehoseDestinationConfiguration(value, context) }),
|
|
1414
|
-
s3: (value) => ({ s3: serializeAws_restJson1S3DestinationConfiguration(value, context) }),
|
|
1406
|
+
cloudWatchLogs: (value) => ({ cloudWatchLogs: se_CloudWatchLogsDestinationConfiguration(value, context) }),
|
|
1407
|
+
firehose: (value) => ({ firehose: se_FirehoseDestinationConfiguration(value, context) }),
|
|
1408
|
+
s3: (value) => ({ s3: se_S3DestinationConfiguration(value, context) }),
|
|
1415
1409
|
_: (name, value) => ({ name: value }),
|
|
1416
1410
|
});
|
|
1417
1411
|
};
|
|
1418
|
-
const
|
|
1412
|
+
const se_EventAttributes = (input, context) => {
|
|
1419
1413
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1420
1414
|
if (value === null) {
|
|
1421
1415
|
return acc;
|
|
@@ -1424,30 +1418,30 @@ const serializeAws_restJson1EventAttributes = (input, context) => {
|
|
|
1424
1418
|
return acc;
|
|
1425
1419
|
}, {});
|
|
1426
1420
|
};
|
|
1427
|
-
const
|
|
1421
|
+
const se_FirehoseDestinationConfiguration = (input, context) => {
|
|
1428
1422
|
return {
|
|
1429
1423
|
...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
|
|
1430
1424
|
};
|
|
1431
1425
|
};
|
|
1432
|
-
const
|
|
1426
|
+
const se_LoggingConfigurationIdentifierList = (input, context) => {
|
|
1433
1427
|
return input
|
|
1434
1428
|
.filter((e) => e != null)
|
|
1435
1429
|
.map((entry) => {
|
|
1436
1430
|
return entry;
|
|
1437
1431
|
});
|
|
1438
1432
|
};
|
|
1439
|
-
const
|
|
1433
|
+
const se_MessageReviewHandler = (input, context) => {
|
|
1440
1434
|
return {
|
|
1441
1435
|
...(input.fallbackResult != null && { fallbackResult: input.fallbackResult }),
|
|
1442
1436
|
...(input.uri != null && { uri: input.uri }),
|
|
1443
1437
|
};
|
|
1444
1438
|
};
|
|
1445
|
-
const
|
|
1439
|
+
const se_S3DestinationConfiguration = (input, context) => {
|
|
1446
1440
|
return {
|
|
1447
1441
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1448
1442
|
};
|
|
1449
1443
|
};
|
|
1450
|
-
const
|
|
1444
|
+
const se_Tags = (input, context) => {
|
|
1451
1445
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1452
1446
|
if (value === null) {
|
|
1453
1447
|
return acc;
|
|
@@ -1456,35 +1450,35 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1456
1450
|
return acc;
|
|
1457
1451
|
}, {});
|
|
1458
1452
|
};
|
|
1459
|
-
const
|
|
1453
|
+
const de_CloudWatchLogsDestinationConfiguration = (output, context) => {
|
|
1460
1454
|
return {
|
|
1461
1455
|
logGroupName: __expectString(output.logGroupName),
|
|
1462
1456
|
};
|
|
1463
1457
|
};
|
|
1464
|
-
const
|
|
1458
|
+
const de_DestinationConfiguration = (output, context) => {
|
|
1465
1459
|
if (output.cloudWatchLogs != null) {
|
|
1466
1460
|
return {
|
|
1467
|
-
cloudWatchLogs:
|
|
1461
|
+
cloudWatchLogs: de_CloudWatchLogsDestinationConfiguration(output.cloudWatchLogs, context),
|
|
1468
1462
|
};
|
|
1469
1463
|
}
|
|
1470
1464
|
if (output.firehose != null) {
|
|
1471
1465
|
return {
|
|
1472
|
-
firehose:
|
|
1466
|
+
firehose: de_FirehoseDestinationConfiguration(output.firehose, context),
|
|
1473
1467
|
};
|
|
1474
1468
|
}
|
|
1475
1469
|
if (output.s3 != null) {
|
|
1476
1470
|
return {
|
|
1477
|
-
s3:
|
|
1471
|
+
s3: de_S3DestinationConfiguration(output.s3, context),
|
|
1478
1472
|
};
|
|
1479
1473
|
}
|
|
1480
1474
|
return { $unknown: Object.entries(output)[0] };
|
|
1481
1475
|
};
|
|
1482
|
-
const
|
|
1476
|
+
const de_FirehoseDestinationConfiguration = (output, context) => {
|
|
1483
1477
|
return {
|
|
1484
1478
|
deliveryStreamName: __expectString(output.deliveryStreamName),
|
|
1485
1479
|
};
|
|
1486
1480
|
};
|
|
1487
|
-
const
|
|
1481
|
+
const de_LoggingConfigurationIdentifierList = (output, context) => {
|
|
1488
1482
|
const retVal = (output || [])
|
|
1489
1483
|
.filter((e) => e != null)
|
|
1490
1484
|
.map((entry) => {
|
|
@@ -1495,70 +1489,68 @@ const deserializeAws_restJson1LoggingConfigurationIdentifierList = (output, cont
|
|
|
1495
1489
|
});
|
|
1496
1490
|
return retVal;
|
|
1497
1491
|
};
|
|
1498
|
-
const
|
|
1492
|
+
const de_LoggingConfigurationList = (output, context) => {
|
|
1499
1493
|
const retVal = (output || [])
|
|
1500
1494
|
.filter((e) => e != null)
|
|
1501
1495
|
.map((entry) => {
|
|
1502
1496
|
if (entry === null) {
|
|
1503
1497
|
return null;
|
|
1504
1498
|
}
|
|
1505
|
-
return
|
|
1499
|
+
return de_LoggingConfigurationSummary(entry, context);
|
|
1506
1500
|
});
|
|
1507
1501
|
return retVal;
|
|
1508
1502
|
};
|
|
1509
|
-
const
|
|
1503
|
+
const de_LoggingConfigurationSummary = (output, context) => {
|
|
1510
1504
|
return {
|
|
1511
1505
|
arn: __expectString(output.arn),
|
|
1512
1506
|
createTime: output.createTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createTime)) : undefined,
|
|
1513
1507
|
destinationConfiguration: output.destinationConfiguration != null
|
|
1514
|
-
?
|
|
1508
|
+
? de_DestinationConfiguration(__expectUnion(output.destinationConfiguration), context)
|
|
1515
1509
|
: undefined,
|
|
1516
1510
|
id: __expectString(output.id),
|
|
1517
1511
|
name: __expectString(output.name),
|
|
1518
1512
|
state: __expectString(output.state),
|
|
1519
|
-
tags: output.tags != null ?
|
|
1513
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1520
1514
|
updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
|
|
1521
1515
|
};
|
|
1522
1516
|
};
|
|
1523
|
-
const
|
|
1517
|
+
const de_MessageReviewHandler = (output, context) => {
|
|
1524
1518
|
return {
|
|
1525
1519
|
fallbackResult: __expectString(output.fallbackResult),
|
|
1526
1520
|
uri: __expectString(output.uri),
|
|
1527
1521
|
};
|
|
1528
1522
|
};
|
|
1529
|
-
const
|
|
1523
|
+
const de_RoomList = (output, context) => {
|
|
1530
1524
|
const retVal = (output || [])
|
|
1531
1525
|
.filter((e) => e != null)
|
|
1532
1526
|
.map((entry) => {
|
|
1533
1527
|
if (entry === null) {
|
|
1534
1528
|
return null;
|
|
1535
1529
|
}
|
|
1536
|
-
return
|
|
1530
|
+
return de_RoomSummary(entry, context);
|
|
1537
1531
|
});
|
|
1538
1532
|
return retVal;
|
|
1539
1533
|
};
|
|
1540
|
-
const
|
|
1534
|
+
const de_RoomSummary = (output, context) => {
|
|
1541
1535
|
return {
|
|
1542
1536
|
arn: __expectString(output.arn),
|
|
1543
1537
|
createTime: output.createTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createTime)) : undefined,
|
|
1544
1538
|
id: __expectString(output.id),
|
|
1545
1539
|
loggingConfigurationIdentifiers: output.loggingConfigurationIdentifiers != null
|
|
1546
|
-
?
|
|
1547
|
-
: undefined,
|
|
1548
|
-
messageReviewHandler: output.messageReviewHandler != null
|
|
1549
|
-
? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
|
|
1540
|
+
? de_LoggingConfigurationIdentifierList(output.loggingConfigurationIdentifiers, context)
|
|
1550
1541
|
: undefined,
|
|
1542
|
+
messageReviewHandler: output.messageReviewHandler != null ? de_MessageReviewHandler(output.messageReviewHandler, context) : undefined,
|
|
1551
1543
|
name: __expectString(output.name),
|
|
1552
|
-
tags: output.tags != null ?
|
|
1544
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1553
1545
|
updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
|
|
1554
1546
|
};
|
|
1555
1547
|
};
|
|
1556
|
-
const
|
|
1548
|
+
const de_S3DestinationConfiguration = (output, context) => {
|
|
1557
1549
|
return {
|
|
1558
1550
|
bucketName: __expectString(output.bucketName),
|
|
1559
1551
|
};
|
|
1560
1552
|
};
|
|
1561
|
-
const
|
|
1553
|
+
const de_Tags = (output, context) => {
|
|
1562
1554
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1563
1555
|
if (value === null) {
|
|
1564
1556
|
return acc;
|
|
@@ -1567,20 +1559,20 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
1567
1559
|
return acc;
|
|
1568
1560
|
}, {});
|
|
1569
1561
|
};
|
|
1570
|
-
const
|
|
1562
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
1571
1563
|
return {
|
|
1572
1564
|
message: __expectString(output.message),
|
|
1573
1565
|
name: __expectString(output.name),
|
|
1574
1566
|
};
|
|
1575
1567
|
};
|
|
1576
|
-
const
|
|
1568
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1577
1569
|
const retVal = (output || [])
|
|
1578
1570
|
.filter((e) => e != null)
|
|
1579
1571
|
.map((entry) => {
|
|
1580
1572
|
if (entry === null) {
|
|
1581
1573
|
return null;
|
|
1582
1574
|
}
|
|
1583
|
-
return
|
|
1575
|
+
return de_ValidationExceptionField(entry, context);
|
|
1584
1576
|
});
|
|
1585
1577
|
return retVal;
|
|
1586
1578
|
};
|