@aws-sdk/client-chime-sdk-media-pipelines 3.150.0 → 3.153.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/README.md +2 -4
- package/dist-cjs/ChimeSDKMediaPipelines.js +75 -0
- package/dist-cjs/commands/CreateMediaConcatenationPipelineCommand.js +36 -0
- package/dist-cjs/commands/CreateMediaLiveConnectorPipelineCommand.js +36 -0
- package/dist-cjs/commands/DeleteMediaPipelineCommand.js +36 -0
- package/dist-cjs/commands/GetMediaPipelineCommand.js +36 -0
- package/dist-cjs/commands/ListMediaPipelinesCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +237 -1
- package/dist-cjs/pagination/ListMediaPipelinesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +878 -85
- package/dist-es/ChimeSDKMediaPipelines.js +75 -0
- package/dist-es/commands/CreateMediaConcatenationPipelineCommand.js +39 -0
- package/dist-es/commands/CreateMediaLiveConnectorPipelineCommand.js +39 -0
- package/dist-es/commands/DeleteMediaPipelineCommand.js +39 -0
- package/dist-es/commands/GetMediaPipelineCommand.js +39 -0
- package/dist-es/commands/ListMediaPipelinesCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +111 -0
- package/dist-es/pagination/ListMediaPipelinesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +912 -26
- package/dist-types/ChimeSDKMediaPipelines.d.ts +44 -11
- package/dist-types/ChimeSDKMediaPipelinesClient.d.ts +9 -6
- package/dist-types/commands/CreateMediaCapturePipelineCommand.d.ts +1 -1
- package/dist-types/commands/CreateMediaConcatenationPipelineCommand.d.ts +35 -0
- package/dist-types/commands/CreateMediaLiveConnectorPipelineCommand.d.ts +35 -0
- package/dist-types/commands/DeleteMediaCapturePipelineCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMediaPipelineCommand.d.ts +35 -0
- package/dist-types/commands/GetMediaCapturePipelineCommand.d.ts +1 -1
- package/dist-types/commands/GetMediaPipelineCommand.d.ts +35 -0
- package/dist-types/commands/ListMediaCapturePipelinesCommand.d.ts +1 -1
- package/dist-types/commands/ListMediaPipelinesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +674 -39
- package/dist-types/pagination/ListMediaPipelinesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/ChimeSDKMediaPipelines.d.ts +25 -0
- package/dist-types/ts3.4/ChimeSDKMediaPipelinesClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateMediaConcatenationPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateMediaLiveConnectorPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMediaPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMediaPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMediaPipelinesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +355 -1
- package/dist-types/ts3.4/pagination/ListMediaPipelinesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMediaCapturePipelinesCommand = exports.deserializeAws_restJson1GetMediaCapturePipelineCommand = exports.deserializeAws_restJson1DeleteMediaCapturePipelineCommand = exports.deserializeAws_restJson1CreateMediaCapturePipelineCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListMediaCapturePipelinesCommand = exports.serializeAws_restJson1GetMediaCapturePipelineCommand = exports.serializeAws_restJson1DeleteMediaCapturePipelineCommand = exports.serializeAws_restJson1CreateMediaCapturePipelineCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMediaPipelinesCommand = exports.deserializeAws_restJson1ListMediaCapturePipelinesCommand = exports.deserializeAws_restJson1GetMediaPipelineCommand = exports.deserializeAws_restJson1GetMediaCapturePipelineCommand = exports.deserializeAws_restJson1DeleteMediaPipelineCommand = exports.deserializeAws_restJson1DeleteMediaCapturePipelineCommand = exports.deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = exports.deserializeAws_restJson1CreateMediaConcatenationPipelineCommand = exports.deserializeAws_restJson1CreateMediaCapturePipelineCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListMediaPipelinesCommand = exports.serializeAws_restJson1ListMediaCapturePipelinesCommand = exports.serializeAws_restJson1GetMediaPipelineCommand = exports.serializeAws_restJson1GetMediaCapturePipelineCommand = exports.serializeAws_restJson1DeleteMediaPipelineCommand = exports.serializeAws_restJson1DeleteMediaCapturePipelineCommand = exports.serializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = exports.serializeAws_restJson1CreateMediaConcatenationPipelineCommand = exports.serializeAws_restJson1CreateMediaCapturePipelineCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -36,6 +36,56 @@ const serializeAws_restJson1CreateMediaCapturePipelineCommand = async (input, co
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
exports.serializeAws_restJson1CreateMediaCapturePipelineCommand = serializeAws_restJson1CreateMediaCapturePipelineCommand;
|
|
39
|
+
const serializeAws_restJson1CreateMediaConcatenationPipelineCommand = async (input, context) => {
|
|
40
|
+
var _a;
|
|
41
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/json",
|
|
44
|
+
};
|
|
45
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-concatenation-pipelines";
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify({
|
|
48
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
49
|
+
...(input.Sinks != null && { Sinks: serializeAws_restJson1ConcatenationSinkList(input.Sinks, context) }),
|
|
50
|
+
...(input.Sources != null && { Sources: serializeAws_restJson1ConcatenationSourceList(input.Sources, context) }),
|
|
51
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
52
|
+
});
|
|
53
|
+
return new protocol_http_1.HttpRequest({
|
|
54
|
+
protocol,
|
|
55
|
+
hostname,
|
|
56
|
+
port,
|
|
57
|
+
method: "POST",
|
|
58
|
+
headers,
|
|
59
|
+
path: resolvedPath,
|
|
60
|
+
body,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
exports.serializeAws_restJson1CreateMediaConcatenationPipelineCommand = serializeAws_restJson1CreateMediaConcatenationPipelineCommand;
|
|
64
|
+
const serializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = async (input, context) => {
|
|
65
|
+
var _a;
|
|
66
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
67
|
+
const headers = {
|
|
68
|
+
"content-type": "application/json",
|
|
69
|
+
};
|
|
70
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-live-connector-pipelines";
|
|
71
|
+
let body;
|
|
72
|
+
body = JSON.stringify({
|
|
73
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
74
|
+
...(input.Sinks != null && { Sinks: serializeAws_restJson1LiveConnectorSinkList(input.Sinks, context) }),
|
|
75
|
+
...(input.Sources != null && { Sources: serializeAws_restJson1LiveConnectorSourceList(input.Sources, context) }),
|
|
76
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
77
|
+
});
|
|
78
|
+
return new protocol_http_1.HttpRequest({
|
|
79
|
+
protocol,
|
|
80
|
+
hostname,
|
|
81
|
+
port,
|
|
82
|
+
method: "POST",
|
|
83
|
+
headers,
|
|
84
|
+
path: resolvedPath,
|
|
85
|
+
body,
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = serializeAws_restJson1CreateMediaLiveConnectorPipelineCommand;
|
|
39
89
|
const serializeAws_restJson1DeleteMediaCapturePipelineCommand = async (input, context) => {
|
|
40
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
91
|
const headers = {};
|
|
@@ -54,6 +104,23 @@ const serializeAws_restJson1DeleteMediaCapturePipelineCommand = async (input, co
|
|
|
54
104
|
});
|
|
55
105
|
};
|
|
56
106
|
exports.serializeAws_restJson1DeleteMediaCapturePipelineCommand = serializeAws_restJson1DeleteMediaCapturePipelineCommand;
|
|
107
|
+
const serializeAws_restJson1DeleteMediaPipelineCommand = async (input, context) => {
|
|
108
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
|
+
const headers = {};
|
|
110
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}";
|
|
111
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
112
|
+
let body;
|
|
113
|
+
return new protocol_http_1.HttpRequest({
|
|
114
|
+
protocol,
|
|
115
|
+
hostname,
|
|
116
|
+
port,
|
|
117
|
+
method: "DELETE",
|
|
118
|
+
headers,
|
|
119
|
+
path: resolvedPath,
|
|
120
|
+
body,
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
exports.serializeAws_restJson1DeleteMediaPipelineCommand = serializeAws_restJson1DeleteMediaPipelineCommand;
|
|
57
124
|
const serializeAws_restJson1GetMediaCapturePipelineCommand = async (input, context) => {
|
|
58
125
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
126
|
const headers = {};
|
|
@@ -72,6 +139,23 @@ const serializeAws_restJson1GetMediaCapturePipelineCommand = async (input, conte
|
|
|
72
139
|
});
|
|
73
140
|
};
|
|
74
141
|
exports.serializeAws_restJson1GetMediaCapturePipelineCommand = serializeAws_restJson1GetMediaCapturePipelineCommand;
|
|
142
|
+
const serializeAws_restJson1GetMediaPipelineCommand = async (input, context) => {
|
|
143
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
|
+
const headers = {};
|
|
145
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}";
|
|
146
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
147
|
+
let body;
|
|
148
|
+
return new protocol_http_1.HttpRequest({
|
|
149
|
+
protocol,
|
|
150
|
+
hostname,
|
|
151
|
+
port,
|
|
152
|
+
method: "GET",
|
|
153
|
+
headers,
|
|
154
|
+
path: resolvedPath,
|
|
155
|
+
body,
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
exports.serializeAws_restJson1GetMediaPipelineCommand = serializeAws_restJson1GetMediaPipelineCommand;
|
|
75
159
|
const serializeAws_restJson1ListMediaCapturePipelinesCommand = async (input, context) => {
|
|
76
160
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
161
|
const headers = {};
|
|
@@ -93,6 +177,27 @@ const serializeAws_restJson1ListMediaCapturePipelinesCommand = async (input, con
|
|
|
93
177
|
});
|
|
94
178
|
};
|
|
95
179
|
exports.serializeAws_restJson1ListMediaCapturePipelinesCommand = serializeAws_restJson1ListMediaCapturePipelinesCommand;
|
|
180
|
+
const serializeAws_restJson1ListMediaPipelinesCommand = async (input, context) => {
|
|
181
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
182
|
+
const headers = {};
|
|
183
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines";
|
|
184
|
+
const query = map({
|
|
185
|
+
"next-token": [, input.NextToken],
|
|
186
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
187
|
+
});
|
|
188
|
+
let body;
|
|
189
|
+
return new protocol_http_1.HttpRequest({
|
|
190
|
+
protocol,
|
|
191
|
+
hostname,
|
|
192
|
+
port,
|
|
193
|
+
method: "GET",
|
|
194
|
+
headers,
|
|
195
|
+
path: resolvedPath,
|
|
196
|
+
query,
|
|
197
|
+
body,
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
exports.serializeAws_restJson1ListMediaPipelinesCommand = serializeAws_restJson1ListMediaPipelinesCommand;
|
|
96
201
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
97
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
98
203
|
const headers = {};
|
|
@@ -217,18 +322,21 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
|
|
|
217
322
|
});
|
|
218
323
|
}
|
|
219
324
|
};
|
|
220
|
-
const
|
|
221
|
-
if (output.statusCode !==
|
|
222
|
-
return
|
|
325
|
+
const deserializeAws_restJson1CreateMediaConcatenationPipelineCommand = async (output, context) => {
|
|
326
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
327
|
+
return deserializeAws_restJson1CreateMediaConcatenationPipelineCommandError(output, context);
|
|
223
328
|
}
|
|
224
329
|
const contents = map({
|
|
225
330
|
$metadata: deserializeMetadata(output),
|
|
226
331
|
});
|
|
227
|
-
await
|
|
332
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
333
|
+
if (data.MediaConcatenationPipeline != null) {
|
|
334
|
+
contents.MediaConcatenationPipeline = deserializeAws_restJson1MediaConcatenationPipeline(data.MediaConcatenationPipeline, context);
|
|
335
|
+
}
|
|
228
336
|
return contents;
|
|
229
337
|
};
|
|
230
|
-
exports.
|
|
231
|
-
const
|
|
338
|
+
exports.deserializeAws_restJson1CreateMediaConcatenationPipelineCommand = deserializeAws_restJson1CreateMediaConcatenationPipelineCommand;
|
|
339
|
+
const deserializeAws_restJson1CreateMediaConcatenationPipelineCommandError = async (output, context) => {
|
|
232
340
|
const parsedOutput = {
|
|
233
341
|
...output,
|
|
234
342
|
body: await parseBody(output.body, context),
|
|
@@ -241,9 +349,9 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
241
349
|
case "ForbiddenException":
|
|
242
350
|
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
243
351
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
244
|
-
case "
|
|
245
|
-
case "com.amazonaws.chimesdkmediapipelines#
|
|
246
|
-
throw await
|
|
352
|
+
case "ResourceLimitExceededException":
|
|
353
|
+
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
354
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
247
355
|
case "ServiceFailureException":
|
|
248
356
|
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
249
357
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -266,21 +374,21 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
266
374
|
});
|
|
267
375
|
}
|
|
268
376
|
};
|
|
269
|
-
const
|
|
270
|
-
if (output.statusCode !==
|
|
271
|
-
return
|
|
377
|
+
const deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = async (output, context) => {
|
|
378
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
379
|
+
return deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommandError(output, context);
|
|
272
380
|
}
|
|
273
381
|
const contents = map({
|
|
274
382
|
$metadata: deserializeMetadata(output),
|
|
275
383
|
});
|
|
276
384
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
277
|
-
if (data.
|
|
278
|
-
contents.
|
|
385
|
+
if (data.MediaLiveConnectorPipeline != null) {
|
|
386
|
+
contents.MediaLiveConnectorPipeline = deserializeAws_restJson1MediaLiveConnectorPipeline(data.MediaLiveConnectorPipeline, context);
|
|
279
387
|
}
|
|
280
388
|
return contents;
|
|
281
389
|
};
|
|
282
|
-
exports.
|
|
283
|
-
const
|
|
390
|
+
exports.deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand;
|
|
391
|
+
const deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommandError = async (output, context) => {
|
|
284
392
|
const parsedOutput = {
|
|
285
393
|
...output,
|
|
286
394
|
body: await parseBody(output.body, context),
|
|
@@ -293,9 +401,9 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
293
401
|
case "ForbiddenException":
|
|
294
402
|
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
295
403
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
296
|
-
case "
|
|
297
|
-
case "com.amazonaws.chimesdkmediapipelines#
|
|
298
|
-
throw await
|
|
404
|
+
case "ResourceLimitExceededException":
|
|
405
|
+
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
406
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
299
407
|
case "ServiceFailureException":
|
|
300
408
|
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
301
409
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -318,24 +426,18 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
318
426
|
});
|
|
319
427
|
}
|
|
320
428
|
};
|
|
321
|
-
const
|
|
322
|
-
if (output.statusCode !==
|
|
323
|
-
return
|
|
429
|
+
const deserializeAws_restJson1DeleteMediaCapturePipelineCommand = async (output, context) => {
|
|
430
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
431
|
+
return deserializeAws_restJson1DeleteMediaCapturePipelineCommandError(output, context);
|
|
324
432
|
}
|
|
325
433
|
const contents = map({
|
|
326
434
|
$metadata: deserializeMetadata(output),
|
|
327
435
|
});
|
|
328
|
-
|
|
329
|
-
if (data.MediaCapturePipelines != null) {
|
|
330
|
-
contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineSummaryList(data.MediaCapturePipelines, context);
|
|
331
|
-
}
|
|
332
|
-
if (data.NextToken != null) {
|
|
333
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
334
|
-
}
|
|
436
|
+
await collectBody(output.body, context);
|
|
335
437
|
return contents;
|
|
336
438
|
};
|
|
337
|
-
exports.
|
|
338
|
-
const
|
|
439
|
+
exports.deserializeAws_restJson1DeleteMediaCapturePipelineCommand = deserializeAws_restJson1DeleteMediaCapturePipelineCommand;
|
|
440
|
+
const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (output, context) => {
|
|
339
441
|
const parsedOutput = {
|
|
340
442
|
...output,
|
|
341
443
|
body: await parseBody(output.body, context),
|
|
@@ -348,9 +450,9 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
348
450
|
case "ForbiddenException":
|
|
349
451
|
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
350
452
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
351
|
-
case "
|
|
352
|
-
case "com.amazonaws.chimesdkmediapipelines#
|
|
353
|
-
throw await
|
|
453
|
+
case "NotFoundException":
|
|
454
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
455
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
354
456
|
case "ServiceFailureException":
|
|
355
457
|
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
356
458
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -373,21 +475,18 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
373
475
|
});
|
|
374
476
|
}
|
|
375
477
|
};
|
|
376
|
-
const
|
|
377
|
-
if (output.statusCode !==
|
|
378
|
-
return
|
|
478
|
+
const deserializeAws_restJson1DeleteMediaPipelineCommand = async (output, context) => {
|
|
479
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
480
|
+
return deserializeAws_restJson1DeleteMediaPipelineCommandError(output, context);
|
|
379
481
|
}
|
|
380
482
|
const contents = map({
|
|
381
483
|
$metadata: deserializeMetadata(output),
|
|
382
484
|
});
|
|
383
|
-
|
|
384
|
-
if (data.Tags != null) {
|
|
385
|
-
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
386
|
-
}
|
|
485
|
+
await collectBody(output.body, context);
|
|
387
486
|
return contents;
|
|
388
487
|
};
|
|
389
|
-
exports.
|
|
390
|
-
const
|
|
488
|
+
exports.deserializeAws_restJson1DeleteMediaPipelineCommand = deserializeAws_restJson1DeleteMediaPipelineCommand;
|
|
489
|
+
const deserializeAws_restJson1DeleteMediaPipelineCommandError = async (output, context) => {
|
|
391
490
|
const parsedOutput = {
|
|
392
491
|
...output,
|
|
393
492
|
body: await parseBody(output.body, context),
|
|
@@ -425,18 +524,21 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
425
524
|
});
|
|
426
525
|
}
|
|
427
526
|
};
|
|
428
|
-
const
|
|
429
|
-
if (output.statusCode !==
|
|
430
|
-
return
|
|
527
|
+
const deserializeAws_restJson1GetMediaCapturePipelineCommand = async (output, context) => {
|
|
528
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
+
return deserializeAws_restJson1GetMediaCapturePipelineCommandError(output, context);
|
|
431
530
|
}
|
|
432
531
|
const contents = map({
|
|
433
532
|
$metadata: deserializeMetadata(output),
|
|
434
533
|
});
|
|
435
|
-
await
|
|
534
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
535
|
+
if (data.MediaCapturePipeline != null) {
|
|
536
|
+
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
537
|
+
}
|
|
436
538
|
return contents;
|
|
437
539
|
};
|
|
438
|
-
exports.
|
|
439
|
-
const
|
|
540
|
+
exports.deserializeAws_restJson1GetMediaCapturePipelineCommand = deserializeAws_restJson1GetMediaCapturePipelineCommand;
|
|
541
|
+
const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (output, context) => {
|
|
440
542
|
const parsedOutput = {
|
|
441
543
|
...output,
|
|
442
544
|
body: await parseBody(output.body, context),
|
|
@@ -474,18 +576,21 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
474
576
|
});
|
|
475
577
|
}
|
|
476
578
|
};
|
|
477
|
-
const
|
|
478
|
-
if (output.statusCode !==
|
|
479
|
-
return
|
|
579
|
+
const deserializeAws_restJson1GetMediaPipelineCommand = async (output, context) => {
|
|
580
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
+
return deserializeAws_restJson1GetMediaPipelineCommandError(output, context);
|
|
480
582
|
}
|
|
481
583
|
const contents = map({
|
|
482
584
|
$metadata: deserializeMetadata(output),
|
|
483
585
|
});
|
|
484
|
-
await
|
|
586
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
587
|
+
if (data.MediaPipeline != null) {
|
|
588
|
+
contents.MediaPipeline = deserializeAws_restJson1MediaPipeline(data.MediaPipeline, context);
|
|
589
|
+
}
|
|
485
590
|
return contents;
|
|
486
591
|
};
|
|
487
|
-
exports.
|
|
488
|
-
const
|
|
592
|
+
exports.deserializeAws_restJson1GetMediaPipelineCommand = deserializeAws_restJson1GetMediaPipelineCommand;
|
|
593
|
+
const deserializeAws_restJson1GetMediaPipelineCommandError = async (output, context) => {
|
|
489
594
|
const parsedOutput = {
|
|
490
595
|
...output,
|
|
491
596
|
body: await parseBody(output.body, context),
|
|
@@ -523,42 +628,302 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
523
628
|
});
|
|
524
629
|
}
|
|
525
630
|
};
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
const data = parsedOutput.body;
|
|
530
|
-
if (data.Code != null) {
|
|
531
|
-
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
631
|
+
const deserializeAws_restJson1ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
632
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
+
return deserializeAws_restJson1ListMediaCapturePipelinesCommandError(output, context);
|
|
532
634
|
}
|
|
533
|
-
|
|
534
|
-
|
|
635
|
+
const contents = map({
|
|
636
|
+
$metadata: deserializeMetadata(output),
|
|
637
|
+
});
|
|
638
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
639
|
+
if (data.MediaCapturePipelines != null) {
|
|
640
|
+
contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineSummaryList(data.MediaCapturePipelines, context);
|
|
535
641
|
}
|
|
536
|
-
if (data.
|
|
537
|
-
contents.
|
|
642
|
+
if (data.NextToken != null) {
|
|
643
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
538
644
|
}
|
|
539
|
-
|
|
540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
541
|
-
...contents,
|
|
542
|
-
});
|
|
543
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
645
|
+
return contents;
|
|
544
646
|
};
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
647
|
+
exports.deserializeAws_restJson1ListMediaCapturePipelinesCommand = deserializeAws_restJson1ListMediaCapturePipelinesCommand;
|
|
648
|
+
const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (output, context) => {
|
|
649
|
+
const parsedOutput = {
|
|
650
|
+
...output,
|
|
651
|
+
body: await parseBody(output.body, context),
|
|
652
|
+
};
|
|
653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
+
switch (errorCode) {
|
|
655
|
+
case "BadRequestException":
|
|
656
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
657
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
658
|
+
case "ForbiddenException":
|
|
659
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
660
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "ResourceLimitExceededException":
|
|
662
|
+
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
663
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "ServiceFailureException":
|
|
665
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
666
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
667
|
+
case "ServiceUnavailableException":
|
|
668
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
669
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "ThrottledClientException":
|
|
671
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
672
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
673
|
+
case "UnauthorizedClientException":
|
|
674
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
675
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
676
|
+
default:
|
|
677
|
+
const parsedBody = parsedOutput.body;
|
|
678
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
679
|
+
output,
|
|
680
|
+
parsedBody,
|
|
681
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
682
|
+
errorCode,
|
|
683
|
+
});
|
|
553
684
|
}
|
|
554
|
-
|
|
555
|
-
|
|
685
|
+
};
|
|
686
|
+
const deserializeAws_restJson1ListMediaPipelinesCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
+
return deserializeAws_restJson1ListMediaPipelinesCommandError(output, context);
|
|
556
689
|
}
|
|
557
|
-
const
|
|
558
|
-
$metadata: deserializeMetadata(
|
|
559
|
-
...contents,
|
|
690
|
+
const contents = map({
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
560
692
|
});
|
|
561
|
-
|
|
693
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
694
|
+
if (data.MediaPipelines != null) {
|
|
695
|
+
contents.MediaPipelines = deserializeAws_restJson1MediaPipelineList(data.MediaPipelines, context);
|
|
696
|
+
}
|
|
697
|
+
if (data.NextToken != null) {
|
|
698
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
699
|
+
}
|
|
700
|
+
return contents;
|
|
701
|
+
};
|
|
702
|
+
exports.deserializeAws_restJson1ListMediaPipelinesCommand = deserializeAws_restJson1ListMediaPipelinesCommand;
|
|
703
|
+
const deserializeAws_restJson1ListMediaPipelinesCommandError = async (output, context) => {
|
|
704
|
+
const parsedOutput = {
|
|
705
|
+
...output,
|
|
706
|
+
body: await parseBody(output.body, context),
|
|
707
|
+
};
|
|
708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
switch (errorCode) {
|
|
710
|
+
case "BadRequestException":
|
|
711
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
712
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
713
|
+
case "ForbiddenException":
|
|
714
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
715
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "ResourceLimitExceededException":
|
|
717
|
+
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
718
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
719
|
+
case "ServiceFailureException":
|
|
720
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
721
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
722
|
+
case "ServiceUnavailableException":
|
|
723
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
724
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
725
|
+
case "ThrottledClientException":
|
|
726
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
727
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
728
|
+
case "UnauthorizedClientException":
|
|
729
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
730
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
731
|
+
default:
|
|
732
|
+
const parsedBody = parsedOutput.body;
|
|
733
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
734
|
+
output,
|
|
735
|
+
parsedBody,
|
|
736
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
737
|
+
errorCode,
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
744
|
+
}
|
|
745
|
+
const contents = map({
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
});
|
|
748
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
749
|
+
if (data.Tags != null) {
|
|
750
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
751
|
+
}
|
|
752
|
+
return contents;
|
|
753
|
+
};
|
|
754
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
755
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
756
|
+
const parsedOutput = {
|
|
757
|
+
...output,
|
|
758
|
+
body: await parseBody(output.body, context),
|
|
759
|
+
};
|
|
760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
+
switch (errorCode) {
|
|
762
|
+
case "BadRequestException":
|
|
763
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
764
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
765
|
+
case "ForbiddenException":
|
|
766
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
767
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
768
|
+
case "NotFoundException":
|
|
769
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
770
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
771
|
+
case "ServiceFailureException":
|
|
772
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
773
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
774
|
+
case "ServiceUnavailableException":
|
|
775
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
776
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
777
|
+
case "ThrottledClientException":
|
|
778
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
779
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
780
|
+
case "UnauthorizedClientException":
|
|
781
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
782
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
783
|
+
default:
|
|
784
|
+
const parsedBody = parsedOutput.body;
|
|
785
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
786
|
+
output,
|
|
787
|
+
parsedBody,
|
|
788
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
789
|
+
errorCode,
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
794
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
795
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
796
|
+
}
|
|
797
|
+
const contents = map({
|
|
798
|
+
$metadata: deserializeMetadata(output),
|
|
799
|
+
});
|
|
800
|
+
await collectBody(output.body, context);
|
|
801
|
+
return contents;
|
|
802
|
+
};
|
|
803
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
804
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
805
|
+
const parsedOutput = {
|
|
806
|
+
...output,
|
|
807
|
+
body: await parseBody(output.body, context),
|
|
808
|
+
};
|
|
809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
+
switch (errorCode) {
|
|
811
|
+
case "BadRequestException":
|
|
812
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
813
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "ForbiddenException":
|
|
815
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
816
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "NotFoundException":
|
|
818
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
819
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "ServiceFailureException":
|
|
821
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
822
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
823
|
+
case "ServiceUnavailableException":
|
|
824
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
825
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
826
|
+
case "ThrottledClientException":
|
|
827
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
828
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
829
|
+
case "UnauthorizedClientException":
|
|
830
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
831
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
832
|
+
default:
|
|
833
|
+
const parsedBody = parsedOutput.body;
|
|
834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
835
|
+
output,
|
|
836
|
+
parsedBody,
|
|
837
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
838
|
+
errorCode,
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
843
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
844
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const contents = map({
|
|
847
|
+
$metadata: deserializeMetadata(output),
|
|
848
|
+
});
|
|
849
|
+
await collectBody(output.body, context);
|
|
850
|
+
return contents;
|
|
851
|
+
};
|
|
852
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
853
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
854
|
+
const parsedOutput = {
|
|
855
|
+
...output,
|
|
856
|
+
body: await parseBody(output.body, context),
|
|
857
|
+
};
|
|
858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
+
switch (errorCode) {
|
|
860
|
+
case "BadRequestException":
|
|
861
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
862
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
863
|
+
case "ForbiddenException":
|
|
864
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
865
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
866
|
+
case "NotFoundException":
|
|
867
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
868
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
869
|
+
case "ServiceFailureException":
|
|
870
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
871
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
872
|
+
case "ServiceUnavailableException":
|
|
873
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
874
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
875
|
+
case "ThrottledClientException":
|
|
876
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
877
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
878
|
+
case "UnauthorizedClientException":
|
|
879
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
880
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
881
|
+
default:
|
|
882
|
+
const parsedBody = parsedOutput.body;
|
|
883
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
887
|
+
errorCode,
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
const map = smithy_client_1.map;
|
|
892
|
+
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
893
|
+
const contents = map({});
|
|
894
|
+
const data = parsedOutput.body;
|
|
895
|
+
if (data.Code != null) {
|
|
896
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
897
|
+
}
|
|
898
|
+
if (data.Message != null) {
|
|
899
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
900
|
+
}
|
|
901
|
+
if (data.RequestId != null) {
|
|
902
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
903
|
+
}
|
|
904
|
+
const exception = new models_0_1.BadRequestException({
|
|
905
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
906
|
+
...contents,
|
|
907
|
+
});
|
|
908
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
909
|
+
};
|
|
910
|
+
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
911
|
+
const contents = map({});
|
|
912
|
+
const data = parsedOutput.body;
|
|
913
|
+
if (data.Code != null) {
|
|
914
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
915
|
+
}
|
|
916
|
+
if (data.Message != null) {
|
|
917
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
918
|
+
}
|
|
919
|
+
if (data.RequestId != null) {
|
|
920
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
921
|
+
}
|
|
922
|
+
const exception = new models_0_1.ForbiddenException({
|
|
923
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
924
|
+
...contents,
|
|
925
|
+
});
|
|
926
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
562
927
|
};
|
|
563
928
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
564
929
|
const contents = map({});
|
|
@@ -668,9 +1033,33 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
668
1033
|
});
|
|
669
1034
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
670
1035
|
};
|
|
1036
|
+
const serializeAws_restJson1ArtifactsConcatenationConfiguration = (input, context) => {
|
|
1037
|
+
return {
|
|
1038
|
+
...(input.Audio != null && { Audio: serializeAws_restJson1AudioConcatenationConfiguration(input.Audio, context) }),
|
|
1039
|
+
...(input.CompositedVideo != null && {
|
|
1040
|
+
CompositedVideo: serializeAws_restJson1CompositedVideoConcatenationConfiguration(input.CompositedVideo, context),
|
|
1041
|
+
}),
|
|
1042
|
+
...(input.Content != null && {
|
|
1043
|
+
Content: serializeAws_restJson1ContentConcatenationConfiguration(input.Content, context),
|
|
1044
|
+
}),
|
|
1045
|
+
...(input.DataChannel != null && {
|
|
1046
|
+
DataChannel: serializeAws_restJson1DataChannelConcatenationConfiguration(input.DataChannel, context),
|
|
1047
|
+
}),
|
|
1048
|
+
...(input.MeetingEvents != null && {
|
|
1049
|
+
MeetingEvents: serializeAws_restJson1MeetingEventsConcatenationConfiguration(input.MeetingEvents, context),
|
|
1050
|
+
}),
|
|
1051
|
+
...(input.TranscriptionMessages != null && {
|
|
1052
|
+
TranscriptionMessages: serializeAws_restJson1TranscriptionMessagesConcatenationConfiguration(input.TranscriptionMessages, context),
|
|
1053
|
+
}),
|
|
1054
|
+
...(input.Video != null && { Video: serializeAws_restJson1VideoConcatenationConfiguration(input.Video, context) }),
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
671
1057
|
const serializeAws_restJson1ArtifactsConfiguration = (input, context) => {
|
|
672
1058
|
return {
|
|
673
1059
|
...(input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
|
|
1060
|
+
...(input.CompositedVideo != null && {
|
|
1061
|
+
CompositedVideo: serializeAws_restJson1CompositedVideoArtifactsConfiguration(input.CompositedVideo, context),
|
|
1062
|
+
}),
|
|
674
1063
|
...(input.Content != null && {
|
|
675
1064
|
Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
|
|
676
1065
|
}),
|
|
@@ -689,6 +1078,18 @@ const serializeAws_restJson1AudioArtifactsConfiguration = (input, context) => {
|
|
|
689
1078
|
...(input.MuxType != null && { MuxType: input.MuxType }),
|
|
690
1079
|
};
|
|
691
1080
|
};
|
|
1081
|
+
const serializeAws_restJson1AudioConcatenationConfiguration = (input, context) => {
|
|
1082
|
+
return {
|
|
1083
|
+
...(input.State != null && { State: input.State }),
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
const serializeAws_restJson1ChimeSdkMeetingConcatenationConfiguration = (input, context) => {
|
|
1087
|
+
return {
|
|
1088
|
+
...(input.ArtifactsConfiguration != null && {
|
|
1089
|
+
ArtifactsConfiguration: serializeAws_restJson1ArtifactsConcatenationConfiguration(input.ArtifactsConfiguration, context),
|
|
1090
|
+
}),
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
692
1093
|
const serializeAws_restJson1ChimeSdkMeetingConfiguration = (input, context) => {
|
|
693
1094
|
return {
|
|
694
1095
|
...(input.ArtifactsConfiguration != null && {
|
|
@@ -699,12 +1100,78 @@ const serializeAws_restJson1ChimeSdkMeetingConfiguration = (input, context) => {
|
|
|
699
1100
|
}),
|
|
700
1101
|
};
|
|
701
1102
|
};
|
|
1103
|
+
const serializeAws_restJson1ChimeSdkMeetingLiveConnectorConfiguration = (input, context) => {
|
|
1104
|
+
return {
|
|
1105
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
1106
|
+
...(input.CompositedVideo != null && {
|
|
1107
|
+
CompositedVideo: serializeAws_restJson1CompositedVideoArtifactsConfiguration(input.CompositedVideo, context),
|
|
1108
|
+
}),
|
|
1109
|
+
...(input.MuxType != null && { MuxType: input.MuxType }),
|
|
1110
|
+
...(input.SourceConfiguration != null && {
|
|
1111
|
+
SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
|
|
1112
|
+
}),
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
const serializeAws_restJson1CompositedVideoArtifactsConfiguration = (input, context) => {
|
|
1116
|
+
return {
|
|
1117
|
+
...(input.GridViewConfiguration != null && {
|
|
1118
|
+
GridViewConfiguration: serializeAws_restJson1GridViewConfiguration(input.GridViewConfiguration, context),
|
|
1119
|
+
}),
|
|
1120
|
+
...(input.Layout != null && { Layout: input.Layout }),
|
|
1121
|
+
...(input.Resolution != null && { Resolution: input.Resolution }),
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
const serializeAws_restJson1CompositedVideoConcatenationConfiguration = (input, context) => {
|
|
1125
|
+
return {
|
|
1126
|
+
...(input.State != null && { State: input.State }),
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
const serializeAws_restJson1ConcatenationSink = (input, context) => {
|
|
1130
|
+
return {
|
|
1131
|
+
...(input.S3BucketSinkConfiguration != null && {
|
|
1132
|
+
S3BucketSinkConfiguration: serializeAws_restJson1S3BucketSinkConfiguration(input.S3BucketSinkConfiguration, context),
|
|
1133
|
+
}),
|
|
1134
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
const serializeAws_restJson1ConcatenationSinkList = (input, context) => {
|
|
1138
|
+
return input
|
|
1139
|
+
.filter((e) => e != null)
|
|
1140
|
+
.map((entry) => {
|
|
1141
|
+
return serializeAws_restJson1ConcatenationSink(entry, context);
|
|
1142
|
+
});
|
|
1143
|
+
};
|
|
1144
|
+
const serializeAws_restJson1ConcatenationSource = (input, context) => {
|
|
1145
|
+
return {
|
|
1146
|
+
...(input.MediaCapturePipelineSourceConfiguration != null && {
|
|
1147
|
+
MediaCapturePipelineSourceConfiguration: serializeAws_restJson1MediaCapturePipelineSourceConfiguration(input.MediaCapturePipelineSourceConfiguration, context),
|
|
1148
|
+
}),
|
|
1149
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
const serializeAws_restJson1ConcatenationSourceList = (input, context) => {
|
|
1153
|
+
return input
|
|
1154
|
+
.filter((e) => e != null)
|
|
1155
|
+
.map((entry) => {
|
|
1156
|
+
return serializeAws_restJson1ConcatenationSource(entry, context);
|
|
1157
|
+
});
|
|
1158
|
+
};
|
|
702
1159
|
const serializeAws_restJson1ContentArtifactsConfiguration = (input, context) => {
|
|
703
1160
|
return {
|
|
704
1161
|
...(input.MuxType != null && { MuxType: input.MuxType }),
|
|
705
1162
|
...(input.State != null && { State: input.State }),
|
|
706
1163
|
};
|
|
707
1164
|
};
|
|
1165
|
+
const serializeAws_restJson1ContentConcatenationConfiguration = (input, context) => {
|
|
1166
|
+
return {
|
|
1167
|
+
...(input.State != null && { State: input.State }),
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
const serializeAws_restJson1DataChannelConcatenationConfiguration = (input, context) => {
|
|
1171
|
+
return {
|
|
1172
|
+
...(input.State != null && { State: input.State }),
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
708
1175
|
const serializeAws_restJson1ExternalUserIdList = (input, context) => {
|
|
709
1176
|
return input
|
|
710
1177
|
.filter((e) => e != null)
|
|
@@ -712,6 +1179,74 @@ const serializeAws_restJson1ExternalUserIdList = (input, context) => {
|
|
|
712
1179
|
return entry;
|
|
713
1180
|
});
|
|
714
1181
|
};
|
|
1182
|
+
const serializeAws_restJson1GridViewConfiguration = (input, context) => {
|
|
1183
|
+
return {
|
|
1184
|
+
...(input.ContentShareLayout != null && { ContentShareLayout: input.ContentShareLayout }),
|
|
1185
|
+
...(input.PresenterOnlyConfiguration != null && {
|
|
1186
|
+
PresenterOnlyConfiguration: serializeAws_restJson1PresenterOnlyConfiguration(input.PresenterOnlyConfiguration, context),
|
|
1187
|
+
}),
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
const serializeAws_restJson1LiveConnectorRTMPConfiguration = (input, context) => {
|
|
1191
|
+
return {
|
|
1192
|
+
...(input.AudioChannels != null && { AudioChannels: input.AudioChannels }),
|
|
1193
|
+
...(input.AudioSampleRate != null && { AudioSampleRate: input.AudioSampleRate }),
|
|
1194
|
+
...(input.Url != null && { Url: input.Url }),
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
const serializeAws_restJson1LiveConnectorSinkConfiguration = (input, context) => {
|
|
1198
|
+
return {
|
|
1199
|
+
...(input.RTMPConfiguration != null && {
|
|
1200
|
+
RTMPConfiguration: serializeAws_restJson1LiveConnectorRTMPConfiguration(input.RTMPConfiguration, context),
|
|
1201
|
+
}),
|
|
1202
|
+
...(input.SinkType != null && { SinkType: input.SinkType }),
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
const serializeAws_restJson1LiveConnectorSinkList = (input, context) => {
|
|
1206
|
+
return input
|
|
1207
|
+
.filter((e) => e != null)
|
|
1208
|
+
.map((entry) => {
|
|
1209
|
+
return serializeAws_restJson1LiveConnectorSinkConfiguration(entry, context);
|
|
1210
|
+
});
|
|
1211
|
+
};
|
|
1212
|
+
const serializeAws_restJson1LiveConnectorSourceConfiguration = (input, context) => {
|
|
1213
|
+
return {
|
|
1214
|
+
...(input.ChimeSdkMeetingLiveConnectorConfiguration != null && {
|
|
1215
|
+
ChimeSdkMeetingLiveConnectorConfiguration: serializeAws_restJson1ChimeSdkMeetingLiveConnectorConfiguration(input.ChimeSdkMeetingLiveConnectorConfiguration, context),
|
|
1216
|
+
}),
|
|
1217
|
+
...(input.SourceType != null && { SourceType: input.SourceType }),
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
const serializeAws_restJson1LiveConnectorSourceList = (input, context) => {
|
|
1221
|
+
return input
|
|
1222
|
+
.filter((e) => e != null)
|
|
1223
|
+
.map((entry) => {
|
|
1224
|
+
return serializeAws_restJson1LiveConnectorSourceConfiguration(entry, context);
|
|
1225
|
+
});
|
|
1226
|
+
};
|
|
1227
|
+
const serializeAws_restJson1MediaCapturePipelineSourceConfiguration = (input, context) => {
|
|
1228
|
+
return {
|
|
1229
|
+
...(input.ChimeSdkMeetingConfiguration != null && {
|
|
1230
|
+
ChimeSdkMeetingConfiguration: serializeAws_restJson1ChimeSdkMeetingConcatenationConfiguration(input.ChimeSdkMeetingConfiguration, context),
|
|
1231
|
+
}),
|
|
1232
|
+
...(input.MediaPipelineArn != null && { MediaPipelineArn: input.MediaPipelineArn }),
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
const serializeAws_restJson1MeetingEventsConcatenationConfiguration = (input, context) => {
|
|
1236
|
+
return {
|
|
1237
|
+
...(input.State != null && { State: input.State }),
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
const serializeAws_restJson1PresenterOnlyConfiguration = (input, context) => {
|
|
1241
|
+
return {
|
|
1242
|
+
...(input.PresenterPosition != null && { PresenterPosition: input.PresenterPosition }),
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
const serializeAws_restJson1S3BucketSinkConfiguration = (input, context) => {
|
|
1246
|
+
return {
|
|
1247
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
715
1250
|
const serializeAws_restJson1SelectedVideoStreams = (input, context) => {
|
|
716
1251
|
return {
|
|
717
1252
|
...(input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
|
|
@@ -747,15 +1282,49 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
747
1282
|
return serializeAws_restJson1Tag(entry, context);
|
|
748
1283
|
});
|
|
749
1284
|
};
|
|
1285
|
+
const serializeAws_restJson1TranscriptionMessagesConcatenationConfiguration = (input, context) => {
|
|
1286
|
+
return {
|
|
1287
|
+
...(input.State != null && { State: input.State }),
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
750
1290
|
const serializeAws_restJson1VideoArtifactsConfiguration = (input, context) => {
|
|
751
1291
|
return {
|
|
752
1292
|
...(input.MuxType != null && { MuxType: input.MuxType }),
|
|
753
1293
|
...(input.State != null && { State: input.State }),
|
|
754
1294
|
};
|
|
755
1295
|
};
|
|
1296
|
+
const serializeAws_restJson1VideoConcatenationConfiguration = (input, context) => {
|
|
1297
|
+
return {
|
|
1298
|
+
...(input.State != null && { State: input.State }),
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
const deserializeAws_restJson1ArtifactsConcatenationConfiguration = (output, context) => {
|
|
1302
|
+
return {
|
|
1303
|
+
Audio: output.Audio != null ? deserializeAws_restJson1AudioConcatenationConfiguration(output.Audio, context) : undefined,
|
|
1304
|
+
CompositedVideo: output.CompositedVideo != null
|
|
1305
|
+
? deserializeAws_restJson1CompositedVideoConcatenationConfiguration(output.CompositedVideo, context)
|
|
1306
|
+
: undefined,
|
|
1307
|
+
Content: output.Content != null
|
|
1308
|
+
? deserializeAws_restJson1ContentConcatenationConfiguration(output.Content, context)
|
|
1309
|
+
: undefined,
|
|
1310
|
+
DataChannel: output.DataChannel != null
|
|
1311
|
+
? deserializeAws_restJson1DataChannelConcatenationConfiguration(output.DataChannel, context)
|
|
1312
|
+
: undefined,
|
|
1313
|
+
MeetingEvents: output.MeetingEvents != null
|
|
1314
|
+
? deserializeAws_restJson1MeetingEventsConcatenationConfiguration(output.MeetingEvents, context)
|
|
1315
|
+
: undefined,
|
|
1316
|
+
TranscriptionMessages: output.TranscriptionMessages != null
|
|
1317
|
+
? deserializeAws_restJson1TranscriptionMessagesConcatenationConfiguration(output.TranscriptionMessages, context)
|
|
1318
|
+
: undefined,
|
|
1319
|
+
Video: output.Video != null ? deserializeAws_restJson1VideoConcatenationConfiguration(output.Video, context) : undefined,
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
756
1322
|
const deserializeAws_restJson1ArtifactsConfiguration = (output, context) => {
|
|
757
1323
|
return {
|
|
758
1324
|
Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
|
|
1325
|
+
CompositedVideo: output.CompositedVideo != null
|
|
1326
|
+
? deserializeAws_restJson1CompositedVideoArtifactsConfiguration(output.CompositedVideo, context)
|
|
1327
|
+
: undefined,
|
|
759
1328
|
Content: output.Content != null
|
|
760
1329
|
? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
|
|
761
1330
|
: undefined,
|
|
@@ -778,6 +1347,18 @@ const deserializeAws_restJson1AudioArtifactsConfiguration = (output, context) =>
|
|
|
778
1347
|
MuxType: (0, smithy_client_1.expectString)(output.MuxType),
|
|
779
1348
|
};
|
|
780
1349
|
};
|
|
1350
|
+
const deserializeAws_restJson1AudioConcatenationConfiguration = (output, context) => {
|
|
1351
|
+
return {
|
|
1352
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
const deserializeAws_restJson1ChimeSdkMeetingConcatenationConfiguration = (output, context) => {
|
|
1356
|
+
return {
|
|
1357
|
+
ArtifactsConfiguration: output.ArtifactsConfiguration != null
|
|
1358
|
+
? deserializeAws_restJson1ArtifactsConcatenationConfiguration(output.ArtifactsConfiguration, context)
|
|
1359
|
+
: undefined,
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
781
1362
|
const deserializeAws_restJson1ChimeSdkMeetingConfiguration = (output, context) => {
|
|
782
1363
|
return {
|
|
783
1364
|
ArtifactsConfiguration: output.ArtifactsConfiguration != null
|
|
@@ -788,12 +1369,86 @@ const deserializeAws_restJson1ChimeSdkMeetingConfiguration = (output, context) =
|
|
|
788
1369
|
: undefined,
|
|
789
1370
|
};
|
|
790
1371
|
};
|
|
1372
|
+
const deserializeAws_restJson1ChimeSdkMeetingLiveConnectorConfiguration = (output, context) => {
|
|
1373
|
+
return {
|
|
1374
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1375
|
+
CompositedVideo: output.CompositedVideo != null
|
|
1376
|
+
? deserializeAws_restJson1CompositedVideoArtifactsConfiguration(output.CompositedVideo, context)
|
|
1377
|
+
: undefined,
|
|
1378
|
+
MuxType: (0, smithy_client_1.expectString)(output.MuxType),
|
|
1379
|
+
SourceConfiguration: output.SourceConfiguration != null
|
|
1380
|
+
? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
|
|
1381
|
+
: undefined,
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
const deserializeAws_restJson1CompositedVideoArtifactsConfiguration = (output, context) => {
|
|
1385
|
+
return {
|
|
1386
|
+
GridViewConfiguration: output.GridViewConfiguration != null
|
|
1387
|
+
? deserializeAws_restJson1GridViewConfiguration(output.GridViewConfiguration, context)
|
|
1388
|
+
: undefined,
|
|
1389
|
+
Layout: (0, smithy_client_1.expectString)(output.Layout),
|
|
1390
|
+
Resolution: (0, smithy_client_1.expectString)(output.Resolution),
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
const deserializeAws_restJson1CompositedVideoConcatenationConfiguration = (output, context) => {
|
|
1394
|
+
return {
|
|
1395
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
const deserializeAws_restJson1ConcatenationSink = (output, context) => {
|
|
1399
|
+
return {
|
|
1400
|
+
S3BucketSinkConfiguration: output.S3BucketSinkConfiguration != null
|
|
1401
|
+
? deserializeAws_restJson1S3BucketSinkConfiguration(output.S3BucketSinkConfiguration, context)
|
|
1402
|
+
: undefined,
|
|
1403
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
const deserializeAws_restJson1ConcatenationSinkList = (output, context) => {
|
|
1407
|
+
const retVal = (output || [])
|
|
1408
|
+
.filter((e) => e != null)
|
|
1409
|
+
.map((entry) => {
|
|
1410
|
+
if (entry === null) {
|
|
1411
|
+
return null;
|
|
1412
|
+
}
|
|
1413
|
+
return deserializeAws_restJson1ConcatenationSink(entry, context);
|
|
1414
|
+
});
|
|
1415
|
+
return retVal;
|
|
1416
|
+
};
|
|
1417
|
+
const deserializeAws_restJson1ConcatenationSource = (output, context) => {
|
|
1418
|
+
return {
|
|
1419
|
+
MediaCapturePipelineSourceConfiguration: output.MediaCapturePipelineSourceConfiguration != null
|
|
1420
|
+
? deserializeAws_restJson1MediaCapturePipelineSourceConfiguration(output.MediaCapturePipelineSourceConfiguration, context)
|
|
1421
|
+
: undefined,
|
|
1422
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
const deserializeAws_restJson1ConcatenationSourceList = (output, context) => {
|
|
1426
|
+
const retVal = (output || [])
|
|
1427
|
+
.filter((e) => e != null)
|
|
1428
|
+
.map((entry) => {
|
|
1429
|
+
if (entry === null) {
|
|
1430
|
+
return null;
|
|
1431
|
+
}
|
|
1432
|
+
return deserializeAws_restJson1ConcatenationSource(entry, context);
|
|
1433
|
+
});
|
|
1434
|
+
return retVal;
|
|
1435
|
+
};
|
|
791
1436
|
const deserializeAws_restJson1ContentArtifactsConfiguration = (output, context) => {
|
|
792
1437
|
return {
|
|
793
1438
|
MuxType: (0, smithy_client_1.expectString)(output.MuxType),
|
|
794
1439
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
795
1440
|
};
|
|
796
1441
|
};
|
|
1442
|
+
const deserializeAws_restJson1ContentConcatenationConfiguration = (output, context) => {
|
|
1443
|
+
return {
|
|
1444
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1447
|
+
const deserializeAws_restJson1DataChannelConcatenationConfiguration = (output, context) => {
|
|
1448
|
+
return {
|
|
1449
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
797
1452
|
const deserializeAws_restJson1ExternalUserIdList = (output, context) => {
|
|
798
1453
|
const retVal = (output || [])
|
|
799
1454
|
.filter((e) => e != null)
|
|
@@ -805,6 +1460,59 @@ const deserializeAws_restJson1ExternalUserIdList = (output, context) => {
|
|
|
805
1460
|
});
|
|
806
1461
|
return retVal;
|
|
807
1462
|
};
|
|
1463
|
+
const deserializeAws_restJson1GridViewConfiguration = (output, context) => {
|
|
1464
|
+
return {
|
|
1465
|
+
ContentShareLayout: (0, smithy_client_1.expectString)(output.ContentShareLayout),
|
|
1466
|
+
PresenterOnlyConfiguration: output.PresenterOnlyConfiguration != null
|
|
1467
|
+
? deserializeAws_restJson1PresenterOnlyConfiguration(output.PresenterOnlyConfiguration, context)
|
|
1468
|
+
: undefined,
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
const deserializeAws_restJson1LiveConnectorRTMPConfiguration = (output, context) => {
|
|
1472
|
+
return {
|
|
1473
|
+
AudioChannels: (0, smithy_client_1.expectString)(output.AudioChannels),
|
|
1474
|
+
AudioSampleRate: (0, smithy_client_1.expectString)(output.AudioSampleRate),
|
|
1475
|
+
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
const deserializeAws_restJson1LiveConnectorSinkConfiguration = (output, context) => {
|
|
1479
|
+
return {
|
|
1480
|
+
RTMPConfiguration: output.RTMPConfiguration != null
|
|
1481
|
+
? deserializeAws_restJson1LiveConnectorRTMPConfiguration(output.RTMPConfiguration, context)
|
|
1482
|
+
: undefined,
|
|
1483
|
+
SinkType: (0, smithy_client_1.expectString)(output.SinkType),
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
const deserializeAws_restJson1LiveConnectorSinkList = (output, context) => {
|
|
1487
|
+
const retVal = (output || [])
|
|
1488
|
+
.filter((e) => e != null)
|
|
1489
|
+
.map((entry) => {
|
|
1490
|
+
if (entry === null) {
|
|
1491
|
+
return null;
|
|
1492
|
+
}
|
|
1493
|
+
return deserializeAws_restJson1LiveConnectorSinkConfiguration(entry, context);
|
|
1494
|
+
});
|
|
1495
|
+
return retVal;
|
|
1496
|
+
};
|
|
1497
|
+
const deserializeAws_restJson1LiveConnectorSourceConfiguration = (output, context) => {
|
|
1498
|
+
return {
|
|
1499
|
+
ChimeSdkMeetingLiveConnectorConfiguration: output.ChimeSdkMeetingLiveConnectorConfiguration != null
|
|
1500
|
+
? deserializeAws_restJson1ChimeSdkMeetingLiveConnectorConfiguration(output.ChimeSdkMeetingLiveConnectorConfiguration, context)
|
|
1501
|
+
: undefined,
|
|
1502
|
+
SourceType: (0, smithy_client_1.expectString)(output.SourceType),
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
const deserializeAws_restJson1LiveConnectorSourceList = (output, context) => {
|
|
1506
|
+
const retVal = (output || [])
|
|
1507
|
+
.filter((e) => e != null)
|
|
1508
|
+
.map((entry) => {
|
|
1509
|
+
if (entry === null) {
|
|
1510
|
+
return null;
|
|
1511
|
+
}
|
|
1512
|
+
return deserializeAws_restJson1LiveConnectorSourceConfiguration(entry, context);
|
|
1513
|
+
});
|
|
1514
|
+
return retVal;
|
|
1515
|
+
};
|
|
808
1516
|
const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
|
|
809
1517
|
return {
|
|
810
1518
|
ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
|
|
@@ -821,6 +1529,14 @@ const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
|
|
|
821
1529
|
UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
|
|
822
1530
|
};
|
|
823
1531
|
};
|
|
1532
|
+
const deserializeAws_restJson1MediaCapturePipelineSourceConfiguration = (output, context) => {
|
|
1533
|
+
return {
|
|
1534
|
+
ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
|
|
1535
|
+
? deserializeAws_restJson1ChimeSdkMeetingConcatenationConfiguration(output.ChimeSdkMeetingConfiguration, context)
|
|
1536
|
+
: undefined,
|
|
1537
|
+
MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
824
1540
|
const deserializeAws_restJson1MediaCapturePipelineSummary = (output, context) => {
|
|
825
1541
|
return {
|
|
826
1542
|
MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
|
|
@@ -838,6 +1554,73 @@ const deserializeAws_restJson1MediaCapturePipelineSummaryList = (output, context
|
|
|
838
1554
|
});
|
|
839
1555
|
return retVal;
|
|
840
1556
|
};
|
|
1557
|
+
const deserializeAws_restJson1MediaConcatenationPipeline = (output, context) => {
|
|
1558
|
+
return {
|
|
1559
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
|
|
1560
|
+
MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
|
|
1561
|
+
MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
|
|
1562
|
+
Sinks: output.Sinks != null ? deserializeAws_restJson1ConcatenationSinkList(output.Sinks, context) : undefined,
|
|
1563
|
+
Sources: output.Sources != null ? deserializeAws_restJson1ConcatenationSourceList(output.Sources, context) : undefined,
|
|
1564
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1565
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
const deserializeAws_restJson1MediaLiveConnectorPipeline = (output, context) => {
|
|
1569
|
+
return {
|
|
1570
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
|
|
1571
|
+
MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
|
|
1572
|
+
MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
|
|
1573
|
+
Sinks: output.Sinks != null ? deserializeAws_restJson1LiveConnectorSinkList(output.Sinks, context) : undefined,
|
|
1574
|
+
Sources: output.Sources != null ? deserializeAws_restJson1LiveConnectorSourceList(output.Sources, context) : undefined,
|
|
1575
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1576
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
const deserializeAws_restJson1MediaPipeline = (output, context) => {
|
|
1580
|
+
return {
|
|
1581
|
+
MediaCapturePipeline: output.MediaCapturePipeline != null
|
|
1582
|
+
? deserializeAws_restJson1MediaCapturePipeline(output.MediaCapturePipeline, context)
|
|
1583
|
+
: undefined,
|
|
1584
|
+
MediaConcatenationPipeline: output.MediaConcatenationPipeline != null
|
|
1585
|
+
? deserializeAws_restJson1MediaConcatenationPipeline(output.MediaConcatenationPipeline, context)
|
|
1586
|
+
: undefined,
|
|
1587
|
+
MediaLiveConnectorPipeline: output.MediaLiveConnectorPipeline != null
|
|
1588
|
+
? deserializeAws_restJson1MediaLiveConnectorPipeline(output.MediaLiveConnectorPipeline, context)
|
|
1589
|
+
: undefined,
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
const deserializeAws_restJson1MediaPipelineList = (output, context) => {
|
|
1593
|
+
const retVal = (output || [])
|
|
1594
|
+
.filter((e) => e != null)
|
|
1595
|
+
.map((entry) => {
|
|
1596
|
+
if (entry === null) {
|
|
1597
|
+
return null;
|
|
1598
|
+
}
|
|
1599
|
+
return deserializeAws_restJson1MediaPipelineSummary(entry, context);
|
|
1600
|
+
});
|
|
1601
|
+
return retVal;
|
|
1602
|
+
};
|
|
1603
|
+
const deserializeAws_restJson1MediaPipelineSummary = (output, context) => {
|
|
1604
|
+
return {
|
|
1605
|
+
MediaPipelineArn: (0, smithy_client_1.expectString)(output.MediaPipelineArn),
|
|
1606
|
+
MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
const deserializeAws_restJson1MeetingEventsConcatenationConfiguration = (output, context) => {
|
|
1610
|
+
return {
|
|
1611
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
const deserializeAws_restJson1PresenterOnlyConfiguration = (output, context) => {
|
|
1615
|
+
return {
|
|
1616
|
+
PresenterPosition: (0, smithy_client_1.expectString)(output.PresenterPosition),
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
const deserializeAws_restJson1S3BucketSinkConfiguration = (output, context) => {
|
|
1620
|
+
return {
|
|
1621
|
+
Destination: (0, smithy_client_1.expectString)(output.Destination),
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
841
1624
|
const deserializeAws_restJson1SelectedVideoStreams = (output, context) => {
|
|
842
1625
|
return {
|
|
843
1626
|
AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
|
|
@@ -870,12 +1653,22 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
870
1653
|
});
|
|
871
1654
|
return retVal;
|
|
872
1655
|
};
|
|
1656
|
+
const deserializeAws_restJson1TranscriptionMessagesConcatenationConfiguration = (output, context) => {
|
|
1657
|
+
return {
|
|
1658
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
873
1661
|
const deserializeAws_restJson1VideoArtifactsConfiguration = (output, context) => {
|
|
874
1662
|
return {
|
|
875
1663
|
MuxType: (0, smithy_client_1.expectString)(output.MuxType),
|
|
876
1664
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
877
1665
|
};
|
|
878
1666
|
};
|
|
1667
|
+
const deserializeAws_restJson1VideoConcatenationConfiguration = (output, context) => {
|
|
1668
|
+
return {
|
|
1669
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
879
1672
|
const deserializeMetadata = (output) => {
|
|
880
1673
|
var _a;
|
|
881
1674
|
return ({
|