@aws-sdk/client-chime-sdk-identity 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/CreateAppInstanceAdminCommand.js +2 -2
- package/dist-cjs/commands/CreateAppInstanceBotCommand.js +2 -2
- package/dist-cjs/commands/CreateAppInstanceCommand.js +2 -2
- package/dist-cjs/commands/CreateAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppInstanceAdminCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppInstanceBotCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppInstanceCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DeregisterAppInstanceUserEndpointCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppInstanceAdminCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppInstanceBotCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppInstanceCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppInstanceUserEndpointCommand.js +2 -2
- package/dist-cjs/commands/GetAppInstanceRetentionSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListAppInstanceAdminsCommand.js +2 -2
- package/dist-cjs/commands/ListAppInstanceBotsCommand.js +2 -2
- package/dist-cjs/commands/ListAppInstanceUserEndpointsCommand.js +2 -2
- package/dist-cjs/commands/ListAppInstanceUsersCommand.js +2 -2
- package/dist-cjs/commands/ListAppInstancesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutAppInstanceRetentionSettingsCommand.js +2 -2
- package/dist-cjs/commands/PutAppInstanceUserExpirationSettingsCommand.js +2 -2
- package/dist-cjs/commands/RegisterAppInstanceUserEndpointCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppInstanceBotCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppInstanceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppInstanceUserEndpointCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +476 -482
- package/dist-es/commands/CreateAppInstanceAdminCommand.js +3 -3
- package/dist-es/commands/CreateAppInstanceBotCommand.js +3 -3
- package/dist-es/commands/CreateAppInstanceCommand.js +3 -3
- package/dist-es/commands/CreateAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DeleteAppInstanceAdminCommand.js +3 -3
- package/dist-es/commands/DeleteAppInstanceBotCommand.js +3 -3
- package/dist-es/commands/DeleteAppInstanceCommand.js +3 -3
- package/dist-es/commands/DeleteAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DeregisterAppInstanceUserEndpointCommand.js +3 -3
- package/dist-es/commands/DescribeAppInstanceAdminCommand.js +3 -3
- package/dist-es/commands/DescribeAppInstanceBotCommand.js +3 -3
- package/dist-es/commands/DescribeAppInstanceCommand.js +3 -3
- package/dist-es/commands/DescribeAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DescribeAppInstanceUserEndpointCommand.js +3 -3
- package/dist-es/commands/GetAppInstanceRetentionSettingsCommand.js +3 -3
- package/dist-es/commands/ListAppInstanceAdminsCommand.js +3 -3
- package/dist-es/commands/ListAppInstanceBotsCommand.js +3 -3
- package/dist-es/commands/ListAppInstanceUserEndpointsCommand.js +3 -3
- package/dist-es/commands/ListAppInstanceUsersCommand.js +3 -3
- package/dist-es/commands/ListAppInstancesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutAppInstanceRetentionSettingsCommand.js +3 -3
- package/dist-es/commands/PutAppInstanceUserExpirationSettingsCommand.js +3 -3
- package/dist-es/commands/RegisterAppInstanceUserEndpointCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAppInstanceBotCommand.js +3 -3
- package/dist-es/commands/UpdateAppInstanceCommand.js +3 -3
- package/dist-es/commands/UpdateAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/UpdateAppInstanceUserEndpointCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +414 -420
- package/dist-types/protocols/Aws_restJson1.d.ts +240 -60
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -60
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ChimeSDKIdentityServiceException as __BaseException } from "../models/ChimeSDKIdentityServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateAppInstanceCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -14,7 +14,7 @@ export const serializeAws_restJson1CreateAppInstanceCommand = async (input, cont
|
|
|
14
14
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
15
15
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
16
16
|
...(input.Name != null && { Name: input.Name }),
|
|
17
|
-
...(input.Tags != null && { Tags:
|
|
17
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
18
18
|
});
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
@@ -26,7 +26,7 @@ export const serializeAws_restJson1CreateAppInstanceCommand = async (input, cont
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
export const
|
|
29
|
+
export const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
30
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/json",
|
|
@@ -47,7 +47,7 @@ export const serializeAws_restJson1CreateAppInstanceAdminCommand = async (input,
|
|
|
47
47
|
body,
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
51
51
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/json",
|
|
@@ -57,12 +57,10 @@ export const serializeAws_restJson1CreateAppInstanceBotCommand = async (input, c
|
|
|
57
57
|
body = JSON.stringify({
|
|
58
58
|
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
59
59
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
60
|
-
...(input.Configuration != null && {
|
|
61
|
-
Configuration: serializeAws_restJson1Configuration(input.Configuration, context),
|
|
62
|
-
}),
|
|
60
|
+
...(input.Configuration != null && { Configuration: se_Configuration(input.Configuration, context) }),
|
|
63
61
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
64
62
|
...(input.Name != null && { Name: input.Name }),
|
|
65
|
-
...(input.Tags != null && { Tags:
|
|
63
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
66
64
|
});
|
|
67
65
|
return new __HttpRequest({
|
|
68
66
|
protocol,
|
|
@@ -74,7 +72,7 @@ export const serializeAws_restJson1CreateAppInstanceBotCommand = async (input, c
|
|
|
74
72
|
body,
|
|
75
73
|
});
|
|
76
74
|
};
|
|
77
|
-
export const
|
|
75
|
+
export const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
78
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
79
77
|
const headers = {
|
|
80
78
|
"content-type": "application/json",
|
|
@@ -86,11 +84,11 @@ export const serializeAws_restJson1CreateAppInstanceUserCommand = async (input,
|
|
|
86
84
|
...(input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId }),
|
|
87
85
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
88
86
|
...(input.ExpirationSettings != null && {
|
|
89
|
-
ExpirationSettings:
|
|
87
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
90
88
|
}),
|
|
91
89
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
92
90
|
...(input.Name != null && { Name: input.Name }),
|
|
93
|
-
...(input.Tags != null && { Tags:
|
|
91
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
94
92
|
});
|
|
95
93
|
return new __HttpRequest({
|
|
96
94
|
protocol,
|
|
@@ -102,7 +100,7 @@ export const serializeAws_restJson1CreateAppInstanceUserCommand = async (input,
|
|
|
102
100
|
body,
|
|
103
101
|
});
|
|
104
102
|
};
|
|
105
|
-
export const
|
|
103
|
+
export const se_DeleteAppInstanceCommand = async (input, context) => {
|
|
106
104
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
105
|
const headers = {};
|
|
108
106
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
@@ -118,7 +116,7 @@ export const serializeAws_restJson1DeleteAppInstanceCommand = async (input, cont
|
|
|
118
116
|
body,
|
|
119
117
|
});
|
|
120
118
|
};
|
|
121
|
-
export const
|
|
119
|
+
export const se_DeleteAppInstanceAdminCommand = async (input, context) => {
|
|
122
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
123
121
|
const headers = {};
|
|
124
122
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -136,7 +134,7 @@ export const serializeAws_restJson1DeleteAppInstanceAdminCommand = async (input,
|
|
|
136
134
|
body,
|
|
137
135
|
});
|
|
138
136
|
};
|
|
139
|
-
export const
|
|
137
|
+
export const se_DeleteAppInstanceBotCommand = async (input, context) => {
|
|
140
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
139
|
const headers = {};
|
|
142
140
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
@@ -152,7 +150,7 @@ export const serializeAws_restJson1DeleteAppInstanceBotCommand = async (input, c
|
|
|
152
150
|
body,
|
|
153
151
|
});
|
|
154
152
|
};
|
|
155
|
-
export const
|
|
153
|
+
export const se_DeleteAppInstanceUserCommand = async (input, context) => {
|
|
156
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
155
|
const headers = {};
|
|
158
156
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
@@ -168,7 +166,7 @@ export const serializeAws_restJson1DeleteAppInstanceUserCommand = async (input,
|
|
|
168
166
|
body,
|
|
169
167
|
});
|
|
170
168
|
};
|
|
171
|
-
export const
|
|
169
|
+
export const se_DeregisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
172
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
173
171
|
const headers = {};
|
|
174
172
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -186,7 +184,7 @@ export const serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = as
|
|
|
186
184
|
body,
|
|
187
185
|
});
|
|
188
186
|
};
|
|
189
|
-
export const
|
|
187
|
+
export const se_DescribeAppInstanceCommand = async (input, context) => {
|
|
190
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
189
|
const headers = {};
|
|
192
190
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
@@ -202,7 +200,7 @@ export const serializeAws_restJson1DescribeAppInstanceCommand = async (input, co
|
|
|
202
200
|
body,
|
|
203
201
|
});
|
|
204
202
|
};
|
|
205
|
-
export const
|
|
203
|
+
export const se_DescribeAppInstanceAdminCommand = async (input, context) => {
|
|
206
204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
207
205
|
const headers = {};
|
|
208
206
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -220,7 +218,7 @@ export const serializeAws_restJson1DescribeAppInstanceAdminCommand = async (inpu
|
|
|
220
218
|
body,
|
|
221
219
|
});
|
|
222
220
|
};
|
|
223
|
-
export const
|
|
221
|
+
export const se_DescribeAppInstanceBotCommand = async (input, context) => {
|
|
224
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
223
|
const headers = {};
|
|
226
224
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
@@ -236,7 +234,7 @@ export const serializeAws_restJson1DescribeAppInstanceBotCommand = async (input,
|
|
|
236
234
|
body,
|
|
237
235
|
});
|
|
238
236
|
};
|
|
239
|
-
export const
|
|
237
|
+
export const se_DescribeAppInstanceUserCommand = async (input, context) => {
|
|
240
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
239
|
const headers = {};
|
|
242
240
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
@@ -252,7 +250,7 @@ export const serializeAws_restJson1DescribeAppInstanceUserCommand = async (input
|
|
|
252
250
|
body,
|
|
253
251
|
});
|
|
254
252
|
};
|
|
255
|
-
export const
|
|
253
|
+
export const se_DescribeAppInstanceUserEndpointCommand = async (input, context) => {
|
|
256
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
257
255
|
const headers = {};
|
|
258
256
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -270,7 +268,7 @@ export const serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = asyn
|
|
|
270
268
|
body,
|
|
271
269
|
});
|
|
272
270
|
};
|
|
273
|
-
export const
|
|
271
|
+
export const se_GetAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
274
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
273
|
const headers = {};
|
|
276
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -287,7 +285,7 @@ export const serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = asyn
|
|
|
287
285
|
body,
|
|
288
286
|
});
|
|
289
287
|
};
|
|
290
|
-
export const
|
|
288
|
+
export const se_ListAppInstanceAdminsCommand = async (input, context) => {
|
|
291
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
290
|
const headers = {};
|
|
293
291
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins";
|
|
@@ -308,7 +306,7 @@ export const serializeAws_restJson1ListAppInstanceAdminsCommand = async (input,
|
|
|
308
306
|
body,
|
|
309
307
|
});
|
|
310
308
|
};
|
|
311
|
-
export const
|
|
309
|
+
export const se_ListAppInstanceBotsCommand = async (input, context) => {
|
|
312
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
311
|
const headers = {};
|
|
314
312
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
@@ -329,7 +327,7 @@ export const serializeAws_restJson1ListAppInstanceBotsCommand = async (input, co
|
|
|
329
327
|
body,
|
|
330
328
|
});
|
|
331
329
|
};
|
|
332
|
-
export const
|
|
330
|
+
export const se_ListAppInstancesCommand = async (input, context) => {
|
|
333
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
332
|
const headers = {};
|
|
335
333
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances";
|
|
@@ -349,7 +347,7 @@ export const serializeAws_restJson1ListAppInstancesCommand = async (input, conte
|
|
|
349
347
|
body,
|
|
350
348
|
});
|
|
351
349
|
};
|
|
352
|
-
export const
|
|
350
|
+
export const se_ListAppInstanceUserEndpointsCommand = async (input, context) => {
|
|
353
351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
354
352
|
const headers = {};
|
|
355
353
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -371,7 +369,7 @@ export const serializeAws_restJson1ListAppInstanceUserEndpointsCommand = async (
|
|
|
371
369
|
body,
|
|
372
370
|
});
|
|
373
371
|
};
|
|
374
|
-
export const
|
|
372
|
+
export const se_ListAppInstanceUsersCommand = async (input, context) => {
|
|
375
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
376
374
|
const headers = {};
|
|
377
375
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
@@ -392,7 +390,7 @@ export const serializeAws_restJson1ListAppInstanceUsersCommand = async (input, c
|
|
|
392
390
|
body,
|
|
393
391
|
});
|
|
394
392
|
};
|
|
395
|
-
export const
|
|
393
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
396
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
395
|
const headers = {};
|
|
398
396
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -411,7 +409,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
411
409
|
body,
|
|
412
410
|
});
|
|
413
411
|
};
|
|
414
|
-
export const
|
|
412
|
+
export const se_PutAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
415
413
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
414
|
const headers = {
|
|
417
415
|
"content-type": "application/json",
|
|
@@ -422,7 +420,7 @@ export const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = asyn
|
|
|
422
420
|
let body;
|
|
423
421
|
body = JSON.stringify({
|
|
424
422
|
...(input.AppInstanceRetentionSettings != null && {
|
|
425
|
-
AppInstanceRetentionSettings:
|
|
423
|
+
AppInstanceRetentionSettings: se_AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
426
424
|
}),
|
|
427
425
|
});
|
|
428
426
|
return new __HttpRequest({
|
|
@@ -435,7 +433,7 @@ export const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = asyn
|
|
|
435
433
|
body,
|
|
436
434
|
});
|
|
437
435
|
};
|
|
438
|
-
export const
|
|
436
|
+
export const se_PutAppInstanceUserExpirationSettingsCommand = async (input, context) => {
|
|
439
437
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
440
438
|
const headers = {
|
|
441
439
|
"content-type": "application/json",
|
|
@@ -446,7 +444,7 @@ export const serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand =
|
|
|
446
444
|
let body;
|
|
447
445
|
body = JSON.stringify({
|
|
448
446
|
...(input.ExpirationSettings != null && {
|
|
449
|
-
ExpirationSettings:
|
|
447
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
450
448
|
}),
|
|
451
449
|
});
|
|
452
450
|
return new __HttpRequest({
|
|
@@ -459,7 +457,7 @@ export const serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand =
|
|
|
459
457
|
body,
|
|
460
458
|
});
|
|
461
459
|
};
|
|
462
|
-
export const
|
|
460
|
+
export const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
463
461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
462
|
const headers = {
|
|
465
463
|
"content-type": "application/json",
|
|
@@ -472,7 +470,7 @@ export const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = asyn
|
|
|
472
470
|
...(input.AllowMessages != null && { AllowMessages: input.AllowMessages }),
|
|
473
471
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
474
472
|
...(input.EndpointAttributes != null && {
|
|
475
|
-
EndpointAttributes:
|
|
473
|
+
EndpointAttributes: se_EndpointAttributes(input.EndpointAttributes, context),
|
|
476
474
|
}),
|
|
477
475
|
...(input.Name != null && { Name: input.Name }),
|
|
478
476
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -488,7 +486,7 @@ export const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = asyn
|
|
|
488
486
|
body,
|
|
489
487
|
});
|
|
490
488
|
};
|
|
491
|
-
export const
|
|
489
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
492
490
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
491
|
const headers = {
|
|
494
492
|
"content-type": "application/json",
|
|
@@ -500,7 +498,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
500
498
|
let body;
|
|
501
499
|
body = JSON.stringify({
|
|
502
500
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
503
|
-
...(input.Tags != null && { Tags:
|
|
501
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
504
502
|
});
|
|
505
503
|
return new __HttpRequest({
|
|
506
504
|
protocol,
|
|
@@ -513,7 +511,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
513
511
|
body,
|
|
514
512
|
});
|
|
515
513
|
};
|
|
516
|
-
export const
|
|
514
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
517
515
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
516
|
const headers = {
|
|
519
517
|
"content-type": "application/json",
|
|
@@ -525,7 +523,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
525
523
|
let body;
|
|
526
524
|
body = JSON.stringify({
|
|
527
525
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
528
|
-
...(input.TagKeys != null && { TagKeys:
|
|
526
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
529
527
|
});
|
|
530
528
|
return new __HttpRequest({
|
|
531
529
|
protocol,
|
|
@@ -538,7 +536,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
538
536
|
body,
|
|
539
537
|
});
|
|
540
538
|
};
|
|
541
|
-
export const
|
|
539
|
+
export const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
542
540
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
543
541
|
const headers = {
|
|
544
542
|
"content-type": "application/json",
|
|
@@ -560,7 +558,7 @@ export const serializeAws_restJson1UpdateAppInstanceCommand = async (input, cont
|
|
|
560
558
|
body,
|
|
561
559
|
});
|
|
562
560
|
};
|
|
563
|
-
export const
|
|
561
|
+
export const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
564
562
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
565
563
|
const headers = {
|
|
566
564
|
"content-type": "application/json",
|
|
@@ -582,7 +580,7 @@ export const serializeAws_restJson1UpdateAppInstanceBotCommand = async (input, c
|
|
|
582
580
|
body,
|
|
583
581
|
});
|
|
584
582
|
};
|
|
585
|
-
export const
|
|
583
|
+
export const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
586
584
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
587
585
|
const headers = {
|
|
588
586
|
"content-type": "application/json",
|
|
@@ -604,7 +602,7 @@ export const serializeAws_restJson1UpdateAppInstanceUserCommand = async (input,
|
|
|
604
602
|
body,
|
|
605
603
|
});
|
|
606
604
|
};
|
|
607
|
-
export const
|
|
605
|
+
export const se_UpdateAppInstanceUserEndpointCommand = async (input, context) => {
|
|
608
606
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
607
|
const headers = {
|
|
610
608
|
"content-type": "application/json",
|
|
@@ -628,9 +626,9 @@ export const serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = async
|
|
|
628
626
|
body,
|
|
629
627
|
});
|
|
630
628
|
};
|
|
631
|
-
export const
|
|
629
|
+
export const de_CreateAppInstanceCommand = async (output, context) => {
|
|
632
630
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
633
|
-
return
|
|
631
|
+
return de_CreateAppInstanceCommandError(output, context);
|
|
634
632
|
}
|
|
635
633
|
const contents = map({
|
|
636
634
|
$metadata: deserializeMetadata(output),
|
|
@@ -641,7 +639,7 @@ export const deserializeAws_restJson1CreateAppInstanceCommand = async (output, c
|
|
|
641
639
|
}
|
|
642
640
|
return contents;
|
|
643
641
|
};
|
|
644
|
-
const
|
|
642
|
+
const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
645
643
|
const parsedOutput = {
|
|
646
644
|
...output,
|
|
647
645
|
body: await parseErrorBody(output.body, context),
|
|
@@ -650,28 +648,28 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
650
648
|
switch (errorCode) {
|
|
651
649
|
case "BadRequestException":
|
|
652
650
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
653
|
-
throw await
|
|
651
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
654
652
|
case "ConflictException":
|
|
655
653
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
656
|
-
throw await
|
|
654
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
657
655
|
case "ForbiddenException":
|
|
658
656
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
659
|
-
throw await
|
|
657
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
660
658
|
case "ResourceLimitExceededException":
|
|
661
659
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
662
|
-
throw await
|
|
660
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
663
661
|
case "ServiceFailureException":
|
|
664
662
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
665
|
-
throw await
|
|
663
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
666
664
|
case "ServiceUnavailableException":
|
|
667
665
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
668
|
-
throw await
|
|
666
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
669
667
|
case "ThrottledClientException":
|
|
670
668
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
671
|
-
throw await
|
|
669
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
672
670
|
case "UnauthorizedClientException":
|
|
673
671
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
674
|
-
throw await
|
|
672
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
675
673
|
default:
|
|
676
674
|
const parsedBody = parsedOutput.body;
|
|
677
675
|
throwDefaultError({
|
|
@@ -682,23 +680,23 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
682
680
|
});
|
|
683
681
|
}
|
|
684
682
|
};
|
|
685
|
-
export const
|
|
683
|
+
export const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
686
684
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
687
|
-
return
|
|
685
|
+
return de_CreateAppInstanceAdminCommandError(output, context);
|
|
688
686
|
}
|
|
689
687
|
const contents = map({
|
|
690
688
|
$metadata: deserializeMetadata(output),
|
|
691
689
|
});
|
|
692
690
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
693
691
|
if (data.AppInstanceAdmin != null) {
|
|
694
|
-
contents.AppInstanceAdmin =
|
|
692
|
+
contents.AppInstanceAdmin = de_Identity(data.AppInstanceAdmin, context);
|
|
695
693
|
}
|
|
696
694
|
if (data.AppInstanceArn != null) {
|
|
697
695
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
698
696
|
}
|
|
699
697
|
return contents;
|
|
700
698
|
};
|
|
701
|
-
const
|
|
699
|
+
const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
702
700
|
const parsedOutput = {
|
|
703
701
|
...output,
|
|
704
702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -707,28 +705,28 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
707
705
|
switch (errorCode) {
|
|
708
706
|
case "BadRequestException":
|
|
709
707
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
710
|
-
throw await
|
|
708
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
711
709
|
case "ConflictException":
|
|
712
710
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
713
|
-
throw await
|
|
711
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
712
|
case "ForbiddenException":
|
|
715
713
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
716
|
-
throw await
|
|
714
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
717
715
|
case "ResourceLimitExceededException":
|
|
718
716
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
719
|
-
throw await
|
|
717
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
720
718
|
case "ServiceFailureException":
|
|
721
719
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
722
|
-
throw await
|
|
720
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
723
721
|
case "ServiceUnavailableException":
|
|
724
722
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
725
|
-
throw await
|
|
723
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
726
724
|
case "ThrottledClientException":
|
|
727
725
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
728
|
-
throw await
|
|
726
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
729
727
|
case "UnauthorizedClientException":
|
|
730
728
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
731
|
-
throw await
|
|
729
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
732
730
|
default:
|
|
733
731
|
const parsedBody = parsedOutput.body;
|
|
734
732
|
throwDefaultError({
|
|
@@ -739,9 +737,9 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
739
737
|
});
|
|
740
738
|
}
|
|
741
739
|
};
|
|
742
|
-
export const
|
|
740
|
+
export const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
743
741
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
744
|
-
return
|
|
742
|
+
return de_CreateAppInstanceBotCommandError(output, context);
|
|
745
743
|
}
|
|
746
744
|
const contents = map({
|
|
747
745
|
$metadata: deserializeMetadata(output),
|
|
@@ -752,7 +750,7 @@ export const deserializeAws_restJson1CreateAppInstanceBotCommand = async (output
|
|
|
752
750
|
}
|
|
753
751
|
return contents;
|
|
754
752
|
};
|
|
755
|
-
const
|
|
753
|
+
const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
756
754
|
const parsedOutput = {
|
|
757
755
|
...output,
|
|
758
756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -761,28 +759,28 @@ const deserializeAws_restJson1CreateAppInstanceBotCommandError = async (output,
|
|
|
761
759
|
switch (errorCode) {
|
|
762
760
|
case "BadRequestException":
|
|
763
761
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
764
|
-
throw await
|
|
762
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
765
763
|
case "ConflictException":
|
|
766
764
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
767
|
-
throw await
|
|
765
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
768
766
|
case "ForbiddenException":
|
|
769
767
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
770
|
-
throw await
|
|
768
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
771
769
|
case "ResourceLimitExceededException":
|
|
772
770
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
773
|
-
throw await
|
|
771
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
774
772
|
case "ServiceFailureException":
|
|
775
773
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
776
|
-
throw await
|
|
774
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
777
775
|
case "ServiceUnavailableException":
|
|
778
776
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
779
|
-
throw await
|
|
777
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
780
778
|
case "ThrottledClientException":
|
|
781
779
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
782
|
-
throw await
|
|
780
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
783
781
|
case "UnauthorizedClientException":
|
|
784
782
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
785
|
-
throw await
|
|
783
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
786
784
|
default:
|
|
787
785
|
const parsedBody = parsedOutput.body;
|
|
788
786
|
throwDefaultError({
|
|
@@ -793,9 +791,9 @@ const deserializeAws_restJson1CreateAppInstanceBotCommandError = async (output,
|
|
|
793
791
|
});
|
|
794
792
|
}
|
|
795
793
|
};
|
|
796
|
-
export const
|
|
794
|
+
export const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
797
795
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
798
|
-
return
|
|
796
|
+
return de_CreateAppInstanceUserCommandError(output, context);
|
|
799
797
|
}
|
|
800
798
|
const contents = map({
|
|
801
799
|
$metadata: deserializeMetadata(output),
|
|
@@ -806,7 +804,7 @@ export const deserializeAws_restJson1CreateAppInstanceUserCommand = async (outpu
|
|
|
806
804
|
}
|
|
807
805
|
return contents;
|
|
808
806
|
};
|
|
809
|
-
const
|
|
807
|
+
const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
810
808
|
const parsedOutput = {
|
|
811
809
|
...output,
|
|
812
810
|
body: await parseErrorBody(output.body, context),
|
|
@@ -815,28 +813,28 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
815
813
|
switch (errorCode) {
|
|
816
814
|
case "BadRequestException":
|
|
817
815
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
818
|
-
throw await
|
|
816
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
819
817
|
case "ConflictException":
|
|
820
818
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
821
|
-
throw await
|
|
819
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
822
820
|
case "ForbiddenException":
|
|
823
821
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
824
|
-
throw await
|
|
822
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
825
823
|
case "ResourceLimitExceededException":
|
|
826
824
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
827
|
-
throw await
|
|
825
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
828
826
|
case "ServiceFailureException":
|
|
829
827
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
830
|
-
throw await
|
|
828
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
831
829
|
case "ServiceUnavailableException":
|
|
832
830
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
833
|
-
throw await
|
|
831
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
834
832
|
case "ThrottledClientException":
|
|
835
833
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
836
|
-
throw await
|
|
834
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
837
835
|
case "UnauthorizedClientException":
|
|
838
836
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
839
|
-
throw await
|
|
837
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
840
838
|
default:
|
|
841
839
|
const parsedBody = parsedOutput.body;
|
|
842
840
|
throwDefaultError({
|
|
@@ -847,9 +845,9 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
847
845
|
});
|
|
848
846
|
}
|
|
849
847
|
};
|
|
850
|
-
export const
|
|
848
|
+
export const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
851
849
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
852
|
-
return
|
|
850
|
+
return de_DeleteAppInstanceCommandError(output, context);
|
|
853
851
|
}
|
|
854
852
|
const contents = map({
|
|
855
853
|
$metadata: deserializeMetadata(output),
|
|
@@ -857,7 +855,7 @@ export const deserializeAws_restJson1DeleteAppInstanceCommand = async (output, c
|
|
|
857
855
|
await collectBody(output.body, context);
|
|
858
856
|
return contents;
|
|
859
857
|
};
|
|
860
|
-
const
|
|
858
|
+
const de_DeleteAppInstanceCommandError = async (output, context) => {
|
|
861
859
|
const parsedOutput = {
|
|
862
860
|
...output,
|
|
863
861
|
body: await parseErrorBody(output.body, context),
|
|
@@ -866,25 +864,25 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
866
864
|
switch (errorCode) {
|
|
867
865
|
case "BadRequestException":
|
|
868
866
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
869
|
-
throw await
|
|
867
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
870
868
|
case "ForbiddenException":
|
|
871
869
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
872
|
-
throw await
|
|
870
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
873
871
|
case "ResourceLimitExceededException":
|
|
874
872
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
875
|
-
throw await
|
|
873
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
876
874
|
case "ServiceFailureException":
|
|
877
875
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
878
|
-
throw await
|
|
876
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
879
877
|
case "ServiceUnavailableException":
|
|
880
878
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
881
|
-
throw await
|
|
879
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
882
880
|
case "ThrottledClientException":
|
|
883
881
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
884
|
-
throw await
|
|
882
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
885
883
|
case "UnauthorizedClientException":
|
|
886
884
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
887
|
-
throw await
|
|
885
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
888
886
|
default:
|
|
889
887
|
const parsedBody = parsedOutput.body;
|
|
890
888
|
throwDefaultError({
|
|
@@ -895,9 +893,9 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
895
893
|
});
|
|
896
894
|
}
|
|
897
895
|
};
|
|
898
|
-
export const
|
|
896
|
+
export const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
899
897
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
900
|
-
return
|
|
898
|
+
return de_DeleteAppInstanceAdminCommandError(output, context);
|
|
901
899
|
}
|
|
902
900
|
const contents = map({
|
|
903
901
|
$metadata: deserializeMetadata(output),
|
|
@@ -905,7 +903,7 @@ export const deserializeAws_restJson1DeleteAppInstanceAdminCommand = async (outp
|
|
|
905
903
|
await collectBody(output.body, context);
|
|
906
904
|
return contents;
|
|
907
905
|
};
|
|
908
|
-
const
|
|
906
|
+
const de_DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
909
907
|
const parsedOutput = {
|
|
910
908
|
...output,
|
|
911
909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -914,28 +912,28 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
914
912
|
switch (errorCode) {
|
|
915
913
|
case "BadRequestException":
|
|
916
914
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
917
|
-
throw await
|
|
915
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
918
916
|
case "ConflictException":
|
|
919
917
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
920
|
-
throw await
|
|
918
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
921
919
|
case "ForbiddenException":
|
|
922
920
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
923
|
-
throw await
|
|
921
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
924
922
|
case "ResourceLimitExceededException":
|
|
925
923
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
926
|
-
throw await
|
|
924
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
927
925
|
case "ServiceFailureException":
|
|
928
926
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
929
|
-
throw await
|
|
927
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
930
928
|
case "ServiceUnavailableException":
|
|
931
929
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
932
|
-
throw await
|
|
930
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
933
931
|
case "ThrottledClientException":
|
|
934
932
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
935
|
-
throw await
|
|
933
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
936
934
|
case "UnauthorizedClientException":
|
|
937
935
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
938
|
-
throw await
|
|
936
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
939
937
|
default:
|
|
940
938
|
const parsedBody = parsedOutput.body;
|
|
941
939
|
throwDefaultError({
|
|
@@ -946,9 +944,9 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
946
944
|
});
|
|
947
945
|
}
|
|
948
946
|
};
|
|
949
|
-
export const
|
|
947
|
+
export const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
950
948
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
949
|
+
return de_DeleteAppInstanceBotCommandError(output, context);
|
|
952
950
|
}
|
|
953
951
|
const contents = map({
|
|
954
952
|
$metadata: deserializeMetadata(output),
|
|
@@ -956,7 +954,7 @@ export const deserializeAws_restJson1DeleteAppInstanceBotCommand = async (output
|
|
|
956
954
|
await collectBody(output.body, context);
|
|
957
955
|
return contents;
|
|
958
956
|
};
|
|
959
|
-
const
|
|
957
|
+
const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
960
958
|
const parsedOutput = {
|
|
961
959
|
...output,
|
|
962
960
|
body: await parseErrorBody(output.body, context),
|
|
@@ -965,28 +963,28 @@ const deserializeAws_restJson1DeleteAppInstanceBotCommandError = async (output,
|
|
|
965
963
|
switch (errorCode) {
|
|
966
964
|
case "BadRequestException":
|
|
967
965
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
968
|
-
throw await
|
|
966
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
969
967
|
case "ConflictException":
|
|
970
968
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
971
|
-
throw await
|
|
969
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
972
970
|
case "ForbiddenException":
|
|
973
971
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
974
|
-
throw await
|
|
972
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
975
973
|
case "ResourceLimitExceededException":
|
|
976
974
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
977
|
-
throw await
|
|
975
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
978
976
|
case "ServiceFailureException":
|
|
979
977
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
980
|
-
throw await
|
|
978
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
981
979
|
case "ServiceUnavailableException":
|
|
982
980
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
983
|
-
throw await
|
|
981
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
982
|
case "ThrottledClientException":
|
|
985
983
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
986
|
-
throw await
|
|
984
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
987
985
|
case "UnauthorizedClientException":
|
|
988
986
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
989
|
-
throw await
|
|
987
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
990
988
|
default:
|
|
991
989
|
const parsedBody = parsedOutput.body;
|
|
992
990
|
throwDefaultError({
|
|
@@ -997,9 +995,9 @@ const deserializeAws_restJson1DeleteAppInstanceBotCommandError = async (output,
|
|
|
997
995
|
});
|
|
998
996
|
}
|
|
999
997
|
};
|
|
1000
|
-
export const
|
|
998
|
+
export const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
1001
999
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1002
|
-
return
|
|
1000
|
+
return de_DeleteAppInstanceUserCommandError(output, context);
|
|
1003
1001
|
}
|
|
1004
1002
|
const contents = map({
|
|
1005
1003
|
$metadata: deserializeMetadata(output),
|
|
@@ -1007,7 +1005,7 @@ export const deserializeAws_restJson1DeleteAppInstanceUserCommand = async (outpu
|
|
|
1007
1005
|
await collectBody(output.body, context);
|
|
1008
1006
|
return contents;
|
|
1009
1007
|
};
|
|
1010
|
-
const
|
|
1008
|
+
const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
1011
1009
|
const parsedOutput = {
|
|
1012
1010
|
...output,
|
|
1013
1011
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1016,28 +1014,28 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
1016
1014
|
switch (errorCode) {
|
|
1017
1015
|
case "BadRequestException":
|
|
1018
1016
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1019
|
-
throw await
|
|
1017
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1020
1018
|
case "ConflictException":
|
|
1021
1019
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1022
|
-
throw await
|
|
1020
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1023
1021
|
case "ForbiddenException":
|
|
1024
1022
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1025
|
-
throw await
|
|
1023
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1026
1024
|
case "ResourceLimitExceededException":
|
|
1027
1025
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1028
|
-
throw await
|
|
1026
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1029
1027
|
case "ServiceFailureException":
|
|
1030
1028
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1031
|
-
throw await
|
|
1029
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1032
1030
|
case "ServiceUnavailableException":
|
|
1033
1031
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1034
|
-
throw await
|
|
1032
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1035
1033
|
case "ThrottledClientException":
|
|
1036
1034
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1037
|
-
throw await
|
|
1035
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1038
1036
|
case "UnauthorizedClientException":
|
|
1039
1037
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1040
|
-
throw await
|
|
1038
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1041
1039
|
default:
|
|
1042
1040
|
const parsedBody = parsedOutput.body;
|
|
1043
1041
|
throwDefaultError({
|
|
@@ -1048,9 +1046,9 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
1048
1046
|
});
|
|
1049
1047
|
}
|
|
1050
1048
|
};
|
|
1051
|
-
export const
|
|
1049
|
+
export const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1052
1050
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
1051
|
+
return de_DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
1054
1052
|
}
|
|
1055
1053
|
const contents = map({
|
|
1056
1054
|
$metadata: deserializeMetadata(output),
|
|
@@ -1058,7 +1056,7 @@ export const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand =
|
|
|
1058
1056
|
await collectBody(output.body, context);
|
|
1059
1057
|
return contents;
|
|
1060
1058
|
};
|
|
1061
|
-
const
|
|
1059
|
+
const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1062
1060
|
const parsedOutput = {
|
|
1063
1061
|
...output,
|
|
1064
1062
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1067,22 +1065,22 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = as
|
|
|
1067
1065
|
switch (errorCode) {
|
|
1068
1066
|
case "BadRequestException":
|
|
1069
1067
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1070
|
-
throw await
|
|
1068
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1071
1069
|
case "ForbiddenException":
|
|
1072
1070
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1073
|
-
throw await
|
|
1071
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1074
1072
|
case "ServiceFailureException":
|
|
1075
1073
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1076
|
-
throw await
|
|
1074
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1077
1075
|
case "ServiceUnavailableException":
|
|
1078
1076
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1079
|
-
throw await
|
|
1077
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1080
1078
|
case "ThrottledClientException":
|
|
1081
1079
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1082
|
-
throw await
|
|
1080
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1083
1081
|
case "UnauthorizedClientException":
|
|
1084
1082
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1085
|
-
throw await
|
|
1083
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1086
1084
|
default:
|
|
1087
1085
|
const parsedBody = parsedOutput.body;
|
|
1088
1086
|
throwDefaultError({
|
|
@@ -1093,20 +1091,20 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = as
|
|
|
1093
1091
|
});
|
|
1094
1092
|
}
|
|
1095
1093
|
};
|
|
1096
|
-
export const
|
|
1094
|
+
export const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
1097
1095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1098
|
-
return
|
|
1096
|
+
return de_DescribeAppInstanceCommandError(output, context);
|
|
1099
1097
|
}
|
|
1100
1098
|
const contents = map({
|
|
1101
1099
|
$metadata: deserializeMetadata(output),
|
|
1102
1100
|
});
|
|
1103
1101
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1104
1102
|
if (data.AppInstance != null) {
|
|
1105
|
-
contents.AppInstance =
|
|
1103
|
+
contents.AppInstance = de_AppInstance(data.AppInstance, context);
|
|
1106
1104
|
}
|
|
1107
1105
|
return contents;
|
|
1108
1106
|
};
|
|
1109
|
-
const
|
|
1107
|
+
const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
1110
1108
|
const parsedOutput = {
|
|
1111
1109
|
...output,
|
|
1112
1110
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1115,22 +1113,22 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
1115
1113
|
switch (errorCode) {
|
|
1116
1114
|
case "BadRequestException":
|
|
1117
1115
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1118
|
-
throw await
|
|
1116
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1119
1117
|
case "ForbiddenException":
|
|
1120
1118
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1121
|
-
throw await
|
|
1119
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1122
1120
|
case "ServiceFailureException":
|
|
1123
1121
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1124
|
-
throw await
|
|
1122
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1125
1123
|
case "ServiceUnavailableException":
|
|
1126
1124
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1127
|
-
throw await
|
|
1125
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1128
1126
|
case "ThrottledClientException":
|
|
1129
1127
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1130
|
-
throw await
|
|
1128
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1131
1129
|
case "UnauthorizedClientException":
|
|
1132
1130
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1133
|
-
throw await
|
|
1131
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1134
1132
|
default:
|
|
1135
1133
|
const parsedBody = parsedOutput.body;
|
|
1136
1134
|
throwDefaultError({
|
|
@@ -1141,20 +1139,20 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
1141
1139
|
});
|
|
1142
1140
|
}
|
|
1143
1141
|
};
|
|
1144
|
-
export const
|
|
1142
|
+
export const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
1145
1143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return
|
|
1144
|
+
return de_DescribeAppInstanceAdminCommandError(output, context);
|
|
1147
1145
|
}
|
|
1148
1146
|
const contents = map({
|
|
1149
1147
|
$metadata: deserializeMetadata(output),
|
|
1150
1148
|
});
|
|
1151
1149
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1152
1150
|
if (data.AppInstanceAdmin != null) {
|
|
1153
|
-
contents.AppInstanceAdmin =
|
|
1151
|
+
contents.AppInstanceAdmin = de_AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
1154
1152
|
}
|
|
1155
1153
|
return contents;
|
|
1156
1154
|
};
|
|
1157
|
-
const
|
|
1155
|
+
const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
1158
1156
|
const parsedOutput = {
|
|
1159
1157
|
...output,
|
|
1160
1158
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1163,22 +1161,22 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
1163
1161
|
switch (errorCode) {
|
|
1164
1162
|
case "BadRequestException":
|
|
1165
1163
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1166
|
-
throw await
|
|
1164
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1167
1165
|
case "ForbiddenException":
|
|
1168
1166
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1169
|
-
throw await
|
|
1167
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1170
1168
|
case "ServiceFailureException":
|
|
1171
1169
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1172
|
-
throw await
|
|
1170
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1173
1171
|
case "ServiceUnavailableException":
|
|
1174
1172
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1175
|
-
throw await
|
|
1173
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1176
1174
|
case "ThrottledClientException":
|
|
1177
1175
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1178
|
-
throw await
|
|
1176
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1179
1177
|
case "UnauthorizedClientException":
|
|
1180
1178
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1181
|
-
throw await
|
|
1179
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1182
1180
|
default:
|
|
1183
1181
|
const parsedBody = parsedOutput.body;
|
|
1184
1182
|
throwDefaultError({
|
|
@@ -1189,20 +1187,20 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
1189
1187
|
});
|
|
1190
1188
|
}
|
|
1191
1189
|
};
|
|
1192
|
-
export const
|
|
1190
|
+
export const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
1193
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
1192
|
+
return de_DescribeAppInstanceBotCommandError(output, context);
|
|
1195
1193
|
}
|
|
1196
1194
|
const contents = map({
|
|
1197
1195
|
$metadata: deserializeMetadata(output),
|
|
1198
1196
|
});
|
|
1199
1197
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1200
1198
|
if (data.AppInstanceBot != null) {
|
|
1201
|
-
contents.AppInstanceBot =
|
|
1199
|
+
contents.AppInstanceBot = de_AppInstanceBot(data.AppInstanceBot, context);
|
|
1202
1200
|
}
|
|
1203
1201
|
return contents;
|
|
1204
1202
|
};
|
|
1205
|
-
const
|
|
1203
|
+
const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
1206
1204
|
const parsedOutput = {
|
|
1207
1205
|
...output,
|
|
1208
1206
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1211,25 +1209,25 @@ const deserializeAws_restJson1DescribeAppInstanceBotCommandError = async (output
|
|
|
1211
1209
|
switch (errorCode) {
|
|
1212
1210
|
case "BadRequestException":
|
|
1213
1211
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1214
|
-
throw await
|
|
1212
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1215
1213
|
case "ForbiddenException":
|
|
1216
1214
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1217
|
-
throw await
|
|
1215
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1218
1216
|
case "NotFoundException":
|
|
1219
1217
|
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1220
|
-
throw await
|
|
1218
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1221
1219
|
case "ServiceFailureException":
|
|
1222
1220
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1223
|
-
throw await
|
|
1221
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1224
1222
|
case "ServiceUnavailableException":
|
|
1225
1223
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1226
|
-
throw await
|
|
1224
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1227
1225
|
case "ThrottledClientException":
|
|
1228
1226
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1229
|
-
throw await
|
|
1227
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1230
1228
|
case "UnauthorizedClientException":
|
|
1231
1229
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1232
|
-
throw await
|
|
1230
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1233
1231
|
default:
|
|
1234
1232
|
const parsedBody = parsedOutput.body;
|
|
1235
1233
|
throwDefaultError({
|
|
@@ -1240,20 +1238,20 @@ const deserializeAws_restJson1DescribeAppInstanceBotCommandError = async (output
|
|
|
1240
1238
|
});
|
|
1241
1239
|
}
|
|
1242
1240
|
};
|
|
1243
|
-
export const
|
|
1241
|
+
export const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
1244
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
-
return
|
|
1243
|
+
return de_DescribeAppInstanceUserCommandError(output, context);
|
|
1246
1244
|
}
|
|
1247
1245
|
const contents = map({
|
|
1248
1246
|
$metadata: deserializeMetadata(output),
|
|
1249
1247
|
});
|
|
1250
1248
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1251
1249
|
if (data.AppInstanceUser != null) {
|
|
1252
|
-
contents.AppInstanceUser =
|
|
1250
|
+
contents.AppInstanceUser = de_AppInstanceUser(data.AppInstanceUser, context);
|
|
1253
1251
|
}
|
|
1254
1252
|
return contents;
|
|
1255
1253
|
};
|
|
1256
|
-
const
|
|
1254
|
+
const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
1257
1255
|
const parsedOutput = {
|
|
1258
1256
|
...output,
|
|
1259
1257
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1262,22 +1260,22 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
1262
1260
|
switch (errorCode) {
|
|
1263
1261
|
case "BadRequestException":
|
|
1264
1262
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1265
|
-
throw await
|
|
1263
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1266
1264
|
case "ForbiddenException":
|
|
1267
1265
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1268
|
-
throw await
|
|
1266
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1269
1267
|
case "ServiceFailureException":
|
|
1270
1268
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1271
|
-
throw await
|
|
1269
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1272
1270
|
case "ServiceUnavailableException":
|
|
1273
1271
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1274
|
-
throw await
|
|
1272
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1275
1273
|
case "ThrottledClientException":
|
|
1276
1274
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1277
|
-
throw await
|
|
1275
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1278
1276
|
case "UnauthorizedClientException":
|
|
1279
1277
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1280
|
-
throw await
|
|
1278
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1281
1279
|
default:
|
|
1282
1280
|
const parsedBody = parsedOutput.body;
|
|
1283
1281
|
throwDefaultError({
|
|
@@ -1288,20 +1286,20 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
1288
1286
|
});
|
|
1289
1287
|
}
|
|
1290
1288
|
};
|
|
1291
|
-
export const
|
|
1289
|
+
export const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1292
1290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
|
-
return
|
|
1291
|
+
return de_DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1294
1292
|
}
|
|
1295
1293
|
const contents = map({
|
|
1296
1294
|
$metadata: deserializeMetadata(output),
|
|
1297
1295
|
});
|
|
1298
1296
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1299
1297
|
if (data.AppInstanceUserEndpoint != null) {
|
|
1300
|
-
contents.AppInstanceUserEndpoint =
|
|
1298
|
+
contents.AppInstanceUserEndpoint = de_AppInstanceUserEndpoint(data.AppInstanceUserEndpoint, context);
|
|
1301
1299
|
}
|
|
1302
1300
|
return contents;
|
|
1303
1301
|
};
|
|
1304
|
-
const
|
|
1302
|
+
const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1305
1303
|
const parsedOutput = {
|
|
1306
1304
|
...output,
|
|
1307
1305
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1310,22 +1308,22 @@ const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = asyn
|
|
|
1310
1308
|
switch (errorCode) {
|
|
1311
1309
|
case "BadRequestException":
|
|
1312
1310
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1313
|
-
throw await
|
|
1311
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1314
1312
|
case "ForbiddenException":
|
|
1315
1313
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1316
|
-
throw await
|
|
1314
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1317
1315
|
case "ServiceFailureException":
|
|
1318
1316
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1319
|
-
throw await
|
|
1317
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1320
1318
|
case "ServiceUnavailableException":
|
|
1321
1319
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1322
|
-
throw await
|
|
1320
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1323
1321
|
case "ThrottledClientException":
|
|
1324
1322
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1325
|
-
throw await
|
|
1323
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1326
1324
|
case "UnauthorizedClientException":
|
|
1327
1325
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1328
|
-
throw await
|
|
1326
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1329
1327
|
default:
|
|
1330
1328
|
const parsedBody = parsedOutput.body;
|
|
1331
1329
|
throwDefaultError({
|
|
@@ -1336,23 +1334,23 @@ const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = asyn
|
|
|
1336
1334
|
});
|
|
1337
1335
|
}
|
|
1338
1336
|
};
|
|
1339
|
-
export const
|
|
1337
|
+
export const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1340
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1339
|
+
return de_GetAppInstanceRetentionSettingsCommandError(output, context);
|
|
1342
1340
|
}
|
|
1343
1341
|
const contents = map({
|
|
1344
1342
|
$metadata: deserializeMetadata(output),
|
|
1345
1343
|
});
|
|
1346
1344
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1347
1345
|
if (data.AppInstanceRetentionSettings != null) {
|
|
1348
|
-
contents.AppInstanceRetentionSettings =
|
|
1346
|
+
contents.AppInstanceRetentionSettings = de_AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1349
1347
|
}
|
|
1350
1348
|
if (data.InitiateDeletionTimestamp != null) {
|
|
1351
1349
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1352
1350
|
}
|
|
1353
1351
|
return contents;
|
|
1354
1352
|
};
|
|
1355
|
-
const
|
|
1353
|
+
const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1356
1354
|
const parsedOutput = {
|
|
1357
1355
|
...output,
|
|
1358
1356
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1361,22 +1359,22 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1361
1359
|
switch (errorCode) {
|
|
1362
1360
|
case "BadRequestException":
|
|
1363
1361
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1364
|
-
throw await
|
|
1362
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1365
1363
|
case "ForbiddenException":
|
|
1366
1364
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1367
|
-
throw await
|
|
1365
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1368
1366
|
case "ServiceFailureException":
|
|
1369
1367
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1370
|
-
throw await
|
|
1368
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1371
1369
|
case "ServiceUnavailableException":
|
|
1372
1370
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1373
|
-
throw await
|
|
1371
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1374
1372
|
case "ThrottledClientException":
|
|
1375
1373
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1376
|
-
throw await
|
|
1374
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1377
1375
|
case "UnauthorizedClientException":
|
|
1378
1376
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1379
|
-
throw await
|
|
1377
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1380
1378
|
default:
|
|
1381
1379
|
const parsedBody = parsedOutput.body;
|
|
1382
1380
|
throwDefaultError({
|
|
@@ -1387,16 +1385,16 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1387
1385
|
});
|
|
1388
1386
|
}
|
|
1389
1387
|
};
|
|
1390
|
-
export const
|
|
1388
|
+
export const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1391
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
1390
|
+
return de_ListAppInstanceAdminsCommandError(output, context);
|
|
1393
1391
|
}
|
|
1394
1392
|
const contents = map({
|
|
1395
1393
|
$metadata: deserializeMetadata(output),
|
|
1396
1394
|
});
|
|
1397
1395
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1398
1396
|
if (data.AppInstanceAdmins != null) {
|
|
1399
|
-
contents.AppInstanceAdmins =
|
|
1397
|
+
contents.AppInstanceAdmins = de_AppInstanceAdminList(data.AppInstanceAdmins, context);
|
|
1400
1398
|
}
|
|
1401
1399
|
if (data.AppInstanceArn != null) {
|
|
1402
1400
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
@@ -1406,7 +1404,7 @@ export const deserializeAws_restJson1ListAppInstanceAdminsCommand = async (outpu
|
|
|
1406
1404
|
}
|
|
1407
1405
|
return contents;
|
|
1408
1406
|
};
|
|
1409
|
-
const
|
|
1407
|
+
const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
1410
1408
|
const parsedOutput = {
|
|
1411
1409
|
...output,
|
|
1412
1410
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1415,25 +1413,25 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1415
1413
|
switch (errorCode) {
|
|
1416
1414
|
case "BadRequestException":
|
|
1417
1415
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1418
|
-
throw await
|
|
1416
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1419
1417
|
case "ForbiddenException":
|
|
1420
1418
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1421
|
-
throw await
|
|
1419
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1422
1420
|
case "ResourceLimitExceededException":
|
|
1423
1421
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1424
|
-
throw await
|
|
1422
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1425
1423
|
case "ServiceFailureException":
|
|
1426
1424
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1427
|
-
throw await
|
|
1425
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1428
1426
|
case "ServiceUnavailableException":
|
|
1429
1427
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1430
|
-
throw await
|
|
1428
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1431
1429
|
case "ThrottledClientException":
|
|
1432
1430
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1433
|
-
throw await
|
|
1431
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1434
1432
|
case "UnauthorizedClientException":
|
|
1435
1433
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1436
|
-
throw await
|
|
1434
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1437
1435
|
default:
|
|
1438
1436
|
const parsedBody = parsedOutput.body;
|
|
1439
1437
|
throwDefaultError({
|
|
@@ -1444,9 +1442,9 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1444
1442
|
});
|
|
1445
1443
|
}
|
|
1446
1444
|
};
|
|
1447
|
-
export const
|
|
1445
|
+
export const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
1448
1446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
1447
|
+
return de_ListAppInstanceBotsCommandError(output, context);
|
|
1450
1448
|
}
|
|
1451
1449
|
const contents = map({
|
|
1452
1450
|
$metadata: deserializeMetadata(output),
|
|
@@ -1456,14 +1454,14 @@ export const deserializeAws_restJson1ListAppInstanceBotsCommand = async (output,
|
|
|
1456
1454
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
1457
1455
|
}
|
|
1458
1456
|
if (data.AppInstanceBots != null) {
|
|
1459
|
-
contents.AppInstanceBots =
|
|
1457
|
+
contents.AppInstanceBots = de_AppInstanceBotList(data.AppInstanceBots, context);
|
|
1460
1458
|
}
|
|
1461
1459
|
if (data.NextToken != null) {
|
|
1462
1460
|
contents.NextToken = __expectString(data.NextToken);
|
|
1463
1461
|
}
|
|
1464
1462
|
return contents;
|
|
1465
1463
|
};
|
|
1466
|
-
const
|
|
1464
|
+
const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
1467
1465
|
const parsedOutput = {
|
|
1468
1466
|
...output,
|
|
1469
1467
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1472,25 +1470,25 @@ const deserializeAws_restJson1ListAppInstanceBotsCommandError = async (output, c
|
|
|
1472
1470
|
switch (errorCode) {
|
|
1473
1471
|
case "BadRequestException":
|
|
1474
1472
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1475
|
-
throw await
|
|
1473
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1476
1474
|
case "ForbiddenException":
|
|
1477
1475
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1478
|
-
throw await
|
|
1476
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1479
1477
|
case "ResourceLimitExceededException":
|
|
1480
1478
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1481
|
-
throw await
|
|
1479
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1482
1480
|
case "ServiceFailureException":
|
|
1483
1481
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1484
|
-
throw await
|
|
1482
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1485
1483
|
case "ServiceUnavailableException":
|
|
1486
1484
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1487
|
-
throw await
|
|
1485
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1488
1486
|
case "ThrottledClientException":
|
|
1489
1487
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1490
|
-
throw await
|
|
1488
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1491
1489
|
case "UnauthorizedClientException":
|
|
1492
1490
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1493
|
-
throw await
|
|
1491
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1494
1492
|
default:
|
|
1495
1493
|
const parsedBody = parsedOutput.body;
|
|
1496
1494
|
throwDefaultError({
|
|
@@ -1501,23 +1499,23 @@ const deserializeAws_restJson1ListAppInstanceBotsCommandError = async (output, c
|
|
|
1501
1499
|
});
|
|
1502
1500
|
}
|
|
1503
1501
|
};
|
|
1504
|
-
export const
|
|
1502
|
+
export const de_ListAppInstancesCommand = async (output, context) => {
|
|
1505
1503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
|
-
return
|
|
1504
|
+
return de_ListAppInstancesCommandError(output, context);
|
|
1507
1505
|
}
|
|
1508
1506
|
const contents = map({
|
|
1509
1507
|
$metadata: deserializeMetadata(output),
|
|
1510
1508
|
});
|
|
1511
1509
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1512
1510
|
if (data.AppInstances != null) {
|
|
1513
|
-
contents.AppInstances =
|
|
1511
|
+
contents.AppInstances = de_AppInstanceList(data.AppInstances, context);
|
|
1514
1512
|
}
|
|
1515
1513
|
if (data.NextToken != null) {
|
|
1516
1514
|
contents.NextToken = __expectString(data.NextToken);
|
|
1517
1515
|
}
|
|
1518
1516
|
return contents;
|
|
1519
1517
|
};
|
|
1520
|
-
const
|
|
1518
|
+
const de_ListAppInstancesCommandError = async (output, context) => {
|
|
1521
1519
|
const parsedOutput = {
|
|
1522
1520
|
...output,
|
|
1523
1521
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1526,22 +1524,22 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
1526
1524
|
switch (errorCode) {
|
|
1527
1525
|
case "BadRequestException":
|
|
1528
1526
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1529
|
-
throw await
|
|
1527
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1530
1528
|
case "ForbiddenException":
|
|
1531
1529
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1532
|
-
throw await
|
|
1530
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1533
1531
|
case "ServiceFailureException":
|
|
1534
1532
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1535
|
-
throw await
|
|
1533
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1536
1534
|
case "ServiceUnavailableException":
|
|
1537
1535
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1538
|
-
throw await
|
|
1536
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1539
1537
|
case "ThrottledClientException":
|
|
1540
1538
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1541
|
-
throw await
|
|
1539
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1542
1540
|
case "UnauthorizedClientException":
|
|
1543
1541
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1544
|
-
throw await
|
|
1542
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1545
1543
|
default:
|
|
1546
1544
|
const parsedBody = parsedOutput.body;
|
|
1547
1545
|
throwDefaultError({
|
|
@@ -1552,23 +1550,23 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
1552
1550
|
});
|
|
1553
1551
|
}
|
|
1554
1552
|
};
|
|
1555
|
-
export const
|
|
1553
|
+
export const de_ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
1556
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1555
|
+
return de_ListAppInstanceUserEndpointsCommandError(output, context);
|
|
1558
1556
|
}
|
|
1559
1557
|
const contents = map({
|
|
1560
1558
|
$metadata: deserializeMetadata(output),
|
|
1561
1559
|
});
|
|
1562
1560
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1563
1561
|
if (data.AppInstanceUserEndpoints != null) {
|
|
1564
|
-
contents.AppInstanceUserEndpoints =
|
|
1562
|
+
contents.AppInstanceUserEndpoints = de_AppInstanceUserEndpointSummaryList(data.AppInstanceUserEndpoints, context);
|
|
1565
1563
|
}
|
|
1566
1564
|
if (data.NextToken != null) {
|
|
1567
1565
|
contents.NextToken = __expectString(data.NextToken);
|
|
1568
1566
|
}
|
|
1569
1567
|
return contents;
|
|
1570
1568
|
};
|
|
1571
|
-
const
|
|
1569
|
+
const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
1572
1570
|
const parsedOutput = {
|
|
1573
1571
|
...output,
|
|
1574
1572
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1577,22 +1575,22 @@ const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (
|
|
|
1577
1575
|
switch (errorCode) {
|
|
1578
1576
|
case "BadRequestException":
|
|
1579
1577
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1580
|
-
throw await
|
|
1578
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1581
1579
|
case "ForbiddenException":
|
|
1582
1580
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1583
|
-
throw await
|
|
1581
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1584
1582
|
case "ServiceFailureException":
|
|
1585
1583
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1586
|
-
throw await
|
|
1584
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1587
1585
|
case "ServiceUnavailableException":
|
|
1588
1586
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1589
|
-
throw await
|
|
1587
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1590
1588
|
case "ThrottledClientException":
|
|
1591
1589
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1592
|
-
throw await
|
|
1590
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1593
1591
|
case "UnauthorizedClientException":
|
|
1594
1592
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1595
|
-
throw await
|
|
1593
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1596
1594
|
default:
|
|
1597
1595
|
const parsedBody = parsedOutput.body;
|
|
1598
1596
|
throwDefaultError({
|
|
@@ -1603,9 +1601,9 @@ const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (
|
|
|
1603
1601
|
});
|
|
1604
1602
|
}
|
|
1605
1603
|
};
|
|
1606
|
-
export const
|
|
1604
|
+
export const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
1607
1605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
|
-
return
|
|
1606
|
+
return de_ListAppInstanceUsersCommandError(output, context);
|
|
1609
1607
|
}
|
|
1610
1608
|
const contents = map({
|
|
1611
1609
|
$metadata: deserializeMetadata(output),
|
|
@@ -1615,14 +1613,14 @@ export const deserializeAws_restJson1ListAppInstanceUsersCommand = async (output
|
|
|
1615
1613
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
1616
1614
|
}
|
|
1617
1615
|
if (data.AppInstanceUsers != null) {
|
|
1618
|
-
contents.AppInstanceUsers =
|
|
1616
|
+
contents.AppInstanceUsers = de_AppInstanceUserList(data.AppInstanceUsers, context);
|
|
1619
1617
|
}
|
|
1620
1618
|
if (data.NextToken != null) {
|
|
1621
1619
|
contents.NextToken = __expectString(data.NextToken);
|
|
1622
1620
|
}
|
|
1623
1621
|
return contents;
|
|
1624
1622
|
};
|
|
1625
|
-
const
|
|
1623
|
+
const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
1626
1624
|
const parsedOutput = {
|
|
1627
1625
|
...output,
|
|
1628
1626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1631,22 +1629,22 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
1631
1629
|
switch (errorCode) {
|
|
1632
1630
|
case "BadRequestException":
|
|
1633
1631
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1634
|
-
throw await
|
|
1632
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1635
1633
|
case "ForbiddenException":
|
|
1636
1634
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1637
|
-
throw await
|
|
1635
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1638
1636
|
case "ServiceFailureException":
|
|
1639
1637
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1640
|
-
throw await
|
|
1638
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1641
1639
|
case "ServiceUnavailableException":
|
|
1642
1640
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1643
|
-
throw await
|
|
1641
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1644
1642
|
case "ThrottledClientException":
|
|
1645
1643
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1646
|
-
throw await
|
|
1644
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1647
1645
|
case "UnauthorizedClientException":
|
|
1648
1646
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1649
|
-
throw await
|
|
1647
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1650
1648
|
default:
|
|
1651
1649
|
const parsedBody = parsedOutput.body;
|
|
1652
1650
|
throwDefaultError({
|
|
@@ -1657,20 +1655,20 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
1657
1655
|
});
|
|
1658
1656
|
}
|
|
1659
1657
|
};
|
|
1660
|
-
export const
|
|
1658
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1661
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
1660
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1663
1661
|
}
|
|
1664
1662
|
const contents = map({
|
|
1665
1663
|
$metadata: deserializeMetadata(output),
|
|
1666
1664
|
});
|
|
1667
1665
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1668
1666
|
if (data.Tags != null) {
|
|
1669
|
-
contents.Tags =
|
|
1667
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
1670
1668
|
}
|
|
1671
1669
|
return contents;
|
|
1672
1670
|
};
|
|
1673
|
-
const
|
|
1671
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1674
1672
|
const parsedOutput = {
|
|
1675
1673
|
...output,
|
|
1676
1674
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1679,22 +1677,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1679
1677
|
switch (errorCode) {
|
|
1680
1678
|
case "BadRequestException":
|
|
1681
1679
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1682
|
-
throw await
|
|
1680
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1683
1681
|
case "ForbiddenException":
|
|
1684
1682
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1685
|
-
throw await
|
|
1683
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1686
1684
|
case "ServiceFailureException":
|
|
1687
1685
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1688
|
-
throw await
|
|
1686
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1689
1687
|
case "ServiceUnavailableException":
|
|
1690
1688
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1691
|
-
throw await
|
|
1689
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1692
1690
|
case "ThrottledClientException":
|
|
1693
1691
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1694
|
-
throw await
|
|
1692
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1695
1693
|
case "UnauthorizedClientException":
|
|
1696
1694
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1697
|
-
throw await
|
|
1695
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1698
1696
|
default:
|
|
1699
1697
|
const parsedBody = parsedOutput.body;
|
|
1700
1698
|
throwDefaultError({
|
|
@@ -1705,23 +1703,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1705
1703
|
});
|
|
1706
1704
|
}
|
|
1707
1705
|
};
|
|
1708
|
-
export const
|
|
1706
|
+
export const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1709
1707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
1708
|
+
return de_PutAppInstanceRetentionSettingsCommandError(output, context);
|
|
1711
1709
|
}
|
|
1712
1710
|
const contents = map({
|
|
1713
1711
|
$metadata: deserializeMetadata(output),
|
|
1714
1712
|
});
|
|
1715
1713
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1716
1714
|
if (data.AppInstanceRetentionSettings != null) {
|
|
1717
|
-
contents.AppInstanceRetentionSettings =
|
|
1715
|
+
contents.AppInstanceRetentionSettings = de_AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1718
1716
|
}
|
|
1719
1717
|
if (data.InitiateDeletionTimestamp != null) {
|
|
1720
1718
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1721
1719
|
}
|
|
1722
1720
|
return contents;
|
|
1723
1721
|
};
|
|
1724
|
-
const
|
|
1722
|
+
const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1725
1723
|
const parsedOutput = {
|
|
1726
1724
|
...output,
|
|
1727
1725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1730,22 +1728,22 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1730
1728
|
switch (errorCode) {
|
|
1731
1729
|
case "BadRequestException":
|
|
1732
1730
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1733
|
-
throw await
|
|
1731
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1734
1732
|
case "ForbiddenException":
|
|
1735
1733
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1736
|
-
throw await
|
|
1734
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1737
1735
|
case "ServiceFailureException":
|
|
1738
1736
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1739
|
-
throw await
|
|
1737
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1740
1738
|
case "ServiceUnavailableException":
|
|
1741
1739
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1742
|
-
throw await
|
|
1740
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1743
1741
|
case "ThrottledClientException":
|
|
1744
1742
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1745
|
-
throw await
|
|
1743
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1746
1744
|
case "UnauthorizedClientException":
|
|
1747
1745
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1748
|
-
throw await
|
|
1746
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1749
1747
|
default:
|
|
1750
1748
|
const parsedBody = parsedOutput.body;
|
|
1751
1749
|
throwDefaultError({
|
|
@@ -1756,9 +1754,9 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1756
1754
|
});
|
|
1757
1755
|
}
|
|
1758
1756
|
};
|
|
1759
|
-
export const
|
|
1757
|
+
export const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
1760
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
1759
|
+
return de_PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
1762
1760
|
}
|
|
1763
1761
|
const contents = map({
|
|
1764
1762
|
$metadata: deserializeMetadata(output),
|
|
@@ -1768,11 +1766,11 @@ export const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand
|
|
|
1768
1766
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
1769
1767
|
}
|
|
1770
1768
|
if (data.ExpirationSettings != null) {
|
|
1771
|
-
contents.ExpirationSettings =
|
|
1769
|
+
contents.ExpirationSettings = de_ExpirationSettings(data.ExpirationSettings, context);
|
|
1772
1770
|
}
|
|
1773
1771
|
return contents;
|
|
1774
1772
|
};
|
|
1775
|
-
const
|
|
1773
|
+
const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, context) => {
|
|
1776
1774
|
const parsedOutput = {
|
|
1777
1775
|
...output,
|
|
1778
1776
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1781,25 +1779,25 @@ const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError =
|
|
|
1781
1779
|
switch (errorCode) {
|
|
1782
1780
|
case "BadRequestException":
|
|
1783
1781
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1784
|
-
throw await
|
|
1782
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1785
1783
|
case "ConflictException":
|
|
1786
1784
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1787
|
-
throw await
|
|
1785
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1788
1786
|
case "ForbiddenException":
|
|
1789
1787
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1790
|
-
throw await
|
|
1788
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1791
1789
|
case "ServiceFailureException":
|
|
1792
1790
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1793
|
-
throw await
|
|
1791
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1794
1792
|
case "ServiceUnavailableException":
|
|
1795
1793
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1796
|
-
throw await
|
|
1794
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1797
1795
|
case "ThrottledClientException":
|
|
1798
1796
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1799
|
-
throw await
|
|
1797
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1800
1798
|
case "UnauthorizedClientException":
|
|
1801
1799
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1802
|
-
throw await
|
|
1800
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1803
1801
|
default:
|
|
1804
1802
|
const parsedBody = parsedOutput.body;
|
|
1805
1803
|
throwDefaultError({
|
|
@@ -1810,9 +1808,9 @@ const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError =
|
|
|
1810
1808
|
});
|
|
1811
1809
|
}
|
|
1812
1810
|
};
|
|
1813
|
-
export const
|
|
1811
|
+
export const de_RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1814
1812
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1813
|
+
return de_RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
1816
1814
|
}
|
|
1817
1815
|
const contents = map({
|
|
1818
1816
|
$metadata: deserializeMetadata(output),
|
|
@@ -1826,7 +1824,7 @@ export const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = as
|
|
|
1826
1824
|
}
|
|
1827
1825
|
return contents;
|
|
1828
1826
|
};
|
|
1829
|
-
const
|
|
1827
|
+
const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1830
1828
|
const parsedOutput = {
|
|
1831
1829
|
...output,
|
|
1832
1830
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1835,28 +1833,28 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = asyn
|
|
|
1835
1833
|
switch (errorCode) {
|
|
1836
1834
|
case "BadRequestException":
|
|
1837
1835
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1838
|
-
throw await
|
|
1836
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1839
1837
|
case "ConflictException":
|
|
1840
1838
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1841
|
-
throw await
|
|
1839
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1842
1840
|
case "ForbiddenException":
|
|
1843
1841
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1844
|
-
throw await
|
|
1842
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1845
1843
|
case "ResourceLimitExceededException":
|
|
1846
1844
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1847
|
-
throw await
|
|
1845
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1848
1846
|
case "ServiceFailureException":
|
|
1849
1847
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1850
|
-
throw await
|
|
1848
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1851
1849
|
case "ServiceUnavailableException":
|
|
1852
1850
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1853
|
-
throw await
|
|
1851
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1854
1852
|
case "ThrottledClientException":
|
|
1855
1853
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1856
|
-
throw await
|
|
1854
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1857
1855
|
case "UnauthorizedClientException":
|
|
1858
1856
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1859
|
-
throw await
|
|
1857
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1860
1858
|
default:
|
|
1861
1859
|
const parsedBody = parsedOutput.body;
|
|
1862
1860
|
throwDefaultError({
|
|
@@ -1867,9 +1865,9 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = asyn
|
|
|
1867
1865
|
});
|
|
1868
1866
|
}
|
|
1869
1867
|
};
|
|
1870
|
-
export const
|
|
1868
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1871
1869
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1872
|
-
return
|
|
1870
|
+
return de_TagResourceCommandError(output, context);
|
|
1873
1871
|
}
|
|
1874
1872
|
const contents = map({
|
|
1875
1873
|
$metadata: deserializeMetadata(output),
|
|
@@ -1877,7 +1875,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1877
1875
|
await collectBody(output.body, context);
|
|
1878
1876
|
return contents;
|
|
1879
1877
|
};
|
|
1880
|
-
const
|
|
1878
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1881
1879
|
const parsedOutput = {
|
|
1882
1880
|
...output,
|
|
1883
1881
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1886,25 +1884,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1886
1884
|
switch (errorCode) {
|
|
1887
1885
|
case "BadRequestException":
|
|
1888
1886
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1889
|
-
throw await
|
|
1887
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1890
1888
|
case "ForbiddenException":
|
|
1891
1889
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1892
|
-
throw await
|
|
1890
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1893
1891
|
case "ResourceLimitExceededException":
|
|
1894
1892
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1895
|
-
throw await
|
|
1893
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1896
1894
|
case "ServiceFailureException":
|
|
1897
1895
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1898
|
-
throw await
|
|
1896
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1899
1897
|
case "ServiceUnavailableException":
|
|
1900
1898
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1901
|
-
throw await
|
|
1899
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1902
1900
|
case "ThrottledClientException":
|
|
1903
1901
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1904
|
-
throw await
|
|
1902
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1905
1903
|
case "UnauthorizedClientException":
|
|
1906
1904
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1907
|
-
throw await
|
|
1905
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1908
1906
|
default:
|
|
1909
1907
|
const parsedBody = parsedOutput.body;
|
|
1910
1908
|
throwDefaultError({
|
|
@@ -1915,9 +1913,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1915
1913
|
});
|
|
1916
1914
|
}
|
|
1917
1915
|
};
|
|
1918
|
-
export const
|
|
1916
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1919
1917
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1920
|
-
return
|
|
1918
|
+
return de_UntagResourceCommandError(output, context);
|
|
1921
1919
|
}
|
|
1922
1920
|
const contents = map({
|
|
1923
1921
|
$metadata: deserializeMetadata(output),
|
|
@@ -1925,7 +1923,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1925
1923
|
await collectBody(output.body, context);
|
|
1926
1924
|
return contents;
|
|
1927
1925
|
};
|
|
1928
|
-
const
|
|
1926
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1929
1927
|
const parsedOutput = {
|
|
1930
1928
|
...output,
|
|
1931
1929
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1934,22 +1932,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1934
1932
|
switch (errorCode) {
|
|
1935
1933
|
case "BadRequestException":
|
|
1936
1934
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1937
|
-
throw await
|
|
1935
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1938
1936
|
case "ForbiddenException":
|
|
1939
1937
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1940
|
-
throw await
|
|
1938
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1941
1939
|
case "ServiceFailureException":
|
|
1942
1940
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1943
|
-
throw await
|
|
1941
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1944
1942
|
case "ServiceUnavailableException":
|
|
1945
1943
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1946
|
-
throw await
|
|
1944
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1947
1945
|
case "ThrottledClientException":
|
|
1948
1946
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1949
|
-
throw await
|
|
1947
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1950
1948
|
case "UnauthorizedClientException":
|
|
1951
1949
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1952
|
-
throw await
|
|
1950
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1953
1951
|
default:
|
|
1954
1952
|
const parsedBody = parsedOutput.body;
|
|
1955
1953
|
throwDefaultError({
|
|
@@ -1960,9 +1958,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1960
1958
|
});
|
|
1961
1959
|
}
|
|
1962
1960
|
};
|
|
1963
|
-
export const
|
|
1961
|
+
export const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
1964
1962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1965
|
-
return
|
|
1963
|
+
return de_UpdateAppInstanceCommandError(output, context);
|
|
1966
1964
|
}
|
|
1967
1965
|
const contents = map({
|
|
1968
1966
|
$metadata: deserializeMetadata(output),
|
|
@@ -1973,7 +1971,7 @@ export const deserializeAws_restJson1UpdateAppInstanceCommand = async (output, c
|
|
|
1973
1971
|
}
|
|
1974
1972
|
return contents;
|
|
1975
1973
|
};
|
|
1976
|
-
const
|
|
1974
|
+
const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
1977
1975
|
const parsedOutput = {
|
|
1978
1976
|
...output,
|
|
1979
1977
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1982,25 +1980,25 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
1982
1980
|
switch (errorCode) {
|
|
1983
1981
|
case "BadRequestException":
|
|
1984
1982
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1985
|
-
throw await
|
|
1983
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1986
1984
|
case "ConflictException":
|
|
1987
1985
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1988
|
-
throw await
|
|
1986
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1989
1987
|
case "ForbiddenException":
|
|
1990
1988
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1991
|
-
throw await
|
|
1989
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1992
1990
|
case "ServiceFailureException":
|
|
1993
1991
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1994
|
-
throw await
|
|
1992
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1995
1993
|
case "ServiceUnavailableException":
|
|
1996
1994
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1997
|
-
throw await
|
|
1995
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1998
1996
|
case "ThrottledClientException":
|
|
1999
1997
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2000
|
-
throw await
|
|
1998
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2001
1999
|
case "UnauthorizedClientException":
|
|
2002
2000
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2003
|
-
throw await
|
|
2001
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2004
2002
|
default:
|
|
2005
2003
|
const parsedBody = parsedOutput.body;
|
|
2006
2004
|
throwDefaultError({
|
|
@@ -2011,9 +2009,9 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
2011
2009
|
});
|
|
2012
2010
|
}
|
|
2013
2011
|
};
|
|
2014
|
-
export const
|
|
2012
|
+
export const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
2015
2013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2016
|
-
return
|
|
2014
|
+
return de_UpdateAppInstanceBotCommandError(output, context);
|
|
2017
2015
|
}
|
|
2018
2016
|
const contents = map({
|
|
2019
2017
|
$metadata: deserializeMetadata(output),
|
|
@@ -2024,7 +2022,7 @@ export const deserializeAws_restJson1UpdateAppInstanceBotCommand = async (output
|
|
|
2024
2022
|
}
|
|
2025
2023
|
return contents;
|
|
2026
2024
|
};
|
|
2027
|
-
const
|
|
2025
|
+
const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
2028
2026
|
const parsedOutput = {
|
|
2029
2027
|
...output,
|
|
2030
2028
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2033,28 +2031,28 @@ const deserializeAws_restJson1UpdateAppInstanceBotCommandError = async (output,
|
|
|
2033
2031
|
switch (errorCode) {
|
|
2034
2032
|
case "BadRequestException":
|
|
2035
2033
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2036
|
-
throw await
|
|
2034
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2037
2035
|
case "ConflictException":
|
|
2038
2036
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2039
|
-
throw await
|
|
2037
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2040
2038
|
case "ForbiddenException":
|
|
2041
2039
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2042
|
-
throw await
|
|
2040
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2043
2041
|
case "ResourceLimitExceededException":
|
|
2044
2042
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2045
|
-
throw await
|
|
2043
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2046
2044
|
case "ServiceFailureException":
|
|
2047
2045
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2048
|
-
throw await
|
|
2046
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2049
2047
|
case "ServiceUnavailableException":
|
|
2050
2048
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2051
|
-
throw await
|
|
2049
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2052
2050
|
case "ThrottledClientException":
|
|
2053
2051
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2054
|
-
throw await
|
|
2052
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2055
2053
|
case "UnauthorizedClientException":
|
|
2056
2054
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2057
|
-
throw await
|
|
2055
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2058
2056
|
default:
|
|
2059
2057
|
const parsedBody = parsedOutput.body;
|
|
2060
2058
|
throwDefaultError({
|
|
@@ -2065,9 +2063,9 @@ const deserializeAws_restJson1UpdateAppInstanceBotCommandError = async (output,
|
|
|
2065
2063
|
});
|
|
2066
2064
|
}
|
|
2067
2065
|
};
|
|
2068
|
-
export const
|
|
2066
|
+
export const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
2069
2067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2070
|
-
return
|
|
2068
|
+
return de_UpdateAppInstanceUserCommandError(output, context);
|
|
2071
2069
|
}
|
|
2072
2070
|
const contents = map({
|
|
2073
2071
|
$metadata: deserializeMetadata(output),
|
|
@@ -2078,7 +2076,7 @@ export const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (outpu
|
|
|
2078
2076
|
}
|
|
2079
2077
|
return contents;
|
|
2080
2078
|
};
|
|
2081
|
-
const
|
|
2079
|
+
const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
2082
2080
|
const parsedOutput = {
|
|
2083
2081
|
...output,
|
|
2084
2082
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2087,28 +2085,28 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
2087
2085
|
switch (errorCode) {
|
|
2088
2086
|
case "BadRequestException":
|
|
2089
2087
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2090
|
-
throw await
|
|
2088
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2091
2089
|
case "ConflictException":
|
|
2092
2090
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2093
|
-
throw await
|
|
2091
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2094
2092
|
case "ForbiddenException":
|
|
2095
2093
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2096
|
-
throw await
|
|
2094
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2097
2095
|
case "ResourceLimitExceededException":
|
|
2098
2096
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2099
|
-
throw await
|
|
2097
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2100
2098
|
case "ServiceFailureException":
|
|
2101
2099
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2102
|
-
throw await
|
|
2100
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2103
2101
|
case "ServiceUnavailableException":
|
|
2104
2102
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2105
|
-
throw await
|
|
2103
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2106
2104
|
case "ThrottledClientException":
|
|
2107
2105
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2108
|
-
throw await
|
|
2106
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2109
2107
|
case "UnauthorizedClientException":
|
|
2110
2108
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2111
|
-
throw await
|
|
2109
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2112
2110
|
default:
|
|
2113
2111
|
const parsedBody = parsedOutput.body;
|
|
2114
2112
|
throwDefaultError({
|
|
@@ -2119,9 +2117,9 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
2119
2117
|
});
|
|
2120
2118
|
}
|
|
2121
2119
|
};
|
|
2122
|
-
export const
|
|
2120
|
+
export const de_UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
2123
2121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2124
|
-
return
|
|
2122
|
+
return de_UpdateAppInstanceUserEndpointCommandError(output, context);
|
|
2125
2123
|
}
|
|
2126
2124
|
const contents = map({
|
|
2127
2125
|
$metadata: deserializeMetadata(output),
|
|
@@ -2135,7 +2133,7 @@ export const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = asyn
|
|
|
2135
2133
|
}
|
|
2136
2134
|
return contents;
|
|
2137
2135
|
};
|
|
2138
|
-
const
|
|
2136
|
+
const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
2139
2137
|
const parsedOutput = {
|
|
2140
2138
|
...output,
|
|
2141
2139
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2144,25 +2142,25 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async
|
|
|
2144
2142
|
switch (errorCode) {
|
|
2145
2143
|
case "BadRequestException":
|
|
2146
2144
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2147
|
-
throw await
|
|
2145
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2148
2146
|
case "ConflictException":
|
|
2149
2147
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2150
|
-
throw await
|
|
2148
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2151
2149
|
case "ForbiddenException":
|
|
2152
2150
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2153
|
-
throw await
|
|
2151
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2154
2152
|
case "ServiceFailureException":
|
|
2155
2153
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2156
|
-
throw await
|
|
2154
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2157
2155
|
case "ServiceUnavailableException":
|
|
2158
2156
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2159
|
-
throw await
|
|
2157
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2160
2158
|
case "ThrottledClientException":
|
|
2161
2159
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2162
|
-
throw await
|
|
2160
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2163
2161
|
case "UnauthorizedClientException":
|
|
2164
2162
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2165
|
-
throw await
|
|
2163
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2166
2164
|
default:
|
|
2167
2165
|
const parsedBody = parsedOutput.body;
|
|
2168
2166
|
throwDefaultError({
|
|
@@ -2174,7 +2172,7 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async
|
|
|
2174
2172
|
}
|
|
2175
2173
|
};
|
|
2176
2174
|
const map = __map;
|
|
2177
|
-
const
|
|
2175
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2178
2176
|
const contents = map({});
|
|
2179
2177
|
const data = parsedOutput.body;
|
|
2180
2178
|
if (data.Code != null) {
|
|
@@ -2189,7 +2187,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2189
2187
|
});
|
|
2190
2188
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2191
2189
|
};
|
|
2192
|
-
const
|
|
2190
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2193
2191
|
const contents = map({});
|
|
2194
2192
|
const data = parsedOutput.body;
|
|
2195
2193
|
if (data.Code != null) {
|
|
@@ -2204,7 +2202,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2204
2202
|
});
|
|
2205
2203
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2206
2204
|
};
|
|
2207
|
-
const
|
|
2205
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2208
2206
|
const contents = map({});
|
|
2209
2207
|
const data = parsedOutput.body;
|
|
2210
2208
|
if (data.Code != null) {
|
|
@@ -2219,7 +2217,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
2219
2217
|
});
|
|
2220
2218
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2221
2219
|
};
|
|
2222
|
-
const
|
|
2220
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2223
2221
|
const contents = map({});
|
|
2224
2222
|
const data = parsedOutput.body;
|
|
2225
2223
|
if (data.Code != null) {
|
|
@@ -2234,7 +2232,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2234
2232
|
});
|
|
2235
2233
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2236
2234
|
};
|
|
2237
|
-
const
|
|
2235
|
+
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2238
2236
|
const contents = map({});
|
|
2239
2237
|
const data = parsedOutput.body;
|
|
2240
2238
|
if (data.Code != null) {
|
|
@@ -2249,7 +2247,7 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
2249
2247
|
});
|
|
2250
2248
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2251
2249
|
};
|
|
2252
|
-
const
|
|
2250
|
+
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2253
2251
|
const contents = map({});
|
|
2254
2252
|
const data = parsedOutput.body;
|
|
2255
2253
|
if (data.Code != null) {
|
|
@@ -2264,7 +2262,7 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
2264
2262
|
});
|
|
2265
2263
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2266
2264
|
};
|
|
2267
|
-
const
|
|
2265
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2268
2266
|
const contents = map({});
|
|
2269
2267
|
const data = parsedOutput.body;
|
|
2270
2268
|
if (data.Code != null) {
|
|
@@ -2279,7 +2277,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2279
2277
|
});
|
|
2280
2278
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2281
2279
|
};
|
|
2282
|
-
const
|
|
2280
|
+
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2283
2281
|
const contents = map({});
|
|
2284
2282
|
const data = parsedOutput.body;
|
|
2285
2283
|
if (data.Code != null) {
|
|
@@ -2294,7 +2292,7 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
2294
2292
|
});
|
|
2295
2293
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2296
2294
|
};
|
|
2297
|
-
const
|
|
2295
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2298
2296
|
const contents = map({});
|
|
2299
2297
|
const data = parsedOutput.body;
|
|
2300
2298
|
if (data.Code != null) {
|
|
@@ -2309,36 +2307,36 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
2309
2307
|
});
|
|
2310
2308
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2311
2309
|
};
|
|
2312
|
-
const
|
|
2310
|
+
const se_AppInstanceRetentionSettings = (input, context) => {
|
|
2313
2311
|
return {
|
|
2314
2312
|
...(input.ChannelRetentionSettings != null && {
|
|
2315
|
-
ChannelRetentionSettings:
|
|
2313
|
+
ChannelRetentionSettings: se_ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2316
2314
|
}),
|
|
2317
2315
|
};
|
|
2318
2316
|
};
|
|
2319
|
-
const
|
|
2317
|
+
const se_ChannelRetentionSettings = (input, context) => {
|
|
2320
2318
|
return {
|
|
2321
2319
|
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
2322
2320
|
};
|
|
2323
2321
|
};
|
|
2324
|
-
const
|
|
2322
|
+
const se_Configuration = (input, context) => {
|
|
2325
2323
|
return {
|
|
2326
|
-
...(input.Lex != null && { Lex:
|
|
2324
|
+
...(input.Lex != null && { Lex: se_LexConfiguration(input.Lex, context) }),
|
|
2327
2325
|
};
|
|
2328
2326
|
};
|
|
2329
|
-
const
|
|
2327
|
+
const se_EndpointAttributes = (input, context) => {
|
|
2330
2328
|
return {
|
|
2331
2329
|
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
2332
2330
|
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2333
2331
|
};
|
|
2334
2332
|
};
|
|
2335
|
-
const
|
|
2333
|
+
const se_ExpirationSettings = (input, context) => {
|
|
2336
2334
|
return {
|
|
2337
2335
|
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
2338
2336
|
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
2339
2337
|
};
|
|
2340
2338
|
};
|
|
2341
|
-
const
|
|
2339
|
+
const se_LexConfiguration = (input, context) => {
|
|
2342
2340
|
return {
|
|
2343
2341
|
...(input.LexBotAliasArn != null && { LexBotAliasArn: input.LexBotAliasArn }),
|
|
2344
2342
|
...(input.LocaleId != null && { LocaleId: input.LocaleId }),
|
|
@@ -2346,27 +2344,27 @@ const serializeAws_restJson1LexConfiguration = (input, context) => {
|
|
|
2346
2344
|
...(input.WelcomeIntent != null && { WelcomeIntent: input.WelcomeIntent }),
|
|
2347
2345
|
};
|
|
2348
2346
|
};
|
|
2349
|
-
const
|
|
2347
|
+
const se_Tag = (input, context) => {
|
|
2350
2348
|
return {
|
|
2351
2349
|
...(input.Key != null && { Key: input.Key }),
|
|
2352
2350
|
...(input.Value != null && { Value: input.Value }),
|
|
2353
2351
|
};
|
|
2354
2352
|
};
|
|
2355
|
-
const
|
|
2353
|
+
const se_TagKeyList = (input, context) => {
|
|
2356
2354
|
return input
|
|
2357
2355
|
.filter((e) => e != null)
|
|
2358
2356
|
.map((entry) => {
|
|
2359
2357
|
return entry;
|
|
2360
2358
|
});
|
|
2361
2359
|
};
|
|
2362
|
-
const
|
|
2360
|
+
const se_TagList = (input, context) => {
|
|
2363
2361
|
return input
|
|
2364
2362
|
.filter((e) => e != null)
|
|
2365
2363
|
.map((entry) => {
|
|
2366
|
-
return
|
|
2364
|
+
return se_Tag(entry, context);
|
|
2367
2365
|
});
|
|
2368
2366
|
};
|
|
2369
|
-
const
|
|
2367
|
+
const de_AppInstance = (output, context) => {
|
|
2370
2368
|
return {
|
|
2371
2369
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2372
2370
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
@@ -2379,35 +2377,35 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
|
2379
2377
|
Name: __expectString(output.Name),
|
|
2380
2378
|
};
|
|
2381
2379
|
};
|
|
2382
|
-
const
|
|
2380
|
+
const de_AppInstanceAdmin = (output, context) => {
|
|
2383
2381
|
return {
|
|
2384
|
-
Admin: output.Admin != null ?
|
|
2382
|
+
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2385
2383
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2386
2384
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2387
2385
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2388
2386
|
: undefined,
|
|
2389
2387
|
};
|
|
2390
2388
|
};
|
|
2391
|
-
const
|
|
2389
|
+
const de_AppInstanceAdminList = (output, context) => {
|
|
2392
2390
|
const retVal = (output || [])
|
|
2393
2391
|
.filter((e) => e != null)
|
|
2394
2392
|
.map((entry) => {
|
|
2395
2393
|
if (entry === null) {
|
|
2396
2394
|
return null;
|
|
2397
2395
|
}
|
|
2398
|
-
return
|
|
2396
|
+
return de_AppInstanceAdminSummary(entry, context);
|
|
2399
2397
|
});
|
|
2400
2398
|
return retVal;
|
|
2401
2399
|
};
|
|
2402
|
-
const
|
|
2400
|
+
const de_AppInstanceAdminSummary = (output, context) => {
|
|
2403
2401
|
return {
|
|
2404
|
-
Admin: output.Admin != null ?
|
|
2402
|
+
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2405
2403
|
};
|
|
2406
2404
|
};
|
|
2407
|
-
const
|
|
2405
|
+
const de_AppInstanceBot = (output, context) => {
|
|
2408
2406
|
return {
|
|
2409
2407
|
AppInstanceBotArn: __expectString(output.AppInstanceBotArn),
|
|
2410
|
-
Configuration: output.Configuration != null ?
|
|
2408
|
+
Configuration: output.Configuration != null ? de_Configuration(output.Configuration, context) : undefined,
|
|
2411
2409
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2412
2410
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2413
2411
|
: undefined,
|
|
@@ -2418,58 +2416,56 @@ const deserializeAws_restJson1AppInstanceBot = (output, context) => {
|
|
|
2418
2416
|
Name: __expectString(output.Name),
|
|
2419
2417
|
};
|
|
2420
2418
|
};
|
|
2421
|
-
const
|
|
2419
|
+
const de_AppInstanceBotList = (output, context) => {
|
|
2422
2420
|
const retVal = (output || [])
|
|
2423
2421
|
.filter((e) => e != null)
|
|
2424
2422
|
.map((entry) => {
|
|
2425
2423
|
if (entry === null) {
|
|
2426
2424
|
return null;
|
|
2427
2425
|
}
|
|
2428
|
-
return
|
|
2426
|
+
return de_AppInstanceBotSummary(entry, context);
|
|
2429
2427
|
});
|
|
2430
2428
|
return retVal;
|
|
2431
2429
|
};
|
|
2432
|
-
const
|
|
2430
|
+
const de_AppInstanceBotSummary = (output, context) => {
|
|
2433
2431
|
return {
|
|
2434
2432
|
AppInstanceBotArn: __expectString(output.AppInstanceBotArn),
|
|
2435
2433
|
Metadata: __expectString(output.Metadata),
|
|
2436
2434
|
Name: __expectString(output.Name),
|
|
2437
2435
|
};
|
|
2438
2436
|
};
|
|
2439
|
-
const
|
|
2437
|
+
const de_AppInstanceList = (output, context) => {
|
|
2440
2438
|
const retVal = (output || [])
|
|
2441
2439
|
.filter((e) => e != null)
|
|
2442
2440
|
.map((entry) => {
|
|
2443
2441
|
if (entry === null) {
|
|
2444
2442
|
return null;
|
|
2445
2443
|
}
|
|
2446
|
-
return
|
|
2444
|
+
return de_AppInstanceSummary(entry, context);
|
|
2447
2445
|
});
|
|
2448
2446
|
return retVal;
|
|
2449
2447
|
};
|
|
2450
|
-
const
|
|
2448
|
+
const de_AppInstanceRetentionSettings = (output, context) => {
|
|
2451
2449
|
return {
|
|
2452
2450
|
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2453
|
-
?
|
|
2451
|
+
? de_ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2454
2452
|
: undefined,
|
|
2455
2453
|
};
|
|
2456
2454
|
};
|
|
2457
|
-
const
|
|
2455
|
+
const de_AppInstanceSummary = (output, context) => {
|
|
2458
2456
|
return {
|
|
2459
2457
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
2460
2458
|
Metadata: __expectString(output.Metadata),
|
|
2461
2459
|
Name: __expectString(output.Name),
|
|
2462
2460
|
};
|
|
2463
2461
|
};
|
|
2464
|
-
const
|
|
2462
|
+
const de_AppInstanceUser = (output, context) => {
|
|
2465
2463
|
return {
|
|
2466
2464
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2467
2465
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2468
2466
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2469
2467
|
: undefined,
|
|
2470
|
-
ExpirationSettings: output.ExpirationSettings != null
|
|
2471
|
-
? deserializeAws_restJson1ExpirationSettings(output.ExpirationSettings, context)
|
|
2472
|
-
: undefined,
|
|
2468
|
+
ExpirationSettings: output.ExpirationSettings != null ? de_ExpirationSettings(output.ExpirationSettings, context) : undefined,
|
|
2473
2469
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2474
2470
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2475
2471
|
: undefined,
|
|
@@ -2477,18 +2473,16 @@ const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
|
2477
2473
|
Name: __expectString(output.Name),
|
|
2478
2474
|
};
|
|
2479
2475
|
};
|
|
2480
|
-
const
|
|
2476
|
+
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2481
2477
|
return {
|
|
2482
2478
|
AllowMessages: __expectString(output.AllowMessages),
|
|
2483
2479
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2484
2480
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2485
2481
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
2486
2482
|
: undefined,
|
|
2487
|
-
EndpointAttributes: output.EndpointAttributes != null
|
|
2488
|
-
? deserializeAws_restJson1EndpointAttributes(output.EndpointAttributes, context)
|
|
2489
|
-
: undefined,
|
|
2483
|
+
EndpointAttributes: output.EndpointAttributes != null ? de_EndpointAttributes(output.EndpointAttributes, context) : undefined,
|
|
2490
2484
|
EndpointId: __expectString(output.EndpointId),
|
|
2491
|
-
EndpointState: output.EndpointState != null ?
|
|
2485
|
+
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2492
2486
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2493
2487
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
2494
2488
|
: undefined,
|
|
@@ -2497,80 +2491,80 @@ const deserializeAws_restJson1AppInstanceUserEndpoint = (output, context) => {
|
|
|
2497
2491
|
Type: __expectString(output.Type),
|
|
2498
2492
|
};
|
|
2499
2493
|
};
|
|
2500
|
-
const
|
|
2494
|
+
const de_AppInstanceUserEndpointSummary = (output, context) => {
|
|
2501
2495
|
return {
|
|
2502
2496
|
AllowMessages: __expectString(output.AllowMessages),
|
|
2503
2497
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2504
2498
|
EndpointId: __expectString(output.EndpointId),
|
|
2505
|
-
EndpointState: output.EndpointState != null ?
|
|
2499
|
+
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2506
2500
|
Name: __expectString(output.Name),
|
|
2507
2501
|
Type: __expectString(output.Type),
|
|
2508
2502
|
};
|
|
2509
2503
|
};
|
|
2510
|
-
const
|
|
2504
|
+
const de_AppInstanceUserEndpointSummaryList = (output, context) => {
|
|
2511
2505
|
const retVal = (output || [])
|
|
2512
2506
|
.filter((e) => e != null)
|
|
2513
2507
|
.map((entry) => {
|
|
2514
2508
|
if (entry === null) {
|
|
2515
2509
|
return null;
|
|
2516
2510
|
}
|
|
2517
|
-
return
|
|
2511
|
+
return de_AppInstanceUserEndpointSummary(entry, context);
|
|
2518
2512
|
});
|
|
2519
2513
|
return retVal;
|
|
2520
2514
|
};
|
|
2521
|
-
const
|
|
2515
|
+
const de_AppInstanceUserList = (output, context) => {
|
|
2522
2516
|
const retVal = (output || [])
|
|
2523
2517
|
.filter((e) => e != null)
|
|
2524
2518
|
.map((entry) => {
|
|
2525
2519
|
if (entry === null) {
|
|
2526
2520
|
return null;
|
|
2527
2521
|
}
|
|
2528
|
-
return
|
|
2522
|
+
return de_AppInstanceUserSummary(entry, context);
|
|
2529
2523
|
});
|
|
2530
2524
|
return retVal;
|
|
2531
2525
|
};
|
|
2532
|
-
const
|
|
2526
|
+
const de_AppInstanceUserSummary = (output, context) => {
|
|
2533
2527
|
return {
|
|
2534
2528
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2535
2529
|
Metadata: __expectString(output.Metadata),
|
|
2536
2530
|
Name: __expectString(output.Name),
|
|
2537
2531
|
};
|
|
2538
2532
|
};
|
|
2539
|
-
const
|
|
2533
|
+
const de_ChannelRetentionSettings = (output, context) => {
|
|
2540
2534
|
return {
|
|
2541
2535
|
RetentionDays: __expectInt32(output.RetentionDays),
|
|
2542
2536
|
};
|
|
2543
2537
|
};
|
|
2544
|
-
const
|
|
2538
|
+
const de_Configuration = (output, context) => {
|
|
2545
2539
|
return {
|
|
2546
|
-
Lex: output.Lex != null ?
|
|
2540
|
+
Lex: output.Lex != null ? de_LexConfiguration(output.Lex, context) : undefined,
|
|
2547
2541
|
};
|
|
2548
2542
|
};
|
|
2549
|
-
const
|
|
2543
|
+
const de_EndpointAttributes = (output, context) => {
|
|
2550
2544
|
return {
|
|
2551
2545
|
DeviceToken: __expectString(output.DeviceToken),
|
|
2552
2546
|
VoipDeviceToken: __expectString(output.VoipDeviceToken),
|
|
2553
2547
|
};
|
|
2554
2548
|
};
|
|
2555
|
-
const
|
|
2549
|
+
const de_EndpointState = (output, context) => {
|
|
2556
2550
|
return {
|
|
2557
2551
|
Status: __expectString(output.Status),
|
|
2558
2552
|
StatusReason: __expectString(output.StatusReason),
|
|
2559
2553
|
};
|
|
2560
2554
|
};
|
|
2561
|
-
const
|
|
2555
|
+
const de_ExpirationSettings = (output, context) => {
|
|
2562
2556
|
return {
|
|
2563
2557
|
ExpirationCriterion: __expectString(output.ExpirationCriterion),
|
|
2564
2558
|
ExpirationDays: __expectInt32(output.ExpirationDays),
|
|
2565
2559
|
};
|
|
2566
2560
|
};
|
|
2567
|
-
const
|
|
2561
|
+
const de_Identity = (output, context) => {
|
|
2568
2562
|
return {
|
|
2569
2563
|
Arn: __expectString(output.Arn),
|
|
2570
2564
|
Name: __expectString(output.Name),
|
|
2571
2565
|
};
|
|
2572
2566
|
};
|
|
2573
|
-
const
|
|
2567
|
+
const de_LexConfiguration = (output, context) => {
|
|
2574
2568
|
return {
|
|
2575
2569
|
LexBotAliasArn: __expectString(output.LexBotAliasArn),
|
|
2576
2570
|
LocaleId: __expectString(output.LocaleId),
|
|
@@ -2578,20 +2572,20 @@ const deserializeAws_restJson1LexConfiguration = (output, context) => {
|
|
|
2578
2572
|
WelcomeIntent: __expectString(output.WelcomeIntent),
|
|
2579
2573
|
};
|
|
2580
2574
|
};
|
|
2581
|
-
const
|
|
2575
|
+
const de_Tag = (output, context) => {
|
|
2582
2576
|
return {
|
|
2583
2577
|
Key: __expectString(output.Key),
|
|
2584
2578
|
Value: __expectString(output.Value),
|
|
2585
2579
|
};
|
|
2586
2580
|
};
|
|
2587
|
-
const
|
|
2581
|
+
const de_TagList = (output, context) => {
|
|
2588
2582
|
const retVal = (output || [])
|
|
2589
2583
|
.filter((e) => e != null)
|
|
2590
2584
|
.map((entry) => {
|
|
2591
2585
|
if (entry === null) {
|
|
2592
2586
|
return null;
|
|
2593
2587
|
}
|
|
2594
|
-
return
|
|
2588
|
+
return de_Tag(entry, context);
|
|
2595
2589
|
});
|
|
2596
2590
|
return retVal;
|
|
2597
2591
|
};
|