@aws-sdk/client-chime-sdk-meetings 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +22 -16
- package/dist-es/ChimeSDKMeetings.js +66 -73
- package/dist-es/ChimeSDKMeetingsClient.js +22 -28
- package/dist-es/commands/BatchCreateAttendeeCommand.js +21 -28
- package/dist-es/commands/BatchUpdateAttendeeCapabilitiesExceptCommand.js +22 -29
- package/dist-es/commands/CreateAttendeeCommand.js +21 -28
- package/dist-es/commands/CreateMeetingCommand.js +21 -28
- package/dist-es/commands/CreateMeetingWithAttendeesCommand.js +21 -28
- package/dist-es/commands/DeleteAttendeeCommand.js +22 -29
- package/dist-es/commands/DeleteMeetingCommand.js +22 -29
- package/dist-es/commands/GetAttendeeCommand.js +21 -28
- package/dist-es/commands/GetMeetingCommand.js +21 -28
- package/dist-es/commands/ListAttendeesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartMeetingTranscriptionCommand.js +22 -29
- package/dist-es/commands/StopMeetingTranscriptionCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAttendeeCapabilitiesCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ChimeSDKMeetingsServiceException.js +5 -10
- package/dist-es/models/models_0.js +329 -217
- package/dist-es/pagination/ListAttendeesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1483 -1943
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1974 +1,1519 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
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
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
4
|
import { ChimeSDKMeetingsServiceException as __BaseException } from "../models/ChimeSDKMeetingsServiceException";
|
|
6
5
|
import { BadRequestException, ConflictException, ForbiddenException, LimitExceededException, NotFoundException, ResourceNotFoundException, ServiceFailureException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnauthorizedException, UnprocessableEntityException, } from "../models/models_0";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
query: query,
|
|
33
|
-
body: body,
|
|
34
|
-
})];
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}); };
|
|
38
|
-
export var serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
39
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
40
|
-
return __generator(this, function (_c) {
|
|
41
|
-
switch (_c.label) {
|
|
42
|
-
case 0: return [4, context.endpoint()];
|
|
43
|
-
case 1:
|
|
44
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
45
|
-
headers = {
|
|
46
|
-
"content-type": "application/json",
|
|
47
|
-
};
|
|
48
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
49
|
-
"/meetings/{MeetingId}/attendees/capabilities";
|
|
50
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
51
|
-
query = map({
|
|
52
|
-
operation: [, "batch-update-except"],
|
|
53
|
-
});
|
|
54
|
-
body = JSON.stringify(__assign(__assign({}, (input.Capabilities != null && {
|
|
55
|
-
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
56
|
-
})), (input.ExcludedAttendeeIds != null && {
|
|
57
|
-
ExcludedAttendeeIds: serializeAws_restJson1AttendeeIdsList(input.ExcludedAttendeeIds, context),
|
|
58
|
-
})));
|
|
59
|
-
return [2, new __HttpRequest({
|
|
60
|
-
protocol: protocol,
|
|
61
|
-
hostname: hostname,
|
|
62
|
-
port: port,
|
|
63
|
-
method: "PUT",
|
|
64
|
-
headers: headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
query: query,
|
|
67
|
-
body: body,
|
|
68
|
-
})];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}); };
|
|
72
|
-
export var serializeAws_restJson1CreateAttendeeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
74
|
-
return __generator(this, function (_c) {
|
|
75
|
-
switch (_c.label) {
|
|
76
|
-
case 0: return [4, context.endpoint()];
|
|
77
|
-
case 1:
|
|
78
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
79
|
-
headers = {
|
|
80
|
-
"content-type": "application/json",
|
|
81
|
-
};
|
|
82
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings/{MeetingId}/attendees";
|
|
83
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", function () { return input.MeetingId; }, "{MeetingId}", false);
|
|
84
|
-
body = JSON.stringify(__assign(__assign({}, (input.Capabilities != null && {
|
|
85
|
-
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
86
|
-
})), (input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId })));
|
|
87
|
-
return [2, new __HttpRequest({
|
|
88
|
-
protocol: protocol,
|
|
89
|
-
hostname: hostname,
|
|
90
|
-
port: port,
|
|
91
|
-
method: "POST",
|
|
92
|
-
headers: headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
body: body,
|
|
95
|
-
})];
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}); };
|
|
99
|
-
export var serializeAws_restJson1CreateMeetingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
101
|
-
var _c;
|
|
102
|
-
return __generator(this, function (_d) {
|
|
103
|
-
switch (_d.label) {
|
|
104
|
-
case 0: return [4, context.endpoint()];
|
|
105
|
-
case 1:
|
|
106
|
-
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
107
|
-
headers = {
|
|
108
|
-
"content-type": "application/json",
|
|
109
|
-
};
|
|
110
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
|
|
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 && {
|
|
112
|
-
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
113
|
-
})), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
114
|
-
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, 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) })));
|
|
116
|
-
return [2, new __HttpRequest({
|
|
117
|
-
protocol: protocol,
|
|
118
|
-
hostname: hostname,
|
|
119
|
-
port: port,
|
|
120
|
-
method: "POST",
|
|
121
|
-
headers: headers,
|
|
122
|
-
path: resolvedPath,
|
|
123
|
-
body: body,
|
|
124
|
-
})];
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}); };
|
|
128
|
-
export var serializeAws_restJson1CreateMeetingWithAttendeesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
130
|
-
var _c;
|
|
131
|
-
return __generator(this, function (_d) {
|
|
132
|
-
switch (_d.label) {
|
|
133
|
-
case 0: return [4, context.endpoint()];
|
|
134
|
-
case 1:
|
|
135
|
-
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
136
|
-
headers = {
|
|
137
|
-
"content-type": "application/json",
|
|
138
|
-
};
|
|
139
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
|
|
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 && {
|
|
144
|
-
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
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 && {
|
|
146
|
-
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
147
|
-
})), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
148
|
-
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, 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) })));
|
|
150
|
-
return [2, new __HttpRequest({
|
|
151
|
-
protocol: protocol,
|
|
152
|
-
hostname: hostname,
|
|
153
|
-
port: port,
|
|
154
|
-
method: "POST",
|
|
155
|
-
headers: headers,
|
|
156
|
-
path: resolvedPath,
|
|
157
|
-
query: query,
|
|
158
|
-
body: body,
|
|
159
|
-
})];
|
|
160
|
-
}
|
|
6
|
+
export const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context) => {
|
|
7
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
12
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
13
|
+
const query = map({
|
|
14
|
+
operation: [, "batch-create"],
|
|
15
|
+
});
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify({
|
|
18
|
+
...(input.Attendees != null && {
|
|
19
|
+
Attendees: serializeAws_restJson1CreateAttendeeRequestItemList(input.Attendees, context),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
return new __HttpRequest({
|
|
23
|
+
protocol,
|
|
24
|
+
hostname,
|
|
25
|
+
port,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers,
|
|
28
|
+
path: resolvedPath,
|
|
29
|
+
query,
|
|
30
|
+
body,
|
|
161
31
|
});
|
|
162
|
-
}
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
32
|
+
};
|
|
33
|
+
export const serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (input, context) => {
|
|
34
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
|
+
const headers = {
|
|
36
|
+
"content-type": "application/json",
|
|
37
|
+
};
|
|
38
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
39
|
+
"/meetings/{MeetingId}/attendees/capabilities";
|
|
40
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
41
|
+
const query = map({
|
|
42
|
+
operation: [, "batch-update-except"],
|
|
43
|
+
});
|
|
44
|
+
let body;
|
|
45
|
+
body = JSON.stringify({
|
|
46
|
+
...(input.Capabilities != null && {
|
|
47
|
+
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
48
|
+
}),
|
|
49
|
+
...(input.ExcludedAttendeeIds != null && {
|
|
50
|
+
ExcludedAttendeeIds: serializeAws_restJson1AttendeeIdsList(input.ExcludedAttendeeIds, context),
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
return new __HttpRequest({
|
|
54
|
+
protocol,
|
|
55
|
+
hostname,
|
|
56
|
+
port,
|
|
57
|
+
method: "PUT",
|
|
58
|
+
headers,
|
|
59
|
+
path: resolvedPath,
|
|
60
|
+
query,
|
|
61
|
+
body,
|
|
185
62
|
});
|
|
186
|
-
}
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
63
|
+
};
|
|
64
|
+
export const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
|
|
65
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
66
|
+
const headers = {
|
|
67
|
+
"content-type": "application/json",
|
|
68
|
+
};
|
|
69
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
70
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
71
|
+
let body;
|
|
72
|
+
body = JSON.stringify({
|
|
73
|
+
...(input.Capabilities != null && {
|
|
74
|
+
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
75
|
+
}),
|
|
76
|
+
...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
|
|
77
|
+
});
|
|
78
|
+
return new __HttpRequest({
|
|
79
|
+
protocol,
|
|
80
|
+
hostname,
|
|
81
|
+
port,
|
|
82
|
+
method: "POST",
|
|
83
|
+
headers,
|
|
84
|
+
path: resolvedPath,
|
|
85
|
+
body,
|
|
207
86
|
});
|
|
208
|
-
}
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
87
|
+
};
|
|
88
|
+
export const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
|
|
89
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
|
+
const headers = {
|
|
91
|
+
"content-type": "application/json",
|
|
92
|
+
};
|
|
93
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings";
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify({
|
|
96
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
97
|
+
...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
98
|
+
...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
|
|
99
|
+
...(input.MeetingFeatures != null && {
|
|
100
|
+
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
101
|
+
}),
|
|
102
|
+
...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
|
|
103
|
+
...(input.NotificationsConfiguration != null && {
|
|
104
|
+
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
105
|
+
}),
|
|
106
|
+
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
107
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
108
|
+
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
109
|
+
});
|
|
110
|
+
return new __HttpRequest({
|
|
111
|
+
protocol,
|
|
112
|
+
hostname,
|
|
113
|
+
port,
|
|
114
|
+
method: "POST",
|
|
115
|
+
headers,
|
|
116
|
+
path: resolvedPath,
|
|
117
|
+
body,
|
|
231
118
|
});
|
|
232
|
-
}
|
|
233
|
-
export
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
119
|
+
};
|
|
120
|
+
export const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, context) => {
|
|
121
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
122
|
+
const headers = {
|
|
123
|
+
"content-type": "application/json",
|
|
124
|
+
};
|
|
125
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings";
|
|
126
|
+
const query = map({
|
|
127
|
+
operation: [, "create-attendees"],
|
|
128
|
+
});
|
|
129
|
+
let body;
|
|
130
|
+
body = JSON.stringify({
|
|
131
|
+
...(input.Attendees != null && {
|
|
132
|
+
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
133
|
+
}),
|
|
134
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
135
|
+
...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
136
|
+
...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
|
|
137
|
+
...(input.MeetingFeatures != null && {
|
|
138
|
+
MeetingFeatures: serializeAws_restJson1MeetingFeaturesConfiguration(input.MeetingFeatures, context),
|
|
139
|
+
}),
|
|
140
|
+
...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
|
|
141
|
+
...(input.NotificationsConfiguration != null && {
|
|
142
|
+
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
143
|
+
}),
|
|
144
|
+
...(input.PrimaryMeetingId != null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
145
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
146
|
+
...(input.TenantIds != null && { TenantIds: serializeAws_restJson1TenantIdList(input.TenantIds, context) }),
|
|
147
|
+
});
|
|
148
|
+
return new __HttpRequest({
|
|
149
|
+
protocol,
|
|
150
|
+
hostname,
|
|
151
|
+
port,
|
|
152
|
+
method: "POST",
|
|
153
|
+
headers,
|
|
154
|
+
path: resolvedPath,
|
|
155
|
+
query,
|
|
156
|
+
body,
|
|
253
157
|
});
|
|
254
|
-
}
|
|
255
|
-
export
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
hostname: hostname,
|
|
272
|
-
port: port,
|
|
273
|
-
method: "GET",
|
|
274
|
-
headers: headers,
|
|
275
|
-
path: resolvedPath,
|
|
276
|
-
query: query,
|
|
277
|
-
body: body,
|
|
278
|
-
})];
|
|
279
|
-
}
|
|
158
|
+
};
|
|
159
|
+
export const serializeAws_restJson1DeleteAttendeeCommand = async (input, context) => {
|
|
160
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
|
+
const headers = {};
|
|
162
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
163
|
+
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
164
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
165
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
166
|
+
let body;
|
|
167
|
+
return new __HttpRequest({
|
|
168
|
+
protocol,
|
|
169
|
+
hostname,
|
|
170
|
+
port,
|
|
171
|
+
method: "DELETE",
|
|
172
|
+
headers,
|
|
173
|
+
path: resolvedPath,
|
|
174
|
+
body,
|
|
280
175
|
});
|
|
281
|
-
}
|
|
282
|
-
export
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
hostname: hostname,
|
|
297
|
-
port: port,
|
|
298
|
-
method: "GET",
|
|
299
|
-
headers: headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
query: query,
|
|
302
|
-
body: body,
|
|
303
|
-
})];
|
|
304
|
-
}
|
|
176
|
+
};
|
|
177
|
+
export const serializeAws_restJson1DeleteMeetingCommand = async (input, context) => {
|
|
178
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
|
+
const headers = {};
|
|
180
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
181
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
182
|
+
let body;
|
|
183
|
+
return new __HttpRequest({
|
|
184
|
+
protocol,
|
|
185
|
+
hostname,
|
|
186
|
+
port,
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
headers,
|
|
189
|
+
path: resolvedPath,
|
|
190
|
+
body,
|
|
305
191
|
});
|
|
306
|
-
}
|
|
307
|
-
export
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
|
|
324
|
-
})));
|
|
325
|
-
return [2, new __HttpRequest({
|
|
326
|
-
protocol: protocol,
|
|
327
|
-
hostname: hostname,
|
|
328
|
-
port: port,
|
|
329
|
-
method: "POST",
|
|
330
|
-
headers: headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
query: query,
|
|
333
|
-
body: body,
|
|
334
|
-
})];
|
|
335
|
-
}
|
|
192
|
+
};
|
|
193
|
+
export const serializeAws_restJson1GetAttendeeCommand = async (input, context) => {
|
|
194
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
|
+
const headers = {};
|
|
196
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
197
|
+
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
198
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
199
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
200
|
+
let body;
|
|
201
|
+
return new __HttpRequest({
|
|
202
|
+
protocol,
|
|
203
|
+
hostname,
|
|
204
|
+
port,
|
|
205
|
+
method: "GET",
|
|
206
|
+
headers,
|
|
207
|
+
path: resolvedPath,
|
|
208
|
+
body,
|
|
336
209
|
});
|
|
337
|
-
}
|
|
338
|
-
export
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
}
|
|
210
|
+
};
|
|
211
|
+
export const serializeAws_restJson1GetMeetingCommand = async (input, context) => {
|
|
212
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
213
|
+
const headers = {};
|
|
214
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
215
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
216
|
+
let body;
|
|
217
|
+
return new __HttpRequest({
|
|
218
|
+
protocol,
|
|
219
|
+
hostname,
|
|
220
|
+
port,
|
|
221
|
+
method: "GET",
|
|
222
|
+
headers,
|
|
223
|
+
path: resolvedPath,
|
|
224
|
+
body,
|
|
362
225
|
});
|
|
363
|
-
}
|
|
364
|
-
export
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
method: "POST",
|
|
384
|
-
headers: headers,
|
|
385
|
-
path: resolvedPath,
|
|
386
|
-
query: query,
|
|
387
|
-
body: body,
|
|
388
|
-
})];
|
|
389
|
-
}
|
|
226
|
+
};
|
|
227
|
+
export const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
|
|
228
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
|
+
const headers = {};
|
|
230
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
231
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
232
|
+
const query = map({
|
|
233
|
+
"next-token": [, input.NextToken],
|
|
234
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
235
|
+
});
|
|
236
|
+
let body;
|
|
237
|
+
return new __HttpRequest({
|
|
238
|
+
protocol,
|
|
239
|
+
hostname,
|
|
240
|
+
port,
|
|
241
|
+
method: "GET",
|
|
242
|
+
headers,
|
|
243
|
+
path: resolvedPath,
|
|
244
|
+
query,
|
|
245
|
+
body,
|
|
390
246
|
});
|
|
391
|
-
}
|
|
392
|
-
export
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
hostname: hostname,
|
|
410
|
-
port: port,
|
|
411
|
-
method: "POST",
|
|
412
|
-
headers: headers,
|
|
413
|
-
path: resolvedPath,
|
|
414
|
-
query: query,
|
|
415
|
-
body: body,
|
|
416
|
-
})];
|
|
417
|
-
}
|
|
247
|
+
};
|
|
248
|
+
export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
249
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
|
+
const headers = {};
|
|
251
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
252
|
+
const query = map({
|
|
253
|
+
arn: [, input.ResourceARN],
|
|
254
|
+
});
|
|
255
|
+
let body;
|
|
256
|
+
return new __HttpRequest({
|
|
257
|
+
protocol,
|
|
258
|
+
hostname,
|
|
259
|
+
port,
|
|
260
|
+
method: "GET",
|
|
261
|
+
headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
query,
|
|
264
|
+
body,
|
|
418
265
|
});
|
|
419
|
-
}
|
|
420
|
-
export
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
})];
|
|
446
|
-
}
|
|
266
|
+
};
|
|
267
|
+
export const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, context) => {
|
|
268
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
|
+
const headers = {
|
|
270
|
+
"content-type": "application/json",
|
|
271
|
+
};
|
|
272
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
273
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
274
|
+
const query = map({
|
|
275
|
+
operation: [, "start"],
|
|
276
|
+
});
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify({
|
|
279
|
+
...(input.TranscriptionConfiguration != null && {
|
|
280
|
+
TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
|
|
281
|
+
}),
|
|
282
|
+
});
|
|
283
|
+
return new __HttpRequest({
|
|
284
|
+
protocol,
|
|
285
|
+
hostname,
|
|
286
|
+
port,
|
|
287
|
+
method: "POST",
|
|
288
|
+
headers,
|
|
289
|
+
path: resolvedPath,
|
|
290
|
+
query,
|
|
291
|
+
body,
|
|
447
292
|
});
|
|
448
|
-
}
|
|
449
|
-
export
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}
|
|
468
|
-
if (data.Errors != null) {
|
|
469
|
-
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
470
|
-
}
|
|
471
|
-
return [2, contents];
|
|
472
|
-
}
|
|
293
|
+
};
|
|
294
|
+
export const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, context) => {
|
|
295
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
296
|
+
const headers = {};
|
|
297
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
299
|
+
const query = map({
|
|
300
|
+
operation: [, "stop"],
|
|
301
|
+
});
|
|
302
|
+
let body;
|
|
303
|
+
return new __HttpRequest({
|
|
304
|
+
protocol,
|
|
305
|
+
hostname,
|
|
306
|
+
port,
|
|
307
|
+
method: "POST",
|
|
308
|
+
headers,
|
|
309
|
+
path: resolvedPath,
|
|
310
|
+
query,
|
|
311
|
+
body,
|
|
473
312
|
});
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException": return [3, 10];
|
|
499
|
-
case "ServiceUnavailableException": return [3, 12];
|
|
500
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": return [3, 12];
|
|
501
|
-
case "ThrottlingException": return [3, 14];
|
|
502
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException": return [3, 14];
|
|
503
|
-
case "UnauthorizedException": return [3, 16];
|
|
504
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException": return [3, 16];
|
|
505
|
-
case "UnprocessableEntityException": return [3, 18];
|
|
506
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException": return [3, 18];
|
|
507
|
-
}
|
|
508
|
-
return [3, 20];
|
|
509
|
-
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
510
|
-
case 3: throw _d.sent();
|
|
511
|
-
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
512
|
-
case 5: throw _d.sent();
|
|
513
|
-
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
514
|
-
case 7: throw _d.sent();
|
|
515
|
-
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
516
|
-
case 9: throw _d.sent();
|
|
517
|
-
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
518
|
-
case 11: throw _d.sent();
|
|
519
|
-
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
520
|
-
case 13: throw _d.sent();
|
|
521
|
-
case 14: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
522
|
-
case 15: throw _d.sent();
|
|
523
|
-
case 16: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
524
|
-
case 17: throw _d.sent();
|
|
525
|
-
case 18: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
526
|
-
case 19: throw _d.sent();
|
|
527
|
-
case 20:
|
|
528
|
-
parsedBody = parsedOutput.body;
|
|
529
|
-
throwDefaultError({
|
|
530
|
-
output: output,
|
|
531
|
-
parsedBody: parsedBody,
|
|
532
|
-
exceptionCtor: __BaseException,
|
|
533
|
-
errorCode: errorCode,
|
|
534
|
-
});
|
|
535
|
-
_d.label = 21;
|
|
536
|
-
case 21: return [2];
|
|
537
|
-
}
|
|
313
|
+
};
|
|
314
|
+
export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
315
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
316
|
+
const headers = {
|
|
317
|
+
"content-type": "application/json",
|
|
318
|
+
};
|
|
319
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
320
|
+
const query = map({
|
|
321
|
+
operation: [, "tag-resource"],
|
|
322
|
+
});
|
|
323
|
+
let body;
|
|
324
|
+
body = JSON.stringify({
|
|
325
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
326
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
327
|
+
});
|
|
328
|
+
return new __HttpRequest({
|
|
329
|
+
protocol,
|
|
330
|
+
hostname,
|
|
331
|
+
port,
|
|
332
|
+
method: "POST",
|
|
333
|
+
headers,
|
|
334
|
+
path: resolvedPath,
|
|
335
|
+
query,
|
|
336
|
+
body,
|
|
538
337
|
});
|
|
539
|
-
}
|
|
540
|
-
export
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
338
|
+
};
|
|
339
|
+
export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
340
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
|
+
const headers = {
|
|
342
|
+
"content-type": "application/json",
|
|
343
|
+
};
|
|
344
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
345
|
+
const query = map({
|
|
346
|
+
operation: [, "untag-resource"],
|
|
347
|
+
});
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify({
|
|
350
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
351
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
352
|
+
});
|
|
353
|
+
return new __HttpRequest({
|
|
354
|
+
protocol,
|
|
355
|
+
hostname,
|
|
356
|
+
port,
|
|
357
|
+
method: "POST",
|
|
358
|
+
headers,
|
|
359
|
+
path: resolvedPath,
|
|
360
|
+
query,
|
|
361
|
+
body,
|
|
556
362
|
});
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": return [3, 10];
|
|
582
|
-
case "UnauthorizedException": return [3, 12];
|
|
583
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException": return [3, 12];
|
|
584
|
-
}
|
|
585
|
-
return [3, 14];
|
|
586
|
-
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
587
|
-
case 3: throw _d.sent();
|
|
588
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
589
|
-
case 5: throw _d.sent();
|
|
590
|
-
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
591
|
-
case 7: throw _d.sent();
|
|
592
|
-
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
593
|
-
case 9: throw _d.sent();
|
|
594
|
-
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
595
|
-
case 11: throw _d.sent();
|
|
596
|
-
case 12: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
597
|
-
case 13: throw _d.sent();
|
|
598
|
-
case 14:
|
|
599
|
-
parsedBody = parsedOutput.body;
|
|
600
|
-
throwDefaultError({
|
|
601
|
-
output: output,
|
|
602
|
-
parsedBody: parsedBody,
|
|
603
|
-
exceptionCtor: __BaseException,
|
|
604
|
-
errorCode: errorCode,
|
|
605
|
-
});
|
|
606
|
-
_d.label = 15;
|
|
607
|
-
case 15: return [2];
|
|
608
|
-
}
|
|
363
|
+
};
|
|
364
|
+
export const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, context) => {
|
|
365
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
366
|
+
const headers = {
|
|
367
|
+
"content-type": "application/json",
|
|
368
|
+
};
|
|
369
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
370
|
+
"/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities";
|
|
371
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
372
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify({
|
|
375
|
+
...(input.Capabilities != null && {
|
|
376
|
+
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
377
|
+
}),
|
|
378
|
+
});
|
|
379
|
+
return new __HttpRequest({
|
|
380
|
+
protocol,
|
|
381
|
+
hostname,
|
|
382
|
+
port,
|
|
383
|
+
method: "PUT",
|
|
384
|
+
headers,
|
|
385
|
+
path: resolvedPath,
|
|
386
|
+
body,
|
|
609
387
|
});
|
|
610
|
-
}
|
|
611
|
-
export
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
return [2, deserializeAws_restJson1CreateAttendeeCommandError(output, context)];
|
|
618
|
-
}
|
|
619
|
-
contents = map({
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
});
|
|
622
|
-
_a = __expectNonNull;
|
|
623
|
-
_b = __expectObject;
|
|
624
|
-
return [4, parseBody(output.body, context)];
|
|
625
|
-
case 1:
|
|
626
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
627
|
-
if (data.Attendee != null) {
|
|
628
|
-
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
629
|
-
}
|
|
630
|
-
return [2, contents];
|
|
631
|
-
}
|
|
388
|
+
};
|
|
389
|
+
export const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, context) => {
|
|
390
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
391
|
+
return deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context);
|
|
392
|
+
}
|
|
393
|
+
const contents = map({
|
|
394
|
+
$metadata: deserializeMetadata(output),
|
|
632
395
|
});
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
errorCode: errorCode,
|
|
693
|
-
});
|
|
694
|
-
_d.label = 21;
|
|
695
|
-
case 21: return [2];
|
|
696
|
-
}
|
|
396
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
397
|
+
if (data.Attendees != null) {
|
|
398
|
+
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
399
|
+
}
|
|
400
|
+
if (data.Errors != null) {
|
|
401
|
+
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
402
|
+
}
|
|
403
|
+
return contents;
|
|
404
|
+
};
|
|
405
|
+
const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, context) => {
|
|
406
|
+
const parsedOutput = {
|
|
407
|
+
...output,
|
|
408
|
+
body: await parseErrorBody(output.body, context),
|
|
409
|
+
};
|
|
410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
+
switch (errorCode) {
|
|
412
|
+
case "BadRequestException":
|
|
413
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
414
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
415
|
+
case "ForbiddenException":
|
|
416
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
417
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
418
|
+
case "LimitExceededException":
|
|
419
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
420
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
421
|
+
case "NotFoundException":
|
|
422
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
423
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
424
|
+
case "ServiceFailureException":
|
|
425
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
426
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
427
|
+
case "ServiceUnavailableException":
|
|
428
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
429
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
430
|
+
case "ThrottlingException":
|
|
431
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
432
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
433
|
+
case "UnauthorizedException":
|
|
434
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
435
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
436
|
+
case "UnprocessableEntityException":
|
|
437
|
+
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
438
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
439
|
+
default:
|
|
440
|
+
const parsedBody = parsedOutput.body;
|
|
441
|
+
throwDefaultError({
|
|
442
|
+
output,
|
|
443
|
+
parsedBody,
|
|
444
|
+
exceptionCtor: __BaseException,
|
|
445
|
+
errorCode,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
export const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
|
|
450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
451
|
+
return deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError(output, context);
|
|
452
|
+
}
|
|
453
|
+
const contents = map({
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
697
455
|
});
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
456
|
+
await collectBody(output.body, context);
|
|
457
|
+
return contents;
|
|
458
|
+
};
|
|
459
|
+
const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError = async (output, context) => {
|
|
460
|
+
const parsedOutput = {
|
|
461
|
+
...output,
|
|
462
|
+
body: await parseErrorBody(output.body, context),
|
|
463
|
+
};
|
|
464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
+
switch (errorCode) {
|
|
466
|
+
case "BadRequestException":
|
|
467
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
468
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
469
|
+
case "ConflictException":
|
|
470
|
+
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
471
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
472
|
+
case "ForbiddenException":
|
|
473
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
474
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
475
|
+
case "NotFoundException":
|
|
476
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
477
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
478
|
+
case "ServiceUnavailableException":
|
|
479
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
480
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
481
|
+
case "UnauthorizedException":
|
|
482
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
483
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
484
|
+
default:
|
|
485
|
+
const parsedBody = parsedOutput.body;
|
|
486
|
+
throwDefaultError({
|
|
487
|
+
output,
|
|
488
|
+
parsedBody,
|
|
489
|
+
exceptionCtor: __BaseException,
|
|
490
|
+
errorCode,
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
export const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
|
|
495
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
+
return deserializeAws_restJson1CreateAttendeeCommandError(output, context);
|
|
497
|
+
}
|
|
498
|
+
const contents = map({
|
|
499
|
+
$metadata: deserializeMetadata(output),
|
|
720
500
|
});
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
return
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
501
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
502
|
+
if (data.Attendee != null) {
|
|
503
|
+
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
504
|
+
}
|
|
505
|
+
return contents;
|
|
506
|
+
};
|
|
507
|
+
const deserializeAws_restJson1CreateAttendeeCommandError = async (output, context) => {
|
|
508
|
+
const parsedOutput = {
|
|
509
|
+
...output,
|
|
510
|
+
body: await parseErrorBody(output.body, context),
|
|
511
|
+
};
|
|
512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
+
switch (errorCode) {
|
|
514
|
+
case "BadRequestException":
|
|
515
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
516
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "ForbiddenException":
|
|
518
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
519
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
520
|
+
case "LimitExceededException":
|
|
521
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
522
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
523
|
+
case "NotFoundException":
|
|
524
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
525
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
526
|
+
case "ServiceFailureException":
|
|
527
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
528
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "ServiceUnavailableException":
|
|
530
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
531
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "ThrottlingException":
|
|
533
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
534
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
535
|
+
case "UnauthorizedException":
|
|
536
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
537
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
538
|
+
case "UnprocessableEntityException":
|
|
539
|
+
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
540
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
541
|
+
default:
|
|
542
|
+
const parsedBody = parsedOutput.body;
|
|
543
|
+
throwDefaultError({
|
|
544
|
+
output,
|
|
545
|
+
parsedBody,
|
|
546
|
+
exceptionCtor: __BaseException,
|
|
547
|
+
errorCode,
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
export const deserializeAws_restJson1CreateMeetingCommand = async (output, context) => {
|
|
552
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
+
return deserializeAws_restJson1CreateMeetingCommandError(output, context);
|
|
554
|
+
}
|
|
555
|
+
const contents = map({
|
|
556
|
+
$metadata: deserializeMetadata(output),
|
|
777
557
|
});
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
558
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
559
|
+
if (data.Meeting != null) {
|
|
560
|
+
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
561
|
+
}
|
|
562
|
+
return contents;
|
|
563
|
+
};
|
|
564
|
+
const deserializeAws_restJson1CreateMeetingCommandError = async (output, context) => {
|
|
565
|
+
const parsedOutput = {
|
|
566
|
+
...output,
|
|
567
|
+
body: await parseErrorBody(output.body, context),
|
|
568
|
+
};
|
|
569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
+
switch (errorCode) {
|
|
571
|
+
case "BadRequestException":
|
|
572
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
573
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "ForbiddenException":
|
|
575
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
576
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
577
|
+
case "LimitExceededException":
|
|
578
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
579
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
580
|
+
case "ServiceFailureException":
|
|
581
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
582
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
583
|
+
case "ServiceUnavailableException":
|
|
584
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
585
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
586
|
+
case "ThrottlingException":
|
|
587
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
588
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
589
|
+
case "UnauthorizedException":
|
|
590
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
591
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
592
|
+
default:
|
|
593
|
+
const parsedBody = parsedOutput.body;
|
|
594
|
+
throwDefaultError({
|
|
595
|
+
output,
|
|
596
|
+
parsedBody,
|
|
597
|
+
exceptionCtor: __BaseException,
|
|
598
|
+
errorCode,
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
export const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
+
return deserializeAws_restJson1CreateMeetingWithAttendeesCommandError(output, context);
|
|
605
|
+
}
|
|
606
|
+
const contents = map({
|
|
607
|
+
$metadata: deserializeMetadata(output),
|
|
806
608
|
});
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
609
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
+
if (data.Attendees != null) {
|
|
611
|
+
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
612
|
+
}
|
|
613
|
+
if (data.Errors != null) {
|
|
614
|
+
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
615
|
+
}
|
|
616
|
+
if (data.Meeting != null) {
|
|
617
|
+
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
618
|
+
}
|
|
619
|
+
return contents;
|
|
620
|
+
};
|
|
621
|
+
const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (output, context) => {
|
|
622
|
+
const parsedOutput = {
|
|
623
|
+
...output,
|
|
624
|
+
body: await parseErrorBody(output.body, context),
|
|
625
|
+
};
|
|
626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
switch (errorCode) {
|
|
628
|
+
case "BadRequestException":
|
|
629
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
630
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
631
|
+
case "ForbiddenException":
|
|
632
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
633
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "LimitExceededException":
|
|
635
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
636
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "ServiceFailureException":
|
|
638
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
639
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "ServiceUnavailableException":
|
|
641
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
642
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
643
|
+
case "ThrottlingException":
|
|
644
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
645
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
646
|
+
case "UnauthorizedException":
|
|
647
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
648
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
649
|
+
default:
|
|
650
|
+
const parsedBody = parsedOutput.body;
|
|
651
|
+
throwDefaultError({
|
|
652
|
+
output,
|
|
653
|
+
parsedBody,
|
|
654
|
+
exceptionCtor: __BaseException,
|
|
655
|
+
errorCode,
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
export const deserializeAws_restJson1DeleteAttendeeCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
661
|
+
return deserializeAws_restJson1DeleteAttendeeCommandError(output, context);
|
|
662
|
+
}
|
|
663
|
+
const contents = map({
|
|
664
|
+
$metadata: deserializeMetadata(output),
|
|
863
665
|
});
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
666
|
+
await collectBody(output.body, context);
|
|
667
|
+
return contents;
|
|
668
|
+
};
|
|
669
|
+
const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, context) => {
|
|
670
|
+
const parsedOutput = {
|
|
671
|
+
...output,
|
|
672
|
+
body: await parseErrorBody(output.body, context),
|
|
673
|
+
};
|
|
674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
|
+
switch (errorCode) {
|
|
676
|
+
case "BadRequestException":
|
|
677
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
678
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
679
|
+
case "ForbiddenException":
|
|
680
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
681
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
682
|
+
case "NotFoundException":
|
|
683
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
684
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
685
|
+
case "ServiceFailureException":
|
|
686
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
687
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
688
|
+
case "ServiceUnavailableException":
|
|
689
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
690
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
691
|
+
case "ThrottlingException":
|
|
692
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
693
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
694
|
+
case "UnauthorizedException":
|
|
695
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
696
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
697
|
+
default:
|
|
698
|
+
const parsedBody = parsedOutput.body;
|
|
699
|
+
throwDefaultError({
|
|
700
|
+
output,
|
|
701
|
+
parsedBody,
|
|
702
|
+
exceptionCtor: __BaseException,
|
|
703
|
+
errorCode,
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
export const deserializeAws_restJson1DeleteMeetingCommand = async (output, context) => {
|
|
708
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
709
|
+
return deserializeAws_restJson1DeleteMeetingCommandError(output, context);
|
|
710
|
+
}
|
|
711
|
+
const contents = map({
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
881
713
|
});
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
throwDefaultError({
|
|
930
|
-
output: output,
|
|
931
|
-
parsedBody: parsedBody,
|
|
932
|
-
exceptionCtor: __BaseException,
|
|
933
|
-
errorCode: errorCode,
|
|
934
|
-
});
|
|
935
|
-
_d.label = 17;
|
|
936
|
-
case 17: return [2];
|
|
937
|
-
}
|
|
714
|
+
await collectBody(output.body, context);
|
|
715
|
+
return contents;
|
|
716
|
+
};
|
|
717
|
+
const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context) => {
|
|
718
|
+
const parsedOutput = {
|
|
719
|
+
...output,
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
|
+
};
|
|
722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
+
switch (errorCode) {
|
|
724
|
+
case "BadRequestException":
|
|
725
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
726
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
727
|
+
case "ForbiddenException":
|
|
728
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
729
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
730
|
+
case "NotFoundException":
|
|
731
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
732
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
733
|
+
case "ServiceFailureException":
|
|
734
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
735
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
736
|
+
case "ServiceUnavailableException":
|
|
737
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
738
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
739
|
+
case "ThrottlingException":
|
|
740
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
741
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "UnauthorizedException":
|
|
743
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
744
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
745
|
+
default:
|
|
746
|
+
const parsedBody = parsedOutput.body;
|
|
747
|
+
throwDefaultError({
|
|
748
|
+
output,
|
|
749
|
+
parsedBody,
|
|
750
|
+
exceptionCtor: __BaseException,
|
|
751
|
+
errorCode,
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
export const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
756
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
+
return deserializeAws_restJson1GetAttendeeCommandError(output, context);
|
|
758
|
+
}
|
|
759
|
+
const contents = map({
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
938
761
|
});
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
762
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
763
|
+
if (data.Attendee != null) {
|
|
764
|
+
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
765
|
+
}
|
|
766
|
+
return contents;
|
|
767
|
+
};
|
|
768
|
+
const deserializeAws_restJson1GetAttendeeCommandError = async (output, context) => {
|
|
769
|
+
const parsedOutput = {
|
|
770
|
+
...output,
|
|
771
|
+
body: await parseErrorBody(output.body, context),
|
|
772
|
+
};
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
switch (errorCode) {
|
|
775
|
+
case "BadRequestException":
|
|
776
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
777
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
778
|
+
case "ForbiddenException":
|
|
779
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
780
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
781
|
+
case "NotFoundException":
|
|
782
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
783
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
784
|
+
case "ServiceFailureException":
|
|
785
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
786
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
787
|
+
case "ServiceUnavailableException":
|
|
788
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
789
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
790
|
+
case "ThrottlingException":
|
|
791
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
792
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
793
|
+
case "UnauthorizedException":
|
|
794
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
795
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
796
|
+
default:
|
|
797
|
+
const parsedBody = parsedOutput.body;
|
|
798
|
+
throwDefaultError({
|
|
799
|
+
output,
|
|
800
|
+
parsedBody,
|
|
801
|
+
exceptionCtor: __BaseException,
|
|
802
|
+
errorCode,
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
export const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
807
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
808
|
+
return deserializeAws_restJson1GetMeetingCommandError(output, context);
|
|
809
|
+
}
|
|
810
|
+
const contents = map({
|
|
811
|
+
$metadata: deserializeMetadata(output),
|
|
956
812
|
});
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
return
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
exceptionCtor: __BaseException,
|
|
1008
|
-
errorCode: errorCode,
|
|
1009
|
-
});
|
|
1010
|
-
_d.label = 17;
|
|
1011
|
-
case 17: return [2];
|
|
1012
|
-
}
|
|
813
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
814
|
+
if (data.Meeting != null) {
|
|
815
|
+
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
816
|
+
}
|
|
817
|
+
return contents;
|
|
818
|
+
};
|
|
819
|
+
const deserializeAws_restJson1GetMeetingCommandError = async (output, context) => {
|
|
820
|
+
const parsedOutput = {
|
|
821
|
+
...output,
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
|
+
};
|
|
824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
|
+
switch (errorCode) {
|
|
826
|
+
case "BadRequestException":
|
|
827
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
828
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
829
|
+
case "ForbiddenException":
|
|
830
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
831
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
832
|
+
case "NotFoundException":
|
|
833
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
834
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
835
|
+
case "ServiceFailureException":
|
|
836
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
837
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
838
|
+
case "ServiceUnavailableException":
|
|
839
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
840
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
841
|
+
case "ThrottlingException":
|
|
842
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
843
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
844
|
+
case "UnauthorizedException":
|
|
845
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
846
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
847
|
+
default:
|
|
848
|
+
const parsedBody = parsedOutput.body;
|
|
849
|
+
throwDefaultError({
|
|
850
|
+
output,
|
|
851
|
+
parsedBody,
|
|
852
|
+
exceptionCtor: __BaseException,
|
|
853
|
+
errorCode,
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
export const deserializeAws_restJson1ListAttendeesCommand = async (output, context) => {
|
|
858
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
+
return deserializeAws_restJson1ListAttendeesCommandError(output, context);
|
|
860
|
+
}
|
|
861
|
+
const contents = map({
|
|
862
|
+
$metadata: deserializeMetadata(output),
|
|
1013
863
|
});
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
864
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
865
|
+
if (data.Attendees != null) {
|
|
866
|
+
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
867
|
+
}
|
|
868
|
+
if (data.NextToken != null) {
|
|
869
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
870
|
+
}
|
|
871
|
+
return contents;
|
|
872
|
+
};
|
|
873
|
+
const deserializeAws_restJson1ListAttendeesCommandError = async (output, context) => {
|
|
874
|
+
const parsedOutput = {
|
|
875
|
+
...output,
|
|
876
|
+
body: await parseErrorBody(output.body, context),
|
|
877
|
+
};
|
|
878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
+
switch (errorCode) {
|
|
880
|
+
case "BadRequestException":
|
|
881
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
882
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
883
|
+
case "ForbiddenException":
|
|
884
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
885
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
886
|
+
case "NotFoundException":
|
|
887
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
888
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
889
|
+
case "ServiceFailureException":
|
|
890
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
891
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
892
|
+
case "ServiceUnavailableException":
|
|
893
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
894
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
895
|
+
case "ThrottlingException":
|
|
896
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
897
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
898
|
+
case "UnauthorizedException":
|
|
899
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
900
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
901
|
+
default:
|
|
902
|
+
const parsedBody = parsedOutput.body;
|
|
903
|
+
throwDefaultError({
|
|
904
|
+
output,
|
|
905
|
+
parsedBody,
|
|
906
|
+
exceptionCtor: __BaseException,
|
|
907
|
+
errorCode,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
914
|
+
}
|
|
915
|
+
const contents = map({
|
|
916
|
+
$metadata: deserializeMetadata(output),
|
|
1036
917
|
});
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
case 3: throw _d.sent();
|
|
1070
|
-
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1071
|
-
case 5: throw _d.sent();
|
|
1072
|
-
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1073
|
-
case 7: throw _d.sent();
|
|
1074
|
-
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1075
|
-
case 9: throw _d.sent();
|
|
1076
|
-
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1077
|
-
case 11: throw _d.sent();
|
|
1078
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1079
|
-
case 13: throw _d.sent();
|
|
1080
|
-
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1081
|
-
case 15: throw _d.sent();
|
|
1082
|
-
case 16:
|
|
1083
|
-
parsedBody = parsedOutput.body;
|
|
1084
|
-
throwDefaultError({
|
|
1085
|
-
output: output,
|
|
1086
|
-
parsedBody: parsedBody,
|
|
1087
|
-
exceptionCtor: __BaseException,
|
|
1088
|
-
errorCode: errorCode,
|
|
1089
|
-
});
|
|
1090
|
-
_d.label = 17;
|
|
1091
|
-
case 17: return [2];
|
|
1092
|
-
}
|
|
918
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
919
|
+
if (data.Tags != null) {
|
|
920
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
921
|
+
}
|
|
922
|
+
return contents;
|
|
923
|
+
};
|
|
924
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
925
|
+
const parsedOutput = {
|
|
926
|
+
...output,
|
|
927
|
+
body: await parseErrorBody(output.body, context),
|
|
928
|
+
};
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
+
switch (errorCode) {
|
|
931
|
+
case "ResourceNotFoundException":
|
|
932
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
933
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
934
|
+
default:
|
|
935
|
+
const parsedBody = parsedOutput.body;
|
|
936
|
+
throwDefaultError({
|
|
937
|
+
output,
|
|
938
|
+
parsedBody,
|
|
939
|
+
exceptionCtor: __BaseException,
|
|
940
|
+
errorCode,
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
export const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return deserializeAws_restJson1StartMeetingTranscriptionCommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = map({
|
|
949
|
+
$metadata: deserializeMetadata(output),
|
|
1093
950
|
});
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
951
|
+
await collectBody(output.body, context);
|
|
952
|
+
return contents;
|
|
953
|
+
};
|
|
954
|
+
const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (output, context) => {
|
|
955
|
+
const parsedOutput = {
|
|
956
|
+
...output,
|
|
957
|
+
body: await parseErrorBody(output.body, context),
|
|
958
|
+
};
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
+
switch (errorCode) {
|
|
961
|
+
case "BadRequestException":
|
|
962
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
963
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
964
|
+
case "ForbiddenException":
|
|
965
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
966
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
967
|
+
case "LimitExceededException":
|
|
968
|
+
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
|
|
969
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
970
|
+
case "NotFoundException":
|
|
971
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
972
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
973
|
+
case "ServiceFailureException":
|
|
974
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
975
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
976
|
+
case "ServiceUnavailableException":
|
|
977
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
978
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
979
|
+
case "ThrottlingException":
|
|
980
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
981
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
982
|
+
case "UnauthorizedException":
|
|
983
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
984
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
985
|
+
case "UnprocessableEntityException":
|
|
986
|
+
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
987
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
988
|
+
default:
|
|
989
|
+
const parsedBody = parsedOutput.body;
|
|
990
|
+
throwDefaultError({
|
|
991
|
+
output,
|
|
992
|
+
parsedBody,
|
|
993
|
+
exceptionCtor: __BaseException,
|
|
994
|
+
errorCode,
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
export const deserializeAws_restJson1StopMeetingTranscriptionCommand = async (output, context) => {
|
|
999
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
+
return deserializeAws_restJson1StopMeetingTranscriptionCommandError(output, context);
|
|
1001
|
+
}
|
|
1002
|
+
const contents = map({
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1116
1004
|
});
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
exceptionCtor: __BaseException,
|
|
1168
|
-
errorCode: errorCode,
|
|
1169
|
-
});
|
|
1170
|
-
_d.label = 17;
|
|
1171
|
-
case 17: return [2];
|
|
1172
|
-
}
|
|
1005
|
+
await collectBody(output.body, context);
|
|
1006
|
+
return contents;
|
|
1007
|
+
};
|
|
1008
|
+
const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (output, context) => {
|
|
1009
|
+
const parsedOutput = {
|
|
1010
|
+
...output,
|
|
1011
|
+
body: await parseErrorBody(output.body, context),
|
|
1012
|
+
};
|
|
1013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
+
switch (errorCode) {
|
|
1015
|
+
case "BadRequestException":
|
|
1016
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1017
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1018
|
+
case "ForbiddenException":
|
|
1019
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
1020
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1021
|
+
case "NotFoundException":
|
|
1022
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
1023
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1024
|
+
case "ServiceFailureException":
|
|
1025
|
+
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
|
|
1026
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1027
|
+
case "ServiceUnavailableException":
|
|
1028
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
1029
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1030
|
+
case "ThrottlingException":
|
|
1031
|
+
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
|
|
1032
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1033
|
+
case "UnauthorizedException":
|
|
1034
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1035
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1036
|
+
case "UnprocessableEntityException":
|
|
1037
|
+
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException":
|
|
1038
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1039
|
+
default:
|
|
1040
|
+
const parsedBody = parsedOutput.body;
|
|
1041
|
+
throwDefaultError({
|
|
1042
|
+
output,
|
|
1043
|
+
parsedBody,
|
|
1044
|
+
exceptionCtor: __BaseException,
|
|
1045
|
+
errorCode,
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1050
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1051
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1052
|
+
}
|
|
1053
|
+
const contents = map({
|
|
1054
|
+
$metadata: deserializeMetadata(output),
|
|
1173
1055
|
});
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1056
|
+
await collectBody(output.body, context);
|
|
1057
|
+
return contents;
|
|
1058
|
+
};
|
|
1059
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1060
|
+
const parsedOutput = {
|
|
1061
|
+
...output,
|
|
1062
|
+
body: await parseErrorBody(output.body, context),
|
|
1063
|
+
};
|
|
1064
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
+
switch (errorCode) {
|
|
1066
|
+
case "BadRequestException":
|
|
1067
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1068
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1069
|
+
case "ResourceNotFoundException":
|
|
1070
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
1071
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1072
|
+
case "TooManyTagsException":
|
|
1073
|
+
case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
|
|
1074
|
+
throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1075
|
+
default:
|
|
1076
|
+
const parsedBody = parsedOutput.body;
|
|
1077
|
+
throwDefaultError({
|
|
1078
|
+
output,
|
|
1079
|
+
parsedBody,
|
|
1080
|
+
exceptionCtor: __BaseException,
|
|
1081
|
+
errorCode,
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1086
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1087
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1088
|
+
}
|
|
1089
|
+
const contents = map({
|
|
1090
|
+
$metadata: deserializeMetadata(output),
|
|
1199
1091
|
});
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
case 3: throw _d.sent();
|
|
1233
|
-
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1234
|
-
case 5: throw _d.sent();
|
|
1235
|
-
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1236
|
-
case 7: throw _d.sent();
|
|
1237
|
-
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1238
|
-
case 9: throw _d.sent();
|
|
1239
|
-
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1240
|
-
case 11: throw _d.sent();
|
|
1241
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1242
|
-
case 13: throw _d.sent();
|
|
1243
|
-
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1244
|
-
case 15: throw _d.sent();
|
|
1245
|
-
case 16:
|
|
1246
|
-
parsedBody = parsedOutput.body;
|
|
1247
|
-
throwDefaultError({
|
|
1248
|
-
output: output,
|
|
1249
|
-
parsedBody: parsedBody,
|
|
1250
|
-
exceptionCtor: __BaseException,
|
|
1251
|
-
errorCode: errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
_d.label = 17;
|
|
1254
|
-
case 17: return [2];
|
|
1255
|
-
}
|
|
1092
|
+
await collectBody(output.body, context);
|
|
1093
|
+
return contents;
|
|
1094
|
+
};
|
|
1095
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1096
|
+
const parsedOutput = {
|
|
1097
|
+
...output,
|
|
1098
|
+
body: await parseErrorBody(output.body, context),
|
|
1099
|
+
};
|
|
1100
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
switch (errorCode) {
|
|
1102
|
+
case "BadRequestException":
|
|
1103
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1104
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1105
|
+
case "ResourceNotFoundException":
|
|
1106
|
+
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
|
|
1107
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1108
|
+
default:
|
|
1109
|
+
const parsedBody = parsedOutput.body;
|
|
1110
|
+
throwDefaultError({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: __BaseException,
|
|
1114
|
+
errorCode,
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
export const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (output, context) => {
|
|
1119
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
+
return deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context);
|
|
1121
|
+
}
|
|
1122
|
+
const contents = map({
|
|
1123
|
+
$metadata: deserializeMetadata(output),
|
|
1256
1124
|
});
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1125
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1126
|
+
if (data.Attendee != null) {
|
|
1127
|
+
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
1128
|
+
}
|
|
1129
|
+
return contents;
|
|
1130
|
+
};
|
|
1131
|
+
const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
|
|
1132
|
+
const parsedOutput = {
|
|
1133
|
+
...output,
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
|
+
};
|
|
1136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
switch (errorCode) {
|
|
1138
|
+
case "BadRequestException":
|
|
1139
|
+
case "com.amazonaws.chimesdkmeetings#BadRequestException":
|
|
1140
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "ConflictException":
|
|
1142
|
+
case "com.amazonaws.chimesdkmeetings#ConflictException":
|
|
1143
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1144
|
+
case "ForbiddenException":
|
|
1145
|
+
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
|
|
1146
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1147
|
+
case "NotFoundException":
|
|
1148
|
+
case "com.amazonaws.chimesdkmeetings#NotFoundException":
|
|
1149
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1150
|
+
case "ServiceUnavailableException":
|
|
1151
|
+
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
|
|
1152
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1153
|
+
case "UnauthorizedException":
|
|
1154
|
+
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
|
|
1155
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1156
|
+
default:
|
|
1157
|
+
const parsedBody = parsedOutput.body;
|
|
1158
|
+
throwDefaultError({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: __BaseException,
|
|
1162
|
+
errorCode,
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
const map = __map;
|
|
1167
|
+
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1168
|
+
const contents = map({});
|
|
1169
|
+
const data = parsedOutput.body;
|
|
1170
|
+
if (data.Code != null) {
|
|
1171
|
+
contents.Code = __expectString(data.Code);
|
|
1172
|
+
}
|
|
1173
|
+
if (data.Message != null) {
|
|
1174
|
+
contents.Message = __expectString(data.Message);
|
|
1175
|
+
}
|
|
1176
|
+
if (data.RequestId != null) {
|
|
1177
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1178
|
+
}
|
|
1179
|
+
const exception = new BadRequestException({
|
|
1180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
+
...contents,
|
|
1279
1182
|
});
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
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];
|
|
1311
|
-
}
|
|
1183
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1184
|
+
};
|
|
1185
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1186
|
+
const contents = map({});
|
|
1187
|
+
const data = parsedOutput.body;
|
|
1188
|
+
if (data.Code != null) {
|
|
1189
|
+
contents.Code = __expectString(data.Code);
|
|
1190
|
+
}
|
|
1191
|
+
if (data.Message != null) {
|
|
1192
|
+
contents.Message = __expectString(data.Message);
|
|
1193
|
+
}
|
|
1194
|
+
if (data.RequestId != null) {
|
|
1195
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1196
|
+
}
|
|
1197
|
+
const exception = new ConflictException({
|
|
1198
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
+
...contents,
|
|
1312
1200
|
});
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1201
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1202
|
+
};
|
|
1203
|
+
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1204
|
+
const contents = map({});
|
|
1205
|
+
const data = parsedOutput.body;
|
|
1206
|
+
if (data.Code != null) {
|
|
1207
|
+
contents.Code = __expectString(data.Code);
|
|
1208
|
+
}
|
|
1209
|
+
if (data.Message != null) {
|
|
1210
|
+
contents.Message = __expectString(data.Message);
|
|
1211
|
+
}
|
|
1212
|
+
if (data.RequestId != null) {
|
|
1213
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1214
|
+
}
|
|
1215
|
+
const exception = new ForbiddenException({
|
|
1216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1217
|
+
...contents,
|
|
1330
1218
|
});
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
case "ForbiddenException": return [3, 4];
|
|
1349
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException": return [3, 4];
|
|
1350
|
-
case "LimitExceededException": return [3, 6];
|
|
1351
|
-
case "com.amazonaws.chimesdkmeetings#LimitExceededException": return [3, 6];
|
|
1352
|
-
case "NotFoundException": return [3, 8];
|
|
1353
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException": return [3, 8];
|
|
1354
|
-
case "ServiceFailureException": return [3, 10];
|
|
1355
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException": return [3, 10];
|
|
1356
|
-
case "ServiceUnavailableException": return [3, 12];
|
|
1357
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": return [3, 12];
|
|
1358
|
-
case "ThrottlingException": return [3, 14];
|
|
1359
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException": return [3, 14];
|
|
1360
|
-
case "UnauthorizedException": return [3, 16];
|
|
1361
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException": return [3, 16];
|
|
1362
|
-
case "UnprocessableEntityException": return [3, 18];
|
|
1363
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException": return [3, 18];
|
|
1364
|
-
}
|
|
1365
|
-
return [3, 20];
|
|
1366
|
-
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1367
|
-
case 3: throw _d.sent();
|
|
1368
|
-
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1369
|
-
case 5: throw _d.sent();
|
|
1370
|
-
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1371
|
-
case 7: throw _d.sent();
|
|
1372
|
-
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1373
|
-
case 9: throw _d.sent();
|
|
1374
|
-
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1375
|
-
case 11: throw _d.sent();
|
|
1376
|
-
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1377
|
-
case 13: throw _d.sent();
|
|
1378
|
-
case 14: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1379
|
-
case 15: throw _d.sent();
|
|
1380
|
-
case 16: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1381
|
-
case 17: throw _d.sent();
|
|
1382
|
-
case 18: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1383
|
-
case 19: throw _d.sent();
|
|
1384
|
-
case 20:
|
|
1385
|
-
parsedBody = parsedOutput.body;
|
|
1386
|
-
throwDefaultError({
|
|
1387
|
-
output: output,
|
|
1388
|
-
parsedBody: parsedBody,
|
|
1389
|
-
exceptionCtor: __BaseException,
|
|
1390
|
-
errorCode: errorCode,
|
|
1391
|
-
});
|
|
1392
|
-
_d.label = 21;
|
|
1393
|
-
case 21: return [2];
|
|
1394
|
-
}
|
|
1219
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1220
|
+
};
|
|
1221
|
+
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1222
|
+
const contents = map({});
|
|
1223
|
+
const data = parsedOutput.body;
|
|
1224
|
+
if (data.Code != null) {
|
|
1225
|
+
contents.Code = __expectString(data.Code);
|
|
1226
|
+
}
|
|
1227
|
+
if (data.Message != null) {
|
|
1228
|
+
contents.Message = __expectString(data.Message);
|
|
1229
|
+
}
|
|
1230
|
+
if (data.RequestId != null) {
|
|
1231
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1232
|
+
}
|
|
1233
|
+
const exception = new LimitExceededException({
|
|
1234
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1235
|
+
...contents,
|
|
1395
1236
|
});
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1237
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1238
|
+
};
|
|
1239
|
+
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1240
|
+
const contents = map({});
|
|
1241
|
+
const data = parsedOutput.body;
|
|
1242
|
+
if (data.Code != null) {
|
|
1243
|
+
contents.Code = __expectString(data.Code);
|
|
1244
|
+
}
|
|
1245
|
+
if (data.Message != null) {
|
|
1246
|
+
contents.Message = __expectString(data.Message);
|
|
1247
|
+
}
|
|
1248
|
+
if (data.RequestId != null) {
|
|
1249
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1250
|
+
}
|
|
1251
|
+
const exception = new NotFoundException({
|
|
1252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
|
+
...contents,
|
|
1413
1254
|
});
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException": return [3, 6];
|
|
1435
|
-
case "ServiceFailureException": return [3, 8];
|
|
1436
|
-
case "com.amazonaws.chimesdkmeetings#ServiceFailureException": return [3, 8];
|
|
1437
|
-
case "ServiceUnavailableException": return [3, 10];
|
|
1438
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": return [3, 10];
|
|
1439
|
-
case "ThrottlingException": return [3, 12];
|
|
1440
|
-
case "com.amazonaws.chimesdkmeetings#ThrottlingException": return [3, 12];
|
|
1441
|
-
case "UnauthorizedException": return [3, 14];
|
|
1442
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException": return [3, 14];
|
|
1443
|
-
case "UnprocessableEntityException": return [3, 16];
|
|
1444
|
-
case "com.amazonaws.chimesdkmeetings#UnprocessableEntityException": return [3, 16];
|
|
1445
|
-
}
|
|
1446
|
-
return [3, 18];
|
|
1447
|
-
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1448
|
-
case 3: throw _d.sent();
|
|
1449
|
-
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1450
|
-
case 5: throw _d.sent();
|
|
1451
|
-
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1452
|
-
case 7: throw _d.sent();
|
|
1453
|
-
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1454
|
-
case 9: throw _d.sent();
|
|
1455
|
-
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1456
|
-
case 11: throw _d.sent();
|
|
1457
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1458
|
-
case 13: throw _d.sent();
|
|
1459
|
-
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1460
|
-
case 15: throw _d.sent();
|
|
1461
|
-
case 16: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
1462
|
-
case 17: throw _d.sent();
|
|
1463
|
-
case 18:
|
|
1464
|
-
parsedBody = parsedOutput.body;
|
|
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
|
-
}
|
|
1255
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1256
|
+
};
|
|
1257
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1258
|
+
const contents = map({});
|
|
1259
|
+
const data = parsedOutput.body;
|
|
1260
|
+
if (data.Code != null) {
|
|
1261
|
+
contents.Code = __expectString(data.Code);
|
|
1262
|
+
}
|
|
1263
|
+
if (data.Message != null) {
|
|
1264
|
+
contents.Message = __expectString(data.Message);
|
|
1265
|
+
}
|
|
1266
|
+
if (data.RequestId != null) {
|
|
1267
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1268
|
+
}
|
|
1269
|
+
if (data.ResourceName != null) {
|
|
1270
|
+
contents.ResourceName = __expectString(data.ResourceName);
|
|
1271
|
+
}
|
|
1272
|
+
const exception = new ResourceNotFoundException({
|
|
1273
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1274
|
+
...contents,
|
|
1474
1275
|
});
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1276
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1277
|
+
};
|
|
1278
|
+
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
1279
|
+
const contents = map({});
|
|
1280
|
+
const data = parsedOutput.body;
|
|
1281
|
+
if (data.Code != null) {
|
|
1282
|
+
contents.Code = __expectString(data.Code);
|
|
1283
|
+
}
|
|
1284
|
+
if (data.Message != null) {
|
|
1285
|
+
contents.Message = __expectString(data.Message);
|
|
1286
|
+
}
|
|
1287
|
+
if (data.RequestId != null) {
|
|
1288
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1289
|
+
}
|
|
1290
|
+
const exception = new ServiceFailureException({
|
|
1291
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1292
|
+
...contents,
|
|
1492
1293
|
});
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
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
|
-
}
|
|
1294
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1295
|
+
};
|
|
1296
|
+
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1297
|
+
const contents = map({
|
|
1298
|
+
RetryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
1533
1299
|
});
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
case 1:
|
|
1548
|
-
_a.sent();
|
|
1549
|
-
return [2, contents];
|
|
1550
|
-
}
|
|
1300
|
+
const data = parsedOutput.body;
|
|
1301
|
+
if (data.Code != null) {
|
|
1302
|
+
contents.Code = __expectString(data.Code);
|
|
1303
|
+
}
|
|
1304
|
+
if (data.Message != null) {
|
|
1305
|
+
contents.Message = __expectString(data.Message);
|
|
1306
|
+
}
|
|
1307
|
+
if (data.RequestId != null) {
|
|
1308
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1309
|
+
}
|
|
1310
|
+
const exception = new ServiceUnavailableException({
|
|
1311
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
|
+
...contents,
|
|
1551
1313
|
});
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
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];
|
|
1587
|
-
}
|
|
1314
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1315
|
+
};
|
|
1316
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1317
|
+
const contents = map({});
|
|
1318
|
+
const data = parsedOutput.body;
|
|
1319
|
+
if (data.Code != null) {
|
|
1320
|
+
contents.Code = __expectString(data.Code);
|
|
1321
|
+
}
|
|
1322
|
+
if (data.Message != null) {
|
|
1323
|
+
contents.Message = __expectString(data.Message);
|
|
1324
|
+
}
|
|
1325
|
+
if (data.RequestId != null) {
|
|
1326
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1327
|
+
}
|
|
1328
|
+
const exception = new ThrottlingException({
|
|
1329
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
|
+
...contents,
|
|
1588
1331
|
});
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
return [2, contents];
|
|
1610
|
-
}
|
|
1332
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1333
|
+
};
|
|
1334
|
+
const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1335
|
+
const contents = map({});
|
|
1336
|
+
const data = parsedOutput.body;
|
|
1337
|
+
if (data.Code != null) {
|
|
1338
|
+
contents.Code = __expectString(data.Code);
|
|
1339
|
+
}
|
|
1340
|
+
if (data.Message != null) {
|
|
1341
|
+
contents.Message = __expectString(data.Message);
|
|
1342
|
+
}
|
|
1343
|
+
if (data.RequestId != null) {
|
|
1344
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1345
|
+
}
|
|
1346
|
+
if (data.ResourceName != null) {
|
|
1347
|
+
contents.ResourceName = __expectString(data.ResourceName);
|
|
1348
|
+
}
|
|
1349
|
+
const exception = new TooManyTagsException({
|
|
1350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
|
+
...contents,
|
|
1611
1352
|
});
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
case "ConflictException": return [3, 4];
|
|
1630
|
-
case "com.amazonaws.chimesdkmeetings#ConflictException": return [3, 4];
|
|
1631
|
-
case "ForbiddenException": return [3, 6];
|
|
1632
|
-
case "com.amazonaws.chimesdkmeetings#ForbiddenException": return [3, 6];
|
|
1633
|
-
case "NotFoundException": return [3, 8];
|
|
1634
|
-
case "com.amazonaws.chimesdkmeetings#NotFoundException": return [3, 8];
|
|
1635
|
-
case "ServiceUnavailableException": return [3, 10];
|
|
1636
|
-
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException": return [3, 10];
|
|
1637
|
-
case "UnauthorizedException": return [3, 12];
|
|
1638
|
-
case "com.amazonaws.chimesdkmeetings#UnauthorizedException": return [3, 12];
|
|
1639
|
-
}
|
|
1640
|
-
return [3, 14];
|
|
1641
|
-
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1642
|
-
case 3: throw _d.sent();
|
|
1643
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1644
|
-
case 5: throw _d.sent();
|
|
1645
|
-
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1646
|
-
case 7: throw _d.sent();
|
|
1647
|
-
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1648
|
-
case 9: throw _d.sent();
|
|
1649
|
-
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1650
|
-
case 11: throw _d.sent();
|
|
1651
|
-
case 12: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1652
|
-
case 13: throw _d.sent();
|
|
1653
|
-
case 14:
|
|
1654
|
-
parsedBody = parsedOutput.body;
|
|
1655
|
-
throwDefaultError({
|
|
1656
|
-
output: output,
|
|
1657
|
-
parsedBody: parsedBody,
|
|
1658
|
-
exceptionCtor: __BaseException,
|
|
1659
|
-
errorCode: errorCode,
|
|
1660
|
-
});
|
|
1661
|
-
_d.label = 15;
|
|
1662
|
-
case 15: return [2];
|
|
1663
|
-
}
|
|
1353
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1354
|
+
};
|
|
1355
|
+
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1356
|
+
const contents = map({});
|
|
1357
|
+
const data = parsedOutput.body;
|
|
1358
|
+
if (data.Code != null) {
|
|
1359
|
+
contents.Code = __expectString(data.Code);
|
|
1360
|
+
}
|
|
1361
|
+
if (data.Message != null) {
|
|
1362
|
+
contents.Message = __expectString(data.Message);
|
|
1363
|
+
}
|
|
1364
|
+
if (data.RequestId != null) {
|
|
1365
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1366
|
+
}
|
|
1367
|
+
const exception = new UnauthorizedException({
|
|
1368
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1369
|
+
...contents,
|
|
1664
1370
|
});
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1683
|
-
});
|
|
1684
|
-
}); };
|
|
1685
|
-
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1686
|
-
var contents, data, exception;
|
|
1687
|
-
return __generator(this, function (_a) {
|
|
1688
|
-
contents = map({});
|
|
1689
|
-
data = parsedOutput.body;
|
|
1690
|
-
if (data.Code != null) {
|
|
1691
|
-
contents.Code = __expectString(data.Code);
|
|
1692
|
-
}
|
|
1693
|
-
if (data.Message != null) {
|
|
1694
|
-
contents.Message = __expectString(data.Message);
|
|
1695
|
-
}
|
|
1696
|
-
if (data.RequestId != null) {
|
|
1697
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1698
|
-
}
|
|
1699
|
-
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1700
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1701
|
-
});
|
|
1702
|
-
}); };
|
|
1703
|
-
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1704
|
-
var contents, data, exception;
|
|
1705
|
-
return __generator(this, function (_a) {
|
|
1706
|
-
contents = map({});
|
|
1707
|
-
data = parsedOutput.body;
|
|
1708
|
-
if (data.Code != null) {
|
|
1709
|
-
contents.Code = __expectString(data.Code);
|
|
1710
|
-
}
|
|
1711
|
-
if (data.Message != null) {
|
|
1712
|
-
contents.Message = __expectString(data.Message);
|
|
1713
|
-
}
|
|
1714
|
-
if (data.RequestId != null) {
|
|
1715
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1716
|
-
}
|
|
1717
|
-
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1718
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1719
|
-
});
|
|
1720
|
-
}); };
|
|
1721
|
-
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1722
|
-
var contents, data, exception;
|
|
1723
|
-
return __generator(this, function (_a) {
|
|
1724
|
-
contents = map({});
|
|
1725
|
-
data = parsedOutput.body;
|
|
1726
|
-
if (data.Code != null) {
|
|
1727
|
-
contents.Code = __expectString(data.Code);
|
|
1728
|
-
}
|
|
1729
|
-
if (data.Message != null) {
|
|
1730
|
-
contents.Message = __expectString(data.Message);
|
|
1731
|
-
}
|
|
1732
|
-
if (data.RequestId != null) {
|
|
1733
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1734
|
-
}
|
|
1735
|
-
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1736
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1737
|
-
});
|
|
1738
|
-
}); };
|
|
1739
|
-
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1740
|
-
var contents, data, exception;
|
|
1741
|
-
return __generator(this, function (_a) {
|
|
1742
|
-
contents = map({});
|
|
1743
|
-
data = parsedOutput.body;
|
|
1744
|
-
if (data.Code != null) {
|
|
1745
|
-
contents.Code = __expectString(data.Code);
|
|
1746
|
-
}
|
|
1747
|
-
if (data.Message != null) {
|
|
1748
|
-
contents.Message = __expectString(data.Message);
|
|
1749
|
-
}
|
|
1750
|
-
if (data.RequestId != null) {
|
|
1751
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1752
|
-
}
|
|
1753
|
-
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1754
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1755
|
-
});
|
|
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
|
-
}); };
|
|
1778
|
-
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1779
|
-
var contents, data, exception;
|
|
1780
|
-
return __generator(this, function (_a) {
|
|
1781
|
-
contents = map({});
|
|
1782
|
-
data = parsedOutput.body;
|
|
1783
|
-
if (data.Code != null) {
|
|
1784
|
-
contents.Code = __expectString(data.Code);
|
|
1785
|
-
}
|
|
1786
|
-
if (data.Message != null) {
|
|
1787
|
-
contents.Message = __expectString(data.Message);
|
|
1788
|
-
}
|
|
1789
|
-
if (data.RequestId != null) {
|
|
1790
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1791
|
-
}
|
|
1792
|
-
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1793
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1794
|
-
});
|
|
1795
|
-
}); };
|
|
1796
|
-
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1797
|
-
var contents, data, exception;
|
|
1798
|
-
return __generator(this, function (_a) {
|
|
1799
|
-
contents = map({
|
|
1800
|
-
RetryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
1801
|
-
});
|
|
1802
|
-
data = parsedOutput.body;
|
|
1803
|
-
if (data.Code != null) {
|
|
1804
|
-
contents.Code = __expectString(data.Code);
|
|
1805
|
-
}
|
|
1806
|
-
if (data.Message != null) {
|
|
1807
|
-
contents.Message = __expectString(data.Message);
|
|
1808
|
-
}
|
|
1809
|
-
if (data.RequestId != null) {
|
|
1810
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1811
|
-
}
|
|
1812
|
-
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1813
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1814
|
-
});
|
|
1815
|
-
}); };
|
|
1816
|
-
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1817
|
-
var contents, data, exception;
|
|
1818
|
-
return __generator(this, function (_a) {
|
|
1819
|
-
contents = map({});
|
|
1820
|
-
data = parsedOutput.body;
|
|
1821
|
-
if (data.Code != null) {
|
|
1822
|
-
contents.Code = __expectString(data.Code);
|
|
1823
|
-
}
|
|
1824
|
-
if (data.Message != null) {
|
|
1825
|
-
contents.Message = __expectString(data.Message);
|
|
1826
|
-
}
|
|
1827
|
-
if (data.RequestId != null) {
|
|
1828
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1829
|
-
}
|
|
1830
|
-
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1831
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1832
|
-
});
|
|
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
|
-
}); };
|
|
1855
|
-
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1856
|
-
var contents, data, exception;
|
|
1857
|
-
return __generator(this, function (_a) {
|
|
1858
|
-
contents = map({});
|
|
1859
|
-
data = parsedOutput.body;
|
|
1860
|
-
if (data.Code != null) {
|
|
1861
|
-
contents.Code = __expectString(data.Code);
|
|
1862
|
-
}
|
|
1863
|
-
if (data.Message != null) {
|
|
1864
|
-
contents.Message = __expectString(data.Message);
|
|
1865
|
-
}
|
|
1866
|
-
if (data.RequestId != null) {
|
|
1867
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1868
|
-
}
|
|
1869
|
-
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1870
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1871
|
-
});
|
|
1872
|
-
}); };
|
|
1873
|
-
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1874
|
-
var contents, data, exception;
|
|
1875
|
-
return __generator(this, function (_a) {
|
|
1876
|
-
contents = map({});
|
|
1877
|
-
data = parsedOutput.body;
|
|
1878
|
-
if (data.Code != null) {
|
|
1879
|
-
contents.Code = __expectString(data.Code);
|
|
1880
|
-
}
|
|
1881
|
-
if (data.Message != null) {
|
|
1882
|
-
contents.Message = __expectString(data.Message);
|
|
1883
|
-
}
|
|
1884
|
-
if (data.RequestId != null) {
|
|
1885
|
-
contents.RequestId = __expectString(data.RequestId);
|
|
1886
|
-
}
|
|
1887
|
-
exception = new UnprocessableEntityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1888
|
-
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1371
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1372
|
+
};
|
|
1373
|
+
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1374
|
+
const contents = map({});
|
|
1375
|
+
const data = parsedOutput.body;
|
|
1376
|
+
if (data.Code != null) {
|
|
1377
|
+
contents.Code = __expectString(data.Code);
|
|
1378
|
+
}
|
|
1379
|
+
if (data.Message != null) {
|
|
1380
|
+
contents.Message = __expectString(data.Message);
|
|
1381
|
+
}
|
|
1382
|
+
if (data.RequestId != null) {
|
|
1383
|
+
contents.RequestId = __expectString(data.RequestId);
|
|
1384
|
+
}
|
|
1385
|
+
const exception = new UnprocessableEntityException({
|
|
1386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
|
+
...contents,
|
|
1889
1388
|
});
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1389
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1390
|
+
};
|
|
1391
|
+
const serializeAws_restJson1AttendeeCapabilities = (input, context) => {
|
|
1392
|
+
return {
|
|
1393
|
+
...(input.Audio != null && { Audio: input.Audio }),
|
|
1394
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1395
|
+
...(input.Video != null && { Video: input.Video }),
|
|
1396
|
+
};
|
|
1893
1397
|
};
|
|
1894
|
-
|
|
1895
|
-
return
|
|
1398
|
+
const serializeAws_restJson1AttendeeIdItem = (input, context) => {
|
|
1399
|
+
return {
|
|
1400
|
+
...(input.AttendeeId != null && { AttendeeId: input.AttendeeId }),
|
|
1401
|
+
};
|
|
1896
1402
|
};
|
|
1897
|
-
|
|
1403
|
+
const serializeAws_restJson1AttendeeIdsList = (input, context) => {
|
|
1898
1404
|
return input
|
|
1899
|
-
.filter(
|
|
1900
|
-
.map(
|
|
1405
|
+
.filter((e) => e != null)
|
|
1406
|
+
.map((entry) => {
|
|
1901
1407
|
return serializeAws_restJson1AttendeeIdItem(entry, context);
|
|
1902
1408
|
});
|
|
1903
1409
|
};
|
|
1904
|
-
|
|
1905
|
-
return
|
|
1410
|
+
const serializeAws_restJson1AudioFeatures = (input, context) => {
|
|
1411
|
+
return {
|
|
1412
|
+
...(input.EchoReduction != null && { EchoReduction: input.EchoReduction }),
|
|
1413
|
+
};
|
|
1906
1414
|
};
|
|
1907
|
-
|
|
1908
|
-
return
|
|
1909
|
-
|
|
1910
|
-
|
|
1415
|
+
const serializeAws_restJson1CreateAttendeeRequestItem = (input, context) => {
|
|
1416
|
+
return {
|
|
1417
|
+
...(input.Capabilities != null && {
|
|
1418
|
+
Capabilities: serializeAws_restJson1AttendeeCapabilities(input.Capabilities, context),
|
|
1419
|
+
}),
|
|
1420
|
+
...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
|
|
1421
|
+
};
|
|
1911
1422
|
};
|
|
1912
|
-
|
|
1423
|
+
const serializeAws_restJson1CreateAttendeeRequestItemList = (input, context) => {
|
|
1913
1424
|
return input
|
|
1914
|
-
.filter(
|
|
1915
|
-
.map(
|
|
1425
|
+
.filter((e) => e != null)
|
|
1426
|
+
.map((entry) => {
|
|
1916
1427
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1917
1428
|
});
|
|
1918
1429
|
};
|
|
1919
|
-
|
|
1430
|
+
const serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = (input, context) => {
|
|
1920
1431
|
return input
|
|
1921
|
-
.filter(
|
|
1922
|
-
.map(
|
|
1432
|
+
.filter((e) => e != null)
|
|
1433
|
+
.map((entry) => {
|
|
1923
1434
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1924
1435
|
});
|
|
1925
1436
|
};
|
|
1926
|
-
|
|
1927
|
-
return
|
|
1437
|
+
const serializeAws_restJson1EngineTranscribeMedicalSettings = (input, context) => {
|
|
1438
|
+
return {
|
|
1439
|
+
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
1440
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1441
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1442
|
+
...(input.Specialty != null && { Specialty: input.Specialty }),
|
|
1443
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1444
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
1445
|
+
};
|
|
1928
1446
|
};
|
|
1929
|
-
|
|
1930
|
-
return
|
|
1931
|
-
|
|
1932
|
-
|
|
1447
|
+
const serializeAws_restJson1EngineTranscribeSettings = (input, context) => {
|
|
1448
|
+
return {
|
|
1449
|
+
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
1450
|
+
...(input.ContentRedactionType != null && { ContentRedactionType: input.ContentRedactionType }),
|
|
1451
|
+
...(input.EnablePartialResultsStabilization != null && {
|
|
1452
|
+
EnablePartialResultsStabilization: input.EnablePartialResultsStabilization,
|
|
1453
|
+
}),
|
|
1454
|
+
...(input.IdentifyLanguage != null && { IdentifyLanguage: input.IdentifyLanguage }),
|
|
1455
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1456
|
+
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
1457
|
+
...(input.LanguageOptions != null && { LanguageOptions: input.LanguageOptions }),
|
|
1458
|
+
...(input.PartialResultsStability != null && { PartialResultsStability: input.PartialResultsStability }),
|
|
1459
|
+
...(input.PiiEntityTypes != null && { PiiEntityTypes: input.PiiEntityTypes }),
|
|
1460
|
+
...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
|
|
1461
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1462
|
+
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
1463
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
1464
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
1465
|
+
};
|
|
1933
1466
|
};
|
|
1934
|
-
|
|
1935
|
-
return
|
|
1467
|
+
const serializeAws_restJson1MeetingFeaturesConfiguration = (input, context) => {
|
|
1468
|
+
return {
|
|
1469
|
+
...(input.Audio != null && { Audio: serializeAws_restJson1AudioFeatures(input.Audio, context) }),
|
|
1470
|
+
};
|
|
1936
1471
|
};
|
|
1937
|
-
|
|
1938
|
-
return
|
|
1472
|
+
const serializeAws_restJson1NotificationsConfiguration = (input, context) => {
|
|
1473
|
+
return {
|
|
1474
|
+
...(input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn }),
|
|
1475
|
+
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
1476
|
+
...(input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }),
|
|
1477
|
+
};
|
|
1939
1478
|
};
|
|
1940
|
-
|
|
1941
|
-
return
|
|
1479
|
+
const serializeAws_restJson1Tag = (input, context) => {
|
|
1480
|
+
return {
|
|
1481
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1482
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1483
|
+
};
|
|
1942
1484
|
};
|
|
1943
|
-
|
|
1485
|
+
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
1944
1486
|
return input
|
|
1945
|
-
.filter(
|
|
1946
|
-
.map(
|
|
1487
|
+
.filter((e) => e != null)
|
|
1488
|
+
.map((entry) => {
|
|
1947
1489
|
return entry;
|
|
1948
1490
|
});
|
|
1949
1491
|
};
|
|
1950
|
-
|
|
1492
|
+
const serializeAws_restJson1TagList = (input, context) => {
|
|
1951
1493
|
return input
|
|
1952
|
-
.filter(
|
|
1953
|
-
.map(
|
|
1494
|
+
.filter((e) => e != null)
|
|
1495
|
+
.map((entry) => {
|
|
1954
1496
|
return serializeAws_restJson1Tag(entry, context);
|
|
1955
1497
|
});
|
|
1956
1498
|
};
|
|
1957
|
-
|
|
1499
|
+
const serializeAws_restJson1TenantIdList = (input, context) => {
|
|
1958
1500
|
return input
|
|
1959
|
-
.filter(
|
|
1960
|
-
.map(
|
|
1501
|
+
.filter((e) => e != null)
|
|
1502
|
+
.map((entry) => {
|
|
1961
1503
|
return entry;
|
|
1962
1504
|
});
|
|
1963
1505
|
};
|
|
1964
|
-
|
|
1965
|
-
return
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1506
|
+
const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
|
|
1507
|
+
return {
|
|
1508
|
+
...(input.EngineTranscribeMedicalSettings != null && {
|
|
1509
|
+
EngineTranscribeMedicalSettings: serializeAws_restJson1EngineTranscribeMedicalSettings(input.EngineTranscribeMedicalSettings, context),
|
|
1510
|
+
}),
|
|
1511
|
+
...(input.EngineTranscribeSettings != null && {
|
|
1512
|
+
EngineTranscribeSettings: serializeAws_restJson1EngineTranscribeSettings(input.EngineTranscribeSettings, context),
|
|
1513
|
+
}),
|
|
1514
|
+
};
|
|
1970
1515
|
};
|
|
1971
|
-
|
|
1516
|
+
const deserializeAws_restJson1Attendee = (output, context) => {
|
|
1972
1517
|
return {
|
|
1973
1518
|
AttendeeId: __expectString(output.AttendeeId),
|
|
1974
1519
|
Capabilities: output.Capabilities != null
|
|
@@ -1978,17 +1523,17 @@ var deserializeAws_restJson1Attendee = function (output, context) {
|
|
|
1978
1523
|
JoinToken: __expectString(output.JoinToken),
|
|
1979
1524
|
};
|
|
1980
1525
|
};
|
|
1981
|
-
|
|
1526
|
+
const deserializeAws_restJson1AttendeeCapabilities = (output, context) => {
|
|
1982
1527
|
return {
|
|
1983
1528
|
Audio: __expectString(output.Audio),
|
|
1984
1529
|
Content: __expectString(output.Content),
|
|
1985
1530
|
Video: __expectString(output.Video),
|
|
1986
1531
|
};
|
|
1987
1532
|
};
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
.filter(
|
|
1991
|
-
.map(
|
|
1533
|
+
const deserializeAws_restJson1AttendeeList = (output, context) => {
|
|
1534
|
+
const retVal = (output || [])
|
|
1535
|
+
.filter((e) => e != null)
|
|
1536
|
+
.map((entry) => {
|
|
1992
1537
|
if (entry === null) {
|
|
1993
1538
|
return null;
|
|
1994
1539
|
}
|
|
@@ -1996,15 +1541,15 @@ var deserializeAws_restJson1AttendeeList = function (output, context) {
|
|
|
1996
1541
|
});
|
|
1997
1542
|
return retVal;
|
|
1998
1543
|
};
|
|
1999
|
-
|
|
1544
|
+
const deserializeAws_restJson1AudioFeatures = (output, context) => {
|
|
2000
1545
|
return {
|
|
2001
1546
|
EchoReduction: __expectString(output.EchoReduction),
|
|
2002
1547
|
};
|
|
2003
1548
|
};
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
.filter(
|
|
2007
|
-
.map(
|
|
1549
|
+
const deserializeAws_restJson1BatchCreateAttendeeErrorList = (output, context) => {
|
|
1550
|
+
const retVal = (output || [])
|
|
1551
|
+
.filter((e) => e != null)
|
|
1552
|
+
.map((entry) => {
|
|
2008
1553
|
if (entry === null) {
|
|
2009
1554
|
return null;
|
|
2010
1555
|
}
|
|
@@ -2012,14 +1557,14 @@ var deserializeAws_restJson1BatchCreateAttendeeErrorList = function (output, con
|
|
|
2012
1557
|
});
|
|
2013
1558
|
return retVal;
|
|
2014
1559
|
};
|
|
2015
|
-
|
|
1560
|
+
const deserializeAws_restJson1CreateAttendeeError = (output, context) => {
|
|
2016
1561
|
return {
|
|
2017
1562
|
ErrorCode: __expectString(output.ErrorCode),
|
|
2018
1563
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
2019
1564
|
ExternalUserId: __expectString(output.ExternalUserId),
|
|
2020
1565
|
};
|
|
2021
1566
|
};
|
|
2022
|
-
|
|
1567
|
+
const deserializeAws_restJson1MediaPlacement = (output, context) => {
|
|
2023
1568
|
return {
|
|
2024
1569
|
AudioFallbackUrl: __expectString(output.AudioFallbackUrl),
|
|
2025
1570
|
AudioHostUrl: __expectString(output.AudioHostUrl),
|
|
@@ -2031,7 +1576,7 @@ var deserializeAws_restJson1MediaPlacement = function (output, context) {
|
|
|
2031
1576
|
TurnControlUrl: __expectString(output.TurnControlUrl),
|
|
2032
1577
|
};
|
|
2033
1578
|
};
|
|
2034
|
-
|
|
1579
|
+
const deserializeAws_restJson1Meeting = (output, context) => {
|
|
2035
1580
|
return {
|
|
2036
1581
|
ExternalMeetingId: __expectString(output.ExternalMeetingId),
|
|
2037
1582
|
MediaPlacement: output.MediaPlacement != null
|
|
@@ -2048,21 +1593,21 @@ var deserializeAws_restJson1Meeting = function (output, context) {
|
|
|
2048
1593
|
TenantIds: output.TenantIds != null ? deserializeAws_restJson1TenantIdList(output.TenantIds, context) : undefined,
|
|
2049
1594
|
};
|
|
2050
1595
|
};
|
|
2051
|
-
|
|
1596
|
+
const deserializeAws_restJson1MeetingFeaturesConfiguration = (output, context) => {
|
|
2052
1597
|
return {
|
|
2053
1598
|
Audio: output.Audio != null ? deserializeAws_restJson1AudioFeatures(output.Audio, context) : undefined,
|
|
2054
1599
|
};
|
|
2055
1600
|
};
|
|
2056
|
-
|
|
1601
|
+
const deserializeAws_restJson1Tag = (output, context) => {
|
|
2057
1602
|
return {
|
|
2058
1603
|
Key: __expectString(output.Key),
|
|
2059
1604
|
Value: __expectString(output.Value),
|
|
2060
1605
|
};
|
|
2061
1606
|
};
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
.filter(
|
|
2065
|
-
.map(
|
|
1607
|
+
const deserializeAws_restJson1TagList = (output, context) => {
|
|
1608
|
+
const retVal = (output || [])
|
|
1609
|
+
.filter((e) => e != null)
|
|
1610
|
+
.map((entry) => {
|
|
2066
1611
|
if (entry === null) {
|
|
2067
1612
|
return null;
|
|
2068
1613
|
}
|
|
@@ -2070,10 +1615,10 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
2070
1615
|
});
|
|
2071
1616
|
return retVal;
|
|
2072
1617
|
};
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
.filter(
|
|
2076
|
-
.map(
|
|
1618
|
+
const deserializeAws_restJson1TenantIdList = (output, context) => {
|
|
1619
|
+
const retVal = (output || [])
|
|
1620
|
+
.filter((e) => e != null)
|
|
1621
|
+
.map((entry) => {
|
|
2077
1622
|
if (entry === null) {
|
|
2078
1623
|
return null;
|
|
2079
1624
|
}
|
|
@@ -2081,44 +1626,39 @@ var deserializeAws_restJson1TenantIdList = function (output, context) {
|
|
|
2081
1626
|
});
|
|
2082
1627
|
return retVal;
|
|
2083
1628
|
};
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
});
|
|
2092
|
-
};
|
|
2093
|
-
var collectBody = function (streamBody, context) {
|
|
2094
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1629
|
+
const deserializeMetadata = (output) => ({
|
|
1630
|
+
httpStatusCode: output.statusCode,
|
|
1631
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1632
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1633
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1634
|
+
});
|
|
1635
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2095
1636
|
if (streamBody instanceof Uint8Array) {
|
|
2096
1637
|
return Promise.resolve(streamBody);
|
|
2097
1638
|
}
|
|
2098
1639
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2099
1640
|
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
});
|
|
1641
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1642
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1643
|
+
value !== null &&
|
|
1644
|
+
value !== "" &&
|
|
1645
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1646
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1647
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1648
|
+
if (encoded.length) {
|
|
1649
|
+
return JSON.parse(encoded);
|
|
1650
|
+
}
|
|
1651
|
+
return {};
|
|
1652
|
+
});
|
|
1653
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1654
|
+
const value = await parseBody(errorBody, context);
|
|
1655
|
+
value.message = value.message ?? value.Message;
|
|
1656
|
+
return value;
|
|
2117
1657
|
};
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
1658
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1659
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1660
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1661
|
+
let cleanValue = rawValue;
|
|
2122
1662
|
if (typeof cleanValue === "number") {
|
|
2123
1663
|
cleanValue = cleanValue.toString();
|
|
2124
1664
|
}
|
|
@@ -2133,7 +1673,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2133
1673
|
}
|
|
2134
1674
|
return cleanValue;
|
|
2135
1675
|
};
|
|
2136
|
-
|
|
1676
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2137
1677
|
if (headerKey !== undefined) {
|
|
2138
1678
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2139
1679
|
}
|