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