@aws-sdk/client-chime-sdk-identity 3.306.0 → 3.310.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 +35 -35
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_ListAppInstanceUsersCommand = exports.de_ListAppInstanceUserEndpointsCommand = exports.de_ListAppInstancesCommand = exports.de_ListAppInstanceBotsCommand = exports.de_ListAppInstanceAdminsCommand = exports.de_GetAppInstanceRetentionSettingsCommand = exports.de_DescribeAppInstanceUserEndpointCommand = exports.de_DescribeAppInstanceUserCommand = exports.de_DescribeAppInstanceBotCommand = exports.de_DescribeAppInstanceAdminCommand = exports.de_DescribeAppInstanceCommand = exports.de_DeregisterAppInstanceUserEndpointCommand = exports.de_DeleteAppInstanceUserCommand = exports.de_DeleteAppInstanceBotCommand = exports.de_DeleteAppInstanceAdminCommand = exports.de_DeleteAppInstanceCommand = exports.de_CreateAppInstanceUserCommand = exports.de_CreateAppInstanceBotCommand = exports.de_CreateAppInstanceAdminCommand = exports.de_CreateAppInstanceCommand = exports.se_UpdateAppInstanceUserEndpointCommand = exports.se_UpdateAppInstanceUserCommand = exports.se_UpdateAppInstanceBotCommand = exports.se_UpdateAppInstanceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterAppInstanceUserEndpointCommand = exports.se_PutAppInstanceUserExpirationSettingsCommand = exports.se_PutAppInstanceRetentionSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListAppInstanceUsersCommand = exports.se_ListAppInstanceUserEndpointsCommand = exports.se_ListAppInstancesCommand = exports.se_ListAppInstanceBotsCommand = exports.se_ListAppInstanceAdminsCommand = exports.se_GetAppInstanceRetentionSettingsCommand = exports.se_DescribeAppInstanceUserEndpointCommand = exports.se_DescribeAppInstanceUserCommand = exports.se_DescribeAppInstanceBotCommand = exports.se_DescribeAppInstanceAdminCommand = exports.se_DescribeAppInstanceCommand = exports.se_DeregisterAppInstanceUserEndpointCommand = exports.se_DeleteAppInstanceUserCommand = exports.se_DeleteAppInstanceBotCommand = exports.se_DeleteAppInstanceAdminCommand = exports.se_DeleteAppInstanceCommand = exports.se_CreateAppInstanceUserCommand = exports.se_CreateAppInstanceBotCommand = exports.se_CreateAppInstanceAdminCommand = exports.se_CreateAppInstanceCommand = void 0;
|
|
4
|
+
exports.de_UpdateAppInstanceUserEndpointCommand = exports.de_UpdateAppInstanceUserCommand = exports.de_UpdateAppInstanceBotCommand = exports.de_UpdateAppInstanceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterAppInstanceUserEndpointCommand = exports.de_PutAppInstanceUserExpirationSettingsCommand = exports.de_PutAppInstanceRetentionSettingsCommand = exports.de_ListTagsForResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const ChimeSDKIdentityServiceException_1 = require("../models/ChimeSDKIdentityServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const
|
|
10
|
+
const se_CreateAppInstanceCommand = async (input, context) => {
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1CreateAppInstanceCommand = async (input, context) =>
|
|
|
18
18
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
19
19
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
20
20
|
...(input.Name != null && { Name: input.Name }),
|
|
21
|
-
...(input.Tags != null && { Tags:
|
|
21
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
22
22
|
});
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
@@ -30,8 +30,8 @@ const serializeAws_restJson1CreateAppInstanceCommand = async (input, context) =>
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
33
|
+
exports.se_CreateAppInstanceCommand = se_CreateAppInstanceCommand;
|
|
34
|
+
const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
35
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/json",
|
|
@@ -52,8 +52,8 @@ const serializeAws_restJson1CreateAppInstanceAdminCommand = async (input, contex
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
exports.
|
|
56
|
-
const
|
|
55
|
+
exports.se_CreateAppInstanceAdminCommand = se_CreateAppInstanceAdminCommand;
|
|
56
|
+
const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
57
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
58
|
const headers = {
|
|
59
59
|
"content-type": "application/json",
|
|
@@ -63,12 +63,10 @@ const serializeAws_restJson1CreateAppInstanceBotCommand = async (input, context)
|
|
|
63
63
|
body = JSON.stringify({
|
|
64
64
|
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
65
65
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
66
|
-
...(input.Configuration != null && {
|
|
67
|
-
Configuration: serializeAws_restJson1Configuration(input.Configuration, context),
|
|
68
|
-
}),
|
|
66
|
+
...(input.Configuration != null && { Configuration: se_Configuration(input.Configuration, context) }),
|
|
69
67
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
70
68
|
...(input.Name != null && { Name: input.Name }),
|
|
71
|
-
...(input.Tags != null && { Tags:
|
|
69
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
72
70
|
});
|
|
73
71
|
return new protocol_http_1.HttpRequest({
|
|
74
72
|
protocol,
|
|
@@ -80,8 +78,8 @@ const serializeAws_restJson1CreateAppInstanceBotCommand = async (input, context)
|
|
|
80
78
|
body,
|
|
81
79
|
});
|
|
82
80
|
};
|
|
83
|
-
exports.
|
|
84
|
-
const
|
|
81
|
+
exports.se_CreateAppInstanceBotCommand = se_CreateAppInstanceBotCommand;
|
|
82
|
+
const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
85
83
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
84
|
const headers = {
|
|
87
85
|
"content-type": "application/json",
|
|
@@ -93,11 +91,11 @@ const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context
|
|
|
93
91
|
...(input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId }),
|
|
94
92
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
95
93
|
...(input.ExpirationSettings != null && {
|
|
96
|
-
ExpirationSettings:
|
|
94
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
97
95
|
}),
|
|
98
96
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
99
97
|
...(input.Name != null && { Name: input.Name }),
|
|
100
|
-
...(input.Tags != null && { Tags:
|
|
98
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
101
99
|
});
|
|
102
100
|
return new protocol_http_1.HttpRequest({
|
|
103
101
|
protocol,
|
|
@@ -109,8 +107,8 @@ const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context
|
|
|
109
107
|
body,
|
|
110
108
|
});
|
|
111
109
|
};
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
110
|
+
exports.se_CreateAppInstanceUserCommand = se_CreateAppInstanceUserCommand;
|
|
111
|
+
const se_DeleteAppInstanceCommand = async (input, context) => {
|
|
114
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
115
113
|
const headers = {};
|
|
116
114
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
@@ -126,8 +124,8 @@ const serializeAws_restJson1DeleteAppInstanceCommand = async (input, context) =>
|
|
|
126
124
|
body,
|
|
127
125
|
});
|
|
128
126
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
127
|
+
exports.se_DeleteAppInstanceCommand = se_DeleteAppInstanceCommand;
|
|
128
|
+
const se_DeleteAppInstanceAdminCommand = async (input, context) => {
|
|
131
129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
130
|
const headers = {};
|
|
133
131
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -145,8 +143,8 @@ const serializeAws_restJson1DeleteAppInstanceAdminCommand = async (input, contex
|
|
|
145
143
|
body,
|
|
146
144
|
});
|
|
147
145
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
146
|
+
exports.se_DeleteAppInstanceAdminCommand = se_DeleteAppInstanceAdminCommand;
|
|
147
|
+
const se_DeleteAppInstanceBotCommand = async (input, context) => {
|
|
150
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
151
149
|
const headers = {};
|
|
152
150
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
@@ -162,8 +160,8 @@ const serializeAws_restJson1DeleteAppInstanceBotCommand = async (input, context)
|
|
|
162
160
|
body,
|
|
163
161
|
});
|
|
164
162
|
};
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
163
|
+
exports.se_DeleteAppInstanceBotCommand = se_DeleteAppInstanceBotCommand;
|
|
164
|
+
const se_DeleteAppInstanceUserCommand = async (input, context) => {
|
|
167
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
166
|
const headers = {};
|
|
169
167
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
@@ -179,8 +177,8 @@ const serializeAws_restJson1DeleteAppInstanceUserCommand = async (input, context
|
|
|
179
177
|
body,
|
|
180
178
|
});
|
|
181
179
|
};
|
|
182
|
-
exports.
|
|
183
|
-
const
|
|
180
|
+
exports.se_DeleteAppInstanceUserCommand = se_DeleteAppInstanceUserCommand;
|
|
181
|
+
const se_DeregisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
184
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
185
183
|
const headers = {};
|
|
186
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -198,8 +196,8 @@ const serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = async (in
|
|
|
198
196
|
body,
|
|
199
197
|
});
|
|
200
198
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
199
|
+
exports.se_DeregisterAppInstanceUserEndpointCommand = se_DeregisterAppInstanceUserEndpointCommand;
|
|
200
|
+
const se_DescribeAppInstanceCommand = async (input, context) => {
|
|
203
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
202
|
const headers = {};
|
|
205
203
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
@@ -215,8 +213,8 @@ const serializeAws_restJson1DescribeAppInstanceCommand = async (input, context)
|
|
|
215
213
|
body,
|
|
216
214
|
});
|
|
217
215
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
216
|
+
exports.se_DescribeAppInstanceCommand = se_DescribeAppInstanceCommand;
|
|
217
|
+
const se_DescribeAppInstanceAdminCommand = async (input, context) => {
|
|
220
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
221
219
|
const headers = {};
|
|
222
220
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -234,8 +232,8 @@ const serializeAws_restJson1DescribeAppInstanceAdminCommand = async (input, cont
|
|
|
234
232
|
body,
|
|
235
233
|
});
|
|
236
234
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
235
|
+
exports.se_DescribeAppInstanceAdminCommand = se_DescribeAppInstanceAdminCommand;
|
|
236
|
+
const se_DescribeAppInstanceBotCommand = async (input, context) => {
|
|
239
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
240
238
|
const headers = {};
|
|
241
239
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
@@ -251,8 +249,8 @@ const serializeAws_restJson1DescribeAppInstanceBotCommand = async (input, contex
|
|
|
251
249
|
body,
|
|
252
250
|
});
|
|
253
251
|
};
|
|
254
|
-
exports.
|
|
255
|
-
const
|
|
252
|
+
exports.se_DescribeAppInstanceBotCommand = se_DescribeAppInstanceBotCommand;
|
|
253
|
+
const se_DescribeAppInstanceUserCommand = 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 || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
@@ -268,8 +266,8 @@ const serializeAws_restJson1DescribeAppInstanceUserCommand = async (input, conte
|
|
|
268
266
|
body,
|
|
269
267
|
});
|
|
270
268
|
};
|
|
271
|
-
exports.
|
|
272
|
-
const
|
|
269
|
+
exports.se_DescribeAppInstanceUserCommand = se_DescribeAppInstanceUserCommand;
|
|
270
|
+
const se_DescribeAppInstanceUserEndpointCommand = async (input, context) => {
|
|
273
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
272
|
const headers = {};
|
|
275
273
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -287,8 +285,8 @@ const serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = async (inpu
|
|
|
287
285
|
body,
|
|
288
286
|
});
|
|
289
287
|
};
|
|
290
|
-
exports.
|
|
291
|
-
const
|
|
288
|
+
exports.se_DescribeAppInstanceUserEndpointCommand = se_DescribeAppInstanceUserEndpointCommand;
|
|
289
|
+
const se_GetAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
292
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
291
|
const headers = {};
|
|
294
292
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -305,8 +303,8 @@ const serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = async (inpu
|
|
|
305
303
|
body,
|
|
306
304
|
});
|
|
307
305
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
306
|
+
exports.se_GetAppInstanceRetentionSettingsCommand = se_GetAppInstanceRetentionSettingsCommand;
|
|
307
|
+
const se_ListAppInstanceAdminsCommand = async (input, context) => {
|
|
310
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
309
|
const headers = {};
|
|
312
310
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins";
|
|
@@ -327,8 +325,8 @@ const serializeAws_restJson1ListAppInstanceAdminsCommand = async (input, context
|
|
|
327
325
|
body,
|
|
328
326
|
});
|
|
329
327
|
};
|
|
330
|
-
exports.
|
|
331
|
-
const
|
|
328
|
+
exports.se_ListAppInstanceAdminsCommand = se_ListAppInstanceAdminsCommand;
|
|
329
|
+
const se_ListAppInstanceBotsCommand = async (input, context) => {
|
|
332
330
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
331
|
const headers = {};
|
|
334
332
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
@@ -349,8 +347,8 @@ const serializeAws_restJson1ListAppInstanceBotsCommand = async (input, context)
|
|
|
349
347
|
body,
|
|
350
348
|
});
|
|
351
349
|
};
|
|
352
|
-
exports.
|
|
353
|
-
const
|
|
350
|
+
exports.se_ListAppInstanceBotsCommand = se_ListAppInstanceBotsCommand;
|
|
351
|
+
const se_ListAppInstancesCommand = async (input, context) => {
|
|
354
352
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
355
353
|
const headers = {};
|
|
356
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances";
|
|
@@ -370,8 +368,8 @@ const serializeAws_restJson1ListAppInstancesCommand = async (input, context) =>
|
|
|
370
368
|
body,
|
|
371
369
|
});
|
|
372
370
|
};
|
|
373
|
-
exports.
|
|
374
|
-
const
|
|
371
|
+
exports.se_ListAppInstancesCommand = se_ListAppInstancesCommand;
|
|
372
|
+
const se_ListAppInstanceUserEndpointsCommand = async (input, context) => {
|
|
375
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
376
374
|
const headers = {};
|
|
377
375
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -393,8 +391,8 @@ const serializeAws_restJson1ListAppInstanceUserEndpointsCommand = async (input,
|
|
|
393
391
|
body,
|
|
394
392
|
});
|
|
395
393
|
};
|
|
396
|
-
exports.
|
|
397
|
-
const
|
|
394
|
+
exports.se_ListAppInstanceUserEndpointsCommand = se_ListAppInstanceUserEndpointsCommand;
|
|
395
|
+
const se_ListAppInstanceUsersCommand = async (input, context) => {
|
|
398
396
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
399
397
|
const headers = {};
|
|
400
398
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
@@ -415,8 +413,8 @@ const serializeAws_restJson1ListAppInstanceUsersCommand = async (input, context)
|
|
|
415
413
|
body,
|
|
416
414
|
});
|
|
417
415
|
};
|
|
418
|
-
exports.
|
|
419
|
-
const
|
|
416
|
+
exports.se_ListAppInstanceUsersCommand = se_ListAppInstanceUsersCommand;
|
|
417
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
420
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
421
419
|
const headers = {};
|
|
422
420
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -435,8 +433,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
435
433
|
body,
|
|
436
434
|
});
|
|
437
435
|
};
|
|
438
|
-
exports.
|
|
439
|
-
const
|
|
436
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
437
|
+
const se_PutAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
440
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
441
439
|
const headers = {
|
|
442
440
|
"content-type": "application/json",
|
|
@@ -447,7 +445,7 @@ const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (inpu
|
|
|
447
445
|
let body;
|
|
448
446
|
body = JSON.stringify({
|
|
449
447
|
...(input.AppInstanceRetentionSettings != null && {
|
|
450
|
-
AppInstanceRetentionSettings:
|
|
448
|
+
AppInstanceRetentionSettings: se_AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
451
449
|
}),
|
|
452
450
|
});
|
|
453
451
|
return new protocol_http_1.HttpRequest({
|
|
@@ -460,8 +458,8 @@ const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (inpu
|
|
|
460
458
|
body,
|
|
461
459
|
});
|
|
462
460
|
};
|
|
463
|
-
exports.
|
|
464
|
-
const
|
|
461
|
+
exports.se_PutAppInstanceRetentionSettingsCommand = se_PutAppInstanceRetentionSettingsCommand;
|
|
462
|
+
const se_PutAppInstanceUserExpirationSettingsCommand = async (input, context) => {
|
|
465
463
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
464
|
const headers = {
|
|
467
465
|
"content-type": "application/json",
|
|
@@ -472,7 +470,7 @@ const serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = async
|
|
|
472
470
|
let body;
|
|
473
471
|
body = JSON.stringify({
|
|
474
472
|
...(input.ExpirationSettings != null && {
|
|
475
|
-
ExpirationSettings:
|
|
473
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
476
474
|
}),
|
|
477
475
|
});
|
|
478
476
|
return new protocol_http_1.HttpRequest({
|
|
@@ -485,8 +483,8 @@ const serializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = async
|
|
|
485
483
|
body,
|
|
486
484
|
});
|
|
487
485
|
};
|
|
488
|
-
exports.
|
|
489
|
-
const
|
|
486
|
+
exports.se_PutAppInstanceUserExpirationSettingsCommand = se_PutAppInstanceUserExpirationSettingsCommand;
|
|
487
|
+
const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
490
488
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
491
489
|
const headers = {
|
|
492
490
|
"content-type": "application/json",
|
|
@@ -499,7 +497,7 @@ const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (inpu
|
|
|
499
497
|
...(input.AllowMessages != null && { AllowMessages: input.AllowMessages }),
|
|
500
498
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
501
499
|
...(input.EndpointAttributes != null && {
|
|
502
|
-
EndpointAttributes:
|
|
500
|
+
EndpointAttributes: se_EndpointAttributes(input.EndpointAttributes, context),
|
|
503
501
|
}),
|
|
504
502
|
...(input.Name != null && { Name: input.Name }),
|
|
505
503
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -515,8 +513,8 @@ const serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (inpu
|
|
|
515
513
|
body,
|
|
516
514
|
});
|
|
517
515
|
};
|
|
518
|
-
exports.
|
|
519
|
-
const
|
|
516
|
+
exports.se_RegisterAppInstanceUserEndpointCommand = se_RegisterAppInstanceUserEndpointCommand;
|
|
517
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
520
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
521
519
|
const headers = {
|
|
522
520
|
"content-type": "application/json",
|
|
@@ -528,7 +526,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
528
526
|
let body;
|
|
529
527
|
body = JSON.stringify({
|
|
530
528
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
531
|
-
...(input.Tags != null && { Tags:
|
|
529
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
532
530
|
});
|
|
533
531
|
return new protocol_http_1.HttpRequest({
|
|
534
532
|
protocol,
|
|
@@ -541,8 +539,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
541
539
|
body,
|
|
542
540
|
});
|
|
543
541
|
};
|
|
544
|
-
exports.
|
|
545
|
-
const
|
|
542
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
543
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
546
544
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
545
|
const headers = {
|
|
548
546
|
"content-type": "application/json",
|
|
@@ -554,7 +552,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
554
552
|
let body;
|
|
555
553
|
body = JSON.stringify({
|
|
556
554
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
557
|
-
...(input.TagKeys != null && { TagKeys:
|
|
555
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
558
556
|
});
|
|
559
557
|
return new protocol_http_1.HttpRequest({
|
|
560
558
|
protocol,
|
|
@@ -567,8 +565,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
567
565
|
body,
|
|
568
566
|
});
|
|
569
567
|
};
|
|
570
|
-
exports.
|
|
571
|
-
const
|
|
568
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
569
|
+
const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
572
570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
573
571
|
const headers = {
|
|
574
572
|
"content-type": "application/json",
|
|
@@ -590,8 +588,8 @@ const serializeAws_restJson1UpdateAppInstanceCommand = async (input, context) =>
|
|
|
590
588
|
body,
|
|
591
589
|
});
|
|
592
590
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
591
|
+
exports.se_UpdateAppInstanceCommand = se_UpdateAppInstanceCommand;
|
|
592
|
+
const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
595
593
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
594
|
const headers = {
|
|
597
595
|
"content-type": "application/json",
|
|
@@ -613,8 +611,8 @@ const serializeAws_restJson1UpdateAppInstanceBotCommand = async (input, context)
|
|
|
613
611
|
body,
|
|
614
612
|
});
|
|
615
613
|
};
|
|
616
|
-
exports.
|
|
617
|
-
const
|
|
614
|
+
exports.se_UpdateAppInstanceBotCommand = se_UpdateAppInstanceBotCommand;
|
|
615
|
+
const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
618
616
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
619
617
|
const headers = {
|
|
620
618
|
"content-type": "application/json",
|
|
@@ -636,8 +634,8 @@ const serializeAws_restJson1UpdateAppInstanceUserCommand = async (input, context
|
|
|
636
634
|
body,
|
|
637
635
|
});
|
|
638
636
|
};
|
|
639
|
-
exports.
|
|
640
|
-
const
|
|
637
|
+
exports.se_UpdateAppInstanceUserCommand = se_UpdateAppInstanceUserCommand;
|
|
638
|
+
const se_UpdateAppInstanceUserEndpointCommand = async (input, context) => {
|
|
641
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
642
640
|
const headers = {
|
|
643
641
|
"content-type": "application/json",
|
|
@@ -661,10 +659,10 @@ const serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = async (input,
|
|
|
661
659
|
body,
|
|
662
660
|
});
|
|
663
661
|
};
|
|
664
|
-
exports.
|
|
665
|
-
const
|
|
662
|
+
exports.se_UpdateAppInstanceUserEndpointCommand = se_UpdateAppInstanceUserEndpointCommand;
|
|
663
|
+
const de_CreateAppInstanceCommand = async (output, context) => {
|
|
666
664
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
667
|
-
return
|
|
665
|
+
return de_CreateAppInstanceCommandError(output, context);
|
|
668
666
|
}
|
|
669
667
|
const contents = map({
|
|
670
668
|
$metadata: deserializeMetadata(output),
|
|
@@ -675,8 +673,8 @@ const deserializeAws_restJson1CreateAppInstanceCommand = async (output, context)
|
|
|
675
673
|
}
|
|
676
674
|
return contents;
|
|
677
675
|
};
|
|
678
|
-
exports.
|
|
679
|
-
const
|
|
676
|
+
exports.de_CreateAppInstanceCommand = de_CreateAppInstanceCommand;
|
|
677
|
+
const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
680
678
|
const parsedOutput = {
|
|
681
679
|
...output,
|
|
682
680
|
body: await parseErrorBody(output.body, context),
|
|
@@ -685,28 +683,28 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
685
683
|
switch (errorCode) {
|
|
686
684
|
case "BadRequestException":
|
|
687
685
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
688
|
-
throw await
|
|
686
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
689
687
|
case "ConflictException":
|
|
690
688
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
691
|
-
throw await
|
|
689
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
692
690
|
case "ForbiddenException":
|
|
693
691
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
694
|
-
throw await
|
|
692
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
695
693
|
case "ResourceLimitExceededException":
|
|
696
694
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
697
|
-
throw await
|
|
695
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
698
696
|
case "ServiceFailureException":
|
|
699
697
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
700
|
-
throw await
|
|
698
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
701
699
|
case "ServiceUnavailableException":
|
|
702
700
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
703
|
-
throw await
|
|
701
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
704
702
|
case "ThrottledClientException":
|
|
705
703
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
706
|
-
throw await
|
|
704
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
707
705
|
case "UnauthorizedClientException":
|
|
708
706
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
709
|
-
throw await
|
|
707
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
710
708
|
default:
|
|
711
709
|
const parsedBody = parsedOutput.body;
|
|
712
710
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -717,24 +715,24 @@ const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, con
|
|
|
717
715
|
});
|
|
718
716
|
}
|
|
719
717
|
};
|
|
720
|
-
const
|
|
718
|
+
const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
721
719
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
722
|
-
return
|
|
720
|
+
return de_CreateAppInstanceAdminCommandError(output, context);
|
|
723
721
|
}
|
|
724
722
|
const contents = map({
|
|
725
723
|
$metadata: deserializeMetadata(output),
|
|
726
724
|
});
|
|
727
725
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
728
726
|
if (data.AppInstanceAdmin != null) {
|
|
729
|
-
contents.AppInstanceAdmin =
|
|
727
|
+
contents.AppInstanceAdmin = de_Identity(data.AppInstanceAdmin, context);
|
|
730
728
|
}
|
|
731
729
|
if (data.AppInstanceArn != null) {
|
|
732
730
|
contents.AppInstanceArn = (0, smithy_client_1.expectString)(data.AppInstanceArn);
|
|
733
731
|
}
|
|
734
732
|
return contents;
|
|
735
733
|
};
|
|
736
|
-
exports.
|
|
737
|
-
const
|
|
734
|
+
exports.de_CreateAppInstanceAdminCommand = de_CreateAppInstanceAdminCommand;
|
|
735
|
+
const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
738
736
|
const parsedOutput = {
|
|
739
737
|
...output,
|
|
740
738
|
body: await parseErrorBody(output.body, context),
|
|
@@ -743,28 +741,28 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
743
741
|
switch (errorCode) {
|
|
744
742
|
case "BadRequestException":
|
|
745
743
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
746
|
-
throw await
|
|
744
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
747
745
|
case "ConflictException":
|
|
748
746
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
749
|
-
throw await
|
|
747
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
750
748
|
case "ForbiddenException":
|
|
751
749
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
752
|
-
throw await
|
|
750
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
753
751
|
case "ResourceLimitExceededException":
|
|
754
752
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
755
|
-
throw await
|
|
753
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
756
754
|
case "ServiceFailureException":
|
|
757
755
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
758
|
-
throw await
|
|
756
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
759
757
|
case "ServiceUnavailableException":
|
|
760
758
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
761
|
-
throw await
|
|
759
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
762
760
|
case "ThrottledClientException":
|
|
763
761
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
764
|
-
throw await
|
|
762
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
765
763
|
case "UnauthorizedClientException":
|
|
766
764
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
767
|
-
throw await
|
|
765
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
768
766
|
default:
|
|
769
767
|
const parsedBody = parsedOutput.body;
|
|
770
768
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -775,9 +773,9 @@ const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output
|
|
|
775
773
|
});
|
|
776
774
|
}
|
|
777
775
|
};
|
|
778
|
-
const
|
|
776
|
+
const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
779
777
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
778
|
+
return de_CreateAppInstanceBotCommandError(output, context);
|
|
781
779
|
}
|
|
782
780
|
const contents = map({
|
|
783
781
|
$metadata: deserializeMetadata(output),
|
|
@@ -788,8 +786,8 @@ const deserializeAws_restJson1CreateAppInstanceBotCommand = async (output, conte
|
|
|
788
786
|
}
|
|
789
787
|
return contents;
|
|
790
788
|
};
|
|
791
|
-
exports.
|
|
792
|
-
const
|
|
789
|
+
exports.de_CreateAppInstanceBotCommand = de_CreateAppInstanceBotCommand;
|
|
790
|
+
const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
793
791
|
const parsedOutput = {
|
|
794
792
|
...output,
|
|
795
793
|
body: await parseErrorBody(output.body, context),
|
|
@@ -798,28 +796,28 @@ const deserializeAws_restJson1CreateAppInstanceBotCommandError = async (output,
|
|
|
798
796
|
switch (errorCode) {
|
|
799
797
|
case "BadRequestException":
|
|
800
798
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
801
|
-
throw await
|
|
799
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
802
800
|
case "ConflictException":
|
|
803
801
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
804
|
-
throw await
|
|
802
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
805
803
|
case "ForbiddenException":
|
|
806
804
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
807
|
-
throw await
|
|
805
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
808
806
|
case "ResourceLimitExceededException":
|
|
809
807
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
810
|
-
throw await
|
|
808
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
811
809
|
case "ServiceFailureException":
|
|
812
810
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
813
|
-
throw await
|
|
811
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
814
812
|
case "ServiceUnavailableException":
|
|
815
813
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
816
|
-
throw await
|
|
814
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
817
815
|
case "ThrottledClientException":
|
|
818
816
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
819
|
-
throw await
|
|
817
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
820
818
|
case "UnauthorizedClientException":
|
|
821
819
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
822
|
-
throw await
|
|
820
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
823
821
|
default:
|
|
824
822
|
const parsedBody = parsedOutput.body;
|
|
825
823
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -830,9 +828,9 @@ const deserializeAws_restJson1CreateAppInstanceBotCommandError = async (output,
|
|
|
830
828
|
});
|
|
831
829
|
}
|
|
832
830
|
};
|
|
833
|
-
const
|
|
831
|
+
const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
834
832
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
835
|
-
return
|
|
833
|
+
return de_CreateAppInstanceUserCommandError(output, context);
|
|
836
834
|
}
|
|
837
835
|
const contents = map({
|
|
838
836
|
$metadata: deserializeMetadata(output),
|
|
@@ -843,8 +841,8 @@ const deserializeAws_restJson1CreateAppInstanceUserCommand = async (output, cont
|
|
|
843
841
|
}
|
|
844
842
|
return contents;
|
|
845
843
|
};
|
|
846
|
-
exports.
|
|
847
|
-
const
|
|
844
|
+
exports.de_CreateAppInstanceUserCommand = de_CreateAppInstanceUserCommand;
|
|
845
|
+
const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
848
846
|
const parsedOutput = {
|
|
849
847
|
...output,
|
|
850
848
|
body: await parseErrorBody(output.body, context),
|
|
@@ -853,28 +851,28 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
853
851
|
switch (errorCode) {
|
|
854
852
|
case "BadRequestException":
|
|
855
853
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
856
|
-
throw await
|
|
854
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
857
855
|
case "ConflictException":
|
|
858
856
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
859
|
-
throw await
|
|
857
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
860
858
|
case "ForbiddenException":
|
|
861
859
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
862
|
-
throw await
|
|
860
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
863
861
|
case "ResourceLimitExceededException":
|
|
864
862
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
865
|
-
throw await
|
|
863
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
866
864
|
case "ServiceFailureException":
|
|
867
865
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
868
|
-
throw await
|
|
866
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
869
867
|
case "ServiceUnavailableException":
|
|
870
868
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
871
|
-
throw await
|
|
869
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
872
870
|
case "ThrottledClientException":
|
|
873
871
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
874
|
-
throw await
|
|
872
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
875
873
|
case "UnauthorizedClientException":
|
|
876
874
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
877
|
-
throw await
|
|
875
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
878
876
|
default:
|
|
879
877
|
const parsedBody = parsedOutput.body;
|
|
880
878
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -885,9 +883,9 @@ const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output,
|
|
|
885
883
|
});
|
|
886
884
|
}
|
|
887
885
|
};
|
|
888
|
-
const
|
|
886
|
+
const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
889
887
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
890
|
-
return
|
|
888
|
+
return de_DeleteAppInstanceCommandError(output, context);
|
|
891
889
|
}
|
|
892
890
|
const contents = map({
|
|
893
891
|
$metadata: deserializeMetadata(output),
|
|
@@ -895,8 +893,8 @@ const deserializeAws_restJson1DeleteAppInstanceCommand = async (output, context)
|
|
|
895
893
|
await collectBody(output.body, context);
|
|
896
894
|
return contents;
|
|
897
895
|
};
|
|
898
|
-
exports.
|
|
899
|
-
const
|
|
896
|
+
exports.de_DeleteAppInstanceCommand = de_DeleteAppInstanceCommand;
|
|
897
|
+
const de_DeleteAppInstanceCommandError = async (output, context) => {
|
|
900
898
|
const parsedOutput = {
|
|
901
899
|
...output,
|
|
902
900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -905,25 +903,25 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
905
903
|
switch (errorCode) {
|
|
906
904
|
case "BadRequestException":
|
|
907
905
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
908
|
-
throw await
|
|
906
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
909
907
|
case "ForbiddenException":
|
|
910
908
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
911
|
-
throw await
|
|
909
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
912
910
|
case "ResourceLimitExceededException":
|
|
913
911
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
914
|
-
throw await
|
|
912
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
915
913
|
case "ServiceFailureException":
|
|
916
914
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
917
|
-
throw await
|
|
915
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
918
916
|
case "ServiceUnavailableException":
|
|
919
917
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
920
|
-
throw await
|
|
918
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
921
919
|
case "ThrottledClientException":
|
|
922
920
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
923
|
-
throw await
|
|
921
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
924
922
|
case "UnauthorizedClientException":
|
|
925
923
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
926
|
-
throw await
|
|
924
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
927
925
|
default:
|
|
928
926
|
const parsedBody = parsedOutput.body;
|
|
929
927
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -934,9 +932,9 @@ const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, con
|
|
|
934
932
|
});
|
|
935
933
|
}
|
|
936
934
|
};
|
|
937
|
-
const
|
|
935
|
+
const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
938
936
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
939
|
-
return
|
|
937
|
+
return de_DeleteAppInstanceAdminCommandError(output, context);
|
|
940
938
|
}
|
|
941
939
|
const contents = map({
|
|
942
940
|
$metadata: deserializeMetadata(output),
|
|
@@ -944,8 +942,8 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommand = async (output, con
|
|
|
944
942
|
await collectBody(output.body, context);
|
|
945
943
|
return contents;
|
|
946
944
|
};
|
|
947
|
-
exports.
|
|
948
|
-
const
|
|
945
|
+
exports.de_DeleteAppInstanceAdminCommand = de_DeleteAppInstanceAdminCommand;
|
|
946
|
+
const de_DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
949
947
|
const parsedOutput = {
|
|
950
948
|
...output,
|
|
951
949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -954,28 +952,28 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
954
952
|
switch (errorCode) {
|
|
955
953
|
case "BadRequestException":
|
|
956
954
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
957
|
-
throw await
|
|
955
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
958
956
|
case "ConflictException":
|
|
959
957
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
960
|
-
throw await
|
|
958
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
961
959
|
case "ForbiddenException":
|
|
962
960
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
963
|
-
throw await
|
|
961
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
964
962
|
case "ResourceLimitExceededException":
|
|
965
963
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
966
|
-
throw await
|
|
964
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
967
965
|
case "ServiceFailureException":
|
|
968
966
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
969
|
-
throw await
|
|
967
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
970
968
|
case "ServiceUnavailableException":
|
|
971
969
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
972
|
-
throw await
|
|
970
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
973
971
|
case "ThrottledClientException":
|
|
974
972
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
975
|
-
throw await
|
|
973
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
976
974
|
case "UnauthorizedClientException":
|
|
977
975
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
978
|
-
throw await
|
|
976
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
979
977
|
default:
|
|
980
978
|
const parsedBody = parsedOutput.body;
|
|
981
979
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -986,9 +984,9 @@ const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output
|
|
|
986
984
|
});
|
|
987
985
|
}
|
|
988
986
|
};
|
|
989
|
-
const
|
|
987
|
+
const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
990
988
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
989
|
+
return de_DeleteAppInstanceBotCommandError(output, context);
|
|
992
990
|
}
|
|
993
991
|
const contents = map({
|
|
994
992
|
$metadata: deserializeMetadata(output),
|
|
@@ -996,8 +994,8 @@ const deserializeAws_restJson1DeleteAppInstanceBotCommand = async (output, conte
|
|
|
996
994
|
await collectBody(output.body, context);
|
|
997
995
|
return contents;
|
|
998
996
|
};
|
|
999
|
-
exports.
|
|
1000
|
-
const
|
|
997
|
+
exports.de_DeleteAppInstanceBotCommand = de_DeleteAppInstanceBotCommand;
|
|
998
|
+
const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
1001
999
|
const parsedOutput = {
|
|
1002
1000
|
...output,
|
|
1003
1001
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1006,28 +1004,28 @@ const deserializeAws_restJson1DeleteAppInstanceBotCommandError = async (output,
|
|
|
1006
1004
|
switch (errorCode) {
|
|
1007
1005
|
case "BadRequestException":
|
|
1008
1006
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1009
|
-
throw await
|
|
1007
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1010
1008
|
case "ConflictException":
|
|
1011
1009
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1012
|
-
throw await
|
|
1010
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1013
1011
|
case "ForbiddenException":
|
|
1014
1012
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1015
|
-
throw await
|
|
1013
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1016
1014
|
case "ResourceLimitExceededException":
|
|
1017
1015
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1018
|
-
throw await
|
|
1016
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1019
1017
|
case "ServiceFailureException":
|
|
1020
1018
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1021
|
-
throw await
|
|
1019
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1022
1020
|
case "ServiceUnavailableException":
|
|
1023
1021
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1024
|
-
throw await
|
|
1022
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1025
1023
|
case "ThrottledClientException":
|
|
1026
1024
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1027
|
-
throw await
|
|
1025
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1028
1026
|
case "UnauthorizedClientException":
|
|
1029
1027
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1030
|
-
throw await
|
|
1028
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1031
1029
|
default:
|
|
1032
1030
|
const parsedBody = parsedOutput.body;
|
|
1033
1031
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1038,9 +1036,9 @@ const deserializeAws_restJson1DeleteAppInstanceBotCommandError = async (output,
|
|
|
1038
1036
|
});
|
|
1039
1037
|
}
|
|
1040
1038
|
};
|
|
1041
|
-
const
|
|
1039
|
+
const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
1042
1040
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
1041
|
+
return de_DeleteAppInstanceUserCommandError(output, context);
|
|
1044
1042
|
}
|
|
1045
1043
|
const contents = map({
|
|
1046
1044
|
$metadata: deserializeMetadata(output),
|
|
@@ -1048,8 +1046,8 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommand = async (output, cont
|
|
|
1048
1046
|
await collectBody(output.body, context);
|
|
1049
1047
|
return contents;
|
|
1050
1048
|
};
|
|
1051
|
-
exports.
|
|
1052
|
-
const
|
|
1049
|
+
exports.de_DeleteAppInstanceUserCommand = de_DeleteAppInstanceUserCommand;
|
|
1050
|
+
const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
1053
1051
|
const parsedOutput = {
|
|
1054
1052
|
...output,
|
|
1055
1053
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1058,28 +1056,28 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
1058
1056
|
switch (errorCode) {
|
|
1059
1057
|
case "BadRequestException":
|
|
1060
1058
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1061
|
-
throw await
|
|
1059
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1062
1060
|
case "ConflictException":
|
|
1063
1061
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1064
|
-
throw await
|
|
1062
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1065
1063
|
case "ForbiddenException":
|
|
1066
1064
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1067
|
-
throw await
|
|
1065
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1068
1066
|
case "ResourceLimitExceededException":
|
|
1069
1067
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1070
|
-
throw await
|
|
1068
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1071
1069
|
case "ServiceFailureException":
|
|
1072
1070
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1073
|
-
throw await
|
|
1071
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1074
1072
|
case "ServiceUnavailableException":
|
|
1075
1073
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1076
|
-
throw await
|
|
1074
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1077
1075
|
case "ThrottledClientException":
|
|
1078
1076
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1079
|
-
throw await
|
|
1077
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1080
1078
|
case "UnauthorizedClientException":
|
|
1081
1079
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1082
|
-
throw await
|
|
1080
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1083
1081
|
default:
|
|
1084
1082
|
const parsedBody = parsedOutput.body;
|
|
1085
1083
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1090,9 +1088,9 @@ const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output,
|
|
|
1090
1088
|
});
|
|
1091
1089
|
}
|
|
1092
1090
|
};
|
|
1093
|
-
const
|
|
1091
|
+
const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1094
1092
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1095
|
-
return
|
|
1093
|
+
return de_DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
1096
1094
|
}
|
|
1097
1095
|
const contents = map({
|
|
1098
1096
|
$metadata: deserializeMetadata(output),
|
|
@@ -1100,8 +1098,8 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = async (
|
|
|
1100
1098
|
await collectBody(output.body, context);
|
|
1101
1099
|
return contents;
|
|
1102
1100
|
};
|
|
1103
|
-
exports.
|
|
1104
|
-
const
|
|
1101
|
+
exports.de_DeregisterAppInstanceUserEndpointCommand = de_DeregisterAppInstanceUserEndpointCommand;
|
|
1102
|
+
const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1105
1103
|
const parsedOutput = {
|
|
1106
1104
|
...output,
|
|
1107
1105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1110,22 +1108,22 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = as
|
|
|
1110
1108
|
switch (errorCode) {
|
|
1111
1109
|
case "BadRequestException":
|
|
1112
1110
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1113
|
-
throw await
|
|
1111
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1114
1112
|
case "ForbiddenException":
|
|
1115
1113
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1116
|
-
throw await
|
|
1114
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1117
1115
|
case "ServiceFailureException":
|
|
1118
1116
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1119
|
-
throw await
|
|
1117
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1120
1118
|
case "ServiceUnavailableException":
|
|
1121
1119
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1122
|
-
throw await
|
|
1120
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1123
1121
|
case "ThrottledClientException":
|
|
1124
1122
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1125
|
-
throw await
|
|
1123
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1126
1124
|
case "UnauthorizedClientException":
|
|
1127
1125
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1128
|
-
throw await
|
|
1126
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1129
1127
|
default:
|
|
1130
1128
|
const parsedBody = parsedOutput.body;
|
|
1131
1129
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1136,21 +1134,21 @@ const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = as
|
|
|
1136
1134
|
});
|
|
1137
1135
|
}
|
|
1138
1136
|
};
|
|
1139
|
-
const
|
|
1137
|
+
const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
1140
1138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1141
|
-
return
|
|
1139
|
+
return de_DescribeAppInstanceCommandError(output, context);
|
|
1142
1140
|
}
|
|
1143
1141
|
const contents = map({
|
|
1144
1142
|
$metadata: deserializeMetadata(output),
|
|
1145
1143
|
});
|
|
1146
1144
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1147
1145
|
if (data.AppInstance != null) {
|
|
1148
|
-
contents.AppInstance =
|
|
1146
|
+
contents.AppInstance = de_AppInstance(data.AppInstance, context);
|
|
1149
1147
|
}
|
|
1150
1148
|
return contents;
|
|
1151
1149
|
};
|
|
1152
|
-
exports.
|
|
1153
|
-
const
|
|
1150
|
+
exports.de_DescribeAppInstanceCommand = de_DescribeAppInstanceCommand;
|
|
1151
|
+
const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
1154
1152
|
const parsedOutput = {
|
|
1155
1153
|
...output,
|
|
1156
1154
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1159,22 +1157,22 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
1159
1157
|
switch (errorCode) {
|
|
1160
1158
|
case "BadRequestException":
|
|
1161
1159
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1162
|
-
throw await
|
|
1160
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1163
1161
|
case "ForbiddenException":
|
|
1164
1162
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1165
|
-
throw await
|
|
1163
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1166
1164
|
case "ServiceFailureException":
|
|
1167
1165
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1168
|
-
throw await
|
|
1166
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1169
1167
|
case "ServiceUnavailableException":
|
|
1170
1168
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1171
|
-
throw await
|
|
1169
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1172
1170
|
case "ThrottledClientException":
|
|
1173
1171
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1174
|
-
throw await
|
|
1172
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1175
1173
|
case "UnauthorizedClientException":
|
|
1176
1174
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1177
|
-
throw await
|
|
1175
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1178
1176
|
default:
|
|
1179
1177
|
const parsedBody = parsedOutput.body;
|
|
1180
1178
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1185,21 +1183,21 @@ const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, c
|
|
|
1185
1183
|
});
|
|
1186
1184
|
}
|
|
1187
1185
|
};
|
|
1188
|
-
const
|
|
1186
|
+
const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
1189
1187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
1188
|
+
return de_DescribeAppInstanceAdminCommandError(output, context);
|
|
1191
1189
|
}
|
|
1192
1190
|
const contents = map({
|
|
1193
1191
|
$metadata: deserializeMetadata(output),
|
|
1194
1192
|
});
|
|
1195
1193
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1196
1194
|
if (data.AppInstanceAdmin != null) {
|
|
1197
|
-
contents.AppInstanceAdmin =
|
|
1195
|
+
contents.AppInstanceAdmin = de_AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
1198
1196
|
}
|
|
1199
1197
|
return contents;
|
|
1200
1198
|
};
|
|
1201
|
-
exports.
|
|
1202
|
-
const
|
|
1199
|
+
exports.de_DescribeAppInstanceAdminCommand = de_DescribeAppInstanceAdminCommand;
|
|
1200
|
+
const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
1203
1201
|
const parsedOutput = {
|
|
1204
1202
|
...output,
|
|
1205
1203
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1208,22 +1206,22 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
1208
1206
|
switch (errorCode) {
|
|
1209
1207
|
case "BadRequestException":
|
|
1210
1208
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1211
|
-
throw await
|
|
1209
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1212
1210
|
case "ForbiddenException":
|
|
1213
1211
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1214
|
-
throw await
|
|
1212
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1215
1213
|
case "ServiceFailureException":
|
|
1216
1214
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1217
|
-
throw await
|
|
1215
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1218
1216
|
case "ServiceUnavailableException":
|
|
1219
1217
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1220
|
-
throw await
|
|
1218
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1221
1219
|
case "ThrottledClientException":
|
|
1222
1220
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1223
|
-
throw await
|
|
1221
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1224
1222
|
case "UnauthorizedClientException":
|
|
1225
1223
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1226
|
-
throw await
|
|
1224
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1227
1225
|
default:
|
|
1228
1226
|
const parsedBody = parsedOutput.body;
|
|
1229
1227
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1234,21 +1232,21 @@ const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (outp
|
|
|
1234
1232
|
});
|
|
1235
1233
|
}
|
|
1236
1234
|
};
|
|
1237
|
-
const
|
|
1235
|
+
const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
1238
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
|
-
return
|
|
1237
|
+
return de_DescribeAppInstanceBotCommandError(output, context);
|
|
1240
1238
|
}
|
|
1241
1239
|
const contents = map({
|
|
1242
1240
|
$metadata: deserializeMetadata(output),
|
|
1243
1241
|
});
|
|
1244
1242
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1245
1243
|
if (data.AppInstanceBot != null) {
|
|
1246
|
-
contents.AppInstanceBot =
|
|
1244
|
+
contents.AppInstanceBot = de_AppInstanceBot(data.AppInstanceBot, context);
|
|
1247
1245
|
}
|
|
1248
1246
|
return contents;
|
|
1249
1247
|
};
|
|
1250
|
-
exports.
|
|
1251
|
-
const
|
|
1248
|
+
exports.de_DescribeAppInstanceBotCommand = de_DescribeAppInstanceBotCommand;
|
|
1249
|
+
const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
1252
1250
|
const parsedOutput = {
|
|
1253
1251
|
...output,
|
|
1254
1252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1257,25 +1255,25 @@ const deserializeAws_restJson1DescribeAppInstanceBotCommandError = async (output
|
|
|
1257
1255
|
switch (errorCode) {
|
|
1258
1256
|
case "BadRequestException":
|
|
1259
1257
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1260
|
-
throw await
|
|
1258
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1261
1259
|
case "ForbiddenException":
|
|
1262
1260
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1263
|
-
throw await
|
|
1261
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1264
1262
|
case "NotFoundException":
|
|
1265
1263
|
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1266
|
-
throw await
|
|
1264
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1267
1265
|
case "ServiceFailureException":
|
|
1268
1266
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1269
|
-
throw await
|
|
1267
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1270
1268
|
case "ServiceUnavailableException":
|
|
1271
1269
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1272
|
-
throw await
|
|
1270
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1273
1271
|
case "ThrottledClientException":
|
|
1274
1272
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1275
|
-
throw await
|
|
1273
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1276
1274
|
case "UnauthorizedClientException":
|
|
1277
1275
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1278
|
-
throw await
|
|
1276
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1279
1277
|
default:
|
|
1280
1278
|
const parsedBody = parsedOutput.body;
|
|
1281
1279
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1286,21 +1284,21 @@ const deserializeAws_restJson1DescribeAppInstanceBotCommandError = async (output
|
|
|
1286
1284
|
});
|
|
1287
1285
|
}
|
|
1288
1286
|
};
|
|
1289
|
-
const
|
|
1287
|
+
const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
1290
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
1289
|
+
return de_DescribeAppInstanceUserCommandError(output, context);
|
|
1292
1290
|
}
|
|
1293
1291
|
const contents = map({
|
|
1294
1292
|
$metadata: deserializeMetadata(output),
|
|
1295
1293
|
});
|
|
1296
1294
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1297
1295
|
if (data.AppInstanceUser != null) {
|
|
1298
|
-
contents.AppInstanceUser =
|
|
1296
|
+
contents.AppInstanceUser = de_AppInstanceUser(data.AppInstanceUser, context);
|
|
1299
1297
|
}
|
|
1300
1298
|
return contents;
|
|
1301
1299
|
};
|
|
1302
|
-
exports.
|
|
1303
|
-
const
|
|
1300
|
+
exports.de_DescribeAppInstanceUserCommand = de_DescribeAppInstanceUserCommand;
|
|
1301
|
+
const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
1304
1302
|
const parsedOutput = {
|
|
1305
1303
|
...output,
|
|
1306
1304
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1309,22 +1307,22 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
1309
1307
|
switch (errorCode) {
|
|
1310
1308
|
case "BadRequestException":
|
|
1311
1309
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1312
|
-
throw await
|
|
1310
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1313
1311
|
case "ForbiddenException":
|
|
1314
1312
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1315
|
-
throw await
|
|
1313
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1316
1314
|
case "ServiceFailureException":
|
|
1317
1315
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1318
|
-
throw await
|
|
1316
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1319
1317
|
case "ServiceUnavailableException":
|
|
1320
1318
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1321
|
-
throw await
|
|
1319
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1322
1320
|
case "ThrottledClientException":
|
|
1323
1321
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1324
|
-
throw await
|
|
1322
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1325
1323
|
case "UnauthorizedClientException":
|
|
1326
1324
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1327
|
-
throw await
|
|
1325
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1328
1326
|
default:
|
|
1329
1327
|
const parsedBody = parsedOutput.body;
|
|
1330
1328
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1335,21 +1333,21 @@ const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (outpu
|
|
|
1335
1333
|
});
|
|
1336
1334
|
}
|
|
1337
1335
|
};
|
|
1338
|
-
const
|
|
1336
|
+
const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1339
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1340
|
-
return
|
|
1338
|
+
return de_DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1341
1339
|
}
|
|
1342
1340
|
const contents = map({
|
|
1343
1341
|
$metadata: deserializeMetadata(output),
|
|
1344
1342
|
});
|
|
1345
1343
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1346
1344
|
if (data.AppInstanceUserEndpoint != null) {
|
|
1347
|
-
contents.AppInstanceUserEndpoint =
|
|
1345
|
+
contents.AppInstanceUserEndpoint = de_AppInstanceUserEndpoint(data.AppInstanceUserEndpoint, context);
|
|
1348
1346
|
}
|
|
1349
1347
|
return contents;
|
|
1350
1348
|
};
|
|
1351
|
-
exports.
|
|
1352
|
-
const
|
|
1349
|
+
exports.de_DescribeAppInstanceUserEndpointCommand = de_DescribeAppInstanceUserEndpointCommand;
|
|
1350
|
+
const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1353
1351
|
const parsedOutput = {
|
|
1354
1352
|
...output,
|
|
1355
1353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1358,22 +1356,22 @@ const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = asyn
|
|
|
1358
1356
|
switch (errorCode) {
|
|
1359
1357
|
case "BadRequestException":
|
|
1360
1358
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1361
|
-
throw await
|
|
1359
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1362
1360
|
case "ForbiddenException":
|
|
1363
1361
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1364
|
-
throw await
|
|
1362
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1365
1363
|
case "ServiceFailureException":
|
|
1366
1364
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1367
|
-
throw await
|
|
1365
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1368
1366
|
case "ServiceUnavailableException":
|
|
1369
1367
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1370
|
-
throw await
|
|
1368
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1371
1369
|
case "ThrottledClientException":
|
|
1372
1370
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1373
|
-
throw await
|
|
1371
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1374
1372
|
case "UnauthorizedClientException":
|
|
1375
1373
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1376
|
-
throw await
|
|
1374
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1377
1375
|
default:
|
|
1378
1376
|
const parsedBody = parsedOutput.body;
|
|
1379
1377
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1384,24 +1382,24 @@ const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = asyn
|
|
|
1384
1382
|
});
|
|
1385
1383
|
}
|
|
1386
1384
|
};
|
|
1387
|
-
const
|
|
1385
|
+
const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1388
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1389
|
-
return
|
|
1387
|
+
return de_GetAppInstanceRetentionSettingsCommandError(output, context);
|
|
1390
1388
|
}
|
|
1391
1389
|
const contents = map({
|
|
1392
1390
|
$metadata: deserializeMetadata(output),
|
|
1393
1391
|
});
|
|
1394
1392
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1395
1393
|
if (data.AppInstanceRetentionSettings != null) {
|
|
1396
|
-
contents.AppInstanceRetentionSettings =
|
|
1394
|
+
contents.AppInstanceRetentionSettings = de_AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1397
1395
|
}
|
|
1398
1396
|
if (data.InitiateDeletionTimestamp != null) {
|
|
1399
1397
|
contents.InitiateDeletionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.InitiateDeletionTimestamp)));
|
|
1400
1398
|
}
|
|
1401
1399
|
return contents;
|
|
1402
1400
|
};
|
|
1403
|
-
exports.
|
|
1404
|
-
const
|
|
1401
|
+
exports.de_GetAppInstanceRetentionSettingsCommand = de_GetAppInstanceRetentionSettingsCommand;
|
|
1402
|
+
const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1405
1403
|
const parsedOutput = {
|
|
1406
1404
|
...output,
|
|
1407
1405
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1410,22 +1408,22 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1410
1408
|
switch (errorCode) {
|
|
1411
1409
|
case "BadRequestException":
|
|
1412
1410
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1413
|
-
throw await
|
|
1411
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1414
1412
|
case "ForbiddenException":
|
|
1415
1413
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1416
|
-
throw await
|
|
1414
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1417
1415
|
case "ServiceFailureException":
|
|
1418
1416
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1419
|
-
throw await
|
|
1417
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1420
1418
|
case "ServiceUnavailableException":
|
|
1421
1419
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1422
|
-
throw await
|
|
1420
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1423
1421
|
case "ThrottledClientException":
|
|
1424
1422
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1425
|
-
throw await
|
|
1423
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1426
1424
|
case "UnauthorizedClientException":
|
|
1427
1425
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1428
|
-
throw await
|
|
1426
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1429
1427
|
default:
|
|
1430
1428
|
const parsedBody = parsedOutput.body;
|
|
1431
1429
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1436,16 +1434,16 @@ const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1436
1434
|
});
|
|
1437
1435
|
}
|
|
1438
1436
|
};
|
|
1439
|
-
const
|
|
1437
|
+
const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1440
1438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1439
|
+
return de_ListAppInstanceAdminsCommandError(output, context);
|
|
1442
1440
|
}
|
|
1443
1441
|
const contents = map({
|
|
1444
1442
|
$metadata: deserializeMetadata(output),
|
|
1445
1443
|
});
|
|
1446
1444
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1447
1445
|
if (data.AppInstanceAdmins != null) {
|
|
1448
|
-
contents.AppInstanceAdmins =
|
|
1446
|
+
contents.AppInstanceAdmins = de_AppInstanceAdminList(data.AppInstanceAdmins, context);
|
|
1449
1447
|
}
|
|
1450
1448
|
if (data.AppInstanceArn != null) {
|
|
1451
1449
|
contents.AppInstanceArn = (0, smithy_client_1.expectString)(data.AppInstanceArn);
|
|
@@ -1455,8 +1453,8 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommand = async (output, cont
|
|
|
1455
1453
|
}
|
|
1456
1454
|
return contents;
|
|
1457
1455
|
};
|
|
1458
|
-
exports.
|
|
1459
|
-
const
|
|
1456
|
+
exports.de_ListAppInstanceAdminsCommand = de_ListAppInstanceAdminsCommand;
|
|
1457
|
+
const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
1460
1458
|
const parsedOutput = {
|
|
1461
1459
|
...output,
|
|
1462
1460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1465,25 +1463,25 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1465
1463
|
switch (errorCode) {
|
|
1466
1464
|
case "BadRequestException":
|
|
1467
1465
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1468
|
-
throw await
|
|
1466
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1469
1467
|
case "ForbiddenException":
|
|
1470
1468
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1471
|
-
throw await
|
|
1469
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1472
1470
|
case "ResourceLimitExceededException":
|
|
1473
1471
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1474
|
-
throw await
|
|
1472
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1475
1473
|
case "ServiceFailureException":
|
|
1476
1474
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1477
|
-
throw await
|
|
1475
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1478
1476
|
case "ServiceUnavailableException":
|
|
1479
1477
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1480
|
-
throw await
|
|
1478
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1481
1479
|
case "ThrottledClientException":
|
|
1482
1480
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1483
|
-
throw await
|
|
1481
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1484
1482
|
case "UnauthorizedClientException":
|
|
1485
1483
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1486
|
-
throw await
|
|
1484
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1487
1485
|
default:
|
|
1488
1486
|
const parsedBody = parsedOutput.body;
|
|
1489
1487
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1494,9 +1492,9 @@ const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output,
|
|
|
1494
1492
|
});
|
|
1495
1493
|
}
|
|
1496
1494
|
};
|
|
1497
|
-
const
|
|
1495
|
+
const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
1498
1496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
-
return
|
|
1497
|
+
return de_ListAppInstanceBotsCommandError(output, context);
|
|
1500
1498
|
}
|
|
1501
1499
|
const contents = map({
|
|
1502
1500
|
$metadata: deserializeMetadata(output),
|
|
@@ -1506,15 +1504,15 @@ const deserializeAws_restJson1ListAppInstanceBotsCommand = async (output, contex
|
|
|
1506
1504
|
contents.AppInstanceArn = (0, smithy_client_1.expectString)(data.AppInstanceArn);
|
|
1507
1505
|
}
|
|
1508
1506
|
if (data.AppInstanceBots != null) {
|
|
1509
|
-
contents.AppInstanceBots =
|
|
1507
|
+
contents.AppInstanceBots = de_AppInstanceBotList(data.AppInstanceBots, context);
|
|
1510
1508
|
}
|
|
1511
1509
|
if (data.NextToken != null) {
|
|
1512
1510
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1513
1511
|
}
|
|
1514
1512
|
return contents;
|
|
1515
1513
|
};
|
|
1516
|
-
exports.
|
|
1517
|
-
const
|
|
1514
|
+
exports.de_ListAppInstanceBotsCommand = de_ListAppInstanceBotsCommand;
|
|
1515
|
+
const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
1518
1516
|
const parsedOutput = {
|
|
1519
1517
|
...output,
|
|
1520
1518
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1523,25 +1521,25 @@ const deserializeAws_restJson1ListAppInstanceBotsCommandError = async (output, c
|
|
|
1523
1521
|
switch (errorCode) {
|
|
1524
1522
|
case "BadRequestException":
|
|
1525
1523
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1526
|
-
throw await
|
|
1524
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1527
1525
|
case "ForbiddenException":
|
|
1528
1526
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1529
|
-
throw await
|
|
1527
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1530
1528
|
case "ResourceLimitExceededException":
|
|
1531
1529
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1532
|
-
throw await
|
|
1530
|
+
throw await de_ResourceLimitExceededExceptionRes(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
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1552,24 +1550,24 @@ const deserializeAws_restJson1ListAppInstanceBotsCommandError = async (output, c
|
|
|
1552
1550
|
});
|
|
1553
1551
|
}
|
|
1554
1552
|
};
|
|
1555
|
-
const
|
|
1553
|
+
const de_ListAppInstancesCommand = async (output, context) => {
|
|
1556
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1555
|
+
return de_ListAppInstancesCommandError(output, context);
|
|
1558
1556
|
}
|
|
1559
1557
|
const contents = map({
|
|
1560
1558
|
$metadata: deserializeMetadata(output),
|
|
1561
1559
|
});
|
|
1562
1560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1563
1561
|
if (data.AppInstances != null) {
|
|
1564
|
-
contents.AppInstances =
|
|
1562
|
+
contents.AppInstances = de_AppInstanceList(data.AppInstances, context);
|
|
1565
1563
|
}
|
|
1566
1564
|
if (data.NextToken != null) {
|
|
1567
1565
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1568
1566
|
}
|
|
1569
1567
|
return contents;
|
|
1570
1568
|
};
|
|
1571
|
-
exports.
|
|
1572
|
-
const
|
|
1569
|
+
exports.de_ListAppInstancesCommand = de_ListAppInstancesCommand;
|
|
1570
|
+
const de_ListAppInstancesCommandError = async (output, context) => {
|
|
1573
1571
|
const parsedOutput = {
|
|
1574
1572
|
...output,
|
|
1575
1573
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1578,22 +1576,22 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
1578
1576
|
switch (errorCode) {
|
|
1579
1577
|
case "BadRequestException":
|
|
1580
1578
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1581
|
-
throw await
|
|
1579
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1582
1580
|
case "ForbiddenException":
|
|
1583
1581
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1584
|
-
throw await
|
|
1582
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1585
1583
|
case "ServiceFailureException":
|
|
1586
1584
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1587
|
-
throw await
|
|
1585
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1588
1586
|
case "ServiceUnavailableException":
|
|
1589
1587
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1590
|
-
throw await
|
|
1588
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1591
1589
|
case "ThrottledClientException":
|
|
1592
1590
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1593
|
-
throw await
|
|
1591
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1594
1592
|
case "UnauthorizedClientException":
|
|
1595
1593
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1596
|
-
throw await
|
|
1594
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1597
1595
|
default:
|
|
1598
1596
|
const parsedBody = parsedOutput.body;
|
|
1599
1597
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1604,24 +1602,24 @@ const deserializeAws_restJson1ListAppInstancesCommandError = async (output, cont
|
|
|
1604
1602
|
});
|
|
1605
1603
|
}
|
|
1606
1604
|
};
|
|
1607
|
-
const
|
|
1605
|
+
const de_ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
1608
1606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1607
|
+
return de_ListAppInstanceUserEndpointsCommandError(output, context);
|
|
1610
1608
|
}
|
|
1611
1609
|
const contents = map({
|
|
1612
1610
|
$metadata: deserializeMetadata(output),
|
|
1613
1611
|
});
|
|
1614
1612
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1615
1613
|
if (data.AppInstanceUserEndpoints != null) {
|
|
1616
|
-
contents.AppInstanceUserEndpoints =
|
|
1614
|
+
contents.AppInstanceUserEndpoints = de_AppInstanceUserEndpointSummaryList(data.AppInstanceUserEndpoints, context);
|
|
1617
1615
|
}
|
|
1618
1616
|
if (data.NextToken != null) {
|
|
1619
1617
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1620
1618
|
}
|
|
1621
1619
|
return contents;
|
|
1622
1620
|
};
|
|
1623
|
-
exports.
|
|
1624
|
-
const
|
|
1621
|
+
exports.de_ListAppInstanceUserEndpointsCommand = de_ListAppInstanceUserEndpointsCommand;
|
|
1622
|
+
const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
1625
1623
|
const parsedOutput = {
|
|
1626
1624
|
...output,
|
|
1627
1625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1630,22 +1628,22 @@ const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (
|
|
|
1630
1628
|
switch (errorCode) {
|
|
1631
1629
|
case "BadRequestException":
|
|
1632
1630
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1633
|
-
throw await
|
|
1631
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1634
1632
|
case "ForbiddenException":
|
|
1635
1633
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1636
|
-
throw await
|
|
1634
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1637
1635
|
case "ServiceFailureException":
|
|
1638
1636
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1639
|
-
throw await
|
|
1637
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1640
1638
|
case "ServiceUnavailableException":
|
|
1641
1639
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1642
|
-
throw await
|
|
1640
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1643
1641
|
case "ThrottledClientException":
|
|
1644
1642
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1645
|
-
throw await
|
|
1643
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1646
1644
|
case "UnauthorizedClientException":
|
|
1647
1645
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1648
|
-
throw await
|
|
1646
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1649
1647
|
default:
|
|
1650
1648
|
const parsedBody = parsedOutput.body;
|
|
1651
1649
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1656,9 +1654,9 @@ const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (
|
|
|
1656
1654
|
});
|
|
1657
1655
|
}
|
|
1658
1656
|
};
|
|
1659
|
-
const
|
|
1657
|
+
const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
1660
1658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1661
|
-
return
|
|
1659
|
+
return de_ListAppInstanceUsersCommandError(output, context);
|
|
1662
1660
|
}
|
|
1663
1661
|
const contents = map({
|
|
1664
1662
|
$metadata: deserializeMetadata(output),
|
|
@@ -1668,15 +1666,15 @@ const deserializeAws_restJson1ListAppInstanceUsersCommand = async (output, conte
|
|
|
1668
1666
|
contents.AppInstanceArn = (0, smithy_client_1.expectString)(data.AppInstanceArn);
|
|
1669
1667
|
}
|
|
1670
1668
|
if (data.AppInstanceUsers != null) {
|
|
1671
|
-
contents.AppInstanceUsers =
|
|
1669
|
+
contents.AppInstanceUsers = de_AppInstanceUserList(data.AppInstanceUsers, context);
|
|
1672
1670
|
}
|
|
1673
1671
|
if (data.NextToken != null) {
|
|
1674
1672
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1675
1673
|
}
|
|
1676
1674
|
return contents;
|
|
1677
1675
|
};
|
|
1678
|
-
exports.
|
|
1679
|
-
const
|
|
1676
|
+
exports.de_ListAppInstanceUsersCommand = de_ListAppInstanceUsersCommand;
|
|
1677
|
+
const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
1680
1678
|
const parsedOutput = {
|
|
1681
1679
|
...output,
|
|
1682
1680
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1685,22 +1683,22 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
1685
1683
|
switch (errorCode) {
|
|
1686
1684
|
case "BadRequestException":
|
|
1687
1685
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1688
|
-
throw await
|
|
1686
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1689
1687
|
case "ForbiddenException":
|
|
1690
1688
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1691
|
-
throw await
|
|
1689
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1692
1690
|
case "ServiceFailureException":
|
|
1693
1691
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1694
|
-
throw await
|
|
1692
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1695
1693
|
case "ServiceUnavailableException":
|
|
1696
1694
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1697
|
-
throw await
|
|
1695
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1698
1696
|
case "ThrottledClientException":
|
|
1699
1697
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1700
|
-
throw await
|
|
1698
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1701
1699
|
case "UnauthorizedClientException":
|
|
1702
1700
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1703
|
-
throw await
|
|
1701
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1704
1702
|
default:
|
|
1705
1703
|
const parsedBody = parsedOutput.body;
|
|
1706
1704
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1711,21 +1709,21 @@ const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output,
|
|
|
1711
1709
|
});
|
|
1712
1710
|
}
|
|
1713
1711
|
};
|
|
1714
|
-
const
|
|
1712
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1715
1713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
|
-
return
|
|
1714
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1717
1715
|
}
|
|
1718
1716
|
const contents = map({
|
|
1719
1717
|
$metadata: deserializeMetadata(output),
|
|
1720
1718
|
});
|
|
1721
1719
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1722
1720
|
if (data.Tags != null) {
|
|
1723
|
-
contents.Tags =
|
|
1721
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
1724
1722
|
}
|
|
1725
1723
|
return contents;
|
|
1726
1724
|
};
|
|
1727
|
-
exports.
|
|
1728
|
-
const
|
|
1725
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1726
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1729
1727
|
const parsedOutput = {
|
|
1730
1728
|
...output,
|
|
1731
1729
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1734,22 +1732,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1734
1732
|
switch (errorCode) {
|
|
1735
1733
|
case "BadRequestException":
|
|
1736
1734
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1737
|
-
throw await
|
|
1735
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1738
1736
|
case "ForbiddenException":
|
|
1739
1737
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1740
|
-
throw await
|
|
1738
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1741
1739
|
case "ServiceFailureException":
|
|
1742
1740
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1743
|
-
throw await
|
|
1741
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1744
1742
|
case "ServiceUnavailableException":
|
|
1745
1743
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1746
|
-
throw await
|
|
1744
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1747
1745
|
case "ThrottledClientException":
|
|
1748
1746
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1749
|
-
throw await
|
|
1747
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1750
1748
|
case "UnauthorizedClientException":
|
|
1751
1749
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1752
|
-
throw await
|
|
1750
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1753
1751
|
default:
|
|
1754
1752
|
const parsedBody = parsedOutput.body;
|
|
1755
1753
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1760,24 +1758,24 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1760
1758
|
});
|
|
1761
1759
|
}
|
|
1762
1760
|
};
|
|
1763
|
-
const
|
|
1761
|
+
const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1764
1762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1765
|
-
return
|
|
1763
|
+
return de_PutAppInstanceRetentionSettingsCommandError(output, context);
|
|
1766
1764
|
}
|
|
1767
1765
|
const contents = map({
|
|
1768
1766
|
$metadata: deserializeMetadata(output),
|
|
1769
1767
|
});
|
|
1770
1768
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1771
1769
|
if (data.AppInstanceRetentionSettings != null) {
|
|
1772
|
-
contents.AppInstanceRetentionSettings =
|
|
1770
|
+
contents.AppInstanceRetentionSettings = de_AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1773
1771
|
}
|
|
1774
1772
|
if (data.InitiateDeletionTimestamp != null) {
|
|
1775
1773
|
contents.InitiateDeletionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.InitiateDeletionTimestamp)));
|
|
1776
1774
|
}
|
|
1777
1775
|
return contents;
|
|
1778
1776
|
};
|
|
1779
|
-
exports.
|
|
1780
|
-
const
|
|
1777
|
+
exports.de_PutAppInstanceRetentionSettingsCommand = de_PutAppInstanceRetentionSettingsCommand;
|
|
1778
|
+
const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1781
1779
|
const parsedOutput = {
|
|
1782
1780
|
...output,
|
|
1783
1781
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1786,22 +1784,22 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1786
1784
|
switch (errorCode) {
|
|
1787
1785
|
case "BadRequestException":
|
|
1788
1786
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1789
|
-
throw await
|
|
1787
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1790
1788
|
case "ForbiddenException":
|
|
1791
1789
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1792
|
-
throw await
|
|
1790
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1793
1791
|
case "ServiceFailureException":
|
|
1794
1792
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1795
|
-
throw await
|
|
1793
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1796
1794
|
case "ServiceUnavailableException":
|
|
1797
1795
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1798
|
-
throw await
|
|
1796
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1799
1797
|
case "ThrottledClientException":
|
|
1800
1798
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1801
|
-
throw await
|
|
1799
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1802
1800
|
case "UnauthorizedClientException":
|
|
1803
1801
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1804
|
-
throw await
|
|
1802
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1805
1803
|
default:
|
|
1806
1804
|
const parsedBody = parsedOutput.body;
|
|
1807
1805
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1812,9 +1810,9 @@ const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = asyn
|
|
|
1812
1810
|
});
|
|
1813
1811
|
}
|
|
1814
1812
|
};
|
|
1815
|
-
const
|
|
1813
|
+
const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
1816
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
-
return
|
|
1815
|
+
return de_PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
1818
1816
|
}
|
|
1819
1817
|
const contents = map({
|
|
1820
1818
|
$metadata: deserializeMetadata(output),
|
|
@@ -1824,12 +1822,12 @@ const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommand = asyn
|
|
|
1824
1822
|
contents.AppInstanceUserArn = (0, smithy_client_1.expectString)(data.AppInstanceUserArn);
|
|
1825
1823
|
}
|
|
1826
1824
|
if (data.ExpirationSettings != null) {
|
|
1827
|
-
contents.ExpirationSettings =
|
|
1825
|
+
contents.ExpirationSettings = de_ExpirationSettings(data.ExpirationSettings, context);
|
|
1828
1826
|
}
|
|
1829
1827
|
return contents;
|
|
1830
1828
|
};
|
|
1831
|
-
exports.
|
|
1832
|
-
const
|
|
1829
|
+
exports.de_PutAppInstanceUserExpirationSettingsCommand = de_PutAppInstanceUserExpirationSettingsCommand;
|
|
1830
|
+
const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, context) => {
|
|
1833
1831
|
const parsedOutput = {
|
|
1834
1832
|
...output,
|
|
1835
1833
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1838,25 +1836,25 @@ const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError =
|
|
|
1838
1836
|
switch (errorCode) {
|
|
1839
1837
|
case "BadRequestException":
|
|
1840
1838
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1841
|
-
throw await
|
|
1839
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1842
1840
|
case "ConflictException":
|
|
1843
1841
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1844
|
-
throw await
|
|
1842
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1845
1843
|
case "ForbiddenException":
|
|
1846
1844
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1847
|
-
throw await
|
|
1845
|
+
throw await de_ForbiddenExceptionRes(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
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1867,9 +1865,9 @@ const deserializeAws_restJson1PutAppInstanceUserExpirationSettingsCommandError =
|
|
|
1867
1865
|
});
|
|
1868
1866
|
}
|
|
1869
1867
|
};
|
|
1870
|
-
const
|
|
1868
|
+
const de_RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1871
1869
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1872
|
-
return
|
|
1870
|
+
return de_RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
1873
1871
|
}
|
|
1874
1872
|
const contents = map({
|
|
1875
1873
|
$metadata: deserializeMetadata(output),
|
|
@@ -1883,8 +1881,8 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (ou
|
|
|
1883
1881
|
}
|
|
1884
1882
|
return contents;
|
|
1885
1883
|
};
|
|
1886
|
-
exports.
|
|
1887
|
-
const
|
|
1884
|
+
exports.de_RegisterAppInstanceUserEndpointCommand = de_RegisterAppInstanceUserEndpointCommand;
|
|
1885
|
+
const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1888
1886
|
const parsedOutput = {
|
|
1889
1887
|
...output,
|
|
1890
1888
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1893,28 +1891,28 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = asyn
|
|
|
1893
1891
|
switch (errorCode) {
|
|
1894
1892
|
case "BadRequestException":
|
|
1895
1893
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1896
|
-
throw await
|
|
1894
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1897
1895
|
case "ConflictException":
|
|
1898
1896
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1899
|
-
throw await
|
|
1897
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1900
1898
|
case "ForbiddenException":
|
|
1901
1899
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1902
|
-
throw await
|
|
1900
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1903
1901
|
case "ResourceLimitExceededException":
|
|
1904
1902
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1905
|
-
throw await
|
|
1903
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1906
1904
|
case "ServiceFailureException":
|
|
1907
1905
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1908
|
-
throw await
|
|
1906
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1909
1907
|
case "ServiceUnavailableException":
|
|
1910
1908
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1911
|
-
throw await
|
|
1909
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1912
1910
|
case "ThrottledClientException":
|
|
1913
1911
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1914
|
-
throw await
|
|
1912
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1915
1913
|
case "UnauthorizedClientException":
|
|
1916
1914
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1917
|
-
throw await
|
|
1915
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1918
1916
|
default:
|
|
1919
1917
|
const parsedBody = parsedOutput.body;
|
|
1920
1918
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1925,9 +1923,9 @@ const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = asyn
|
|
|
1925
1923
|
});
|
|
1926
1924
|
}
|
|
1927
1925
|
};
|
|
1928
|
-
const
|
|
1926
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1929
1927
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1930
|
-
return
|
|
1928
|
+
return de_TagResourceCommandError(output, context);
|
|
1931
1929
|
}
|
|
1932
1930
|
const contents = map({
|
|
1933
1931
|
$metadata: deserializeMetadata(output),
|
|
@@ -1935,8 +1933,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1935
1933
|
await collectBody(output.body, context);
|
|
1936
1934
|
return contents;
|
|
1937
1935
|
};
|
|
1938
|
-
exports.
|
|
1939
|
-
const
|
|
1936
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1937
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1940
1938
|
const parsedOutput = {
|
|
1941
1939
|
...output,
|
|
1942
1940
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1945,25 +1943,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1945
1943
|
switch (errorCode) {
|
|
1946
1944
|
case "BadRequestException":
|
|
1947
1945
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1948
|
-
throw await
|
|
1946
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1949
1947
|
case "ForbiddenException":
|
|
1950
1948
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1951
|
-
throw await
|
|
1949
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1952
1950
|
case "ResourceLimitExceededException":
|
|
1953
1951
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1954
|
-
throw await
|
|
1952
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1955
1953
|
case "ServiceFailureException":
|
|
1956
1954
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1957
|
-
throw await
|
|
1955
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1958
1956
|
case "ServiceUnavailableException":
|
|
1959
1957
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1960
|
-
throw await
|
|
1958
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1961
1959
|
case "ThrottledClientException":
|
|
1962
1960
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1963
|
-
throw await
|
|
1961
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1964
1962
|
case "UnauthorizedClientException":
|
|
1965
1963
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1966
|
-
throw await
|
|
1964
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1967
1965
|
default:
|
|
1968
1966
|
const parsedBody = parsedOutput.body;
|
|
1969
1967
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1974,9 +1972,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1974
1972
|
});
|
|
1975
1973
|
}
|
|
1976
1974
|
};
|
|
1977
|
-
const
|
|
1975
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1978
1976
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1979
|
-
return
|
|
1977
|
+
return de_UntagResourceCommandError(output, context);
|
|
1980
1978
|
}
|
|
1981
1979
|
const contents = map({
|
|
1982
1980
|
$metadata: deserializeMetadata(output),
|
|
@@ -1984,8 +1982,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1984
1982
|
await collectBody(output.body, context);
|
|
1985
1983
|
return contents;
|
|
1986
1984
|
};
|
|
1987
|
-
exports.
|
|
1988
|
-
const
|
|
1985
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1986
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1989
1987
|
const parsedOutput = {
|
|
1990
1988
|
...output,
|
|
1991
1989
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1994,22 +1992,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1994
1992
|
switch (errorCode) {
|
|
1995
1993
|
case "BadRequestException":
|
|
1996
1994
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1997
|
-
throw await
|
|
1995
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1998
1996
|
case "ForbiddenException":
|
|
1999
1997
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2000
|
-
throw await
|
|
1998
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2001
1999
|
case "ServiceFailureException":
|
|
2002
2000
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2003
|
-
throw await
|
|
2001
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2004
2002
|
case "ServiceUnavailableException":
|
|
2005
2003
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2006
|
-
throw await
|
|
2004
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2007
2005
|
case "ThrottledClientException":
|
|
2008
2006
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2009
|
-
throw await
|
|
2007
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2010
2008
|
case "UnauthorizedClientException":
|
|
2011
2009
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2012
|
-
throw await
|
|
2010
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2013
2011
|
default:
|
|
2014
2012
|
const parsedBody = parsedOutput.body;
|
|
2015
2013
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2020,9 +2018,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2020
2018
|
});
|
|
2021
2019
|
}
|
|
2022
2020
|
};
|
|
2023
|
-
const
|
|
2021
|
+
const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
2024
2022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2025
|
-
return
|
|
2023
|
+
return de_UpdateAppInstanceCommandError(output, context);
|
|
2026
2024
|
}
|
|
2027
2025
|
const contents = map({
|
|
2028
2026
|
$metadata: deserializeMetadata(output),
|
|
@@ -2033,8 +2031,8 @@ const deserializeAws_restJson1UpdateAppInstanceCommand = async (output, context)
|
|
|
2033
2031
|
}
|
|
2034
2032
|
return contents;
|
|
2035
2033
|
};
|
|
2036
|
-
exports.
|
|
2037
|
-
const
|
|
2034
|
+
exports.de_UpdateAppInstanceCommand = de_UpdateAppInstanceCommand;
|
|
2035
|
+
const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
2038
2036
|
const parsedOutput = {
|
|
2039
2037
|
...output,
|
|
2040
2038
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2043,25 +2041,25 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
2043
2041
|
switch (errorCode) {
|
|
2044
2042
|
case "BadRequestException":
|
|
2045
2043
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2046
|
-
throw await
|
|
2044
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2047
2045
|
case "ConflictException":
|
|
2048
2046
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2049
|
-
throw await
|
|
2047
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2050
2048
|
case "ForbiddenException":
|
|
2051
2049
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2052
|
-
throw await
|
|
2050
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2053
2051
|
case "ServiceFailureException":
|
|
2054
2052
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2055
|
-
throw await
|
|
2053
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2056
2054
|
case "ServiceUnavailableException":
|
|
2057
2055
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2058
|
-
throw await
|
|
2056
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2059
2057
|
case "ThrottledClientException":
|
|
2060
2058
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2061
|
-
throw await
|
|
2059
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2062
2060
|
case "UnauthorizedClientException":
|
|
2063
2061
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2064
|
-
throw await
|
|
2062
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2065
2063
|
default:
|
|
2066
2064
|
const parsedBody = parsedOutput.body;
|
|
2067
2065
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2072,9 +2070,9 @@ const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, con
|
|
|
2072
2070
|
});
|
|
2073
2071
|
}
|
|
2074
2072
|
};
|
|
2075
|
-
const
|
|
2073
|
+
const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
2076
2074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2077
|
-
return
|
|
2075
|
+
return de_UpdateAppInstanceBotCommandError(output, context);
|
|
2078
2076
|
}
|
|
2079
2077
|
const contents = map({
|
|
2080
2078
|
$metadata: deserializeMetadata(output),
|
|
@@ -2085,8 +2083,8 @@ const deserializeAws_restJson1UpdateAppInstanceBotCommand = async (output, conte
|
|
|
2085
2083
|
}
|
|
2086
2084
|
return contents;
|
|
2087
2085
|
};
|
|
2088
|
-
exports.
|
|
2089
|
-
const
|
|
2086
|
+
exports.de_UpdateAppInstanceBotCommand = de_UpdateAppInstanceBotCommand;
|
|
2087
|
+
const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
2090
2088
|
const parsedOutput = {
|
|
2091
2089
|
...output,
|
|
2092
2090
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2095,28 +2093,28 @@ const deserializeAws_restJson1UpdateAppInstanceBotCommandError = async (output,
|
|
|
2095
2093
|
switch (errorCode) {
|
|
2096
2094
|
case "BadRequestException":
|
|
2097
2095
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2098
|
-
throw await
|
|
2096
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2099
2097
|
case "ConflictException":
|
|
2100
2098
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2101
|
-
throw await
|
|
2099
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2102
2100
|
case "ForbiddenException":
|
|
2103
2101
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2104
|
-
throw await
|
|
2102
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2105
2103
|
case "ResourceLimitExceededException":
|
|
2106
2104
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2107
|
-
throw await
|
|
2105
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2108
2106
|
case "ServiceFailureException":
|
|
2109
2107
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2110
|
-
throw await
|
|
2108
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2111
2109
|
case "ServiceUnavailableException":
|
|
2112
2110
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2113
|
-
throw await
|
|
2111
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2114
2112
|
case "ThrottledClientException":
|
|
2115
2113
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2116
|
-
throw await
|
|
2114
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2117
2115
|
case "UnauthorizedClientException":
|
|
2118
2116
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2119
|
-
throw await
|
|
2117
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2120
2118
|
default:
|
|
2121
2119
|
const parsedBody = parsedOutput.body;
|
|
2122
2120
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2127,9 +2125,9 @@ const deserializeAws_restJson1UpdateAppInstanceBotCommandError = async (output,
|
|
|
2127
2125
|
});
|
|
2128
2126
|
}
|
|
2129
2127
|
};
|
|
2130
|
-
const
|
|
2128
|
+
const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
2131
2129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
|
-
return
|
|
2130
|
+
return de_UpdateAppInstanceUserCommandError(output, context);
|
|
2133
2131
|
}
|
|
2134
2132
|
const contents = map({
|
|
2135
2133
|
$metadata: deserializeMetadata(output),
|
|
@@ -2140,8 +2138,8 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (output, cont
|
|
|
2140
2138
|
}
|
|
2141
2139
|
return contents;
|
|
2142
2140
|
};
|
|
2143
|
-
exports.
|
|
2144
|
-
const
|
|
2141
|
+
exports.de_UpdateAppInstanceUserCommand = de_UpdateAppInstanceUserCommand;
|
|
2142
|
+
const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
2145
2143
|
const parsedOutput = {
|
|
2146
2144
|
...output,
|
|
2147
2145
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2150,28 +2148,28 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
2150
2148
|
switch (errorCode) {
|
|
2151
2149
|
case "BadRequestException":
|
|
2152
2150
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2153
|
-
throw await
|
|
2151
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2154
2152
|
case "ConflictException":
|
|
2155
2153
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2156
|
-
throw await
|
|
2154
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2157
2155
|
case "ForbiddenException":
|
|
2158
2156
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2159
|
-
throw await
|
|
2157
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2160
2158
|
case "ResourceLimitExceededException":
|
|
2161
2159
|
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
2162
|
-
throw await
|
|
2160
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2163
2161
|
case "ServiceFailureException":
|
|
2164
2162
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2165
|
-
throw await
|
|
2163
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2166
2164
|
case "ServiceUnavailableException":
|
|
2167
2165
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2168
|
-
throw await
|
|
2166
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2169
2167
|
case "ThrottledClientException":
|
|
2170
2168
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2171
|
-
throw await
|
|
2169
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2172
2170
|
case "UnauthorizedClientException":
|
|
2173
2171
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2174
|
-
throw await
|
|
2172
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2175
2173
|
default:
|
|
2176
2174
|
const parsedBody = parsedOutput.body;
|
|
2177
2175
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2182,9 +2180,9 @@ const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output,
|
|
|
2182
2180
|
});
|
|
2183
2181
|
}
|
|
2184
2182
|
};
|
|
2185
|
-
const
|
|
2183
|
+
const de_UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
2186
2184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2187
|
-
return
|
|
2185
|
+
return de_UpdateAppInstanceUserEndpointCommandError(output, context);
|
|
2188
2186
|
}
|
|
2189
2187
|
const contents = map({
|
|
2190
2188
|
$metadata: deserializeMetadata(output),
|
|
@@ -2198,8 +2196,8 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = async (outp
|
|
|
2198
2196
|
}
|
|
2199
2197
|
return contents;
|
|
2200
2198
|
};
|
|
2201
|
-
exports.
|
|
2202
|
-
const
|
|
2199
|
+
exports.de_UpdateAppInstanceUserEndpointCommand = de_UpdateAppInstanceUserEndpointCommand;
|
|
2200
|
+
const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
2203
2201
|
const parsedOutput = {
|
|
2204
2202
|
...output,
|
|
2205
2203
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2208,25 +2206,25 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async
|
|
|
2208
2206
|
switch (errorCode) {
|
|
2209
2207
|
case "BadRequestException":
|
|
2210
2208
|
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
2211
|
-
throw await
|
|
2209
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2212
2210
|
case "ConflictException":
|
|
2213
2211
|
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
2214
|
-
throw await
|
|
2212
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2215
2213
|
case "ForbiddenException":
|
|
2216
2214
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
2217
|
-
throw await
|
|
2215
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2218
2216
|
case "ServiceFailureException":
|
|
2219
2217
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
2220
|
-
throw await
|
|
2218
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2221
2219
|
case "ServiceUnavailableException":
|
|
2222
2220
|
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
2223
|
-
throw await
|
|
2221
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2224
2222
|
case "ThrottledClientException":
|
|
2225
2223
|
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
2226
|
-
throw await
|
|
2224
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2227
2225
|
case "UnauthorizedClientException":
|
|
2228
2226
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
2229
|
-
throw await
|
|
2227
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2230
2228
|
default:
|
|
2231
2229
|
const parsedBody = parsedOutput.body;
|
|
2232
2230
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2238,7 +2236,7 @@ const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async
|
|
|
2238
2236
|
}
|
|
2239
2237
|
};
|
|
2240
2238
|
const map = smithy_client_1.map;
|
|
2241
|
-
const
|
|
2239
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2242
2240
|
const contents = map({});
|
|
2243
2241
|
const data = parsedOutput.body;
|
|
2244
2242
|
if (data.Code != null) {
|
|
@@ -2253,7 +2251,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2253
2251
|
});
|
|
2254
2252
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2255
2253
|
};
|
|
2256
|
-
const
|
|
2254
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2257
2255
|
const contents = map({});
|
|
2258
2256
|
const data = parsedOutput.body;
|
|
2259
2257
|
if (data.Code != null) {
|
|
@@ -2268,7 +2266,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2268
2266
|
});
|
|
2269
2267
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2270
2268
|
};
|
|
2271
|
-
const
|
|
2269
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2272
2270
|
const contents = map({});
|
|
2273
2271
|
const data = parsedOutput.body;
|
|
2274
2272
|
if (data.Code != null) {
|
|
@@ -2283,7 +2281,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
2283
2281
|
});
|
|
2284
2282
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2285
2283
|
};
|
|
2286
|
-
const
|
|
2284
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2287
2285
|
const contents = map({});
|
|
2288
2286
|
const data = parsedOutput.body;
|
|
2289
2287
|
if (data.Code != null) {
|
|
@@ -2298,7 +2296,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2298
2296
|
});
|
|
2299
2297
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2300
2298
|
};
|
|
2301
|
-
const
|
|
2299
|
+
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2302
2300
|
const contents = map({});
|
|
2303
2301
|
const data = parsedOutput.body;
|
|
2304
2302
|
if (data.Code != null) {
|
|
@@ -2313,7 +2311,7 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
2313
2311
|
});
|
|
2314
2312
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2315
2313
|
};
|
|
2316
|
-
const
|
|
2314
|
+
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2317
2315
|
const contents = map({});
|
|
2318
2316
|
const data = parsedOutput.body;
|
|
2319
2317
|
if (data.Code != null) {
|
|
@@ -2328,7 +2326,7 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
2328
2326
|
});
|
|
2329
2327
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2330
2328
|
};
|
|
2331
|
-
const
|
|
2329
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2332
2330
|
const contents = map({});
|
|
2333
2331
|
const data = parsedOutput.body;
|
|
2334
2332
|
if (data.Code != null) {
|
|
@@ -2343,7 +2341,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2343
2341
|
});
|
|
2344
2342
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2345
2343
|
};
|
|
2346
|
-
const
|
|
2344
|
+
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2347
2345
|
const contents = map({});
|
|
2348
2346
|
const data = parsedOutput.body;
|
|
2349
2347
|
if (data.Code != null) {
|
|
@@ -2358,7 +2356,7 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
2358
2356
|
});
|
|
2359
2357
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2360
2358
|
};
|
|
2361
|
-
const
|
|
2359
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2362
2360
|
const contents = map({});
|
|
2363
2361
|
const data = parsedOutput.body;
|
|
2364
2362
|
if (data.Code != null) {
|
|
@@ -2373,36 +2371,36 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
2373
2371
|
});
|
|
2374
2372
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2375
2373
|
};
|
|
2376
|
-
const
|
|
2374
|
+
const se_AppInstanceRetentionSettings = (input, context) => {
|
|
2377
2375
|
return {
|
|
2378
2376
|
...(input.ChannelRetentionSettings != null && {
|
|
2379
|
-
ChannelRetentionSettings:
|
|
2377
|
+
ChannelRetentionSettings: se_ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2380
2378
|
}),
|
|
2381
2379
|
};
|
|
2382
2380
|
};
|
|
2383
|
-
const
|
|
2381
|
+
const se_ChannelRetentionSettings = (input, context) => {
|
|
2384
2382
|
return {
|
|
2385
2383
|
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
2386
2384
|
};
|
|
2387
2385
|
};
|
|
2388
|
-
const
|
|
2386
|
+
const se_Configuration = (input, context) => {
|
|
2389
2387
|
return {
|
|
2390
|
-
...(input.Lex != null && { Lex:
|
|
2388
|
+
...(input.Lex != null && { Lex: se_LexConfiguration(input.Lex, context) }),
|
|
2391
2389
|
};
|
|
2392
2390
|
};
|
|
2393
|
-
const
|
|
2391
|
+
const se_EndpointAttributes = (input, context) => {
|
|
2394
2392
|
return {
|
|
2395
2393
|
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
2396
2394
|
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2397
2395
|
};
|
|
2398
2396
|
};
|
|
2399
|
-
const
|
|
2397
|
+
const se_ExpirationSettings = (input, context) => {
|
|
2400
2398
|
return {
|
|
2401
2399
|
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
2402
2400
|
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
2403
2401
|
};
|
|
2404
2402
|
};
|
|
2405
|
-
const
|
|
2403
|
+
const se_LexConfiguration = (input, context) => {
|
|
2406
2404
|
return {
|
|
2407
2405
|
...(input.LexBotAliasArn != null && { LexBotAliasArn: input.LexBotAliasArn }),
|
|
2408
2406
|
...(input.LocaleId != null && { LocaleId: input.LocaleId }),
|
|
@@ -2410,27 +2408,27 @@ const serializeAws_restJson1LexConfiguration = (input, context) => {
|
|
|
2410
2408
|
...(input.WelcomeIntent != null && { WelcomeIntent: input.WelcomeIntent }),
|
|
2411
2409
|
};
|
|
2412
2410
|
};
|
|
2413
|
-
const
|
|
2411
|
+
const se_Tag = (input, context) => {
|
|
2414
2412
|
return {
|
|
2415
2413
|
...(input.Key != null && { Key: input.Key }),
|
|
2416
2414
|
...(input.Value != null && { Value: input.Value }),
|
|
2417
2415
|
};
|
|
2418
2416
|
};
|
|
2419
|
-
const
|
|
2417
|
+
const se_TagKeyList = (input, context) => {
|
|
2420
2418
|
return input
|
|
2421
2419
|
.filter((e) => e != null)
|
|
2422
2420
|
.map((entry) => {
|
|
2423
2421
|
return entry;
|
|
2424
2422
|
});
|
|
2425
2423
|
};
|
|
2426
|
-
const
|
|
2424
|
+
const se_TagList = (input, context) => {
|
|
2427
2425
|
return input
|
|
2428
2426
|
.filter((e) => e != null)
|
|
2429
2427
|
.map((entry) => {
|
|
2430
|
-
return
|
|
2428
|
+
return se_Tag(entry, context);
|
|
2431
2429
|
});
|
|
2432
2430
|
};
|
|
2433
|
-
const
|
|
2431
|
+
const de_AppInstance = (output, context) => {
|
|
2434
2432
|
return {
|
|
2435
2433
|
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2436
2434
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
@@ -2443,35 +2441,35 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
|
2443
2441
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2444
2442
|
};
|
|
2445
2443
|
};
|
|
2446
|
-
const
|
|
2444
|
+
const de_AppInstanceAdmin = (output, context) => {
|
|
2447
2445
|
return {
|
|
2448
|
-
Admin: output.Admin != null ?
|
|
2446
|
+
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2449
2447
|
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2450
2448
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2451
2449
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2452
2450
|
: undefined,
|
|
2453
2451
|
};
|
|
2454
2452
|
};
|
|
2455
|
-
const
|
|
2453
|
+
const de_AppInstanceAdminList = (output, context) => {
|
|
2456
2454
|
const retVal = (output || [])
|
|
2457
2455
|
.filter((e) => e != null)
|
|
2458
2456
|
.map((entry) => {
|
|
2459
2457
|
if (entry === null) {
|
|
2460
2458
|
return null;
|
|
2461
2459
|
}
|
|
2462
|
-
return
|
|
2460
|
+
return de_AppInstanceAdminSummary(entry, context);
|
|
2463
2461
|
});
|
|
2464
2462
|
return retVal;
|
|
2465
2463
|
};
|
|
2466
|
-
const
|
|
2464
|
+
const de_AppInstanceAdminSummary = (output, context) => {
|
|
2467
2465
|
return {
|
|
2468
|
-
Admin: output.Admin != null ?
|
|
2466
|
+
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2469
2467
|
};
|
|
2470
2468
|
};
|
|
2471
|
-
const
|
|
2469
|
+
const de_AppInstanceBot = (output, context) => {
|
|
2472
2470
|
return {
|
|
2473
2471
|
AppInstanceBotArn: (0, smithy_client_1.expectString)(output.AppInstanceBotArn),
|
|
2474
|
-
Configuration: output.Configuration != null ?
|
|
2472
|
+
Configuration: output.Configuration != null ? de_Configuration(output.Configuration, context) : undefined,
|
|
2475
2473
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2476
2474
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2477
2475
|
: undefined,
|
|
@@ -2482,58 +2480,56 @@ const deserializeAws_restJson1AppInstanceBot = (output, context) => {
|
|
|
2482
2480
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2483
2481
|
};
|
|
2484
2482
|
};
|
|
2485
|
-
const
|
|
2483
|
+
const de_AppInstanceBotList = (output, context) => {
|
|
2486
2484
|
const retVal = (output || [])
|
|
2487
2485
|
.filter((e) => e != null)
|
|
2488
2486
|
.map((entry) => {
|
|
2489
2487
|
if (entry === null) {
|
|
2490
2488
|
return null;
|
|
2491
2489
|
}
|
|
2492
|
-
return
|
|
2490
|
+
return de_AppInstanceBotSummary(entry, context);
|
|
2493
2491
|
});
|
|
2494
2492
|
return retVal;
|
|
2495
2493
|
};
|
|
2496
|
-
const
|
|
2494
|
+
const de_AppInstanceBotSummary = (output, context) => {
|
|
2497
2495
|
return {
|
|
2498
2496
|
AppInstanceBotArn: (0, smithy_client_1.expectString)(output.AppInstanceBotArn),
|
|
2499
2497
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2500
2498
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2501
2499
|
};
|
|
2502
2500
|
};
|
|
2503
|
-
const
|
|
2501
|
+
const de_AppInstanceList = (output, context) => {
|
|
2504
2502
|
const retVal = (output || [])
|
|
2505
2503
|
.filter((e) => e != null)
|
|
2506
2504
|
.map((entry) => {
|
|
2507
2505
|
if (entry === null) {
|
|
2508
2506
|
return null;
|
|
2509
2507
|
}
|
|
2510
|
-
return
|
|
2508
|
+
return de_AppInstanceSummary(entry, context);
|
|
2511
2509
|
});
|
|
2512
2510
|
return retVal;
|
|
2513
2511
|
};
|
|
2514
|
-
const
|
|
2512
|
+
const de_AppInstanceRetentionSettings = (output, context) => {
|
|
2515
2513
|
return {
|
|
2516
2514
|
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2517
|
-
?
|
|
2515
|
+
? de_ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2518
2516
|
: undefined,
|
|
2519
2517
|
};
|
|
2520
2518
|
};
|
|
2521
|
-
const
|
|
2519
|
+
const de_AppInstanceSummary = (output, context) => {
|
|
2522
2520
|
return {
|
|
2523
2521
|
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2524
2522
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2525
2523
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2526
2524
|
};
|
|
2527
2525
|
};
|
|
2528
|
-
const
|
|
2526
|
+
const de_AppInstanceUser = (output, context) => {
|
|
2529
2527
|
return {
|
|
2530
2528
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2531
2529
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2532
2530
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2533
2531
|
: undefined,
|
|
2534
|
-
ExpirationSettings: output.ExpirationSettings != null
|
|
2535
|
-
? deserializeAws_restJson1ExpirationSettings(output.ExpirationSettings, context)
|
|
2536
|
-
: undefined,
|
|
2532
|
+
ExpirationSettings: output.ExpirationSettings != null ? de_ExpirationSettings(output.ExpirationSettings, context) : undefined,
|
|
2537
2533
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2538
2534
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2539
2535
|
: undefined,
|
|
@@ -2541,18 +2537,16 @@ const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
|
2541
2537
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2542
2538
|
};
|
|
2543
2539
|
};
|
|
2544
|
-
const
|
|
2540
|
+
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2545
2541
|
return {
|
|
2546
2542
|
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2547
2543
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2548
2544
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2549
2545
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2550
2546
|
: undefined,
|
|
2551
|
-
EndpointAttributes: output.EndpointAttributes != null
|
|
2552
|
-
? deserializeAws_restJson1EndpointAttributes(output.EndpointAttributes, context)
|
|
2553
|
-
: undefined,
|
|
2547
|
+
EndpointAttributes: output.EndpointAttributes != null ? de_EndpointAttributes(output.EndpointAttributes, context) : undefined,
|
|
2554
2548
|
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2555
|
-
EndpointState: output.EndpointState != null ?
|
|
2549
|
+
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2556
2550
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2557
2551
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2558
2552
|
: undefined,
|
|
@@ -2561,80 +2555,80 @@ const deserializeAws_restJson1AppInstanceUserEndpoint = (output, context) => {
|
|
|
2561
2555
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2562
2556
|
};
|
|
2563
2557
|
};
|
|
2564
|
-
const
|
|
2558
|
+
const de_AppInstanceUserEndpointSummary = (output, context) => {
|
|
2565
2559
|
return {
|
|
2566
2560
|
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2567
2561
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2568
2562
|
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2569
|
-
EndpointState: output.EndpointState != null ?
|
|
2563
|
+
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2570
2564
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2571
2565
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2572
2566
|
};
|
|
2573
2567
|
};
|
|
2574
|
-
const
|
|
2568
|
+
const de_AppInstanceUserEndpointSummaryList = (output, context) => {
|
|
2575
2569
|
const retVal = (output || [])
|
|
2576
2570
|
.filter((e) => e != null)
|
|
2577
2571
|
.map((entry) => {
|
|
2578
2572
|
if (entry === null) {
|
|
2579
2573
|
return null;
|
|
2580
2574
|
}
|
|
2581
|
-
return
|
|
2575
|
+
return de_AppInstanceUserEndpointSummary(entry, context);
|
|
2582
2576
|
});
|
|
2583
2577
|
return retVal;
|
|
2584
2578
|
};
|
|
2585
|
-
const
|
|
2579
|
+
const de_AppInstanceUserList = (output, context) => {
|
|
2586
2580
|
const retVal = (output || [])
|
|
2587
2581
|
.filter((e) => e != null)
|
|
2588
2582
|
.map((entry) => {
|
|
2589
2583
|
if (entry === null) {
|
|
2590
2584
|
return null;
|
|
2591
2585
|
}
|
|
2592
|
-
return
|
|
2586
|
+
return de_AppInstanceUserSummary(entry, context);
|
|
2593
2587
|
});
|
|
2594
2588
|
return retVal;
|
|
2595
2589
|
};
|
|
2596
|
-
const
|
|
2590
|
+
const de_AppInstanceUserSummary = (output, context) => {
|
|
2597
2591
|
return {
|
|
2598
2592
|
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2599
2593
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2600
2594
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2601
2595
|
};
|
|
2602
2596
|
};
|
|
2603
|
-
const
|
|
2597
|
+
const de_ChannelRetentionSettings = (output, context) => {
|
|
2604
2598
|
return {
|
|
2605
2599
|
RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
|
|
2606
2600
|
};
|
|
2607
2601
|
};
|
|
2608
|
-
const
|
|
2602
|
+
const de_Configuration = (output, context) => {
|
|
2609
2603
|
return {
|
|
2610
|
-
Lex: output.Lex != null ?
|
|
2604
|
+
Lex: output.Lex != null ? de_LexConfiguration(output.Lex, context) : undefined,
|
|
2611
2605
|
};
|
|
2612
2606
|
};
|
|
2613
|
-
const
|
|
2607
|
+
const de_EndpointAttributes = (output, context) => {
|
|
2614
2608
|
return {
|
|
2615
2609
|
DeviceToken: (0, smithy_client_1.expectString)(output.DeviceToken),
|
|
2616
2610
|
VoipDeviceToken: (0, smithy_client_1.expectString)(output.VoipDeviceToken),
|
|
2617
2611
|
};
|
|
2618
2612
|
};
|
|
2619
|
-
const
|
|
2613
|
+
const de_EndpointState = (output, context) => {
|
|
2620
2614
|
return {
|
|
2621
2615
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2622
2616
|
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
2623
2617
|
};
|
|
2624
2618
|
};
|
|
2625
|
-
const
|
|
2619
|
+
const de_ExpirationSettings = (output, context) => {
|
|
2626
2620
|
return {
|
|
2627
2621
|
ExpirationCriterion: (0, smithy_client_1.expectString)(output.ExpirationCriterion),
|
|
2628
2622
|
ExpirationDays: (0, smithy_client_1.expectInt32)(output.ExpirationDays),
|
|
2629
2623
|
};
|
|
2630
2624
|
};
|
|
2631
|
-
const
|
|
2625
|
+
const de_Identity = (output, context) => {
|
|
2632
2626
|
return {
|
|
2633
2627
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2634
2628
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2635
2629
|
};
|
|
2636
2630
|
};
|
|
2637
|
-
const
|
|
2631
|
+
const de_LexConfiguration = (output, context) => {
|
|
2638
2632
|
return {
|
|
2639
2633
|
LexBotAliasArn: (0, smithy_client_1.expectString)(output.LexBotAliasArn),
|
|
2640
2634
|
LocaleId: (0, smithy_client_1.expectString)(output.LocaleId),
|
|
@@ -2642,20 +2636,20 @@ const deserializeAws_restJson1LexConfiguration = (output, context) => {
|
|
|
2642
2636
|
WelcomeIntent: (0, smithy_client_1.expectString)(output.WelcomeIntent),
|
|
2643
2637
|
};
|
|
2644
2638
|
};
|
|
2645
|
-
const
|
|
2639
|
+
const de_Tag = (output, context) => {
|
|
2646
2640
|
return {
|
|
2647
2641
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2648
2642
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2649
2643
|
};
|
|
2650
2644
|
};
|
|
2651
|
-
const
|
|
2645
|
+
const de_TagList = (output, context) => {
|
|
2652
2646
|
const retVal = (output || [])
|
|
2653
2647
|
.filter((e) => e != null)
|
|
2654
2648
|
.map((entry) => {
|
|
2655
2649
|
if (entry === null) {
|
|
2656
2650
|
return null;
|
|
2657
2651
|
}
|
|
2658
|
-
return
|
|
2652
|
+
return de_Tag(entry, context);
|
|
2659
2653
|
});
|
|
2660
2654
|
return retVal;
|
|
2661
2655
|
};
|