@aws-sdk/client-mediastore 3.50.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/MediaStoreServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +87 -1
- package/dist-cjs/protocols/Aws_json1_1.js +188 -656
- package/dist-es/index.js +1 -0
- package/dist-es/models/MediaStoreServiceException.js +12 -0
- package/dist-es/models/models_0.js +80 -1
- package/dist-es/protocols/Aws_json1_1.js +425 -729
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MediaStoreServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/MediaStore.d.ts +110 -0
- package/dist-types/ts3.4/MediaStoreClient.d.ts +94 -0
- package/dist-types/ts3.4/commands/CreateContainerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteContainerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteContainerPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCorsPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMetricPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeContainerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetContainerPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCorsPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMetricPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListContainersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutContainerPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutCorsPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutMetricPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartAccessLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopAccessLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/MediaStoreServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +55 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListContainersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +65 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopAccessLoggingCommand = exports.deserializeAws_json1_1StartAccessLoggingCommand = exports.deserializeAws_json1_1PutMetricPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutCorsPolicyCommand = exports.deserializeAws_json1_1PutContainerPolicyCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListContainersCommand = exports.deserializeAws_json1_1GetMetricPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetCorsPolicyCommand = exports.deserializeAws_json1_1GetContainerPolicyCommand = exports.deserializeAws_json1_1DescribeContainerCommand = exports.deserializeAws_json1_1DeleteMetricPolicyCommand = exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = exports.deserializeAws_json1_1DeleteCorsPolicyCommand = exports.deserializeAws_json1_1DeleteContainerPolicyCommand = exports.deserializeAws_json1_1DeleteContainerCommand = exports.deserializeAws_json1_1CreateContainerCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopAccessLoggingCommand = exports.serializeAws_json1_1StartAccessLoggingCommand = exports.serializeAws_json1_1PutMetricPolicyCommand = exports.serializeAws_json1_1PutLifecyclePolicyCommand = exports.serializeAws_json1_1PutCorsPolicyCommand = exports.serializeAws_json1_1PutContainerPolicyCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListContainersCommand = exports.serializeAws_json1_1GetMetricPolicyCommand = exports.serializeAws_json1_1GetLifecyclePolicyCommand = exports.serializeAws_json1_1GetCorsPolicyCommand = exports.serializeAws_json1_1GetContainerPolicyCommand = exports.serializeAws_json1_1DescribeContainerCommand = exports.serializeAws_json1_1DeleteMetricPolicyCommand = exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = exports.serializeAws_json1_1DeleteCorsPolicyCommand = exports.serializeAws_json1_1DeleteContainerPolicyCommand = exports.serializeAws_json1_1DeleteContainerCommand = exports.serializeAws_json1_1CreateContainerCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MediaStoreServiceException_1 = require("../models/MediaStoreServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1CreateContainerCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -238,43 +240,22 @@ const deserializeAws_json1_1CreateContainerCommandError = async (output, context
|
|
|
238
240
|
switch (errorCode) {
|
|
239
241
|
case "ContainerInUseException":
|
|
240
242
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
241
|
-
|
|
242
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
243
|
-
name: errorCode,
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
};
|
|
246
|
-
break;
|
|
243
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
247
244
|
case "InternalServerError":
|
|
248
245
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
249
|
-
|
|
250
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
251
|
-
name: errorCode,
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
};
|
|
254
|
-
break;
|
|
246
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
255
247
|
case "LimitExceededException":
|
|
256
248
|
case "com.amazonaws.mediastore#LimitExceededException":
|
|
257
|
-
|
|
258
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
259
|
-
name: errorCode,
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
};
|
|
262
|
-
break;
|
|
249
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
263
250
|
default:
|
|
264
251
|
const parsedBody = parsedOutput.body;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
...parsedBody,
|
|
268
|
-
name: `${errorCode}`,
|
|
269
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
252
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
253
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
270
254
|
$fault: "client",
|
|
271
255
|
$metadata: deserializeMetadata(output),
|
|
272
|
-
};
|
|
256
|
+
});
|
|
257
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
273
258
|
}
|
|
274
|
-
const message = response.message || response.Message || errorCode;
|
|
275
|
-
response.message = message;
|
|
276
|
-
delete response.Message;
|
|
277
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
278
259
|
};
|
|
279
260
|
const deserializeAws_json1_1DeleteContainerCommand = async (output, context) => {
|
|
280
261
|
if (output.statusCode >= 300) {
|
|
@@ -301,43 +282,22 @@ const deserializeAws_json1_1DeleteContainerCommandError = async (output, context
|
|
|
301
282
|
switch (errorCode) {
|
|
302
283
|
case "ContainerInUseException":
|
|
303
284
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
304
|
-
|
|
305
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
306
|
-
name: errorCode,
|
|
307
|
-
$metadata: deserializeMetadata(output),
|
|
308
|
-
};
|
|
309
|
-
break;
|
|
285
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
310
286
|
case "ContainerNotFoundException":
|
|
311
287
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
312
|
-
|
|
313
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
314
|
-
name: errorCode,
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
};
|
|
317
|
-
break;
|
|
288
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
318
289
|
case "InternalServerError":
|
|
319
290
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
320
|
-
|
|
321
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
322
|
-
name: errorCode,
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
};
|
|
325
|
-
break;
|
|
291
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
326
292
|
default:
|
|
327
293
|
const parsedBody = parsedOutput.body;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
...parsedBody,
|
|
331
|
-
name: `${errorCode}`,
|
|
332
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
294
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
295
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
333
296
|
$fault: "client",
|
|
334
297
|
$metadata: deserializeMetadata(output),
|
|
335
|
-
};
|
|
298
|
+
});
|
|
299
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
336
300
|
}
|
|
337
|
-
const message = response.message || response.Message || errorCode;
|
|
338
|
-
response.message = message;
|
|
339
|
-
delete response.Message;
|
|
340
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
341
301
|
};
|
|
342
302
|
const deserializeAws_json1_1DeleteContainerPolicyCommand = async (output, context) => {
|
|
343
303
|
if (output.statusCode >= 300) {
|
|
@@ -364,51 +324,25 @@ const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, c
|
|
|
364
324
|
switch (errorCode) {
|
|
365
325
|
case "ContainerInUseException":
|
|
366
326
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
367
|
-
|
|
368
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
369
|
-
name: errorCode,
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
};
|
|
372
|
-
break;
|
|
327
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
373
328
|
case "ContainerNotFoundException":
|
|
374
329
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
375
|
-
|
|
376
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
377
|
-
name: errorCode,
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
};
|
|
380
|
-
break;
|
|
330
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
381
331
|
case "InternalServerError":
|
|
382
332
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
383
|
-
|
|
384
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
385
|
-
name: errorCode,
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
};
|
|
388
|
-
break;
|
|
333
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
389
334
|
case "PolicyNotFoundException":
|
|
390
335
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
391
|
-
|
|
392
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
393
|
-
name: errorCode,
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
};
|
|
396
|
-
break;
|
|
336
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
397
337
|
default:
|
|
398
338
|
const parsedBody = parsedOutput.body;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
...parsedBody,
|
|
402
|
-
name: `${errorCode}`,
|
|
403
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
339
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
340
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
404
341
|
$fault: "client",
|
|
405
342
|
$metadata: deserializeMetadata(output),
|
|
406
|
-
};
|
|
343
|
+
});
|
|
344
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
407
345
|
}
|
|
408
|
-
const message = response.message || response.Message || errorCode;
|
|
409
|
-
response.message = message;
|
|
410
|
-
delete response.Message;
|
|
411
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
412
346
|
};
|
|
413
347
|
const deserializeAws_json1_1DeleteCorsPolicyCommand = async (output, context) => {
|
|
414
348
|
if (output.statusCode >= 300) {
|
|
@@ -435,51 +369,25 @@ const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, contex
|
|
|
435
369
|
switch (errorCode) {
|
|
436
370
|
case "ContainerInUseException":
|
|
437
371
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
438
|
-
|
|
439
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
440
|
-
name: errorCode,
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
};
|
|
443
|
-
break;
|
|
372
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
444
373
|
case "ContainerNotFoundException":
|
|
445
374
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
446
|
-
|
|
447
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
448
|
-
name: errorCode,
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
};
|
|
451
|
-
break;
|
|
375
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
452
376
|
case "CorsPolicyNotFoundException":
|
|
453
377
|
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
454
|
-
|
|
455
|
-
...(await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
456
|
-
name: errorCode,
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
};
|
|
459
|
-
break;
|
|
378
|
+
throw await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
460
379
|
case "InternalServerError":
|
|
461
380
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
462
|
-
|
|
463
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
464
|
-
name: errorCode,
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
};
|
|
467
|
-
break;
|
|
381
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
468
382
|
default:
|
|
469
383
|
const parsedBody = parsedOutput.body;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
...parsedBody,
|
|
473
|
-
name: `${errorCode}`,
|
|
474
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
384
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
475
386
|
$fault: "client",
|
|
476
387
|
$metadata: deserializeMetadata(output),
|
|
477
|
-
};
|
|
388
|
+
});
|
|
389
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
478
390
|
}
|
|
479
|
-
const message = response.message || response.Message || errorCode;
|
|
480
|
-
response.message = message;
|
|
481
|
-
delete response.Message;
|
|
482
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
483
391
|
};
|
|
484
392
|
const deserializeAws_json1_1DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
485
393
|
if (output.statusCode >= 300) {
|
|
@@ -506,51 +414,25 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
506
414
|
switch (errorCode) {
|
|
507
415
|
case "ContainerInUseException":
|
|
508
416
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
509
|
-
|
|
510
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
511
|
-
name: errorCode,
|
|
512
|
-
$metadata: deserializeMetadata(output),
|
|
513
|
-
};
|
|
514
|
-
break;
|
|
417
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
515
418
|
case "ContainerNotFoundException":
|
|
516
419
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
517
|
-
|
|
518
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
519
|
-
name: errorCode,
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
};
|
|
522
|
-
break;
|
|
420
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
523
421
|
case "InternalServerError":
|
|
524
422
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
525
|
-
|
|
526
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
527
|
-
name: errorCode,
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
};
|
|
530
|
-
break;
|
|
423
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
531
424
|
case "PolicyNotFoundException":
|
|
532
425
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
533
|
-
|
|
534
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
535
|
-
name: errorCode,
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
};
|
|
538
|
-
break;
|
|
426
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
539
427
|
default:
|
|
540
428
|
const parsedBody = parsedOutput.body;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
...parsedBody,
|
|
544
|
-
name: `${errorCode}`,
|
|
545
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
429
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
430
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
546
431
|
$fault: "client",
|
|
547
432
|
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
433
|
+
});
|
|
434
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
549
435
|
}
|
|
550
|
-
const message = response.message || response.Message || errorCode;
|
|
551
|
-
response.message = message;
|
|
552
|
-
delete response.Message;
|
|
553
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
554
436
|
};
|
|
555
437
|
const deserializeAws_json1_1DeleteMetricPolicyCommand = async (output, context) => {
|
|
556
438
|
if (output.statusCode >= 300) {
|
|
@@ -577,51 +459,25 @@ const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, cont
|
|
|
577
459
|
switch (errorCode) {
|
|
578
460
|
case "ContainerInUseException":
|
|
579
461
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
580
|
-
|
|
581
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
582
|
-
name: errorCode,
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
};
|
|
585
|
-
break;
|
|
462
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
586
463
|
case "ContainerNotFoundException":
|
|
587
464
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
588
|
-
|
|
589
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
590
|
-
name: errorCode,
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
};
|
|
593
|
-
break;
|
|
465
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
594
466
|
case "InternalServerError":
|
|
595
467
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
596
|
-
|
|
597
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
598
|
-
name: errorCode,
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
};
|
|
601
|
-
break;
|
|
468
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
602
469
|
case "PolicyNotFoundException":
|
|
603
470
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
604
|
-
|
|
605
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
606
|
-
name: errorCode,
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
};
|
|
609
|
-
break;
|
|
471
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
610
472
|
default:
|
|
611
473
|
const parsedBody = parsedOutput.body;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
...parsedBody,
|
|
615
|
-
name: `${errorCode}`,
|
|
616
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
474
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
475
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
617
476
|
$fault: "client",
|
|
618
477
|
$metadata: deserializeMetadata(output),
|
|
619
|
-
};
|
|
478
|
+
});
|
|
479
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
620
480
|
}
|
|
621
|
-
const message = response.message || response.Message || errorCode;
|
|
622
|
-
response.message = message;
|
|
623
|
-
delete response.Message;
|
|
624
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
625
481
|
};
|
|
626
482
|
const deserializeAws_json1_1DescribeContainerCommand = async (output, context) => {
|
|
627
483
|
if (output.statusCode >= 300) {
|
|
@@ -648,35 +504,19 @@ const deserializeAws_json1_1DescribeContainerCommandError = async (output, conte
|
|
|
648
504
|
switch (errorCode) {
|
|
649
505
|
case "ContainerNotFoundException":
|
|
650
506
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
651
|
-
|
|
652
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
653
|
-
name: errorCode,
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
};
|
|
656
|
-
break;
|
|
507
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
657
508
|
case "InternalServerError":
|
|
658
509
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
659
|
-
|
|
660
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
661
|
-
name: errorCode,
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
664
|
-
break;
|
|
510
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
665
511
|
default:
|
|
666
512
|
const parsedBody = parsedOutput.body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
...parsedBody,
|
|
670
|
-
name: `${errorCode}`,
|
|
671
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
513
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
514
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
672
515
|
$fault: "client",
|
|
673
516
|
$metadata: deserializeMetadata(output),
|
|
674
|
-
};
|
|
517
|
+
});
|
|
518
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
675
519
|
}
|
|
676
|
-
const message = response.message || response.Message || errorCode;
|
|
677
|
-
response.message = message;
|
|
678
|
-
delete response.Message;
|
|
679
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
680
520
|
};
|
|
681
521
|
const deserializeAws_json1_1GetContainerPolicyCommand = async (output, context) => {
|
|
682
522
|
if (output.statusCode >= 300) {
|
|
@@ -703,51 +543,25 @@ const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, cont
|
|
|
703
543
|
switch (errorCode) {
|
|
704
544
|
case "ContainerInUseException":
|
|
705
545
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
706
|
-
|
|
707
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
708
|
-
name: errorCode,
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
};
|
|
711
|
-
break;
|
|
546
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
712
547
|
case "ContainerNotFoundException":
|
|
713
548
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
714
|
-
|
|
715
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
716
|
-
name: errorCode,
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
break;
|
|
549
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
720
550
|
case "InternalServerError":
|
|
721
551
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
722
|
-
|
|
723
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
724
|
-
name: errorCode,
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
};
|
|
727
|
-
break;
|
|
552
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
728
553
|
case "PolicyNotFoundException":
|
|
729
554
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
730
|
-
|
|
731
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
732
|
-
name: errorCode,
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
};
|
|
735
|
-
break;
|
|
555
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
736
556
|
default:
|
|
737
557
|
const parsedBody = parsedOutput.body;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
...parsedBody,
|
|
741
|
-
name: `${errorCode}`,
|
|
742
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
558
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
559
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
743
560
|
$fault: "client",
|
|
744
561
|
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
562
|
+
});
|
|
563
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
746
564
|
}
|
|
747
|
-
const message = response.message || response.Message || errorCode;
|
|
748
|
-
response.message = message;
|
|
749
|
-
delete response.Message;
|
|
750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
751
565
|
};
|
|
752
566
|
const deserializeAws_json1_1GetCorsPolicyCommand = async (output, context) => {
|
|
753
567
|
if (output.statusCode >= 300) {
|
|
@@ -774,51 +588,25 @@ const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context)
|
|
|
774
588
|
switch (errorCode) {
|
|
775
589
|
case "ContainerInUseException":
|
|
776
590
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
777
|
-
|
|
778
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
779
|
-
name: errorCode,
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
};
|
|
782
|
-
break;
|
|
591
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
783
592
|
case "ContainerNotFoundException":
|
|
784
593
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
785
|
-
|
|
786
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
787
|
-
name: errorCode,
|
|
788
|
-
$metadata: deserializeMetadata(output),
|
|
789
|
-
};
|
|
790
|
-
break;
|
|
594
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
791
595
|
case "CorsPolicyNotFoundException":
|
|
792
596
|
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
793
|
-
|
|
794
|
-
...(await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
795
|
-
name: errorCode,
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
break;
|
|
597
|
+
throw await deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
799
598
|
case "InternalServerError":
|
|
800
599
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
801
|
-
|
|
802
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
803
|
-
name: errorCode,
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
};
|
|
806
|
-
break;
|
|
600
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
807
601
|
default:
|
|
808
602
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
...parsedBody,
|
|
812
|
-
name: `${errorCode}`,
|
|
813
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
603
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
604
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
605
|
$fault: "client",
|
|
815
606
|
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
607
|
+
});
|
|
608
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
817
609
|
}
|
|
818
|
-
const message = response.message || response.Message || errorCode;
|
|
819
|
-
response.message = message;
|
|
820
|
-
delete response.Message;
|
|
821
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
822
610
|
};
|
|
823
611
|
const deserializeAws_json1_1GetLifecyclePolicyCommand = async (output, context) => {
|
|
824
612
|
if (output.statusCode >= 300) {
|
|
@@ -845,51 +633,25 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
845
633
|
switch (errorCode) {
|
|
846
634
|
case "ContainerInUseException":
|
|
847
635
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
848
|
-
|
|
849
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
850
|
-
name: errorCode,
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
};
|
|
853
|
-
break;
|
|
636
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
854
637
|
case "ContainerNotFoundException":
|
|
855
638
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
856
|
-
|
|
857
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
858
|
-
name: errorCode,
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
};
|
|
861
|
-
break;
|
|
639
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
862
640
|
case "InternalServerError":
|
|
863
641
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
864
|
-
|
|
865
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
866
|
-
name: errorCode,
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
869
|
-
break;
|
|
642
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
870
643
|
case "PolicyNotFoundException":
|
|
871
644
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
872
|
-
|
|
873
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
874
|
-
name: errorCode,
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
};
|
|
877
|
-
break;
|
|
645
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
878
646
|
default:
|
|
879
647
|
const parsedBody = parsedOutput.body;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
...parsedBody,
|
|
883
|
-
name: `${errorCode}`,
|
|
884
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
648
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
885
650
|
$fault: "client",
|
|
886
651
|
$metadata: deserializeMetadata(output),
|
|
887
|
-
};
|
|
652
|
+
});
|
|
653
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
888
654
|
}
|
|
889
|
-
const message = response.message || response.Message || errorCode;
|
|
890
|
-
response.message = message;
|
|
891
|
-
delete response.Message;
|
|
892
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
893
655
|
};
|
|
894
656
|
const deserializeAws_json1_1GetMetricPolicyCommand = async (output, context) => {
|
|
895
657
|
if (output.statusCode >= 300) {
|
|
@@ -916,51 +678,25 @@ const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context
|
|
|
916
678
|
switch (errorCode) {
|
|
917
679
|
case "ContainerInUseException":
|
|
918
680
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
919
|
-
|
|
920
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
921
|
-
name: errorCode,
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
924
|
-
break;
|
|
681
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
925
682
|
case "ContainerNotFoundException":
|
|
926
683
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
927
|
-
|
|
928
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
684
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
933
685
|
case "InternalServerError":
|
|
934
686
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
935
|
-
|
|
936
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
937
|
-
name: errorCode,
|
|
938
|
-
$metadata: deserializeMetadata(output),
|
|
939
|
-
};
|
|
940
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
941
688
|
case "PolicyNotFoundException":
|
|
942
689
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
943
|
-
|
|
944
|
-
...(await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
945
|
-
name: errorCode,
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
};
|
|
948
|
-
break;
|
|
690
|
+
throw await deserializeAws_json1_1PolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
949
691
|
default:
|
|
950
692
|
const parsedBody = parsedOutput.body;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
...parsedBody,
|
|
954
|
-
name: `${errorCode}`,
|
|
955
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
693
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
956
695
|
$fault: "client",
|
|
957
696
|
$metadata: deserializeMetadata(output),
|
|
958
|
-
};
|
|
697
|
+
});
|
|
698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
959
699
|
}
|
|
960
|
-
const message = response.message || response.Message || errorCode;
|
|
961
|
-
response.message = message;
|
|
962
|
-
delete response.Message;
|
|
963
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
964
700
|
};
|
|
965
701
|
const deserializeAws_json1_1ListContainersCommand = async (output, context) => {
|
|
966
702
|
if (output.statusCode >= 300) {
|
|
@@ -987,27 +723,16 @@ const deserializeAws_json1_1ListContainersCommandError = async (output, context)
|
|
|
987
723
|
switch (errorCode) {
|
|
988
724
|
case "InternalServerError":
|
|
989
725
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
990
|
-
|
|
991
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
992
|
-
name: errorCode,
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
break;
|
|
726
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
996
727
|
default:
|
|
997
728
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
...parsedBody,
|
|
1001
|
-
name: `${errorCode}`,
|
|
1002
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
729
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
730
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1003
731
|
$fault: "client",
|
|
1004
732
|
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
733
|
+
});
|
|
734
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1006
735
|
}
|
|
1007
|
-
const message = response.message || response.Message || errorCode;
|
|
1008
|
-
response.message = message;
|
|
1009
|
-
delete response.Message;
|
|
1010
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1011
736
|
};
|
|
1012
737
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1013
738
|
if (output.statusCode >= 300) {
|
|
@@ -1034,43 +759,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1034
759
|
switch (errorCode) {
|
|
1035
760
|
case "ContainerInUseException":
|
|
1036
761
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1037
|
-
|
|
1038
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1039
|
-
name: errorCode,
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
1042
|
-
break;
|
|
762
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1043
763
|
case "ContainerNotFoundException":
|
|
1044
764
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1045
|
-
|
|
1046
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1047
|
-
name: errorCode,
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
};
|
|
1050
|
-
break;
|
|
765
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1051
766
|
case "InternalServerError":
|
|
1052
767
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1053
|
-
|
|
1054
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1055
|
-
name: errorCode,
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
};
|
|
1058
|
-
break;
|
|
768
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1059
769
|
default:
|
|
1060
770
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
...parsedBody,
|
|
1064
|
-
name: `${errorCode}`,
|
|
1065
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
771
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
772
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1066
773
|
$fault: "client",
|
|
1067
774
|
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
775
|
+
});
|
|
776
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1069
777
|
}
|
|
1070
|
-
const message = response.message || response.Message || errorCode;
|
|
1071
|
-
response.message = message;
|
|
1072
|
-
delete response.Message;
|
|
1073
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1074
778
|
};
|
|
1075
779
|
const deserializeAws_json1_1PutContainerPolicyCommand = async (output, context) => {
|
|
1076
780
|
if (output.statusCode >= 300) {
|
|
@@ -1097,43 +801,22 @@ const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, cont
|
|
|
1097
801
|
switch (errorCode) {
|
|
1098
802
|
case "ContainerInUseException":
|
|
1099
803
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1100
|
-
|
|
1101
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1102
|
-
name: errorCode,
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
};
|
|
1105
|
-
break;
|
|
804
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1106
805
|
case "ContainerNotFoundException":
|
|
1107
806
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1108
|
-
|
|
1109
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
807
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1114
808
|
case "InternalServerError":
|
|
1115
809
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
810
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1122
811
|
default:
|
|
1123
812
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
...parsedBody,
|
|
1127
|
-
name: `${errorCode}`,
|
|
1128
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
813
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1129
815
|
$fault: "client",
|
|
1130
816
|
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
817
|
+
});
|
|
818
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1132
819
|
}
|
|
1133
|
-
const message = response.message || response.Message || errorCode;
|
|
1134
|
-
response.message = message;
|
|
1135
|
-
delete response.Message;
|
|
1136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1137
820
|
};
|
|
1138
821
|
const deserializeAws_json1_1PutCorsPolicyCommand = async (output, context) => {
|
|
1139
822
|
if (output.statusCode >= 300) {
|
|
@@ -1160,43 +843,22 @@ const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context)
|
|
|
1160
843
|
switch (errorCode) {
|
|
1161
844
|
case "ContainerInUseException":
|
|
1162
845
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1163
|
-
|
|
1164
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1165
|
-
name: errorCode,
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
1168
|
-
break;
|
|
846
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1169
847
|
case "ContainerNotFoundException":
|
|
1170
848
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1171
|
-
|
|
1172
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
849
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1177
850
|
case "InternalServerError":
|
|
1178
851
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1179
|
-
|
|
1180
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
852
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1185
853
|
default:
|
|
1186
854
|
const parsedBody = parsedOutput.body;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
...parsedBody,
|
|
1190
|
-
name: `${errorCode}`,
|
|
1191
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
855
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
856
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1192
857
|
$fault: "client",
|
|
1193
858
|
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
859
|
+
});
|
|
860
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1195
861
|
}
|
|
1196
|
-
const message = response.message || response.Message || errorCode;
|
|
1197
|
-
response.message = message;
|
|
1198
|
-
delete response.Message;
|
|
1199
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1200
862
|
};
|
|
1201
863
|
const deserializeAws_json1_1PutLifecyclePolicyCommand = async (output, context) => {
|
|
1202
864
|
if (output.statusCode >= 300) {
|
|
@@ -1223,43 +885,22 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
1223
885
|
switch (errorCode) {
|
|
1224
886
|
case "ContainerInUseException":
|
|
1225
887
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1226
|
-
|
|
1227
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1228
|
-
name: errorCode,
|
|
1229
|
-
$metadata: deserializeMetadata(output),
|
|
1230
|
-
};
|
|
1231
|
-
break;
|
|
888
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1232
889
|
case "ContainerNotFoundException":
|
|
1233
890
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1234
|
-
|
|
1235
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1236
|
-
name: errorCode,
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1238
|
-
};
|
|
1239
|
-
break;
|
|
891
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1240
892
|
case "InternalServerError":
|
|
1241
893
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1242
|
-
|
|
1243
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1244
|
-
name: errorCode,
|
|
1245
|
-
$metadata: deserializeMetadata(output),
|
|
1246
|
-
};
|
|
1247
|
-
break;
|
|
894
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1248
895
|
default:
|
|
1249
896
|
const parsedBody = parsedOutput.body;
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
...parsedBody,
|
|
1253
|
-
name: `${errorCode}`,
|
|
1254
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
897
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
898
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1255
899
|
$fault: "client",
|
|
1256
900
|
$metadata: deserializeMetadata(output),
|
|
1257
|
-
};
|
|
901
|
+
});
|
|
902
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1258
903
|
}
|
|
1259
|
-
const message = response.message || response.Message || errorCode;
|
|
1260
|
-
response.message = message;
|
|
1261
|
-
delete response.Message;
|
|
1262
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1263
904
|
};
|
|
1264
905
|
const deserializeAws_json1_1PutMetricPolicyCommand = async (output, context) => {
|
|
1265
906
|
if (output.statusCode >= 300) {
|
|
@@ -1286,43 +927,22 @@ const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context
|
|
|
1286
927
|
switch (errorCode) {
|
|
1287
928
|
case "ContainerInUseException":
|
|
1288
929
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
930
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1295
931
|
case "ContainerNotFoundException":
|
|
1296
932
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1297
|
-
|
|
1298
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1299
|
-
name: errorCode,
|
|
1300
|
-
$metadata: deserializeMetadata(output),
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
933
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1303
934
|
case "InternalServerError":
|
|
1304
935
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1305
|
-
|
|
1306
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1307
|
-
name: errorCode,
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
};
|
|
1310
|
-
break;
|
|
936
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1311
937
|
default:
|
|
1312
938
|
const parsedBody = parsedOutput.body;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
...parsedBody,
|
|
1316
|
-
name: `${errorCode}`,
|
|
1317
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
939
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
940
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1318
941
|
$fault: "client",
|
|
1319
942
|
$metadata: deserializeMetadata(output),
|
|
1320
|
-
};
|
|
943
|
+
});
|
|
944
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1321
945
|
}
|
|
1322
|
-
const message = response.message || response.Message || errorCode;
|
|
1323
|
-
response.message = message;
|
|
1324
|
-
delete response.Message;
|
|
1325
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1326
946
|
};
|
|
1327
947
|
const deserializeAws_json1_1StartAccessLoggingCommand = async (output, context) => {
|
|
1328
948
|
if (output.statusCode >= 300) {
|
|
@@ -1349,43 +969,22 @@ const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, cont
|
|
|
1349
969
|
switch (errorCode) {
|
|
1350
970
|
case "ContainerInUseException":
|
|
1351
971
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
972
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1358
973
|
case "ContainerNotFoundException":
|
|
1359
974
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1360
|
-
|
|
1361
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1362
|
-
name: errorCode,
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1365
|
-
break;
|
|
975
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1366
976
|
case "InternalServerError":
|
|
1367
977
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
978
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1374
979
|
default:
|
|
1375
980
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
...parsedBody,
|
|
1379
|
-
name: `${errorCode}`,
|
|
1380
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
981
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
982
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
983
|
$fault: "client",
|
|
1382
984
|
$metadata: deserializeMetadata(output),
|
|
1383
|
-
};
|
|
985
|
+
});
|
|
986
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1384
987
|
}
|
|
1385
|
-
const message = response.message || response.Message || errorCode;
|
|
1386
|
-
response.message = message;
|
|
1387
|
-
delete response.Message;
|
|
1388
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1389
988
|
};
|
|
1390
989
|
const deserializeAws_json1_1StopAccessLoggingCommand = async (output, context) => {
|
|
1391
990
|
if (output.statusCode >= 300) {
|
|
@@ -1412,43 +1011,22 @@ const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, conte
|
|
|
1412
1011
|
switch (errorCode) {
|
|
1413
1012
|
case "ContainerInUseException":
|
|
1414
1013
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1415
|
-
|
|
1416
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1417
|
-
name: errorCode,
|
|
1418
|
-
$metadata: deserializeMetadata(output),
|
|
1419
|
-
};
|
|
1420
|
-
break;
|
|
1014
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1421
1015
|
case "ContainerNotFoundException":
|
|
1422
1016
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1423
|
-
|
|
1424
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1425
|
-
name: errorCode,
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
};
|
|
1428
|
-
break;
|
|
1017
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1429
1018
|
case "InternalServerError":
|
|
1430
1019
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1431
|
-
|
|
1432
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1433
|
-
name: errorCode,
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
break;
|
|
1020
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1437
1021
|
default:
|
|
1438
1022
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
...parsedBody,
|
|
1442
|
-
name: `${errorCode}`,
|
|
1443
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1023
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1444
1025
|
$fault: "client",
|
|
1445
1026
|
$metadata: deserializeMetadata(output),
|
|
1446
|
-
};
|
|
1027
|
+
});
|
|
1028
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1447
1029
|
}
|
|
1448
|
-
const message = response.message || response.Message || errorCode;
|
|
1449
|
-
response.message = message;
|
|
1450
|
-
delete response.Message;
|
|
1451
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1452
1030
|
};
|
|
1453
1031
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1454
1032
|
if (output.statusCode >= 300) {
|
|
@@ -1475,43 +1053,22 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1475
1053
|
switch (errorCode) {
|
|
1476
1054
|
case "ContainerInUseException":
|
|
1477
1055
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1484
1057
|
case "ContainerNotFoundException":
|
|
1485
1058
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1486
|
-
|
|
1487
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1488
|
-
name: errorCode,
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1491
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1492
1060
|
case "InternalServerError":
|
|
1493
1061
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1494
|
-
|
|
1495
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1496
|
-
name: errorCode,
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
};
|
|
1499
|
-
break;
|
|
1062
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1500
1063
|
default:
|
|
1501
1064
|
const parsedBody = parsedOutput.body;
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
...parsedBody,
|
|
1505
|
-
name: `${errorCode}`,
|
|
1506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1065
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
1066
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1507
1067
|
$fault: "client",
|
|
1508
1068
|
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1069
|
+
});
|
|
1070
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1510
1071
|
}
|
|
1511
|
-
const message = response.message || response.Message || errorCode;
|
|
1512
|
-
response.message = message;
|
|
1513
|
-
delete response.Message;
|
|
1514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1515
1072
|
};
|
|
1516
1073
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1517
1074
|
if (output.statusCode >= 300) {
|
|
@@ -1538,109 +1095,76 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1538
1095
|
switch (errorCode) {
|
|
1539
1096
|
case "ContainerInUseException":
|
|
1540
1097
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1541
|
-
|
|
1542
|
-
...(await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context)),
|
|
1543
|
-
name: errorCode,
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1098
|
+
throw await deserializeAws_json1_1ContainerInUseExceptionResponse(parsedOutput, context);
|
|
1547
1099
|
case "ContainerNotFoundException":
|
|
1548
1100
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1549
|
-
|
|
1550
|
-
...(await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1551
|
-
name: errorCode,
|
|
1552
|
-
$metadata: deserializeMetadata(output),
|
|
1553
|
-
};
|
|
1554
|
-
break;
|
|
1101
|
+
throw await deserializeAws_json1_1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
1555
1102
|
case "InternalServerError":
|
|
1556
1103
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1557
|
-
|
|
1558
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
1559
|
-
name: errorCode,
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
};
|
|
1562
|
-
break;
|
|
1104
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1563
1105
|
default:
|
|
1564
1106
|
const parsedBody = parsedOutput.body;
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
...parsedBody,
|
|
1568
|
-
name: `${errorCode}`,
|
|
1569
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1107
|
+
response = new MediaStoreServiceException_1.MediaStoreServiceException({
|
|
1108
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1570
1109
|
$fault: "client",
|
|
1571
1110
|
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1111
|
+
});
|
|
1112
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1573
1113
|
}
|
|
1574
|
-
const message = response.message || response.Message || errorCode;
|
|
1575
|
-
response.message = message;
|
|
1576
|
-
delete response.Message;
|
|
1577
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1578
1114
|
};
|
|
1579
1115
|
const deserializeAws_json1_1ContainerInUseExceptionResponse = async (parsedOutput, context) => {
|
|
1580
1116
|
const body = parsedOutput.body;
|
|
1581
1117
|
const deserialized = deserializeAws_json1_1ContainerInUseException(body, context);
|
|
1582
|
-
const
|
|
1583
|
-
name: "ContainerInUseException",
|
|
1584
|
-
$fault: "client",
|
|
1118
|
+
const exception = new models_0_1.ContainerInUseException({
|
|
1585
1119
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1586
1120
|
...deserialized,
|
|
1587
|
-
};
|
|
1588
|
-
return
|
|
1121
|
+
});
|
|
1122
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1589
1123
|
};
|
|
1590
1124
|
const deserializeAws_json1_1ContainerNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1591
1125
|
const body = parsedOutput.body;
|
|
1592
1126
|
const deserialized = deserializeAws_json1_1ContainerNotFoundException(body, context);
|
|
1593
|
-
const
|
|
1594
|
-
name: "ContainerNotFoundException",
|
|
1595
|
-
$fault: "client",
|
|
1127
|
+
const exception = new models_0_1.ContainerNotFoundException({
|
|
1596
1128
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1597
1129
|
...deserialized,
|
|
1598
|
-
};
|
|
1599
|
-
return
|
|
1130
|
+
});
|
|
1131
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1600
1132
|
};
|
|
1601
1133
|
const deserializeAws_json1_1CorsPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1602
1134
|
const body = parsedOutput.body;
|
|
1603
1135
|
const deserialized = deserializeAws_json1_1CorsPolicyNotFoundException(body, context);
|
|
1604
|
-
const
|
|
1605
|
-
name: "CorsPolicyNotFoundException",
|
|
1606
|
-
$fault: "client",
|
|
1136
|
+
const exception = new models_0_1.CorsPolicyNotFoundException({
|
|
1607
1137
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1608
1138
|
...deserialized,
|
|
1609
|
-
};
|
|
1610
|
-
return
|
|
1139
|
+
});
|
|
1140
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1611
1141
|
};
|
|
1612
1142
|
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
1613
1143
|
const body = parsedOutput.body;
|
|
1614
1144
|
const deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1615
|
-
const
|
|
1616
|
-
name: "InternalServerError",
|
|
1617
|
-
$fault: "server",
|
|
1145
|
+
const exception = new models_0_1.InternalServerError({
|
|
1618
1146
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1619
1147
|
...deserialized,
|
|
1620
|
-
};
|
|
1621
|
-
return
|
|
1148
|
+
});
|
|
1149
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1622
1150
|
};
|
|
1623
1151
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1624
1152
|
const body = parsedOutput.body;
|
|
1625
1153
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1626
|
-
const
|
|
1627
|
-
name: "LimitExceededException",
|
|
1628
|
-
$fault: "client",
|
|
1154
|
+
const exception = new models_0_1.LimitExceededException({
|
|
1629
1155
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1630
1156
|
...deserialized,
|
|
1631
|
-
};
|
|
1632
|
-
return
|
|
1157
|
+
});
|
|
1158
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1633
1159
|
};
|
|
1634
1160
|
const deserializeAws_json1_1PolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1635
1161
|
const body = parsedOutput.body;
|
|
1636
1162
|
const deserialized = deserializeAws_json1_1PolicyNotFoundException(body, context);
|
|
1637
|
-
const
|
|
1638
|
-
name: "PolicyNotFoundException",
|
|
1639
|
-
$fault: "client",
|
|
1163
|
+
const exception = new models_0_1.PolicyNotFoundException({
|
|
1640
1164
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1641
1165
|
...deserialized,
|
|
1642
|
-
};
|
|
1643
|
-
return
|
|
1166
|
+
});
|
|
1167
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1644
1168
|
};
|
|
1645
1169
|
const serializeAws_json1_1AllowedHeaders = (input, context) => {
|
|
1646
1170
|
return input
|
|
@@ -1884,7 +1408,7 @@ const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
|
1884
1408
|
};
|
|
1885
1409
|
};
|
|
1886
1410
|
const deserializeAws_json1_1AllowedHeaders = (output, context) => {
|
|
1887
|
-
|
|
1411
|
+
const retVal = (output || [])
|
|
1888
1412
|
.filter((e) => e != null)
|
|
1889
1413
|
.map((entry) => {
|
|
1890
1414
|
if (entry === null) {
|
|
@@ -1892,9 +1416,10 @@ const deserializeAws_json1_1AllowedHeaders = (output, context) => {
|
|
|
1892
1416
|
}
|
|
1893
1417
|
return smithy_client_1.expectString(entry);
|
|
1894
1418
|
});
|
|
1419
|
+
return retVal;
|
|
1895
1420
|
};
|
|
1896
1421
|
const deserializeAws_json1_1AllowedMethods = (output, context) => {
|
|
1897
|
-
|
|
1422
|
+
const retVal = (output || [])
|
|
1898
1423
|
.filter((e) => e != null)
|
|
1899
1424
|
.map((entry) => {
|
|
1900
1425
|
if (entry === null) {
|
|
@@ -1902,9 +1427,10 @@ const deserializeAws_json1_1AllowedMethods = (output, context) => {
|
|
|
1902
1427
|
}
|
|
1903
1428
|
return smithy_client_1.expectString(entry);
|
|
1904
1429
|
});
|
|
1430
|
+
return retVal;
|
|
1905
1431
|
};
|
|
1906
1432
|
const deserializeAws_json1_1AllowedOrigins = (output, context) => {
|
|
1907
|
-
|
|
1433
|
+
const retVal = (output || [])
|
|
1908
1434
|
.filter((e) => e != null)
|
|
1909
1435
|
.map((entry) => {
|
|
1910
1436
|
if (entry === null) {
|
|
@@ -1912,6 +1438,7 @@ const deserializeAws_json1_1AllowedOrigins = (output, context) => {
|
|
|
1912
1438
|
}
|
|
1913
1439
|
return smithy_client_1.expectString(entry);
|
|
1914
1440
|
});
|
|
1441
|
+
return retVal;
|
|
1915
1442
|
};
|
|
1916
1443
|
const deserializeAws_json1_1Container = (output, context) => {
|
|
1917
1444
|
return {
|
|
@@ -1931,7 +1458,7 @@ const deserializeAws_json1_1ContainerInUseException = (output, context) => {
|
|
|
1931
1458
|
};
|
|
1932
1459
|
};
|
|
1933
1460
|
const deserializeAws_json1_1ContainerList = (output, context) => {
|
|
1934
|
-
|
|
1461
|
+
const retVal = (output || [])
|
|
1935
1462
|
.filter((e) => e != null)
|
|
1936
1463
|
.map((entry) => {
|
|
1937
1464
|
if (entry === null) {
|
|
@@ -1939,6 +1466,7 @@ const deserializeAws_json1_1ContainerList = (output, context) => {
|
|
|
1939
1466
|
}
|
|
1940
1467
|
return deserializeAws_json1_1Container(entry, context);
|
|
1941
1468
|
});
|
|
1469
|
+
return retVal;
|
|
1942
1470
|
};
|
|
1943
1471
|
const deserializeAws_json1_1ContainerNotFoundException = (output, context) => {
|
|
1944
1472
|
return {
|
|
@@ -1946,7 +1474,7 @@ const deserializeAws_json1_1ContainerNotFoundException = (output, context) => {
|
|
|
1946
1474
|
};
|
|
1947
1475
|
};
|
|
1948
1476
|
const deserializeAws_json1_1CorsPolicy = (output, context) => {
|
|
1949
|
-
|
|
1477
|
+
const retVal = (output || [])
|
|
1950
1478
|
.filter((e) => e != null)
|
|
1951
1479
|
.map((entry) => {
|
|
1952
1480
|
if (entry === null) {
|
|
@@ -1954,6 +1482,7 @@ const deserializeAws_json1_1CorsPolicy = (output, context) => {
|
|
|
1954
1482
|
}
|
|
1955
1483
|
return deserializeAws_json1_1CorsRule(entry, context);
|
|
1956
1484
|
});
|
|
1485
|
+
return retVal;
|
|
1957
1486
|
};
|
|
1958
1487
|
const deserializeAws_json1_1CorsPolicyNotFoundException = (output, context) => {
|
|
1959
1488
|
return {
|
|
@@ -2007,7 +1536,7 @@ const deserializeAws_json1_1DescribeContainerOutput = (output, context) => {
|
|
|
2007
1536
|
};
|
|
2008
1537
|
};
|
|
2009
1538
|
const deserializeAws_json1_1ExposeHeaders = (output, context) => {
|
|
2010
|
-
|
|
1539
|
+
const retVal = (output || [])
|
|
2011
1540
|
.filter((e) => e != null)
|
|
2012
1541
|
.map((entry) => {
|
|
2013
1542
|
if (entry === null) {
|
|
@@ -2015,6 +1544,7 @@ const deserializeAws_json1_1ExposeHeaders = (output, context) => {
|
|
|
2015
1544
|
}
|
|
2016
1545
|
return smithy_client_1.expectString(entry);
|
|
2017
1546
|
});
|
|
1547
|
+
return retVal;
|
|
2018
1548
|
};
|
|
2019
1549
|
const deserializeAws_json1_1GetContainerPolicyOutput = (output, context) => {
|
|
2020
1550
|
return {
|
|
@@ -2080,7 +1610,7 @@ const deserializeAws_json1_1MetricPolicyRule = (output, context) => {
|
|
|
2080
1610
|
};
|
|
2081
1611
|
};
|
|
2082
1612
|
const deserializeAws_json1_1MetricPolicyRules = (output, context) => {
|
|
2083
|
-
|
|
1613
|
+
const retVal = (output || [])
|
|
2084
1614
|
.filter((e) => e != null)
|
|
2085
1615
|
.map((entry) => {
|
|
2086
1616
|
if (entry === null) {
|
|
@@ -2088,6 +1618,7 @@ const deserializeAws_json1_1MetricPolicyRules = (output, context) => {
|
|
|
2088
1618
|
}
|
|
2089
1619
|
return deserializeAws_json1_1MetricPolicyRule(entry, context);
|
|
2090
1620
|
});
|
|
1621
|
+
return retVal;
|
|
2091
1622
|
};
|
|
2092
1623
|
const deserializeAws_json1_1PolicyNotFoundException = (output, context) => {
|
|
2093
1624
|
return {
|
|
@@ -2119,7 +1650,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
2119
1650
|
};
|
|
2120
1651
|
};
|
|
2121
1652
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
2122
|
-
|
|
1653
|
+
const retVal = (output || [])
|
|
2123
1654
|
.filter((e) => e != null)
|
|
2124
1655
|
.map((entry) => {
|
|
2125
1656
|
if (entry === null) {
|
|
@@ -2127,6 +1658,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2127
1658
|
}
|
|
2128
1659
|
return deserializeAws_json1_1Tag(entry, context);
|
|
2129
1660
|
});
|
|
1661
|
+
return retVal;
|
|
2130
1662
|
};
|
|
2131
1663
|
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
2132
1664
|
return {};
|