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