@aws-sdk/client-chime-sdk-media-pipelines 3.141.0 → 3.142.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 +109 -164
- package/dist-es/protocols/Aws_restJson1.js +133 -162
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -41,16 +41,7 @@ const serializeAws_restJson1DeleteMediaCapturePipelineCommand = async (input, co
|
|
|
41
41
|
const headers = {};
|
|
42
42
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
43
43
|
"/sdk-media-capture-pipelines/{MediaPipelineId}";
|
|
44
|
-
|
|
45
|
-
const labelValue = input.MediaPipelineId;
|
|
46
|
-
if (labelValue.length <= 0) {
|
|
47
|
-
throw new Error("Empty value provided for input HTTP label: MediaPipelineId.");
|
|
48
|
-
}
|
|
49
|
-
resolvedPath = resolvedPath.replace("{MediaPipelineId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
throw new Error("No value provided for input HTTP label: MediaPipelineId.");
|
|
53
|
-
}
|
|
44
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
54
45
|
let body;
|
|
55
46
|
return new protocol_http_1.HttpRequest({
|
|
56
47
|
protocol,
|
|
@@ -68,16 +59,7 @@ const serializeAws_restJson1GetMediaCapturePipelineCommand = async (input, conte
|
|
|
68
59
|
const headers = {};
|
|
69
60
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
70
61
|
"/sdk-media-capture-pipelines/{MediaPipelineId}";
|
|
71
|
-
|
|
72
|
-
const labelValue = input.MediaPipelineId;
|
|
73
|
-
if (labelValue.length <= 0) {
|
|
74
|
-
throw new Error("Empty value provided for input HTTP label: MediaPipelineId.");
|
|
75
|
-
}
|
|
76
|
-
resolvedPath = resolvedPath.replace("{MediaPipelineId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
throw new Error("No value provided for input HTTP label: MediaPipelineId.");
|
|
80
|
-
}
|
|
62
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
81
63
|
let body;
|
|
82
64
|
return new protocol_http_1.HttpRequest({
|
|
83
65
|
protocol,
|
|
@@ -94,10 +76,10 @@ const serializeAws_restJson1ListMediaCapturePipelinesCommand = async (input, con
|
|
|
94
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
77
|
const headers = {};
|
|
96
78
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines";
|
|
97
|
-
const query = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
};
|
|
79
|
+
const query = map({
|
|
80
|
+
"next-token": [, input.NextToken],
|
|
81
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
82
|
+
});
|
|
101
83
|
let body;
|
|
102
84
|
return new protocol_http_1.HttpRequest({
|
|
103
85
|
protocol,
|
|
@@ -115,9 +97,9 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
115
97
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
116
98
|
const headers = {};
|
|
117
99
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
118
|
-
const query = {
|
|
119
|
-
|
|
120
|
-
};
|
|
100
|
+
const query = map({
|
|
101
|
+
arn: [, input.ResourceARN],
|
|
102
|
+
});
|
|
121
103
|
let body;
|
|
122
104
|
return new protocol_http_1.HttpRequest({
|
|
123
105
|
protocol,
|
|
@@ -137,9 +119,9 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
137
119
|
"content-type": "application/json",
|
|
138
120
|
};
|
|
139
121
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
140
|
-
const query = {
|
|
141
|
-
operation: "tag-resource",
|
|
142
|
-
};
|
|
122
|
+
const query = map({
|
|
123
|
+
operation: [, "tag-resource"],
|
|
124
|
+
});
|
|
143
125
|
let body;
|
|
144
126
|
body = JSON.stringify({
|
|
145
127
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
@@ -163,9 +145,9 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
163
145
|
"content-type": "application/json",
|
|
164
146
|
};
|
|
165
147
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
166
|
-
const query = {
|
|
167
|
-
operation: "untag-resource",
|
|
168
|
-
};
|
|
148
|
+
const query = map({
|
|
149
|
+
operation: [, "untag-resource"],
|
|
150
|
+
});
|
|
169
151
|
let body;
|
|
170
152
|
body = JSON.stringify({
|
|
171
153
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
@@ -187,15 +169,14 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommand = async (output,
|
|
|
187
169
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
188
170
|
return deserializeAws_restJson1CreateMediaCapturePipelineCommandError(output, context);
|
|
189
171
|
}
|
|
190
|
-
const contents = {
|
|
172
|
+
const contents = map({
|
|
191
173
|
$metadata: deserializeMetadata(output),
|
|
192
|
-
|
|
193
|
-
};
|
|
174
|
+
});
|
|
194
175
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
195
|
-
if (data.MediaCapturePipeline
|
|
176
|
+
if (data.MediaCapturePipeline != null) {
|
|
196
177
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
197
178
|
}
|
|
198
|
-
return
|
|
179
|
+
return contents;
|
|
199
180
|
};
|
|
200
181
|
exports.deserializeAws_restJson1CreateMediaCapturePipelineCommand = deserializeAws_restJson1CreateMediaCapturePipelineCommand;
|
|
201
182
|
const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (output, context) => {
|
|
@@ -203,7 +184,6 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
|
|
|
203
184
|
...output,
|
|
204
185
|
body: await parseBody(output.body, context),
|
|
205
186
|
};
|
|
206
|
-
let response;
|
|
207
187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
208
188
|
switch (errorCode) {
|
|
209
189
|
case "BadRequestException":
|
|
@@ -229,25 +209,23 @@ const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (ou
|
|
|
229
209
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
230
210
|
default:
|
|
231
211
|
const parsedBody = parsedOutput.body;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
$metadata,
|
|
212
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
213
|
+
output,
|
|
214
|
+
parsedBody,
|
|
215
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
216
|
+
errorCode,
|
|
238
217
|
});
|
|
239
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
240
218
|
}
|
|
241
219
|
};
|
|
242
220
|
const deserializeAws_restJson1DeleteMediaCapturePipelineCommand = async (output, context) => {
|
|
243
221
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
244
222
|
return deserializeAws_restJson1DeleteMediaCapturePipelineCommandError(output, context);
|
|
245
223
|
}
|
|
246
|
-
const contents = {
|
|
224
|
+
const contents = map({
|
|
247
225
|
$metadata: deserializeMetadata(output),
|
|
248
|
-
};
|
|
226
|
+
});
|
|
249
227
|
await collectBody(output.body, context);
|
|
250
|
-
return
|
|
228
|
+
return contents;
|
|
251
229
|
};
|
|
252
230
|
exports.deserializeAws_restJson1DeleteMediaCapturePipelineCommand = deserializeAws_restJson1DeleteMediaCapturePipelineCommand;
|
|
253
231
|
const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (output, context) => {
|
|
@@ -255,7 +233,6 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
255
233
|
...output,
|
|
256
234
|
body: await parseBody(output.body, context),
|
|
257
235
|
};
|
|
258
|
-
let response;
|
|
259
236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
237
|
switch (errorCode) {
|
|
261
238
|
case "BadRequestException":
|
|
@@ -281,29 +258,26 @@ const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (ou
|
|
|
281
258
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
282
259
|
default:
|
|
283
260
|
const parsedBody = parsedOutput.body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$metadata,
|
|
261
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
262
|
+
output,
|
|
263
|
+
parsedBody,
|
|
264
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
265
|
+
errorCode,
|
|
290
266
|
});
|
|
291
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
292
267
|
}
|
|
293
268
|
};
|
|
294
269
|
const deserializeAws_restJson1GetMediaCapturePipelineCommand = async (output, context) => {
|
|
295
270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
296
271
|
return deserializeAws_restJson1GetMediaCapturePipelineCommandError(output, context);
|
|
297
272
|
}
|
|
298
|
-
const contents = {
|
|
273
|
+
const contents = map({
|
|
299
274
|
$metadata: deserializeMetadata(output),
|
|
300
|
-
|
|
301
|
-
};
|
|
275
|
+
});
|
|
302
276
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
303
|
-
if (data.MediaCapturePipeline
|
|
277
|
+
if (data.MediaCapturePipeline != null) {
|
|
304
278
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
305
279
|
}
|
|
306
|
-
return
|
|
280
|
+
return contents;
|
|
307
281
|
};
|
|
308
282
|
exports.deserializeAws_restJson1GetMediaCapturePipelineCommand = deserializeAws_restJson1GetMediaCapturePipelineCommand;
|
|
309
283
|
const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (output, context) => {
|
|
@@ -311,7 +285,6 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
311
285
|
...output,
|
|
312
286
|
body: await parseBody(output.body, context),
|
|
313
287
|
};
|
|
314
|
-
let response;
|
|
315
288
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
289
|
switch (errorCode) {
|
|
317
290
|
case "BadRequestException":
|
|
@@ -337,33 +310,29 @@ const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (outpu
|
|
|
337
310
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
338
311
|
default:
|
|
339
312
|
const parsedBody = parsedOutput.body;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
$metadata,
|
|
313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
314
|
+
output,
|
|
315
|
+
parsedBody,
|
|
316
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
317
|
+
errorCode,
|
|
346
318
|
});
|
|
347
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
348
319
|
}
|
|
349
320
|
};
|
|
350
321
|
const deserializeAws_restJson1ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
351
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
352
323
|
return deserializeAws_restJson1ListMediaCapturePipelinesCommandError(output, context);
|
|
353
324
|
}
|
|
354
|
-
const contents = {
|
|
325
|
+
const contents = map({
|
|
355
326
|
$metadata: deserializeMetadata(output),
|
|
356
|
-
|
|
357
|
-
NextToken: undefined,
|
|
358
|
-
};
|
|
327
|
+
});
|
|
359
328
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
360
|
-
if (data.MediaCapturePipelines
|
|
329
|
+
if (data.MediaCapturePipelines != null) {
|
|
361
330
|
contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineSummaryList(data.MediaCapturePipelines, context);
|
|
362
331
|
}
|
|
363
|
-
if (data.NextToken
|
|
332
|
+
if (data.NextToken != null) {
|
|
364
333
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
365
334
|
}
|
|
366
|
-
return
|
|
335
|
+
return contents;
|
|
367
336
|
};
|
|
368
337
|
exports.deserializeAws_restJson1ListMediaCapturePipelinesCommand = deserializeAws_restJson1ListMediaCapturePipelinesCommand;
|
|
369
338
|
const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (output, context) => {
|
|
@@ -371,7 +340,6 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
371
340
|
...output,
|
|
372
341
|
body: await parseBody(output.body, context),
|
|
373
342
|
};
|
|
374
|
-
let response;
|
|
375
343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
344
|
switch (errorCode) {
|
|
377
345
|
case "BadRequestException":
|
|
@@ -397,29 +365,26 @@ const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (out
|
|
|
397
365
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
398
366
|
default:
|
|
399
367
|
const parsedBody = parsedOutput.body;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
$metadata,
|
|
368
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
369
|
+
output,
|
|
370
|
+
parsedBody,
|
|
371
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
372
|
+
errorCode,
|
|
406
373
|
});
|
|
407
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
408
374
|
}
|
|
409
375
|
};
|
|
410
376
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
411
377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
378
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
413
379
|
}
|
|
414
|
-
const contents = {
|
|
380
|
+
const contents = map({
|
|
415
381
|
$metadata: deserializeMetadata(output),
|
|
416
|
-
|
|
417
|
-
};
|
|
382
|
+
});
|
|
418
383
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
419
|
-
if (data.Tags
|
|
384
|
+
if (data.Tags != null) {
|
|
420
385
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
421
386
|
}
|
|
422
|
-
return
|
|
387
|
+
return contents;
|
|
423
388
|
};
|
|
424
389
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
425
390
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -427,7 +392,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
427
392
|
...output,
|
|
428
393
|
body: await parseBody(output.body, context),
|
|
429
394
|
};
|
|
430
|
-
let response;
|
|
431
395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
396
|
switch (errorCode) {
|
|
433
397
|
case "BadRequestException":
|
|
@@ -453,25 +417,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
453
417
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
454
418
|
default:
|
|
455
419
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
$metadata,
|
|
420
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
421
|
+
output,
|
|
422
|
+
parsedBody,
|
|
423
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
424
|
+
errorCode,
|
|
462
425
|
});
|
|
463
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
464
426
|
}
|
|
465
427
|
};
|
|
466
428
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
467
429
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
468
430
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
469
431
|
}
|
|
470
|
-
const contents = {
|
|
432
|
+
const contents = map({
|
|
471
433
|
$metadata: deserializeMetadata(output),
|
|
472
|
-
};
|
|
434
|
+
});
|
|
473
435
|
await collectBody(output.body, context);
|
|
474
|
-
return
|
|
436
|
+
return contents;
|
|
475
437
|
};
|
|
476
438
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
477
439
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -479,7 +441,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
479
441
|
...output,
|
|
480
442
|
body: await parseBody(output.body, context),
|
|
481
443
|
};
|
|
482
|
-
let response;
|
|
483
444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
445
|
switch (errorCode) {
|
|
485
446
|
case "BadRequestException":
|
|
@@ -505,25 +466,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
505
466
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
506
467
|
default:
|
|
507
468
|
const parsedBody = parsedOutput.body;
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
$metadata,
|
|
469
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
470
|
+
output,
|
|
471
|
+
parsedBody,
|
|
472
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
473
|
+
errorCode,
|
|
514
474
|
});
|
|
515
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
516
475
|
}
|
|
517
476
|
};
|
|
518
477
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
519
478
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
520
479
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
521
480
|
}
|
|
522
|
-
const contents = {
|
|
481
|
+
const contents = map({
|
|
523
482
|
$metadata: deserializeMetadata(output),
|
|
524
|
-
};
|
|
483
|
+
});
|
|
525
484
|
await collectBody(output.body, context);
|
|
526
|
-
return
|
|
485
|
+
return contents;
|
|
527
486
|
};
|
|
528
487
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
529
488
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -531,7 +490,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
531
490
|
...output,
|
|
532
491
|
body: await parseBody(output.body, context),
|
|
533
492
|
};
|
|
534
|
-
let response;
|
|
535
493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
494
|
switch (errorCode) {
|
|
537
495
|
case "BadRequestException":
|
|
@@ -557,26 +515,25 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
557
515
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
558
516
|
default:
|
|
559
517
|
const parsedBody = parsedOutput.body;
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
$metadata,
|
|
518
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
519
|
+
output,
|
|
520
|
+
parsedBody,
|
|
521
|
+
exceptionCtor: ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException,
|
|
522
|
+
errorCode,
|
|
566
523
|
});
|
|
567
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
568
524
|
}
|
|
569
525
|
};
|
|
526
|
+
const map = smithy_client_1.map;
|
|
570
527
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
571
|
-
const contents = {};
|
|
528
|
+
const contents = map({});
|
|
572
529
|
const data = parsedOutput.body;
|
|
573
|
-
if (data.Code
|
|
530
|
+
if (data.Code != null) {
|
|
574
531
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
575
532
|
}
|
|
576
|
-
if (data.Message
|
|
533
|
+
if (data.Message != null) {
|
|
577
534
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
578
535
|
}
|
|
579
|
-
if (data.RequestId
|
|
536
|
+
if (data.RequestId != null) {
|
|
580
537
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
581
538
|
}
|
|
582
539
|
const exception = new models_0_1.BadRequestException({
|
|
@@ -586,15 +543,15 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
586
543
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
587
544
|
};
|
|
588
545
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
589
|
-
const contents = {};
|
|
546
|
+
const contents = map({});
|
|
590
547
|
const data = parsedOutput.body;
|
|
591
|
-
if (data.Code
|
|
548
|
+
if (data.Code != null) {
|
|
592
549
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
593
550
|
}
|
|
594
|
-
if (data.Message
|
|
551
|
+
if (data.Message != null) {
|
|
595
552
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
596
553
|
}
|
|
597
|
-
if (data.RequestId
|
|
554
|
+
if (data.RequestId != null) {
|
|
598
555
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
599
556
|
}
|
|
600
557
|
const exception = new models_0_1.ForbiddenException({
|
|
@@ -604,15 +561,15 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
604
561
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
605
562
|
};
|
|
606
563
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
607
|
-
const contents = {};
|
|
564
|
+
const contents = map({});
|
|
608
565
|
const data = parsedOutput.body;
|
|
609
|
-
if (data.Code
|
|
566
|
+
if (data.Code != null) {
|
|
610
567
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
611
568
|
}
|
|
612
|
-
if (data.Message
|
|
569
|
+
if (data.Message != null) {
|
|
613
570
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
614
571
|
}
|
|
615
|
-
if (data.RequestId
|
|
572
|
+
if (data.RequestId != null) {
|
|
616
573
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
617
574
|
}
|
|
618
575
|
const exception = new models_0_1.NotFoundException({
|
|
@@ -622,15 +579,15 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
622
579
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
623
580
|
};
|
|
624
581
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
625
|
-
const contents = {};
|
|
582
|
+
const contents = map({});
|
|
626
583
|
const data = parsedOutput.body;
|
|
627
|
-
if (data.Code
|
|
584
|
+
if (data.Code != null) {
|
|
628
585
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
629
586
|
}
|
|
630
|
-
if (data.Message
|
|
587
|
+
if (data.Message != null) {
|
|
631
588
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
632
589
|
}
|
|
633
|
-
if (data.RequestId
|
|
590
|
+
if (data.RequestId != null) {
|
|
634
591
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
635
592
|
}
|
|
636
593
|
const exception = new models_0_1.ResourceLimitExceededException({
|
|
@@ -640,15 +597,15 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
640
597
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
641
598
|
};
|
|
642
599
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
643
|
-
const contents = {};
|
|
600
|
+
const contents = map({});
|
|
644
601
|
const data = parsedOutput.body;
|
|
645
|
-
if (data.Code
|
|
602
|
+
if (data.Code != null) {
|
|
646
603
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
647
604
|
}
|
|
648
|
-
if (data.Message
|
|
605
|
+
if (data.Message != null) {
|
|
649
606
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
650
607
|
}
|
|
651
|
-
if (data.RequestId
|
|
608
|
+
if (data.RequestId != null) {
|
|
652
609
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
653
610
|
}
|
|
654
611
|
const exception = new models_0_1.ServiceFailureException({
|
|
@@ -658,15 +615,15 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
658
615
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
659
616
|
};
|
|
660
617
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
661
|
-
const contents = {};
|
|
618
|
+
const contents = map({});
|
|
662
619
|
const data = parsedOutput.body;
|
|
663
|
-
if (data.Code
|
|
620
|
+
if (data.Code != null) {
|
|
664
621
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
665
622
|
}
|
|
666
|
-
if (data.Message
|
|
623
|
+
if (data.Message != null) {
|
|
667
624
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
668
625
|
}
|
|
669
|
-
if (data.RequestId
|
|
626
|
+
if (data.RequestId != null) {
|
|
670
627
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
671
628
|
}
|
|
672
629
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
@@ -676,15 +633,15 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
676
633
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
677
634
|
};
|
|
678
635
|
const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOutput, context) => {
|
|
679
|
-
const contents = {};
|
|
636
|
+
const contents = map({});
|
|
680
637
|
const data = parsedOutput.body;
|
|
681
|
-
if (data.Code
|
|
638
|
+
if (data.Code != null) {
|
|
682
639
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
683
640
|
}
|
|
684
|
-
if (data.Message
|
|
641
|
+
if (data.Message != null) {
|
|
685
642
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
686
643
|
}
|
|
687
|
-
if (data.RequestId
|
|
644
|
+
if (data.RequestId != null) {
|
|
688
645
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
689
646
|
}
|
|
690
647
|
const exception = new models_0_1.ThrottledClientException({
|
|
@@ -694,15 +651,15 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
694
651
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
695
652
|
};
|
|
696
653
|
const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
697
|
-
const contents = {};
|
|
654
|
+
const contents = map({});
|
|
698
655
|
const data = parsedOutput.body;
|
|
699
|
-
if (data.Code
|
|
656
|
+
if (data.Code != null) {
|
|
700
657
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
701
658
|
}
|
|
702
|
-
if (data.Message
|
|
659
|
+
if (data.Message != null) {
|
|
703
660
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
704
661
|
}
|
|
705
|
-
if (data.RequestId
|
|
662
|
+
if (data.RequestId != null) {
|
|
706
663
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
707
664
|
}
|
|
708
665
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
@@ -724,9 +681,6 @@ const serializeAws_restJson1AttendeeIdList = (input, context) => {
|
|
|
724
681
|
return input
|
|
725
682
|
.filter((e) => e != null)
|
|
726
683
|
.map((entry) => {
|
|
727
|
-
if (entry === null) {
|
|
728
|
-
return null;
|
|
729
|
-
}
|
|
730
684
|
return entry;
|
|
731
685
|
});
|
|
732
686
|
};
|
|
@@ -755,9 +709,6 @@ const serializeAws_restJson1ExternalUserIdList = (input, context) => {
|
|
|
755
709
|
return input
|
|
756
710
|
.filter((e) => e != null)
|
|
757
711
|
.map((entry) => {
|
|
758
|
-
if (entry === null) {
|
|
759
|
-
return null;
|
|
760
|
-
}
|
|
761
712
|
return entry;
|
|
762
713
|
});
|
|
763
714
|
};
|
|
@@ -786,9 +737,6 @@ const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
|
786
737
|
return input
|
|
787
738
|
.filter((e) => e != null)
|
|
788
739
|
.map((entry) => {
|
|
789
|
-
if (entry === null) {
|
|
790
|
-
return null;
|
|
791
|
-
}
|
|
792
740
|
return entry;
|
|
793
741
|
});
|
|
794
742
|
};
|
|
@@ -796,9 +744,6 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
796
744
|
return input
|
|
797
745
|
.filter((e) => e != null)
|
|
798
746
|
.map((entry) => {
|
|
799
|
-
if (entry === null) {
|
|
800
|
-
return null;
|
|
801
|
-
}
|
|
802
747
|
return serializeAws_restJson1Tag(entry, context);
|
|
803
748
|
});
|
|
804
749
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ChimeSDKMediaPipelinesServiceException as __BaseException } from "../models/ChimeSDKMediaPipelinesServiceException";
|
|
6
6
|
import { BadRequestException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
@@ -32,7 +32,7 @@ export var serializeAws_restJson1CreateMediaCapturePipelineCommand = function (i
|
|
|
32
32
|
});
|
|
33
33
|
}); };
|
|
34
34
|
export var serializeAws_restJson1DeleteMediaCapturePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
35
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
36
|
return __generator(this, function (_c) {
|
|
37
37
|
switch (_c.label) {
|
|
38
38
|
case 0: return [4, context.endpoint()];
|
|
@@ -41,16 +41,7 @@ export var serializeAws_restJson1DeleteMediaCapturePipelineCommand = function (i
|
|
|
41
41
|
headers = {};
|
|
42
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
43
43
|
"/sdk-media-capture-pipelines/{MediaPipelineId}";
|
|
44
|
-
|
|
45
|
-
labelValue = input.MediaPipelineId;
|
|
46
|
-
if (labelValue.length <= 0) {
|
|
47
|
-
throw new Error("Empty value provided for input HTTP label: MediaPipelineId.");
|
|
48
|
-
}
|
|
49
|
-
resolvedPath = resolvedPath.replace("{MediaPipelineId}", __extendedEncodeURIComponent(labelValue));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
throw new Error("No value provided for input HTTP label: MediaPipelineId.");
|
|
53
|
-
}
|
|
44
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MediaPipelineId", function () { return input.MediaPipelineId; }, "{MediaPipelineId}", false);
|
|
54
45
|
return [2, new __HttpRequest({
|
|
55
46
|
protocol: protocol,
|
|
56
47
|
hostname: hostname,
|
|
@@ -64,7 +55,7 @@ export var serializeAws_restJson1DeleteMediaCapturePipelineCommand = function (i
|
|
|
64
55
|
});
|
|
65
56
|
}); };
|
|
66
57
|
export var serializeAws_restJson1GetMediaCapturePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
67
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
58
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
68
59
|
return __generator(this, function (_c) {
|
|
69
60
|
switch (_c.label) {
|
|
70
61
|
case 0: return [4, context.endpoint()];
|
|
@@ -73,16 +64,7 @@ export var serializeAws_restJson1GetMediaCapturePipelineCommand = function (inpu
|
|
|
73
64
|
headers = {};
|
|
74
65
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
75
66
|
"/sdk-media-capture-pipelines/{MediaPipelineId}";
|
|
76
|
-
|
|
77
|
-
labelValue = input.MediaPipelineId;
|
|
78
|
-
if (labelValue.length <= 0) {
|
|
79
|
-
throw new Error("Empty value provided for input HTTP label: MediaPipelineId.");
|
|
80
|
-
}
|
|
81
|
-
resolvedPath = resolvedPath.replace("{MediaPipelineId}", __extendedEncodeURIComponent(labelValue));
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw new Error("No value provided for input HTTP label: MediaPipelineId.");
|
|
85
|
-
}
|
|
67
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MediaPipelineId", function () { return input.MediaPipelineId; }, "{MediaPipelineId}", false);
|
|
86
68
|
return [2, new __HttpRequest({
|
|
87
69
|
protocol: protocol,
|
|
88
70
|
hostname: hostname,
|
|
@@ -104,7 +86,10 @@ export var serializeAws_restJson1ListMediaCapturePipelinesCommand = function (in
|
|
|
104
86
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
105
87
|
headers = {};
|
|
106
88
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sdk-media-capture-pipelines";
|
|
107
|
-
query =
|
|
89
|
+
query = map({
|
|
90
|
+
"next-token": [, input.NextToken],
|
|
91
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
92
|
+
});
|
|
108
93
|
return [2, new __HttpRequest({
|
|
109
94
|
protocol: protocol,
|
|
110
95
|
hostname: hostname,
|
|
@@ -127,7 +112,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
127
112
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
128
113
|
headers = {};
|
|
129
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
130
|
-
query =
|
|
115
|
+
query = map({
|
|
116
|
+
arn: [, input.ResourceARN],
|
|
117
|
+
});
|
|
131
118
|
return [2, new __HttpRequest({
|
|
132
119
|
protocol: protocol,
|
|
133
120
|
hostname: hostname,
|
|
@@ -152,9 +139,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
152
139
|
"content-type": "application/json",
|
|
153
140
|
};
|
|
154
141
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
155
|
-
query = {
|
|
156
|
-
operation: "tag-resource",
|
|
157
|
-
};
|
|
142
|
+
query = map({
|
|
143
|
+
operation: [, "tag-resource"],
|
|
144
|
+
});
|
|
158
145
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
159
146
|
return [2, new __HttpRequest({
|
|
160
147
|
protocol: protocol,
|
|
@@ -180,9 +167,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
180
167
|
"content-type": "application/json",
|
|
181
168
|
};
|
|
182
169
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
183
|
-
query = {
|
|
184
|
-
operation: "untag-resource",
|
|
185
|
-
};
|
|
170
|
+
query = map({
|
|
171
|
+
operation: [, "untag-resource"],
|
|
172
|
+
});
|
|
186
173
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
187
174
|
return [2, new __HttpRequest({
|
|
188
175
|
protocol: protocol,
|
|
@@ -205,24 +192,23 @@ export var deserializeAws_restJson1CreateMediaCapturePipelineCommand = function
|
|
|
205
192
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
206
193
|
return [2, deserializeAws_restJson1CreateMediaCapturePipelineCommandError(output, context)];
|
|
207
194
|
}
|
|
208
|
-
contents = {
|
|
195
|
+
contents = map({
|
|
209
196
|
$metadata: deserializeMetadata(output),
|
|
210
|
-
|
|
211
|
-
};
|
|
197
|
+
});
|
|
212
198
|
_a = __expectNonNull;
|
|
213
199
|
_b = __expectObject;
|
|
214
200
|
return [4, parseBody(output.body, context)];
|
|
215
201
|
case 1:
|
|
216
202
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
217
|
-
if (data.MediaCapturePipeline
|
|
203
|
+
if (data.MediaCapturePipeline != null) {
|
|
218
204
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
219
205
|
}
|
|
220
|
-
return [2,
|
|
206
|
+
return [2, contents];
|
|
221
207
|
}
|
|
222
208
|
});
|
|
223
209
|
}); };
|
|
224
210
|
var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
|
-
var parsedOutput, _a,
|
|
211
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
226
212
|
var _c;
|
|
227
213
|
return __generator(this, function (_d) {
|
|
228
214
|
switch (_d.label) {
|
|
@@ -267,14 +253,14 @@ var deserializeAws_restJson1CreateMediaCapturePipelineCommandError = function (o
|
|
|
267
253
|
case 15: throw _d.sent();
|
|
268
254
|
case 16:
|
|
269
255
|
parsedBody = parsedOutput.body;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
$metadata: $metadata,
|
|
256
|
+
throwDefaultError({
|
|
257
|
+
output: output,
|
|
258
|
+
parsedBody: parsedBody,
|
|
259
|
+
exceptionCtor: __BaseException,
|
|
260
|
+
errorCode: errorCode,
|
|
276
261
|
});
|
|
277
|
-
|
|
262
|
+
_d.label = 17;
|
|
263
|
+
case 17: return [2];
|
|
278
264
|
}
|
|
279
265
|
});
|
|
280
266
|
}); };
|
|
@@ -286,18 +272,18 @@ export var deserializeAws_restJson1DeleteMediaCapturePipelineCommand = function
|
|
|
286
272
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
287
273
|
return [2, deserializeAws_restJson1DeleteMediaCapturePipelineCommandError(output, context)];
|
|
288
274
|
}
|
|
289
|
-
contents = {
|
|
275
|
+
contents = map({
|
|
290
276
|
$metadata: deserializeMetadata(output),
|
|
291
|
-
};
|
|
277
|
+
});
|
|
292
278
|
return [4, collectBody(output.body, context)];
|
|
293
279
|
case 1:
|
|
294
280
|
_a.sent();
|
|
295
|
-
return [2,
|
|
281
|
+
return [2, contents];
|
|
296
282
|
}
|
|
297
283
|
});
|
|
298
284
|
}); };
|
|
299
285
|
var deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
300
|
-
var parsedOutput, _a,
|
|
286
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
301
287
|
var _c;
|
|
302
288
|
return __generator(this, function (_d) {
|
|
303
289
|
switch (_d.label) {
|
|
@@ -342,14 +328,14 @@ var deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = function (o
|
|
|
342
328
|
case 15: throw _d.sent();
|
|
343
329
|
case 16:
|
|
344
330
|
parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$metadata: $metadata,
|
|
331
|
+
throwDefaultError({
|
|
332
|
+
output: output,
|
|
333
|
+
parsedBody: parsedBody,
|
|
334
|
+
exceptionCtor: __BaseException,
|
|
335
|
+
errorCode: errorCode,
|
|
351
336
|
});
|
|
352
|
-
|
|
337
|
+
_d.label = 17;
|
|
338
|
+
case 17: return [2];
|
|
353
339
|
}
|
|
354
340
|
});
|
|
355
341
|
}); };
|
|
@@ -361,24 +347,23 @@ export var deserializeAws_restJson1GetMediaCapturePipelineCommand = function (ou
|
|
|
361
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
362
348
|
return [2, deserializeAws_restJson1GetMediaCapturePipelineCommandError(output, context)];
|
|
363
349
|
}
|
|
364
|
-
contents = {
|
|
350
|
+
contents = map({
|
|
365
351
|
$metadata: deserializeMetadata(output),
|
|
366
|
-
|
|
367
|
-
};
|
|
352
|
+
});
|
|
368
353
|
_a = __expectNonNull;
|
|
369
354
|
_b = __expectObject;
|
|
370
355
|
return [4, parseBody(output.body, context)];
|
|
371
356
|
case 1:
|
|
372
357
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
373
|
-
if (data.MediaCapturePipeline
|
|
358
|
+
if (data.MediaCapturePipeline != null) {
|
|
374
359
|
contents.MediaCapturePipeline = deserializeAws_restJson1MediaCapturePipeline(data.MediaCapturePipeline, context);
|
|
375
360
|
}
|
|
376
|
-
return [2,
|
|
361
|
+
return [2, contents];
|
|
377
362
|
}
|
|
378
363
|
});
|
|
379
364
|
}); };
|
|
380
365
|
var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
381
|
-
var parsedOutput, _a,
|
|
366
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
382
367
|
var _c;
|
|
383
368
|
return __generator(this, function (_d) {
|
|
384
369
|
switch (_d.label) {
|
|
@@ -423,14 +408,14 @@ var deserializeAws_restJson1GetMediaCapturePipelineCommandError = function (outp
|
|
|
423
408
|
case 15: throw _d.sent();
|
|
424
409
|
case 16:
|
|
425
410
|
parsedBody = parsedOutput.body;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
$metadata: $metadata,
|
|
411
|
+
throwDefaultError({
|
|
412
|
+
output: output,
|
|
413
|
+
parsedBody: parsedBody,
|
|
414
|
+
exceptionCtor: __BaseException,
|
|
415
|
+
errorCode: errorCode,
|
|
432
416
|
});
|
|
433
|
-
|
|
417
|
+
_d.label = 17;
|
|
418
|
+
case 17: return [2];
|
|
434
419
|
}
|
|
435
420
|
});
|
|
436
421
|
}); };
|
|
@@ -442,28 +427,26 @@ export var deserializeAws_restJson1ListMediaCapturePipelinesCommand = function (
|
|
|
442
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
428
|
return [2, deserializeAws_restJson1ListMediaCapturePipelinesCommandError(output, context)];
|
|
444
429
|
}
|
|
445
|
-
contents = {
|
|
430
|
+
contents = map({
|
|
446
431
|
$metadata: deserializeMetadata(output),
|
|
447
|
-
|
|
448
|
-
NextToken: undefined,
|
|
449
|
-
};
|
|
432
|
+
});
|
|
450
433
|
_a = __expectNonNull;
|
|
451
434
|
_b = __expectObject;
|
|
452
435
|
return [4, parseBody(output.body, context)];
|
|
453
436
|
case 1:
|
|
454
437
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
455
|
-
if (data.MediaCapturePipelines
|
|
438
|
+
if (data.MediaCapturePipelines != null) {
|
|
456
439
|
contents.MediaCapturePipelines = deserializeAws_restJson1MediaCapturePipelineSummaryList(data.MediaCapturePipelines, context);
|
|
457
440
|
}
|
|
458
|
-
if (data.NextToken
|
|
441
|
+
if (data.NextToken != null) {
|
|
459
442
|
contents.NextToken = __expectString(data.NextToken);
|
|
460
443
|
}
|
|
461
|
-
return [2,
|
|
444
|
+
return [2, contents];
|
|
462
445
|
}
|
|
463
446
|
});
|
|
464
447
|
}); };
|
|
465
448
|
var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
466
|
-
var parsedOutput, _a,
|
|
449
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
467
450
|
var _c;
|
|
468
451
|
return __generator(this, function (_d) {
|
|
469
452
|
switch (_d.label) {
|
|
@@ -508,14 +491,14 @@ var deserializeAws_restJson1ListMediaCapturePipelinesCommandError = function (ou
|
|
|
508
491
|
case 15: throw _d.sent();
|
|
509
492
|
case 16:
|
|
510
493
|
parsedBody = parsedOutput.body;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
$metadata: $metadata,
|
|
494
|
+
throwDefaultError({
|
|
495
|
+
output: output,
|
|
496
|
+
parsedBody: parsedBody,
|
|
497
|
+
exceptionCtor: __BaseException,
|
|
498
|
+
errorCode: errorCode,
|
|
517
499
|
});
|
|
518
|
-
|
|
500
|
+
_d.label = 17;
|
|
501
|
+
case 17: return [2];
|
|
519
502
|
}
|
|
520
503
|
});
|
|
521
504
|
}); };
|
|
@@ -527,24 +510,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
527
510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
511
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
529
512
|
}
|
|
530
|
-
contents = {
|
|
513
|
+
contents = map({
|
|
531
514
|
$metadata: deserializeMetadata(output),
|
|
532
|
-
|
|
533
|
-
};
|
|
515
|
+
});
|
|
534
516
|
_a = __expectNonNull;
|
|
535
517
|
_b = __expectObject;
|
|
536
518
|
return [4, parseBody(output.body, context)];
|
|
537
519
|
case 1:
|
|
538
520
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
539
|
-
if (data.Tags
|
|
521
|
+
if (data.Tags != null) {
|
|
540
522
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
541
523
|
}
|
|
542
|
-
return [2,
|
|
524
|
+
return [2, contents];
|
|
543
525
|
}
|
|
544
526
|
});
|
|
545
527
|
}); };
|
|
546
528
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
547
|
-
var parsedOutput, _a,
|
|
529
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
548
530
|
var _c;
|
|
549
531
|
return __generator(this, function (_d) {
|
|
550
532
|
switch (_d.label) {
|
|
@@ -589,14 +571,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
589
571
|
case 15: throw _d.sent();
|
|
590
572
|
case 16:
|
|
591
573
|
parsedBody = parsedOutput.body;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
$metadata: $metadata,
|
|
574
|
+
throwDefaultError({
|
|
575
|
+
output: output,
|
|
576
|
+
parsedBody: parsedBody,
|
|
577
|
+
exceptionCtor: __BaseException,
|
|
578
|
+
errorCode: errorCode,
|
|
598
579
|
});
|
|
599
|
-
|
|
580
|
+
_d.label = 17;
|
|
581
|
+
case 17: return [2];
|
|
600
582
|
}
|
|
601
583
|
});
|
|
602
584
|
}); };
|
|
@@ -608,18 +590,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
608
590
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
609
591
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
610
592
|
}
|
|
611
|
-
contents = {
|
|
593
|
+
contents = map({
|
|
612
594
|
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
595
|
+
});
|
|
614
596
|
return [4, collectBody(output.body, context)];
|
|
615
597
|
case 1:
|
|
616
598
|
_a.sent();
|
|
617
|
-
return [2,
|
|
599
|
+
return [2, contents];
|
|
618
600
|
}
|
|
619
601
|
});
|
|
620
602
|
}); };
|
|
621
603
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
622
|
-
var parsedOutput, _a,
|
|
604
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
623
605
|
var _c;
|
|
624
606
|
return __generator(this, function (_d) {
|
|
625
607
|
switch (_d.label) {
|
|
@@ -664,14 +646,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
664
646
|
case 15: throw _d.sent();
|
|
665
647
|
case 16:
|
|
666
648
|
parsedBody = parsedOutput.body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
$metadata: $metadata,
|
|
649
|
+
throwDefaultError({
|
|
650
|
+
output: output,
|
|
651
|
+
parsedBody: parsedBody,
|
|
652
|
+
exceptionCtor: __BaseException,
|
|
653
|
+
errorCode: errorCode,
|
|
673
654
|
});
|
|
674
|
-
|
|
655
|
+
_d.label = 17;
|
|
656
|
+
case 17: return [2];
|
|
675
657
|
}
|
|
676
658
|
});
|
|
677
659
|
}); };
|
|
@@ -683,18 +665,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
683
665
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
684
666
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
685
667
|
}
|
|
686
|
-
contents = {
|
|
668
|
+
contents = map({
|
|
687
669
|
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
670
|
+
});
|
|
689
671
|
return [4, collectBody(output.body, context)];
|
|
690
672
|
case 1:
|
|
691
673
|
_a.sent();
|
|
692
|
-
return [2,
|
|
674
|
+
return [2, contents];
|
|
693
675
|
}
|
|
694
676
|
});
|
|
695
677
|
}); };
|
|
696
678
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
697
|
-
var parsedOutput, _a,
|
|
679
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
698
680
|
var _c;
|
|
699
681
|
return __generator(this, function (_d) {
|
|
700
682
|
switch (_d.label) {
|
|
@@ -739,29 +721,30 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
739
721
|
case 15: throw _d.sent();
|
|
740
722
|
case 16:
|
|
741
723
|
parsedBody = parsedOutput.body;
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
$metadata: $metadata,
|
|
724
|
+
throwDefaultError({
|
|
725
|
+
output: output,
|
|
726
|
+
parsedBody: parsedBody,
|
|
727
|
+
exceptionCtor: __BaseException,
|
|
728
|
+
errorCode: errorCode,
|
|
748
729
|
});
|
|
749
|
-
|
|
730
|
+
_d.label = 17;
|
|
731
|
+
case 17: return [2];
|
|
750
732
|
}
|
|
751
733
|
});
|
|
752
734
|
}); };
|
|
735
|
+
var map = __map;
|
|
753
736
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
754
737
|
var contents, data, exception;
|
|
755
738
|
return __generator(this, function (_a) {
|
|
756
|
-
contents = {};
|
|
739
|
+
contents = map({});
|
|
757
740
|
data = parsedOutput.body;
|
|
758
|
-
if (data.Code
|
|
741
|
+
if (data.Code != null) {
|
|
759
742
|
contents.Code = __expectString(data.Code);
|
|
760
743
|
}
|
|
761
|
-
if (data.Message
|
|
744
|
+
if (data.Message != null) {
|
|
762
745
|
contents.Message = __expectString(data.Message);
|
|
763
746
|
}
|
|
764
|
-
if (data.RequestId
|
|
747
|
+
if (data.RequestId != null) {
|
|
765
748
|
contents.RequestId = __expectString(data.RequestId);
|
|
766
749
|
}
|
|
767
750
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -771,15 +754,15 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
771
754
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
772
755
|
var contents, data, exception;
|
|
773
756
|
return __generator(this, function (_a) {
|
|
774
|
-
contents = {};
|
|
757
|
+
contents = map({});
|
|
775
758
|
data = parsedOutput.body;
|
|
776
|
-
if (data.Code
|
|
759
|
+
if (data.Code != null) {
|
|
777
760
|
contents.Code = __expectString(data.Code);
|
|
778
761
|
}
|
|
779
|
-
if (data.Message
|
|
762
|
+
if (data.Message != null) {
|
|
780
763
|
contents.Message = __expectString(data.Message);
|
|
781
764
|
}
|
|
782
|
-
if (data.RequestId
|
|
765
|
+
if (data.RequestId != null) {
|
|
783
766
|
contents.RequestId = __expectString(data.RequestId);
|
|
784
767
|
}
|
|
785
768
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -789,15 +772,15 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
789
772
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
790
773
|
var contents, data, exception;
|
|
791
774
|
return __generator(this, function (_a) {
|
|
792
|
-
contents = {};
|
|
775
|
+
contents = map({});
|
|
793
776
|
data = parsedOutput.body;
|
|
794
|
-
if (data.Code
|
|
777
|
+
if (data.Code != null) {
|
|
795
778
|
contents.Code = __expectString(data.Code);
|
|
796
779
|
}
|
|
797
|
-
if (data.Message
|
|
780
|
+
if (data.Message != null) {
|
|
798
781
|
contents.Message = __expectString(data.Message);
|
|
799
782
|
}
|
|
800
|
-
if (data.RequestId
|
|
783
|
+
if (data.RequestId != null) {
|
|
801
784
|
contents.RequestId = __expectString(data.RequestId);
|
|
802
785
|
}
|
|
803
786
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -807,15 +790,15 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
807
790
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
808
791
|
var contents, data, exception;
|
|
809
792
|
return __generator(this, function (_a) {
|
|
810
|
-
contents = {};
|
|
793
|
+
contents = map({});
|
|
811
794
|
data = parsedOutput.body;
|
|
812
|
-
if (data.Code
|
|
795
|
+
if (data.Code != null) {
|
|
813
796
|
contents.Code = __expectString(data.Code);
|
|
814
797
|
}
|
|
815
|
-
if (data.Message
|
|
798
|
+
if (data.Message != null) {
|
|
816
799
|
contents.Message = __expectString(data.Message);
|
|
817
800
|
}
|
|
818
|
-
if (data.RequestId
|
|
801
|
+
if (data.RequestId != null) {
|
|
819
802
|
contents.RequestId = __expectString(data.RequestId);
|
|
820
803
|
}
|
|
821
804
|
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -825,15 +808,15 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
825
808
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
826
809
|
var contents, data, exception;
|
|
827
810
|
return __generator(this, function (_a) {
|
|
828
|
-
contents = {};
|
|
811
|
+
contents = map({});
|
|
829
812
|
data = parsedOutput.body;
|
|
830
|
-
if (data.Code
|
|
813
|
+
if (data.Code != null) {
|
|
831
814
|
contents.Code = __expectString(data.Code);
|
|
832
815
|
}
|
|
833
|
-
if (data.Message
|
|
816
|
+
if (data.Message != null) {
|
|
834
817
|
contents.Message = __expectString(data.Message);
|
|
835
818
|
}
|
|
836
|
-
if (data.RequestId
|
|
819
|
+
if (data.RequestId != null) {
|
|
837
820
|
contents.RequestId = __expectString(data.RequestId);
|
|
838
821
|
}
|
|
839
822
|
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -843,15 +826,15 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
843
826
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
844
827
|
var contents, data, exception;
|
|
845
828
|
return __generator(this, function (_a) {
|
|
846
|
-
contents = {};
|
|
829
|
+
contents = map({});
|
|
847
830
|
data = parsedOutput.body;
|
|
848
|
-
if (data.Code
|
|
831
|
+
if (data.Code != null) {
|
|
849
832
|
contents.Code = __expectString(data.Code);
|
|
850
833
|
}
|
|
851
|
-
if (data.Message
|
|
834
|
+
if (data.Message != null) {
|
|
852
835
|
contents.Message = __expectString(data.Message);
|
|
853
836
|
}
|
|
854
|
-
if (data.RequestId
|
|
837
|
+
if (data.RequestId != null) {
|
|
855
838
|
contents.RequestId = __expectString(data.RequestId);
|
|
856
839
|
}
|
|
857
840
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -861,15 +844,15 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
861
844
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
862
845
|
var contents, data, exception;
|
|
863
846
|
return __generator(this, function (_a) {
|
|
864
|
-
contents = {};
|
|
847
|
+
contents = map({});
|
|
865
848
|
data = parsedOutput.body;
|
|
866
|
-
if (data.Code
|
|
849
|
+
if (data.Code != null) {
|
|
867
850
|
contents.Code = __expectString(data.Code);
|
|
868
851
|
}
|
|
869
|
-
if (data.Message
|
|
852
|
+
if (data.Message != null) {
|
|
870
853
|
contents.Message = __expectString(data.Message);
|
|
871
854
|
}
|
|
872
|
-
if (data.RequestId
|
|
855
|
+
if (data.RequestId != null) {
|
|
873
856
|
contents.RequestId = __expectString(data.RequestId);
|
|
874
857
|
}
|
|
875
858
|
exception = new ThrottledClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -879,15 +862,15 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
879
862
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
880
863
|
var contents, data, exception;
|
|
881
864
|
return __generator(this, function (_a) {
|
|
882
|
-
contents = {};
|
|
865
|
+
contents = map({});
|
|
883
866
|
data = parsedOutput.body;
|
|
884
|
-
if (data.Code
|
|
867
|
+
if (data.Code != null) {
|
|
885
868
|
contents.Code = __expectString(data.Code);
|
|
886
869
|
}
|
|
887
|
-
if (data.Message
|
|
870
|
+
if (data.Message != null) {
|
|
888
871
|
contents.Message = __expectString(data.Message);
|
|
889
872
|
}
|
|
890
|
-
if (data.RequestId
|
|
873
|
+
if (data.RequestId != null) {
|
|
891
874
|
contents.RequestId = __expectString(data.RequestId);
|
|
892
875
|
}
|
|
893
876
|
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -903,9 +886,6 @@ var serializeAws_restJson1AttendeeIdList = function (input, context) {
|
|
|
903
886
|
return input
|
|
904
887
|
.filter(function (e) { return e != null; })
|
|
905
888
|
.map(function (entry) {
|
|
906
|
-
if (entry === null) {
|
|
907
|
-
return null;
|
|
908
|
-
}
|
|
909
889
|
return entry;
|
|
910
890
|
});
|
|
911
891
|
};
|
|
@@ -926,9 +906,6 @@ var serializeAws_restJson1ExternalUserIdList = function (input, context) {
|
|
|
926
906
|
return input
|
|
927
907
|
.filter(function (e) { return e != null; })
|
|
928
908
|
.map(function (entry) {
|
|
929
|
-
if (entry === null) {
|
|
930
|
-
return null;
|
|
931
|
-
}
|
|
932
909
|
return entry;
|
|
933
910
|
});
|
|
934
911
|
};
|
|
@@ -949,9 +926,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
949
926
|
return input
|
|
950
927
|
.filter(function (e) { return e != null; })
|
|
951
928
|
.map(function (entry) {
|
|
952
|
-
if (entry === null) {
|
|
953
|
-
return null;
|
|
954
|
-
}
|
|
955
929
|
return entry;
|
|
956
930
|
});
|
|
957
931
|
};
|
|
@@ -959,9 +933,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
959
933
|
return input
|
|
960
934
|
.filter(function (e) { return e != null; })
|
|
961
935
|
.map(function (entry) {
|
|
962
|
-
if (entry === null) {
|
|
963
|
-
return null;
|
|
964
|
-
}
|
|
965
936
|
return serializeAws_restJson1Tag(entry, context);
|
|
966
937
|
});
|
|
967
938
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-chime-sdk-media-pipelines",
|
|
3
3
|
"description": "AWS SDK for JavaScript Chime Sdk Media Pipelines Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.142.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|