@aws-sdk/client-chime-sdk-meetings 3.141.0 → 3.145.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/CHANGELOG.md +30 -0
- package/dist-cjs/ChimeSDKMeetings.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +64 -2
- package/dist-cjs/protocols/Aws_restJson1.js +452 -382
- package/dist-es/ChimeSDKMeetings.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +575 -394
- package/dist-types/ChimeSDKMeetings.d.ts +46 -0
- package/dist-types/ChimeSDKMeetingsClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +60 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +181 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ChimeSDKMeetings.d.ts +15 -0
- package/dist-types/ts3.4/ChimeSDKMeetingsClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +80 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +11 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ChimeSDKMeetingsServiceException as __BaseException } from "../models/ChimeSDKMeetingsServiceException";
|
|
6
|
-
import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
|
|
6
|
+
import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ResourceNotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1BatchCreateAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
10
10
|
switch (_c.label) {
|
|
11
11
|
case 0: return [4, context.endpoint()];
|
|
@@ -15,19 +15,10 @@ export var serializeAws_restJson1BatchCreateAttendeeCommand = function (input, c
|
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
17
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/attendees";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
27
|
-
}
|
|
28
|
-
query = {
|
|
29
|
-
operation: "batch-create",
|
|
30
|
-
};
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
19
|
+
query = map({
|
|
20
|
+
operation: [, "batch-create"],
|
|
21
|
+
});
|
|
31
22
|
body = JSON.stringify(__assign({}, (input.Attendees != null && {
|
|
32
23
|
Attendees: serializeAws_restJson1CreateAttendeeRequestItemList(input.Attendees, context),
|
|
33
24
|
})));
|
|
@@ -45,7 +36,7 @@ export var serializeAws_restJson1BatchCreateAttendeeCommand = function (input, c
|
|
|
45
36
|
});
|
|
46
37
|
}); };
|
|
47
38
|
export var serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
39
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
49
40
|
return __generator(this, function (_c) {
|
|
50
41
|
switch (_c.label) {
|
|
51
42
|
case 0: return [4, context.endpoint()];
|
|
@@ -56,19 +47,10 @@ export var serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand =
|
|
|
56
47
|
};
|
|
57
48
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
58
49
|
"/meetings/{MeetingId}/attendees/capabilities";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
68
|
-
}
|
|
69
|
-
query = {
|
|
70
|
-
operation: "batch-update-except",
|
|
71
|
-
};
|
|
50
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
51
|
+
query = map({
|
|
52
|
+
operation: [, "batch-update-except"],
|
|
53
|
+
});
|
|
72
54
|
body = JSON.stringify(__assign(__assign({}, (input.Capabilities != null && {
|
|
73
55
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
74
56
|
})), (input.ExcludedAttendeeIds != null && {
|
|
@@ -88,7 +70,7 @@ export var serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand =
|
|
|
88
70
|
});
|
|
89
71
|
}); };
|
|
90
72
|
export var serializeAws_restJson1CreateAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
91
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
73
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
92
74
|
return __generator(this, function (_c) {
|
|
93
75
|
switch (_c.label) {
|
|
94
76
|
case 0: return [4, context.endpoint()];
|
|
@@ -98,16 +80,7 @@ export var serializeAws_restJson1CreateAttendeeCommand = function (input, contex
|
|
|
98
80
|
"content-type": "application/json",
|
|
99
81
|
};
|
|
100
82
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/attendees";
|
|
101
|
-
|
|
102
|
-
labelValue = input.MeetingId;
|
|
103
|
-
if (labelValue.length <= 0) {
|
|
104
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
105
|
-
}
|
|
106
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
110
|
-
}
|
|
83
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
111
84
|
body = JSON.stringify(__assign(__assign({}, (input.Capabilities != null && {
|
|
112
85
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
113
86
|
})), (input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId })));
|
|
@@ -135,11 +108,11 @@ export var serializeAws_restJson1CreateMeetingCommand = function (input, context
|
|
|
135
108
|
"content-type": "application/json",
|
|
136
109
|
};
|
|
137
110
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
|
|
138
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
|
|
111
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
|
|
139
112
|
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
140
113
|
})), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
141
114
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
142
|
-
})), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
|
|
115
|
+
})), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
|
|
143
116
|
return [2, new __HttpRequest({
|
|
144
117
|
protocol: protocol,
|
|
145
118
|
hostname: hostname,
|
|
@@ -164,16 +137,16 @@ export var serializeAws_restJson1CreateMeetingWithAttendeesCommand = function (i
|
|
|
164
137
|
"content-type": "application/json",
|
|
165
138
|
};
|
|
166
139
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
|
|
167
|
-
query = {
|
|
168
|
-
operation: "create-attendees",
|
|
169
|
-
};
|
|
170
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees != null && {
|
|
140
|
+
query = map({
|
|
141
|
+
operation: [, "create-attendees"],
|
|
142
|
+
});
|
|
143
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees != null && {
|
|
171
144
|
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
172
145
|
})), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingFeatures != null && {
|
|
173
146
|
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
174
147
|
})), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
175
148
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
176
|
-
})), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
|
|
149
|
+
})), (input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) })));
|
|
177
150
|
return [2, new __HttpRequest({
|
|
178
151
|
protocol: protocol,
|
|
179
152
|
hostname: hostname,
|
|
@@ -188,7 +161,7 @@ export var serializeAws_restJson1CreateMeetingWithAttendeesCommand = function (i
|
|
|
188
161
|
});
|
|
189
162
|
}); };
|
|
190
163
|
export var serializeAws_restJson1DeleteAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
191
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
164
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
192
165
|
return __generator(this, function (_c) {
|
|
193
166
|
switch (_c.label) {
|
|
194
167
|
case 0: return [4, context.endpoint()];
|
|
@@ -197,26 +170,8 @@ export var serializeAws_restJson1DeleteAttendeeCommand = function (input, contex
|
|
|
197
170
|
headers = {};
|
|
198
171
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
199
172
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (labelValue.length <= 0) {
|
|
203
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
204
|
-
}
|
|
205
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
209
|
-
}
|
|
210
|
-
if (input.AttendeeId !== undefined) {
|
|
211
|
-
labelValue = input.AttendeeId;
|
|
212
|
-
if (labelValue.length <= 0) {
|
|
213
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
214
|
-
}
|
|
215
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", __extendedEncodeURIComponent(labelValue));
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
219
|
-
}
|
|
173
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
174
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", function () { return input.AttendeeId; }, "{AttendeeId}", false);
|
|
220
175
|
return [2, new __HttpRequest({
|
|
221
176
|
protocol: protocol,
|
|
222
177
|
hostname: hostname,
|
|
@@ -230,7 +185,7 @@ export var serializeAws_restJson1DeleteAttendeeCommand = function (input, contex
|
|
|
230
185
|
});
|
|
231
186
|
}); };
|
|
232
187
|
export var serializeAws_restJson1DeleteMeetingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
233
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
188
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
234
189
|
return __generator(this, function (_c) {
|
|
235
190
|
switch (_c.label) {
|
|
236
191
|
case 0: return [4, context.endpoint()];
|
|
@@ -238,16 +193,7 @@ export var serializeAws_restJson1DeleteMeetingCommand = function (input, context
|
|
|
238
193
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
194
|
headers = {};
|
|
240
195
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}";
|
|
241
|
-
|
|
242
|
-
labelValue = input.MeetingId;
|
|
243
|
-
if (labelValue.length <= 0) {
|
|
244
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
245
|
-
}
|
|
246
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
250
|
-
}
|
|
196
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
251
197
|
return [2, new __HttpRequest({
|
|
252
198
|
protocol: protocol,
|
|
253
199
|
hostname: hostname,
|
|
@@ -261,7 +207,7 @@ export var serializeAws_restJson1DeleteMeetingCommand = function (input, context
|
|
|
261
207
|
});
|
|
262
208
|
}); };
|
|
263
209
|
export var serializeAws_restJson1GetAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
264
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
210
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
265
211
|
return __generator(this, function (_c) {
|
|
266
212
|
switch (_c.label) {
|
|
267
213
|
case 0: return [4, context.endpoint()];
|
|
@@ -270,26 +216,8 @@ export var serializeAws_restJson1GetAttendeeCommand = function (input, context)
|
|
|
270
216
|
headers = {};
|
|
271
217
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
272
218
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
if (labelValue.length <= 0) {
|
|
276
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
277
|
-
}
|
|
278
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
282
|
-
}
|
|
283
|
-
if (input.AttendeeId !== undefined) {
|
|
284
|
-
labelValue = input.AttendeeId;
|
|
285
|
-
if (labelValue.length <= 0) {
|
|
286
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
287
|
-
}
|
|
288
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", __extendedEncodeURIComponent(labelValue));
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
292
|
-
}
|
|
219
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
220
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", function () { return input.AttendeeId; }, "{AttendeeId}", false);
|
|
293
221
|
return [2, new __HttpRequest({
|
|
294
222
|
protocol: protocol,
|
|
295
223
|
hostname: hostname,
|
|
@@ -303,7 +231,7 @@ export var serializeAws_restJson1GetAttendeeCommand = function (input, context)
|
|
|
303
231
|
});
|
|
304
232
|
}); };
|
|
305
233
|
export var serializeAws_restJson1GetMeetingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
306
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
234
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
307
235
|
return __generator(this, function (_c) {
|
|
308
236
|
switch (_c.label) {
|
|
309
237
|
case 0: return [4, context.endpoint()];
|
|
@@ -311,16 +239,7 @@ export var serializeAws_restJson1GetMeetingCommand = function (input, context) {
|
|
|
311
239
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
312
240
|
headers = {};
|
|
313
241
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}";
|
|
314
|
-
|
|
315
|
-
labelValue = input.MeetingId;
|
|
316
|
-
if (labelValue.length <= 0) {
|
|
317
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
318
|
-
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
323
|
-
}
|
|
242
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
324
243
|
return [2, new __HttpRequest({
|
|
325
244
|
protocol: protocol,
|
|
326
245
|
hostname: hostname,
|
|
@@ -334,7 +253,7 @@ export var serializeAws_restJson1GetMeetingCommand = function (input, context) {
|
|
|
334
253
|
});
|
|
335
254
|
}); };
|
|
336
255
|
export var serializeAws_restJson1ListAttendeesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
256
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
338
257
|
return __generator(this, function (_c) {
|
|
339
258
|
switch (_c.label) {
|
|
340
259
|
case 0: return [4, context.endpoint()];
|
|
@@ -342,17 +261,36 @@ export var serializeAws_restJson1ListAttendeesCommand = function (input, context
|
|
|
342
261
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
343
262
|
headers = {};
|
|
344
263
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/attendees";
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
264
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
265
|
+
query = map({
|
|
266
|
+
"next-token": [, input.NextToken],
|
|
267
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
268
|
+
});
|
|
269
|
+
return [2, new __HttpRequest({
|
|
270
|
+
protocol: protocol,
|
|
271
|
+
hostname: hostname,
|
|
272
|
+
port: port,
|
|
273
|
+
method: "GET",
|
|
274
|
+
headers: headers,
|
|
275
|
+
path: resolvedPath,
|
|
276
|
+
query: query,
|
|
277
|
+
body: body,
|
|
278
|
+
})];
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}); };
|
|
282
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
284
|
+
return __generator(this, function (_c) {
|
|
285
|
+
switch (_c.label) {
|
|
286
|
+
case 0: return [4, context.endpoint()];
|
|
287
|
+
case 1:
|
|
288
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
289
|
+
headers = {};
|
|
290
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
291
|
+
query = map({
|
|
292
|
+
arn: [, input.ResourceARN],
|
|
293
|
+
});
|
|
356
294
|
return [2, new __HttpRequest({
|
|
357
295
|
protocol: protocol,
|
|
358
296
|
hostname: hostname,
|
|
@@ -367,7 +305,7 @@ export var serializeAws_restJson1ListAttendeesCommand = function (input, context
|
|
|
367
305
|
});
|
|
368
306
|
}); };
|
|
369
307
|
export var serializeAws_restJson1StartMeetingTranscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
370
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
308
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
371
309
|
return __generator(this, function (_c) {
|
|
372
310
|
switch (_c.label) {
|
|
373
311
|
case 0: return [4, context.endpoint()];
|
|
@@ -377,19 +315,10 @@ export var serializeAws_restJson1StartMeetingTranscriptionCommand = function (in
|
|
|
377
315
|
"content-type": "application/json",
|
|
378
316
|
};
|
|
379
317
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/transcription";
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
385
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
389
|
-
}
|
|
390
|
-
query = {
|
|
391
|
-
operation: "start",
|
|
392
|
-
};
|
|
318
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
319
|
+
query = map({
|
|
320
|
+
operation: [, "start"],
|
|
321
|
+
});
|
|
393
322
|
body = JSON.stringify(__assign({}, (input.TranscriptionConfiguration != null && {
|
|
394
323
|
TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
|
|
395
324
|
})));
|
|
@@ -407,7 +336,7 @@ export var serializeAws_restJson1StartMeetingTranscriptionCommand = function (in
|
|
|
407
336
|
});
|
|
408
337
|
}); };
|
|
409
338
|
export var serializeAws_restJson1StopMeetingTranscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
410
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
339
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
411
340
|
return __generator(this, function (_c) {
|
|
412
341
|
switch (_c.label) {
|
|
413
342
|
case 0: return [4, context.endpoint()];
|
|
@@ -415,19 +344,66 @@ export var serializeAws_restJson1StopMeetingTranscriptionCommand = function (inp
|
|
|
415
344
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
416
345
|
headers = {};
|
|
417
346
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/transcription";
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
347
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
348
|
+
query = map({
|
|
349
|
+
operation: [, "stop"],
|
|
350
|
+
});
|
|
351
|
+
return [2, new __HttpRequest({
|
|
352
|
+
protocol: protocol,
|
|
353
|
+
hostname: hostname,
|
|
354
|
+
port: port,
|
|
355
|
+
method: "POST",
|
|
356
|
+
headers: headers,
|
|
357
|
+
path: resolvedPath,
|
|
358
|
+
query: query,
|
|
359
|
+
body: body,
|
|
360
|
+
})];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}); };
|
|
364
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
365
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
366
|
+
return __generator(this, function (_c) {
|
|
367
|
+
switch (_c.label) {
|
|
368
|
+
case 0: return [4, context.endpoint()];
|
|
369
|
+
case 1:
|
|
370
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
|
+
headers = {
|
|
372
|
+
"content-type": "application/json",
|
|
373
|
+
};
|
|
374
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
375
|
+
query = map({
|
|
376
|
+
operation: [, "tag-resource"],
|
|
377
|
+
});
|
|
378
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
379
|
+
return [2, new __HttpRequest({
|
|
380
|
+
protocol: protocol,
|
|
381
|
+
hostname: hostname,
|
|
382
|
+
port: port,
|
|
383
|
+
method: "POST",
|
|
384
|
+
headers: headers,
|
|
385
|
+
path: resolvedPath,
|
|
386
|
+
query: query,
|
|
387
|
+
body: body,
|
|
388
|
+
})];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}); };
|
|
392
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
394
|
+
return __generator(this, function (_c) {
|
|
395
|
+
switch (_c.label) {
|
|
396
|
+
case 0: return [4, context.endpoint()];
|
|
397
|
+
case 1:
|
|
398
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
399
|
+
headers = {
|
|
400
|
+
"content-type": "application/json",
|
|
430
401
|
};
|
|
402
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
403
|
+
query = map({
|
|
404
|
+
operation: [, "untag-resource"],
|
|
405
|
+
});
|
|
406
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
431
407
|
return [2, new __HttpRequest({
|
|
432
408
|
protocol: protocol,
|
|
433
409
|
hostname: hostname,
|
|
@@ -442,7 +418,7 @@ export var serializeAws_restJson1StopMeetingTranscriptionCommand = function (inp
|
|
|
442
418
|
});
|
|
443
419
|
}); };
|
|
444
420
|
export var serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
421
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
446
422
|
return __generator(this, function (_c) {
|
|
447
423
|
switch (_c.label) {
|
|
448
424
|
case 0: return [4, context.endpoint()];
|
|
@@ -453,26 +429,8 @@ export var serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = function (i
|
|
|
453
429
|
};
|
|
454
430
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
455
431
|
"/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities";
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
if (labelValue.length <= 0) {
|
|
459
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
460
|
-
}
|
|
461
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", __extendedEncodeURIComponent(labelValue));
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
465
|
-
}
|
|
466
|
-
if (input.AttendeeId !== undefined) {
|
|
467
|
-
labelValue = input.AttendeeId;
|
|
468
|
-
if (labelValue.length <= 0) {
|
|
469
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
470
|
-
}
|
|
471
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", __extendedEncodeURIComponent(labelValue));
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
475
|
-
}
|
|
432
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
433
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", function () { return input.AttendeeId; }, "{AttendeeId}", false);
|
|
476
434
|
body = JSON.stringify(__assign({}, (input.Capabilities != null && {
|
|
477
435
|
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
478
436
|
})));
|
|
@@ -496,28 +454,26 @@ export var deserializeAws_restJson1BatchCreateAttendeeCommand = function (output
|
|
|
496
454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
497
455
|
return [2, deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context)];
|
|
498
456
|
}
|
|
499
|
-
contents = {
|
|
457
|
+
contents = map({
|
|
500
458
|
$metadata: deserializeMetadata(output),
|
|
501
|
-
|
|
502
|
-
Errors: undefined,
|
|
503
|
-
};
|
|
459
|
+
});
|
|
504
460
|
_a = __expectNonNull;
|
|
505
461
|
_b = __expectObject;
|
|
506
462
|
return [4, parseBody(output.body, context)];
|
|
507
463
|
case 1:
|
|
508
464
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
509
|
-
if (data.Attendees
|
|
465
|
+
if (data.Attendees != null) {
|
|
510
466
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
511
467
|
}
|
|
512
|
-
if (data.Errors
|
|
468
|
+
if (data.Errors != null) {
|
|
513
469
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
514
470
|
}
|
|
515
|
-
return [2,
|
|
471
|
+
return [2, contents];
|
|
516
472
|
}
|
|
517
473
|
});
|
|
518
474
|
}); };
|
|
519
475
|
var deserializeAws_restJson1BatchCreateAttendeeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var parsedOutput, _a,
|
|
476
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
521
477
|
var _c;
|
|
522
478
|
return __generator(this, function (_d) {
|
|
523
479
|
switch (_d.label) {
|
|
@@ -570,14 +526,14 @@ var deserializeAws_restJson1BatchCreateAttendeeCommandError = function (output,
|
|
|
570
526
|
case 19: throw _d.sent();
|
|
571
527
|
case 20:
|
|
572
528
|
parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
$metadata: $metadata,
|
|
529
|
+
throwDefaultError({
|
|
530
|
+
output: output,
|
|
531
|
+
parsedBody: parsedBody,
|
|
532
|
+
exceptionCtor: __BaseException,
|
|
533
|
+
errorCode: errorCode,
|
|
579
534
|
});
|
|
580
|
-
|
|
535
|
+
_d.label = 21;
|
|
536
|
+
case 21: return [2];
|
|
581
537
|
}
|
|
582
538
|
});
|
|
583
539
|
}); };
|
|
@@ -589,18 +545,18 @@ export var deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand
|
|
|
589
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
546
|
return [2, deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError(output, context)];
|
|
591
547
|
}
|
|
592
|
-
contents = {
|
|
548
|
+
contents = map({
|
|
593
549
|
$metadata: deserializeMetadata(output),
|
|
594
|
-
};
|
|
550
|
+
});
|
|
595
551
|
return [4, collectBody(output.body, context)];
|
|
596
552
|
case 1:
|
|
597
553
|
_a.sent();
|
|
598
|
-
return [2,
|
|
554
|
+
return [2, contents];
|
|
599
555
|
}
|
|
600
556
|
});
|
|
601
557
|
}); };
|
|
602
558
|
var deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
-
var parsedOutput, _a,
|
|
559
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
604
560
|
var _c;
|
|
605
561
|
return __generator(this, function (_d) {
|
|
606
562
|
switch (_d.label) {
|
|
@@ -641,14 +597,14 @@ var deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError =
|
|
|
641
597
|
case 13: throw _d.sent();
|
|
642
598
|
case 14:
|
|
643
599
|
parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
$metadata: $metadata,
|
|
600
|
+
throwDefaultError({
|
|
601
|
+
output: output,
|
|
602
|
+
parsedBody: parsedBody,
|
|
603
|
+
exceptionCtor: __BaseException,
|
|
604
|
+
errorCode: errorCode,
|
|
650
605
|
});
|
|
651
|
-
|
|
606
|
+
_d.label = 15;
|
|
607
|
+
case 15: return [2];
|
|
652
608
|
}
|
|
653
609
|
});
|
|
654
610
|
}); };
|
|
@@ -660,24 +616,23 @@ export var deserializeAws_restJson1CreateAttendeeCommand = function (output, con
|
|
|
660
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
617
|
return [2, deserializeAws_restJson1CreateAttendeeCommandError(output, context)];
|
|
662
618
|
}
|
|
663
|
-
contents = {
|
|
619
|
+
contents = map({
|
|
664
620
|
$metadata: deserializeMetadata(output),
|
|
665
|
-
|
|
666
|
-
};
|
|
621
|
+
});
|
|
667
622
|
_a = __expectNonNull;
|
|
668
623
|
_b = __expectObject;
|
|
669
624
|
return [4, parseBody(output.body, context)];
|
|
670
625
|
case 1:
|
|
671
626
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
672
|
-
if (data.Attendee
|
|
627
|
+
if (data.Attendee != null) {
|
|
673
628
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
674
629
|
}
|
|
675
|
-
return [2,
|
|
630
|
+
return [2, contents];
|
|
676
631
|
}
|
|
677
632
|
});
|
|
678
633
|
}); };
|
|
679
634
|
var deserializeAws_restJson1CreateAttendeeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
-
var parsedOutput, _a,
|
|
635
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
681
636
|
var _c;
|
|
682
637
|
return __generator(this, function (_d) {
|
|
683
638
|
switch (_d.label) {
|
|
@@ -730,14 +685,14 @@ var deserializeAws_restJson1CreateAttendeeCommandError = function (output, conte
|
|
|
730
685
|
case 19: throw _d.sent();
|
|
731
686
|
case 20:
|
|
732
687
|
parsedBody = parsedOutput.body;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
$metadata: $metadata,
|
|
688
|
+
throwDefaultError({
|
|
689
|
+
output: output,
|
|
690
|
+
parsedBody: parsedBody,
|
|
691
|
+
exceptionCtor: __BaseException,
|
|
692
|
+
errorCode: errorCode,
|
|
739
693
|
});
|
|
740
|
-
|
|
694
|
+
_d.label = 21;
|
|
695
|
+
case 21: return [2];
|
|
741
696
|
}
|
|
742
697
|
});
|
|
743
698
|
}); };
|
|
@@ -749,24 +704,23 @@ export var deserializeAws_restJson1CreateMeetingCommand = function (output, cont
|
|
|
749
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
705
|
return [2, deserializeAws_restJson1CreateMeetingCommandError(output, context)];
|
|
751
706
|
}
|
|
752
|
-
contents = {
|
|
707
|
+
contents = map({
|
|
753
708
|
$metadata: deserializeMetadata(output),
|
|
754
|
-
|
|
755
|
-
};
|
|
709
|
+
});
|
|
756
710
|
_a = __expectNonNull;
|
|
757
711
|
_b = __expectObject;
|
|
758
712
|
return [4, parseBody(output.body, context)];
|
|
759
713
|
case 1:
|
|
760
714
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
761
|
-
if (data.Meeting
|
|
715
|
+
if (data.Meeting != null) {
|
|
762
716
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
763
717
|
}
|
|
764
|
-
return [2,
|
|
718
|
+
return [2, contents];
|
|
765
719
|
}
|
|
766
720
|
});
|
|
767
721
|
}); };
|
|
768
722
|
var deserializeAws_restJson1CreateMeetingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
769
|
-
var parsedOutput, _a,
|
|
723
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
770
724
|
var _c;
|
|
771
725
|
return __generator(this, function (_d) {
|
|
772
726
|
switch (_d.label) {
|
|
@@ -811,14 +765,14 @@ var deserializeAws_restJson1CreateMeetingCommandError = function (output, contex
|
|
|
811
765
|
case 15: throw _d.sent();
|
|
812
766
|
case 16:
|
|
813
767
|
parsedBody = parsedOutput.body;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
$metadata: $metadata,
|
|
768
|
+
throwDefaultError({
|
|
769
|
+
output: output,
|
|
770
|
+
parsedBody: parsedBody,
|
|
771
|
+
exceptionCtor: __BaseException,
|
|
772
|
+
errorCode: errorCode,
|
|
820
773
|
});
|
|
821
|
-
|
|
774
|
+
_d.label = 17;
|
|
775
|
+
case 17: return [2];
|
|
822
776
|
}
|
|
823
777
|
});
|
|
824
778
|
}); };
|
|
@@ -830,32 +784,29 @@ export var deserializeAws_restJson1CreateMeetingWithAttendeesCommand = function
|
|
|
830
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
785
|
return [2, deserializeAws_restJson1CreateMeetingWithAttendeesCommandError(output, context)];
|
|
832
786
|
}
|
|
833
|
-
contents = {
|
|
787
|
+
contents = map({
|
|
834
788
|
$metadata: deserializeMetadata(output),
|
|
835
|
-
|
|
836
|
-
Errors: undefined,
|
|
837
|
-
Meeting: undefined,
|
|
838
|
-
};
|
|
789
|
+
});
|
|
839
790
|
_a = __expectNonNull;
|
|
840
791
|
_b = __expectObject;
|
|
841
792
|
return [4, parseBody(output.body, context)];
|
|
842
793
|
case 1:
|
|
843
794
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
844
|
-
if (data.Attendees
|
|
795
|
+
if (data.Attendees != null) {
|
|
845
796
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
846
797
|
}
|
|
847
|
-
if (data.Errors
|
|
798
|
+
if (data.Errors != null) {
|
|
848
799
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
849
800
|
}
|
|
850
|
-
if (data.Meeting
|
|
801
|
+
if (data.Meeting != null) {
|
|
851
802
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
852
803
|
}
|
|
853
|
-
return [2,
|
|
804
|
+
return [2, contents];
|
|
854
805
|
}
|
|
855
806
|
});
|
|
856
807
|
}); };
|
|
857
808
|
var deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
858
|
-
var parsedOutput, _a,
|
|
809
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
859
810
|
var _c;
|
|
860
811
|
return __generator(this, function (_d) {
|
|
861
812
|
switch (_d.label) {
|
|
@@ -900,14 +851,14 @@ var deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = function (o
|
|
|
900
851
|
case 15: throw _d.sent();
|
|
901
852
|
case 16:
|
|
902
853
|
parsedBody = parsedOutput.body;
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
$metadata: $metadata,
|
|
854
|
+
throwDefaultError({
|
|
855
|
+
output: output,
|
|
856
|
+
parsedBody: parsedBody,
|
|
857
|
+
exceptionCtor: __BaseException,
|
|
858
|
+
errorCode: errorCode,
|
|
909
859
|
});
|
|
910
|
-
|
|
860
|
+
_d.label = 17;
|
|
861
|
+
case 17: return [2];
|
|
911
862
|
}
|
|
912
863
|
});
|
|
913
864
|
}); };
|
|
@@ -919,18 +870,18 @@ export var deserializeAws_restJson1DeleteAttendeeCommand = function (output, con
|
|
|
919
870
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
920
871
|
return [2, deserializeAws_restJson1DeleteAttendeeCommandError(output, context)];
|
|
921
872
|
}
|
|
922
|
-
contents = {
|
|
873
|
+
contents = map({
|
|
923
874
|
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
875
|
+
});
|
|
925
876
|
return [4, collectBody(output.body, context)];
|
|
926
877
|
case 1:
|
|
927
878
|
_a.sent();
|
|
928
|
-
return [2,
|
|
879
|
+
return [2, contents];
|
|
929
880
|
}
|
|
930
881
|
});
|
|
931
882
|
}); };
|
|
932
883
|
var deserializeAws_restJson1DeleteAttendeeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
933
|
-
var parsedOutput, _a,
|
|
884
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
934
885
|
var _c;
|
|
935
886
|
return __generator(this, function (_d) {
|
|
936
887
|
switch (_d.label) {
|
|
@@ -975,14 +926,14 @@ var deserializeAws_restJson1DeleteAttendeeCommandError = function (output, conte
|
|
|
975
926
|
case 15: throw _d.sent();
|
|
976
927
|
case 16:
|
|
977
928
|
parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
$metadata: $metadata,
|
|
929
|
+
throwDefaultError({
|
|
930
|
+
output: output,
|
|
931
|
+
parsedBody: parsedBody,
|
|
932
|
+
exceptionCtor: __BaseException,
|
|
933
|
+
errorCode: errorCode,
|
|
984
934
|
});
|
|
985
|
-
|
|
935
|
+
_d.label = 17;
|
|
936
|
+
case 17: return [2];
|
|
986
937
|
}
|
|
987
938
|
});
|
|
988
939
|
}); };
|
|
@@ -994,18 +945,18 @@ export var deserializeAws_restJson1DeleteMeetingCommand = function (output, cont
|
|
|
994
945
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
995
946
|
return [2, deserializeAws_restJson1DeleteMeetingCommandError(output, context)];
|
|
996
947
|
}
|
|
997
|
-
contents = {
|
|
948
|
+
contents = map({
|
|
998
949
|
$metadata: deserializeMetadata(output),
|
|
999
|
-
};
|
|
950
|
+
});
|
|
1000
951
|
return [4, collectBody(output.body, context)];
|
|
1001
952
|
case 1:
|
|
1002
953
|
_a.sent();
|
|
1003
|
-
return [2,
|
|
954
|
+
return [2, contents];
|
|
1004
955
|
}
|
|
1005
956
|
});
|
|
1006
957
|
}); };
|
|
1007
958
|
var deserializeAws_restJson1DeleteMeetingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1008
|
-
var parsedOutput, _a,
|
|
959
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1009
960
|
var _c;
|
|
1010
961
|
return __generator(this, function (_d) {
|
|
1011
962
|
switch (_d.label) {
|
|
@@ -1050,14 +1001,14 @@ var deserializeAws_restJson1DeleteMeetingCommandError = function (output, contex
|
|
|
1050
1001
|
case 15: throw _d.sent();
|
|
1051
1002
|
case 16:
|
|
1052
1003
|
parsedBody = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
$metadata: $metadata,
|
|
1004
|
+
throwDefaultError({
|
|
1005
|
+
output: output,
|
|
1006
|
+
parsedBody: parsedBody,
|
|
1007
|
+
exceptionCtor: __BaseException,
|
|
1008
|
+
errorCode: errorCode,
|
|
1059
1009
|
});
|
|
1060
|
-
|
|
1010
|
+
_d.label = 17;
|
|
1011
|
+
case 17: return [2];
|
|
1061
1012
|
}
|
|
1062
1013
|
});
|
|
1063
1014
|
}); };
|
|
@@ -1069,24 +1020,23 @@ export var deserializeAws_restJson1GetAttendeeCommand = function (output, contex
|
|
|
1069
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
1021
|
return [2, deserializeAws_restJson1GetAttendeeCommandError(output, context)];
|
|
1071
1022
|
}
|
|
1072
|
-
contents = {
|
|
1023
|
+
contents = map({
|
|
1073
1024
|
$metadata: deserializeMetadata(output),
|
|
1074
|
-
|
|
1075
|
-
};
|
|
1025
|
+
});
|
|
1076
1026
|
_a = __expectNonNull;
|
|
1077
1027
|
_b = __expectObject;
|
|
1078
1028
|
return [4, parseBody(output.body, context)];
|
|
1079
1029
|
case 1:
|
|
1080
1030
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1081
|
-
if (data.Attendee
|
|
1031
|
+
if (data.Attendee != null) {
|
|
1082
1032
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
1083
1033
|
}
|
|
1084
|
-
return [2,
|
|
1034
|
+
return [2, contents];
|
|
1085
1035
|
}
|
|
1086
1036
|
});
|
|
1087
1037
|
}); };
|
|
1088
1038
|
var deserializeAws_restJson1GetAttendeeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1089
|
-
var parsedOutput, _a,
|
|
1039
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1090
1040
|
var _c;
|
|
1091
1041
|
return __generator(this, function (_d) {
|
|
1092
1042
|
switch (_d.label) {
|
|
@@ -1131,14 +1081,14 @@ var deserializeAws_restJson1GetAttendeeCommandError = function (output, context)
|
|
|
1131
1081
|
case 15: throw _d.sent();
|
|
1132
1082
|
case 16:
|
|
1133
1083
|
parsedBody = parsedOutput.body;
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
$metadata: $metadata,
|
|
1084
|
+
throwDefaultError({
|
|
1085
|
+
output: output,
|
|
1086
|
+
parsedBody: parsedBody,
|
|
1087
|
+
exceptionCtor: __BaseException,
|
|
1088
|
+
errorCode: errorCode,
|
|
1140
1089
|
});
|
|
1141
|
-
|
|
1090
|
+
_d.label = 17;
|
|
1091
|
+
case 17: return [2];
|
|
1142
1092
|
}
|
|
1143
1093
|
});
|
|
1144
1094
|
}); };
|
|
@@ -1150,24 +1100,23 @@ export var deserializeAws_restJson1GetMeetingCommand = function (output, context
|
|
|
1150
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
1101
|
return [2, deserializeAws_restJson1GetMeetingCommandError(output, context)];
|
|
1152
1102
|
}
|
|
1153
|
-
contents = {
|
|
1103
|
+
contents = map({
|
|
1154
1104
|
$metadata: deserializeMetadata(output),
|
|
1155
|
-
|
|
1156
|
-
};
|
|
1105
|
+
});
|
|
1157
1106
|
_a = __expectNonNull;
|
|
1158
1107
|
_b = __expectObject;
|
|
1159
1108
|
return [4, parseBody(output.body, context)];
|
|
1160
1109
|
case 1:
|
|
1161
1110
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1162
|
-
if (data.Meeting
|
|
1111
|
+
if (data.Meeting != null) {
|
|
1163
1112
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
1164
1113
|
}
|
|
1165
|
-
return [2,
|
|
1114
|
+
return [2, contents];
|
|
1166
1115
|
}
|
|
1167
1116
|
});
|
|
1168
1117
|
}); };
|
|
1169
1118
|
var deserializeAws_restJson1GetMeetingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1170
|
-
var parsedOutput, _a,
|
|
1119
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1171
1120
|
var _c;
|
|
1172
1121
|
return __generator(this, function (_d) {
|
|
1173
1122
|
switch (_d.label) {
|
|
@@ -1212,14 +1161,14 @@ var deserializeAws_restJson1GetMeetingCommandError = function (output, context)
|
|
|
1212
1161
|
case 15: throw _d.sent();
|
|
1213
1162
|
case 16:
|
|
1214
1163
|
parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata: $metadata,
|
|
1164
|
+
throwDefaultError({
|
|
1165
|
+
output: output,
|
|
1166
|
+
parsedBody: parsedBody,
|
|
1167
|
+
exceptionCtor: __BaseException,
|
|
1168
|
+
errorCode: errorCode,
|
|
1221
1169
|
});
|
|
1222
|
-
|
|
1170
|
+
_d.label = 17;
|
|
1171
|
+
case 17: return [2];
|
|
1223
1172
|
}
|
|
1224
1173
|
});
|
|
1225
1174
|
}); };
|
|
@@ -1231,28 +1180,26 @@ export var deserializeAws_restJson1ListAttendeesCommand = function (output, cont
|
|
|
1231
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1232
1181
|
return [2, deserializeAws_restJson1ListAttendeesCommandError(output, context)];
|
|
1233
1182
|
}
|
|
1234
|
-
contents = {
|
|
1183
|
+
contents = map({
|
|
1235
1184
|
$metadata: deserializeMetadata(output),
|
|
1236
|
-
|
|
1237
|
-
NextToken: undefined,
|
|
1238
|
-
};
|
|
1185
|
+
});
|
|
1239
1186
|
_a = __expectNonNull;
|
|
1240
1187
|
_b = __expectObject;
|
|
1241
1188
|
return [4, parseBody(output.body, context)];
|
|
1242
1189
|
case 1:
|
|
1243
1190
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
|
-
if (data.Attendees
|
|
1191
|
+
if (data.Attendees != null) {
|
|
1245
1192
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
1246
1193
|
}
|
|
1247
|
-
if (data.NextToken
|
|
1194
|
+
if (data.NextToken != null) {
|
|
1248
1195
|
contents.NextToken = __expectString(data.NextToken);
|
|
1249
1196
|
}
|
|
1250
|
-
return [2,
|
|
1197
|
+
return [2, contents];
|
|
1251
1198
|
}
|
|
1252
1199
|
});
|
|
1253
1200
|
}); };
|
|
1254
1201
|
var deserializeAws_restJson1ListAttendeesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1255
|
-
var parsedOutput, _a,
|
|
1202
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1256
1203
|
var _c;
|
|
1257
1204
|
return __generator(this, function (_d) {
|
|
1258
1205
|
switch (_d.label) {
|
|
@@ -1297,14 +1244,70 @@ var deserializeAws_restJson1ListAttendeesCommandError = function (output, contex
|
|
|
1297
1244
|
case 15: throw _d.sent();
|
|
1298
1245
|
case 16:
|
|
1299
1246
|
parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
$metadata: $metadata,
|
|
1247
|
+
throwDefaultError({
|
|
1248
|
+
output: output,
|
|
1249
|
+
parsedBody: parsedBody,
|
|
1250
|
+
exceptionCtor: __BaseException,
|
|
1251
|
+
errorCode: errorCode,
|
|
1306
1252
|
});
|
|
1307
|
-
|
|
1253
|
+
_d.label = 17;
|
|
1254
|
+
case 17: return [2];
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
}); };
|
|
1258
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1259
|
+
var contents, data, _a, _b;
|
|
1260
|
+
return __generator(this, function (_c) {
|
|
1261
|
+
switch (_c.label) {
|
|
1262
|
+
case 0:
|
|
1263
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1264
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1265
|
+
}
|
|
1266
|
+
contents = map({
|
|
1267
|
+
$metadata: deserializeMetadata(output),
|
|
1268
|
+
});
|
|
1269
|
+
_a = __expectNonNull;
|
|
1270
|
+
_b = __expectObject;
|
|
1271
|
+
return [4, parseBody(output.body, context)];
|
|
1272
|
+
case 1:
|
|
1273
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1274
|
+
if (data.Tags != null) {
|
|
1275
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
1276
|
+
}
|
|
1277
|
+
return [2, contents];
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
}); };
|
|
1281
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1282
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1283
|
+
var _c;
|
|
1284
|
+
return __generator(this, function (_d) {
|
|
1285
|
+
switch (_d.label) {
|
|
1286
|
+
case 0:
|
|
1287
|
+
_a = [__assign({}, output)];
|
|
1288
|
+
_c = {};
|
|
1289
|
+
return [4, parseBody(output.body, context)];
|
|
1290
|
+
case 1:
|
|
1291
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1292
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
+
_b = errorCode;
|
|
1294
|
+
switch (_b) {
|
|
1295
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1296
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 2];
|
|
1297
|
+
}
|
|
1298
|
+
return [3, 4];
|
|
1299
|
+
case 2: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1300
|
+
case 3: throw _d.sent();
|
|
1301
|
+
case 4:
|
|
1302
|
+
parsedBody = parsedOutput.body;
|
|
1303
|
+
throwDefaultError({
|
|
1304
|
+
output: output,
|
|
1305
|
+
parsedBody: parsedBody,
|
|
1306
|
+
exceptionCtor: __BaseException,
|
|
1307
|
+
errorCode: errorCode,
|
|
1308
|
+
});
|
|
1309
|
+
_d.label = 5;
|
|
1310
|
+
case 5: return [2];
|
|
1308
1311
|
}
|
|
1309
1312
|
});
|
|
1310
1313
|
}); };
|
|
@@ -1316,18 +1319,18 @@ export var deserializeAws_restJson1StartMeetingTranscriptionCommand = function (
|
|
|
1316
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
1320
|
return [2, deserializeAws_restJson1StartMeetingTranscriptionCommandError(output, context)];
|
|
1318
1321
|
}
|
|
1319
|
-
contents = {
|
|
1322
|
+
contents = map({
|
|
1320
1323
|
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
1324
|
+
});
|
|
1322
1325
|
return [4, collectBody(output.body, context)];
|
|
1323
1326
|
case 1:
|
|
1324
1327
|
_a.sent();
|
|
1325
|
-
return [2,
|
|
1328
|
+
return [2, contents];
|
|
1326
1329
|
}
|
|
1327
1330
|
});
|
|
1328
1331
|
}); };
|
|
1329
1332
|
var deserializeAws_restJson1StartMeetingTranscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1330
|
-
var parsedOutput, _a,
|
|
1333
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1331
1334
|
var _c;
|
|
1332
1335
|
return __generator(this, function (_d) {
|
|
1333
1336
|
switch (_d.label) {
|
|
@@ -1380,14 +1383,14 @@ var deserializeAws_restJson1StartMeetingTranscriptionCommandError = function (ou
|
|
|
1380
1383
|
case 19: throw _d.sent();
|
|
1381
1384
|
case 20:
|
|
1382
1385
|
parsedBody = parsedOutput.body;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
$metadata: $metadata,
|
|
1386
|
+
throwDefaultError({
|
|
1387
|
+
output: output,
|
|
1388
|
+
parsedBody: parsedBody,
|
|
1389
|
+
exceptionCtor: __BaseException,
|
|
1390
|
+
errorCode: errorCode,
|
|
1389
1391
|
});
|
|
1390
|
-
|
|
1392
|
+
_d.label = 21;
|
|
1393
|
+
case 21: return [2];
|
|
1391
1394
|
}
|
|
1392
1395
|
});
|
|
1393
1396
|
}); };
|
|
@@ -1399,18 +1402,18 @@ export var deserializeAws_restJson1StopMeetingTranscriptionCommand = function (o
|
|
|
1399
1402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
1403
|
return [2, deserializeAws_restJson1StopMeetingTranscriptionCommandError(output, context)];
|
|
1401
1404
|
}
|
|
1402
|
-
contents = {
|
|
1405
|
+
contents = map({
|
|
1403
1406
|
$metadata: deserializeMetadata(output),
|
|
1404
|
-
};
|
|
1407
|
+
});
|
|
1405
1408
|
return [4, collectBody(output.body, context)];
|
|
1406
1409
|
case 1:
|
|
1407
1410
|
_a.sent();
|
|
1408
|
-
return [2,
|
|
1411
|
+
return [2, contents];
|
|
1409
1412
|
}
|
|
1410
1413
|
});
|
|
1411
1414
|
}); };
|
|
1412
1415
|
var deserializeAws_restJson1StopMeetingTranscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1413
|
-
var parsedOutput, _a,
|
|
1416
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1414
1417
|
var _c;
|
|
1415
1418
|
return __generator(this, function (_d) {
|
|
1416
1419
|
switch (_d.label) {
|
|
@@ -1459,14 +1462,128 @@ var deserializeAws_restJson1StopMeetingTranscriptionCommandError = function (out
|
|
|
1459
1462
|
case 17: throw _d.sent();
|
|
1460
1463
|
case 18:
|
|
1461
1464
|
parsedBody = parsedOutput.body;
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1465
|
+
throwDefaultError({
|
|
1466
|
+
output: output,
|
|
1467
|
+
parsedBody: parsedBody,
|
|
1468
|
+
exceptionCtor: __BaseException,
|
|
1469
|
+
errorCode: errorCode,
|
|
1470
|
+
});
|
|
1471
|
+
_d.label = 19;
|
|
1472
|
+
case 19: return [2];
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
}); };
|
|
1476
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1477
|
+
var contents;
|
|
1478
|
+
return __generator(this, function (_a) {
|
|
1479
|
+
switch (_a.label) {
|
|
1480
|
+
case 0:
|
|
1481
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1482
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1483
|
+
}
|
|
1484
|
+
contents = map({
|
|
1485
|
+
$metadata: deserializeMetadata(output),
|
|
1468
1486
|
});
|
|
1469
|
-
|
|
1487
|
+
return [4, collectBody(output.body, context)];
|
|
1488
|
+
case 1:
|
|
1489
|
+
_a.sent();
|
|
1490
|
+
return [2, contents];
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
}); };
|
|
1494
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1495
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1496
|
+
var _c;
|
|
1497
|
+
return __generator(this, function (_d) {
|
|
1498
|
+
switch (_d.label) {
|
|
1499
|
+
case 0:
|
|
1500
|
+
_a = [__assign({}, output)];
|
|
1501
|
+
_c = {};
|
|
1502
|
+
return [4, parseBody(output.body, context)];
|
|
1503
|
+
case 1:
|
|
1504
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1505
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
+
_b = errorCode;
|
|
1507
|
+
switch (_b) {
|
|
1508
|
+
case "BadRequestException": return [3, 2];
|
|
1509
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException": return [3, 2];
|
|
1510
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1511
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 4];
|
|
1512
|
+
case "TooManyTagsException": return [3, 6];
|
|
1513
|
+
case "com.amazonaws.chimesdkmeetings#TooManyTagsException": return [3, 6];
|
|
1514
|
+
}
|
|
1515
|
+
return [3, 8];
|
|
1516
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1517
|
+
case 3: throw _d.sent();
|
|
1518
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1519
|
+
case 5: throw _d.sent();
|
|
1520
|
+
case 6: return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 7: throw _d.sent();
|
|
1522
|
+
case 8:
|
|
1523
|
+
parsedBody = parsedOutput.body;
|
|
1524
|
+
throwDefaultError({
|
|
1525
|
+
output: output,
|
|
1526
|
+
parsedBody: parsedBody,
|
|
1527
|
+
exceptionCtor: __BaseException,
|
|
1528
|
+
errorCode: errorCode,
|
|
1529
|
+
});
|
|
1530
|
+
_d.label = 9;
|
|
1531
|
+
case 9: return [2];
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
}); };
|
|
1535
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1536
|
+
var contents;
|
|
1537
|
+
return __generator(this, function (_a) {
|
|
1538
|
+
switch (_a.label) {
|
|
1539
|
+
case 0:
|
|
1540
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1541
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1542
|
+
}
|
|
1543
|
+
contents = map({
|
|
1544
|
+
$metadata: deserializeMetadata(output),
|
|
1545
|
+
});
|
|
1546
|
+
return [4, collectBody(output.body, context)];
|
|
1547
|
+
case 1:
|
|
1548
|
+
_a.sent();
|
|
1549
|
+
return [2, contents];
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
}); };
|
|
1553
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1554
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1555
|
+
var _c;
|
|
1556
|
+
return __generator(this, function (_d) {
|
|
1557
|
+
switch (_d.label) {
|
|
1558
|
+
case 0:
|
|
1559
|
+
_a = [__assign({}, output)];
|
|
1560
|
+
_c = {};
|
|
1561
|
+
return [4, parseBody(output.body, context)];
|
|
1562
|
+
case 1:
|
|
1563
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
+
_b = errorCode;
|
|
1566
|
+
switch (_b) {
|
|
1567
|
+
case "BadRequestException": return [3, 2];
|
|
1568
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException": return [3, 2];
|
|
1569
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1570
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException": return [3, 4];
|
|
1571
|
+
}
|
|
1572
|
+
return [3, 6];
|
|
1573
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1574
|
+
case 3: throw _d.sent();
|
|
1575
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1576
|
+
case 5: throw _d.sent();
|
|
1577
|
+
case 6:
|
|
1578
|
+
parsedBody = parsedOutput.body;
|
|
1579
|
+
throwDefaultError({
|
|
1580
|
+
output: output,
|
|
1581
|
+
parsedBody: parsedBody,
|
|
1582
|
+
exceptionCtor: __BaseException,
|
|
1583
|
+
errorCode: errorCode,
|
|
1584
|
+
});
|
|
1585
|
+
_d.label = 7;
|
|
1586
|
+
case 7: return [2];
|
|
1470
1587
|
}
|
|
1471
1588
|
});
|
|
1472
1589
|
}); };
|
|
@@ -1478,24 +1595,23 @@ export var deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = function
|
|
|
1478
1595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1479
1596
|
return [2, deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context)];
|
|
1480
1597
|
}
|
|
1481
|
-
contents = {
|
|
1598
|
+
contents = map({
|
|
1482
1599
|
$metadata: deserializeMetadata(output),
|
|
1483
|
-
|
|
1484
|
-
};
|
|
1600
|
+
});
|
|
1485
1601
|
_a = __expectNonNull;
|
|
1486
1602
|
_b = __expectObject;
|
|
1487
1603
|
return [4, parseBody(output.body, context)];
|
|
1488
1604
|
case 1:
|
|
1489
1605
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1490
|
-
if (data.Attendee
|
|
1606
|
+
if (data.Attendee != null) {
|
|
1491
1607
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
1492
1608
|
}
|
|
1493
|
-
return [2,
|
|
1609
|
+
return [2, contents];
|
|
1494
1610
|
}
|
|
1495
1611
|
});
|
|
1496
1612
|
}); };
|
|
1497
1613
|
var deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1498
|
-
var parsedOutput, _a,
|
|
1614
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1499
1615
|
var _c;
|
|
1500
1616
|
return __generator(this, function (_d) {
|
|
1501
1617
|
switch (_d.label) {
|
|
@@ -1536,29 +1652,30 @@ var deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = function (o
|
|
|
1536
1652
|
case 13: throw _d.sent();
|
|
1537
1653
|
case 14:
|
|
1538
1654
|
parsedBody = parsedOutput.body;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
$metadata: $metadata,
|
|
1655
|
+
throwDefaultError({
|
|
1656
|
+
output: output,
|
|
1657
|
+
parsedBody: parsedBody,
|
|
1658
|
+
exceptionCtor: __BaseException,
|
|
1659
|
+
errorCode: errorCode,
|
|
1545
1660
|
});
|
|
1546
|
-
|
|
1661
|
+
_d.label = 15;
|
|
1662
|
+
case 15: return [2];
|
|
1547
1663
|
}
|
|
1548
1664
|
});
|
|
1549
1665
|
}); };
|
|
1666
|
+
var map = __map;
|
|
1550
1667
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1551
1668
|
var contents, data, exception;
|
|
1552
1669
|
return __generator(this, function (_a) {
|
|
1553
|
-
contents = {};
|
|
1670
|
+
contents = map({});
|
|
1554
1671
|
data = parsedOutput.body;
|
|
1555
|
-
if (data.Code
|
|
1672
|
+
if (data.Code != null) {
|
|
1556
1673
|
contents.Code = __expectString(data.Code);
|
|
1557
1674
|
}
|
|
1558
|
-
if (data.Message
|
|
1675
|
+
if (data.Message != null) {
|
|
1559
1676
|
contents.Message = __expectString(data.Message);
|
|
1560
1677
|
}
|
|
1561
|
-
if (data.RequestId
|
|
1678
|
+
if (data.RequestId != null) {
|
|
1562
1679
|
contents.RequestId = __expectString(data.RequestId);
|
|
1563
1680
|
}
|
|
1564
1681
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1568,15 +1685,15 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
1568
1685
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1569
1686
|
var contents, data, exception;
|
|
1570
1687
|
return __generator(this, function (_a) {
|
|
1571
|
-
contents = {};
|
|
1688
|
+
contents = map({});
|
|
1572
1689
|
data = parsedOutput.body;
|
|
1573
|
-
if (data.Code
|
|
1690
|
+
if (data.Code != null) {
|
|
1574
1691
|
contents.Code = __expectString(data.Code);
|
|
1575
1692
|
}
|
|
1576
|
-
if (data.Message
|
|
1693
|
+
if (data.Message != null) {
|
|
1577
1694
|
contents.Message = __expectString(data.Message);
|
|
1578
1695
|
}
|
|
1579
|
-
if (data.RequestId
|
|
1696
|
+
if (data.RequestId != null) {
|
|
1580
1697
|
contents.RequestId = __expectString(data.RequestId);
|
|
1581
1698
|
}
|
|
1582
1699
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1586,15 +1703,15 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1586
1703
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1587
1704
|
var contents, data, exception;
|
|
1588
1705
|
return __generator(this, function (_a) {
|
|
1589
|
-
contents = {};
|
|
1706
|
+
contents = map({});
|
|
1590
1707
|
data = parsedOutput.body;
|
|
1591
|
-
if (data.Code
|
|
1708
|
+
if (data.Code != null) {
|
|
1592
1709
|
contents.Code = __expectString(data.Code);
|
|
1593
1710
|
}
|
|
1594
|
-
if (data.Message
|
|
1711
|
+
if (data.Message != null) {
|
|
1595
1712
|
contents.Message = __expectString(data.Message);
|
|
1596
1713
|
}
|
|
1597
|
-
if (data.RequestId
|
|
1714
|
+
if (data.RequestId != null) {
|
|
1598
1715
|
contents.RequestId = __expectString(data.RequestId);
|
|
1599
1716
|
}
|
|
1600
1717
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1604,15 +1721,15 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
1604
1721
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1605
1722
|
var contents, data, exception;
|
|
1606
1723
|
return __generator(this, function (_a) {
|
|
1607
|
-
contents = {};
|
|
1724
|
+
contents = map({});
|
|
1608
1725
|
data = parsedOutput.body;
|
|
1609
|
-
if (data.Code
|
|
1726
|
+
if (data.Code != null) {
|
|
1610
1727
|
contents.Code = __expectString(data.Code);
|
|
1611
1728
|
}
|
|
1612
|
-
if (data.Message
|
|
1729
|
+
if (data.Message != null) {
|
|
1613
1730
|
contents.Message = __expectString(data.Message);
|
|
1614
1731
|
}
|
|
1615
|
-
if (data.RequestId
|
|
1732
|
+
if (data.RequestId != null) {
|
|
1616
1733
|
contents.RequestId = __expectString(data.RequestId);
|
|
1617
1734
|
}
|
|
1618
1735
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1622,33 +1739,54 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
1622
1739
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1623
1740
|
var contents, data, exception;
|
|
1624
1741
|
return __generator(this, function (_a) {
|
|
1625
|
-
contents = {};
|
|
1742
|
+
contents = map({});
|
|
1626
1743
|
data = parsedOutput.body;
|
|
1627
|
-
if (data.Code
|
|
1744
|
+
if (data.Code != null) {
|
|
1628
1745
|
contents.Code = __expectString(data.Code);
|
|
1629
1746
|
}
|
|
1630
|
-
if (data.Message
|
|
1747
|
+
if (data.Message != null) {
|
|
1631
1748
|
contents.Message = __expectString(data.Message);
|
|
1632
1749
|
}
|
|
1633
|
-
if (data.RequestId
|
|
1750
|
+
if (data.RequestId != null) {
|
|
1634
1751
|
contents.RequestId = __expectString(data.RequestId);
|
|
1635
1752
|
}
|
|
1636
1753
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1637
1754
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1638
1755
|
});
|
|
1639
1756
|
}); };
|
|
1757
|
+
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1758
|
+
var contents, data, exception;
|
|
1759
|
+
return __generator(this, function (_a) {
|
|
1760
|
+
contents = map({});
|
|
1761
|
+
data = parsedOutput.body;
|
|
1762
|
+
if (data.Code != null) {
|
|
1763
|
+
contents.Code = __expectString(data.Code);
|
|
1764
|
+
}
|
|
1765
|
+
if (data.Message != null) {
|
|
1766
|
+
contents.Message = __expectString(data.Message);
|
|
1767
|
+
}
|
|
1768
|
+
if (data.RequestId != null) {
|
|
1769
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1770
|
+
}
|
|
1771
|
+
if (data.ResourceName != null) {
|
|
1772
|
+
contents.ResourceName = __expectString(data.ResourceName);
|
|
1773
|
+
}
|
|
1774
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1775
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1776
|
+
});
|
|
1777
|
+
}); };
|
|
1640
1778
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1641
1779
|
var contents, data, exception;
|
|
1642
1780
|
return __generator(this, function (_a) {
|
|
1643
|
-
contents = {};
|
|
1781
|
+
contents = map({});
|
|
1644
1782
|
data = parsedOutput.body;
|
|
1645
|
-
if (data.Code
|
|
1783
|
+
if (data.Code != null) {
|
|
1646
1784
|
contents.Code = __expectString(data.Code);
|
|
1647
1785
|
}
|
|
1648
|
-
if (data.Message
|
|
1786
|
+
if (data.Message != null) {
|
|
1649
1787
|
contents.Message = __expectString(data.Message);
|
|
1650
1788
|
}
|
|
1651
|
-
if (data.RequestId
|
|
1789
|
+
if (data.RequestId != null) {
|
|
1652
1790
|
contents.RequestId = __expectString(data.RequestId);
|
|
1653
1791
|
}
|
|
1654
1792
|
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1658,18 +1796,17 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
1658
1796
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1659
1797
|
var contents, data, exception;
|
|
1660
1798
|
return __generator(this, function (_a) {
|
|
1661
|
-
contents = {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
}
|
|
1799
|
+
contents = map({
|
|
1800
|
+
RetryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
1801
|
+
});
|
|
1665
1802
|
data = parsedOutput.body;
|
|
1666
|
-
if (data.Code
|
|
1803
|
+
if (data.Code != null) {
|
|
1667
1804
|
contents.Code = __expectString(data.Code);
|
|
1668
1805
|
}
|
|
1669
|
-
if (data.Message
|
|
1806
|
+
if (data.Message != null) {
|
|
1670
1807
|
contents.Message = __expectString(data.Message);
|
|
1671
1808
|
}
|
|
1672
|
-
if (data.RequestId
|
|
1809
|
+
if (data.RequestId != null) {
|
|
1673
1810
|
contents.RequestId = __expectString(data.RequestId);
|
|
1674
1811
|
}
|
|
1675
1812
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1679,33 +1816,54 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
1679
1816
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
1817
|
var contents, data, exception;
|
|
1681
1818
|
return __generator(this, function (_a) {
|
|
1682
|
-
contents = {};
|
|
1819
|
+
contents = map({});
|
|
1683
1820
|
data = parsedOutput.body;
|
|
1684
|
-
if (data.Code
|
|
1821
|
+
if (data.Code != null) {
|
|
1685
1822
|
contents.Code = __expectString(data.Code);
|
|
1686
1823
|
}
|
|
1687
|
-
if (data.Message
|
|
1824
|
+
if (data.Message != null) {
|
|
1688
1825
|
contents.Message = __expectString(data.Message);
|
|
1689
1826
|
}
|
|
1690
|
-
if (data.RequestId
|
|
1827
|
+
if (data.RequestId != null) {
|
|
1691
1828
|
contents.RequestId = __expectString(data.RequestId);
|
|
1692
1829
|
}
|
|
1693
1830
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1694
1831
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1695
1832
|
});
|
|
1696
1833
|
}); };
|
|
1834
|
+
var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1835
|
+
var contents, data, exception;
|
|
1836
|
+
return __generator(this, function (_a) {
|
|
1837
|
+
contents = map({});
|
|
1838
|
+
data = parsedOutput.body;
|
|
1839
|
+
if (data.Code != null) {
|
|
1840
|
+
contents.Code = __expectString(data.Code);
|
|
1841
|
+
}
|
|
1842
|
+
if (data.Message != null) {
|
|
1843
|
+
contents.Message = __expectString(data.Message);
|
|
1844
|
+
}
|
|
1845
|
+
if (data.RequestId != null) {
|
|
1846
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1847
|
+
}
|
|
1848
|
+
if (data.ResourceName != null) {
|
|
1849
|
+
contents.ResourceName = __expectString(data.ResourceName);
|
|
1850
|
+
}
|
|
1851
|
+
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1852
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1853
|
+
});
|
|
1854
|
+
}); };
|
|
1697
1855
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1698
1856
|
var contents, data, exception;
|
|
1699
1857
|
return __generator(this, function (_a) {
|
|
1700
|
-
contents = {};
|
|
1858
|
+
contents = map({});
|
|
1701
1859
|
data = parsedOutput.body;
|
|
1702
|
-
if (data.Code
|
|
1860
|
+
if (data.Code != null) {
|
|
1703
1861
|
contents.Code = __expectString(data.Code);
|
|
1704
1862
|
}
|
|
1705
|
-
if (data.Message
|
|
1863
|
+
if (data.Message != null) {
|
|
1706
1864
|
contents.Message = __expectString(data.Message);
|
|
1707
1865
|
}
|
|
1708
|
-
if (data.RequestId
|
|
1866
|
+
if (data.RequestId != null) {
|
|
1709
1867
|
contents.RequestId = __expectString(data.RequestId);
|
|
1710
1868
|
}
|
|
1711
1869
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1715,15 +1873,15 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
1715
1873
|
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1716
1874
|
var contents, data, exception;
|
|
1717
1875
|
return __generator(this, function (_a) {
|
|
1718
|
-
contents = {};
|
|
1876
|
+
contents = map({});
|
|
1719
1877
|
data = parsedOutput.body;
|
|
1720
|
-
if (data.Code
|
|
1878
|
+
if (data.Code != null) {
|
|
1721
1879
|
contents.Code = __expectString(data.Code);
|
|
1722
1880
|
}
|
|
1723
|
-
if (data.Message
|
|
1881
|
+
if (data.Message != null) {
|
|
1724
1882
|
contents.Message = __expectString(data.Message);
|
|
1725
1883
|
}
|
|
1726
|
-
if (data.RequestId
|
|
1884
|
+
if (data.RequestId != null) {
|
|
1727
1885
|
contents.RequestId = __expectString(data.RequestId);
|
|
1728
1886
|
}
|
|
1729
1887
|
exception = new UnprocessableEntityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1740,9 +1898,6 @@ var serializeAws_restJson1AttendeeIdsList = function (input, context) {
|
|
|
1740
1898
|
return input
|
|
1741
1899
|
.filter(function (e) { return e != null; })
|
|
1742
1900
|
.map(function (entry) {
|
|
1743
|
-
if (entry === null) {
|
|
1744
|
-
return null;
|
|
1745
|
-
}
|
|
1746
1901
|
return serializeAws_restJson1AttendeeIdItem(entry, context);
|
|
1747
1902
|
});
|
|
1748
1903
|
};
|
|
@@ -1758,9 +1913,6 @@ var serializeAws_restJson1CreateAttendeeRequestItemList = function (input, conte
|
|
|
1758
1913
|
return input
|
|
1759
1914
|
.filter(function (e) { return e != null; })
|
|
1760
1915
|
.map(function (entry) {
|
|
1761
|
-
if (entry === null) {
|
|
1762
|
-
return null;
|
|
1763
|
-
}
|
|
1764
1916
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1765
1917
|
});
|
|
1766
1918
|
};
|
|
@@ -1768,9 +1920,6 @@ var serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = function (
|
|
|
1768
1920
|
return input
|
|
1769
1921
|
.filter(function (e) { return e != null; })
|
|
1770
1922
|
.map(function (entry) {
|
|
1771
|
-
if (entry === null) {
|
|
1772
|
-
return null;
|
|
1773
|
-
}
|
|
1774
1923
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1775
1924
|
});
|
|
1776
1925
|
};
|
|
@@ -1788,13 +1937,27 @@ var serializeAws_restJson1MeetingFeaturesConfiguration = function (input, contex
|
|
|
1788
1937
|
var serializeAws_restJson1NotificationsConfiguration = function (input, context) {
|
|
1789
1938
|
return __assign(__assign(__assign({}, (input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn })), (input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn })), (input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }));
|
|
1790
1939
|
};
|
|
1940
|
+
var serializeAws_restJson1Tag = function (input, context) {
|
|
1941
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1942
|
+
};
|
|
1943
|
+
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
1944
|
+
return input
|
|
1945
|
+
.filter(function (e) { return e != null; })
|
|
1946
|
+
.map(function (entry) {
|
|
1947
|
+
return entry;
|
|
1948
|
+
});
|
|
1949
|
+
};
|
|
1950
|
+
var serializeAws_restJson1TagList = function (input, context) {
|
|
1951
|
+
return input
|
|
1952
|
+
.filter(function (e) { return e != null; })
|
|
1953
|
+
.map(function (entry) {
|
|
1954
|
+
return serializeAws_restJson1Tag(entry, context);
|
|
1955
|
+
});
|
|
1956
|
+
};
|
|
1791
1957
|
var serializeAws_restJson1TenantIdList = function (input, context) {
|
|
1792
1958
|
return input
|
|
1793
1959
|
.filter(function (e) { return e != null; })
|
|
1794
1960
|
.map(function (entry) {
|
|
1795
|
-
if (entry === null) {
|
|
1796
|
-
return null;
|
|
1797
|
-
}
|
|
1798
1961
|
return entry;
|
|
1799
1962
|
});
|
|
1800
1963
|
};
|
|
@@ -1875,6 +2038,7 @@ var deserializeAws_restJson1Meeting = function (output, context) {
|
|
|
1875
2038
|
? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
|
|
1876
2039
|
: undefined,
|
|
1877
2040
|
MediaRegion: __expectString(output.MediaRegion),
|
|
2041
|
+
MeetingArn: __expectString(output.MeetingArn),
|
|
1878
2042
|
MeetingFeatures: output.MeetingFeatures != null
|
|
1879
2043
|
? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
|
|
1880
2044
|
: undefined,
|
|
@@ -1889,6 +2053,23 @@ var deserializeAws_restJson1MeetingFeaturesConfiguration = function (output, con
|
|
|
1889
2053
|
Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
|
|
1890
2054
|
};
|
|
1891
2055
|
};
|
|
2056
|
+
var deserializeAws_restJson1Tag = function (output, context) {
|
|
2057
|
+
return {
|
|
2058
|
+
Key: __expectString(output.Key),
|
|
2059
|
+
Value: __expectString(output.Value),
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
var deserializeAws_restJson1TagList = function (output, context) {
|
|
2063
|
+
var retVal = (output || [])
|
|
2064
|
+
.filter(function (e) { return e != null; })
|
|
2065
|
+
.map(function (entry) {
|
|
2066
|
+
if (entry === null) {
|
|
2067
|
+
return null;
|
|
2068
|
+
}
|
|
2069
|
+
return deserializeAws_restJson1Tag(entry, context);
|
|
2070
|
+
});
|
|
2071
|
+
return retVal;
|
|
2072
|
+
};
|
|
1892
2073
|
var deserializeAws_restJson1TenantIdList = function (output, context) {
|
|
1893
2074
|
var retVal = (output || [])
|
|
1894
2075
|
.filter(function (e) { return e != null; })
|