@aws-sdk/client-chime-sdk-media-pipelines 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +109 -164
- package/dist-es/protocols/Aws_restJson1.js +133 -162
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **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))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -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
|
};
|