@aws-sdk/client-ecr-public 3.52.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ECRPUBLICServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +306 -2
- package/dist-cjs/protocols/Aws_json1_1.js +290 -964
- package/dist-es/index.js +1 -0
- package/dist-es/models/ECRPUBLICServiceException.js +12 -0
- package/dist-es/models/models_0.js +282 -1
- package/dist-es/protocols/Aws_json1_1.js +576 -1011
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ECRPUBLICServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +163 -93
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ECRPUBLICServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +117 -93
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutRepositoryCatalogDataCommand = exports.deserializeAws_json1_1PutRegistryCatalogDataCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRepositoryCatalogDataCommand = exports.deserializeAws_json1_1GetRegistryCatalogDataCommand = exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistriesCommand = exports.deserializeAws_json1_1DescribeImageTagsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutRepositoryCatalogDataCommand = exports.serializeAws_json1_1PutRegistryCatalogDataCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRepositoryCatalogDataCommand = exports.serializeAws_json1_1GetRegistryCatalogDataCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistriesCommand = exports.serializeAws_json1_1DescribeImageTagsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = 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 ECRPUBLICServiceException_1 = require("../models/ECRPUBLICServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -258,51 +260,25 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
258
260
|
switch (errorCode) {
|
|
259
261
|
case "InvalidParameterException":
|
|
260
262
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
261
|
-
|
|
262
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
263
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
267
264
|
case "RegistryNotFoundException":
|
|
268
265
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
269
|
-
|
|
270
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
271
|
-
name: errorCode,
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
};
|
|
274
|
-
break;
|
|
266
|
+
throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context);
|
|
275
267
|
case "RepositoryNotFoundException":
|
|
276
268
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
277
|
-
|
|
278
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
279
|
-
name: errorCode,
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
};
|
|
282
|
-
break;
|
|
269
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
283
270
|
case "ServerException":
|
|
284
271
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
285
|
-
|
|
286
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
287
|
-
name: errorCode,
|
|
288
|
-
$metadata: deserializeMetadata(output),
|
|
289
|
-
};
|
|
290
|
-
break;
|
|
272
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
291
273
|
default:
|
|
292
274
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
...parsedBody,
|
|
296
|
-
name: `${errorCode}`,
|
|
297
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
275
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
276
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
298
277
|
$fault: "client",
|
|
299
278
|
$metadata: deserializeMetadata(output),
|
|
300
|
-
};
|
|
279
|
+
});
|
|
280
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
301
281
|
}
|
|
302
|
-
const message = response.message || response.Message || errorCode;
|
|
303
|
-
response.message = message;
|
|
304
|
-
delete response.Message;
|
|
305
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
306
282
|
};
|
|
307
283
|
const deserializeAws_json1_1BatchDeleteImageCommand = async (output, context) => {
|
|
308
284
|
if (output.statusCode >= 300) {
|
|
@@ -329,43 +305,22 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
329
305
|
switch (errorCode) {
|
|
330
306
|
case "InvalidParameterException":
|
|
331
307
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
332
|
-
|
|
333
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
334
|
-
name: errorCode,
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
};
|
|
337
|
-
break;
|
|
308
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
338
309
|
case "RepositoryNotFoundException":
|
|
339
310
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
340
|
-
|
|
341
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
342
|
-
name: errorCode,
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
break;
|
|
311
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
346
312
|
case "ServerException":
|
|
347
313
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
348
|
-
|
|
349
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
350
|
-
name: errorCode,
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
314
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
354
315
|
default:
|
|
355
316
|
const parsedBody = parsedOutput.body;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
...parsedBody,
|
|
359
|
-
name: `${errorCode}`,
|
|
360
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
317
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
318
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
361
319
|
$fault: "client",
|
|
362
320
|
$metadata: deserializeMetadata(output),
|
|
363
|
-
};
|
|
321
|
+
});
|
|
322
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
364
323
|
}
|
|
365
|
-
const message = response.message || response.Message || errorCode;
|
|
366
|
-
response.message = message;
|
|
367
|
-
delete response.Message;
|
|
368
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
369
324
|
};
|
|
370
325
|
const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => {
|
|
371
326
|
if (output.statusCode >= 300) {
|
|
@@ -392,99 +347,43 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
392
347
|
switch (errorCode) {
|
|
393
348
|
case "EmptyUploadException":
|
|
394
349
|
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
395
|
-
|
|
396
|
-
...(await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)),
|
|
397
|
-
name: errorCode,
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
400
|
-
break;
|
|
350
|
+
throw await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context);
|
|
401
351
|
case "InvalidLayerException":
|
|
402
352
|
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
403
|
-
|
|
404
|
-
...(await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)),
|
|
405
|
-
name: errorCode,
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
};
|
|
408
|
-
break;
|
|
353
|
+
throw await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context);
|
|
409
354
|
case "InvalidParameterException":
|
|
410
355
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
411
|
-
|
|
412
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
413
|
-
name: errorCode,
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
};
|
|
416
|
-
break;
|
|
356
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
417
357
|
case "LayerAlreadyExistsException":
|
|
418
358
|
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
419
|
-
|
|
420
|
-
...(await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
421
|
-
name: errorCode,
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
};
|
|
424
|
-
break;
|
|
359
|
+
throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
425
360
|
case "LayerPartTooSmallException":
|
|
426
361
|
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
427
|
-
|
|
428
|
-
...(await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)),
|
|
429
|
-
name: errorCode,
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
};
|
|
432
|
-
break;
|
|
362
|
+
throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context);
|
|
433
363
|
case "RegistryNotFoundException":
|
|
434
364
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
435
|
-
|
|
436
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
437
|
-
name: errorCode,
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
};
|
|
440
|
-
break;
|
|
365
|
+
throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context);
|
|
441
366
|
case "RepositoryNotFoundException":
|
|
442
367
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
443
|
-
|
|
444
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
445
|
-
name: errorCode,
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
};
|
|
448
|
-
break;
|
|
368
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
449
369
|
case "ServerException":
|
|
450
370
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
451
|
-
|
|
452
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
453
|
-
name: errorCode,
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
break;
|
|
371
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
457
372
|
case "UnsupportedCommandException":
|
|
458
373
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
459
|
-
|
|
460
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
461
|
-
name: errorCode,
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
464
|
-
break;
|
|
374
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
465
375
|
case "UploadNotFoundException":
|
|
466
376
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
467
|
-
|
|
468
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
469
|
-
name: errorCode,
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
};
|
|
472
|
-
break;
|
|
377
|
+
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
473
378
|
default:
|
|
474
379
|
const parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
...parsedBody,
|
|
478
|
-
name: `${errorCode}`,
|
|
479
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
380
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
480
382
|
$fault: "client",
|
|
481
383
|
$metadata: deserializeMetadata(output),
|
|
482
|
-
};
|
|
384
|
+
});
|
|
385
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
483
386
|
}
|
|
484
|
-
const message = response.message || response.Message || errorCode;
|
|
485
|
-
response.message = message;
|
|
486
|
-
delete response.Message;
|
|
487
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
488
387
|
};
|
|
489
388
|
const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => {
|
|
490
389
|
if (output.statusCode >= 300) {
|
|
@@ -511,67 +410,31 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
511
410
|
switch (errorCode) {
|
|
512
411
|
case "InvalidParameterException":
|
|
513
412
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
514
|
-
|
|
515
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
516
|
-
name: errorCode,
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
};
|
|
519
|
-
break;
|
|
413
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
520
414
|
case "InvalidTagParameterException":
|
|
521
415
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
522
|
-
|
|
523
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
524
|
-
name: errorCode,
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
};
|
|
527
|
-
break;
|
|
416
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
528
417
|
case "LimitExceededException":
|
|
529
418
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
530
|
-
|
|
531
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
532
|
-
name: errorCode,
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
535
|
-
break;
|
|
419
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
536
420
|
case "RepositoryAlreadyExistsException":
|
|
537
421
|
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
538
|
-
|
|
539
|
-
...(await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
540
|
-
name: errorCode,
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
};
|
|
543
|
-
break;
|
|
422
|
+
throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
544
423
|
case "ServerException":
|
|
545
424
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
546
|
-
|
|
547
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
548
|
-
name: errorCode,
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
};
|
|
551
|
-
break;
|
|
425
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
552
426
|
case "TooManyTagsException":
|
|
553
427
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
554
|
-
|
|
555
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
556
|
-
name: errorCode,
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
};
|
|
559
|
-
break;
|
|
428
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
560
429
|
default:
|
|
561
430
|
const parsedBody = parsedOutput.body;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
...parsedBody,
|
|
565
|
-
name: `${errorCode}`,
|
|
566
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
431
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
432
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
567
433
|
$fault: "client",
|
|
568
434
|
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
435
|
+
});
|
|
436
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
570
437
|
}
|
|
571
|
-
const message = response.message || response.Message || errorCode;
|
|
572
|
-
response.message = message;
|
|
573
|
-
delete response.Message;
|
|
574
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
575
438
|
};
|
|
576
439
|
const deserializeAws_json1_1DeleteRepositoryCommand = async (output, context) => {
|
|
577
440
|
if (output.statusCode >= 300) {
|
|
@@ -598,51 +461,25 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
598
461
|
switch (errorCode) {
|
|
599
462
|
case "InvalidParameterException":
|
|
600
463
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
601
|
-
|
|
602
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
603
|
-
name: errorCode,
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
};
|
|
606
|
-
break;
|
|
464
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
607
465
|
case "RepositoryNotEmptyException":
|
|
608
466
|
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
609
|
-
|
|
610
|
-
...(await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)),
|
|
611
|
-
name: errorCode,
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
614
|
-
break;
|
|
467
|
+
throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context);
|
|
615
468
|
case "RepositoryNotFoundException":
|
|
616
469
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
617
|
-
|
|
618
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
619
|
-
name: errorCode,
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
};
|
|
622
|
-
break;
|
|
470
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
623
471
|
case "ServerException":
|
|
624
472
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
625
|
-
|
|
626
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
627
|
-
name: errorCode,
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
};
|
|
630
|
-
break;
|
|
473
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
631
474
|
default:
|
|
632
475
|
const parsedBody = parsedOutput.body;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
...parsedBody,
|
|
636
|
-
name: `${errorCode}`,
|
|
637
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
476
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
477
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
638
478
|
$fault: "client",
|
|
639
479
|
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
480
|
+
});
|
|
481
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
641
482
|
}
|
|
642
|
-
const message = response.message || response.Message || errorCode;
|
|
643
|
-
response.message = message;
|
|
644
|
-
delete response.Message;
|
|
645
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
646
483
|
};
|
|
647
484
|
const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
648
485
|
if (output.statusCode >= 300) {
|
|
@@ -669,51 +506,25 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
669
506
|
switch (errorCode) {
|
|
670
507
|
case "InvalidParameterException":
|
|
671
508
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
672
|
-
|
|
673
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
674
|
-
name: errorCode,
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
};
|
|
677
|
-
break;
|
|
509
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
678
510
|
case "RepositoryNotFoundException":
|
|
679
511
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
680
|
-
|
|
681
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
682
|
-
name: errorCode,
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
};
|
|
685
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
686
513
|
case "RepositoryPolicyNotFoundException":
|
|
687
514
|
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
688
|
-
|
|
689
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
690
|
-
name: errorCode,
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
};
|
|
693
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
694
516
|
case "ServerException":
|
|
695
517
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
696
|
-
|
|
697
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
698
|
-
name: errorCode,
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
701
|
-
break;
|
|
518
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
702
519
|
default:
|
|
703
520
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
...parsedBody,
|
|
707
|
-
name: `${errorCode}`,
|
|
708
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
521
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
522
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
709
523
|
$fault: "client",
|
|
710
524
|
$metadata: deserializeMetadata(output),
|
|
711
|
-
};
|
|
525
|
+
});
|
|
526
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
712
527
|
}
|
|
713
|
-
const message = response.message || response.Message || errorCode;
|
|
714
|
-
response.message = message;
|
|
715
|
-
delete response.Message;
|
|
716
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
717
528
|
};
|
|
718
529
|
const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => {
|
|
719
530
|
if (output.statusCode >= 300) {
|
|
@@ -740,51 +551,25 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
740
551
|
switch (errorCode) {
|
|
741
552
|
case "ImageNotFoundException":
|
|
742
553
|
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
743
|
-
|
|
744
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
745
|
-
name: errorCode,
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
};
|
|
748
|
-
break;
|
|
554
|
+
throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context);
|
|
749
555
|
case "InvalidParameterException":
|
|
750
556
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
751
|
-
|
|
752
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
753
|
-
name: errorCode,
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
break;
|
|
557
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
757
558
|
case "RepositoryNotFoundException":
|
|
758
559
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
759
|
-
|
|
760
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
761
|
-
name: errorCode,
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
764
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
765
561
|
case "ServerException":
|
|
766
562
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
767
|
-
|
|
768
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
769
|
-
name: errorCode,
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
};
|
|
772
|
-
break;
|
|
563
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
773
564
|
default:
|
|
774
565
|
const parsedBody = parsedOutput.body;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
...parsedBody,
|
|
778
|
-
name: `${errorCode}`,
|
|
779
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
566
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
567
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
780
568
|
$fault: "client",
|
|
781
569
|
$metadata: deserializeMetadata(output),
|
|
782
|
-
};
|
|
570
|
+
});
|
|
571
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
783
572
|
}
|
|
784
|
-
const message = response.message || response.Message || errorCode;
|
|
785
|
-
response.message = message;
|
|
786
|
-
delete response.Message;
|
|
787
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
788
573
|
};
|
|
789
574
|
const deserializeAws_json1_1DescribeImageTagsCommand = async (output, context) => {
|
|
790
575
|
if (output.statusCode >= 300) {
|
|
@@ -811,43 +596,22 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
811
596
|
switch (errorCode) {
|
|
812
597
|
case "InvalidParameterException":
|
|
813
598
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
814
|
-
|
|
815
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
816
|
-
name: errorCode,
|
|
817
|
-
$metadata: deserializeMetadata(output),
|
|
818
|
-
};
|
|
819
|
-
break;
|
|
599
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
820
600
|
case "RepositoryNotFoundException":
|
|
821
601
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
822
|
-
|
|
823
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
602
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
828
603
|
case "ServerException":
|
|
829
604
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
830
|
-
|
|
831
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
832
|
-
name: errorCode,
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
};
|
|
835
|
-
break;
|
|
605
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
836
606
|
default:
|
|
837
607
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
...parsedBody,
|
|
841
|
-
name: `${errorCode}`,
|
|
842
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
608
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
609
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
843
610
|
$fault: "client",
|
|
844
611
|
$metadata: deserializeMetadata(output),
|
|
845
|
-
};
|
|
612
|
+
});
|
|
613
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
846
614
|
}
|
|
847
|
-
const message = response.message || response.Message || errorCode;
|
|
848
|
-
response.message = message;
|
|
849
|
-
delete response.Message;
|
|
850
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
851
615
|
};
|
|
852
616
|
const deserializeAws_json1_1DescribeRegistriesCommand = async (output, context) => {
|
|
853
617
|
if (output.statusCode >= 300) {
|
|
@@ -874,43 +638,22 @@ const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, cont
|
|
|
874
638
|
switch (errorCode) {
|
|
875
639
|
case "InvalidParameterException":
|
|
876
640
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
641
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
883
642
|
case "ServerException":
|
|
884
643
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
644
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
891
645
|
case "UnsupportedCommandException":
|
|
892
646
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
893
|
-
|
|
894
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
895
|
-
name: errorCode,
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
898
|
-
break;
|
|
647
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
899
648
|
default:
|
|
900
649
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
...parsedBody,
|
|
904
|
-
name: `${errorCode}`,
|
|
905
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
650
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
651
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
906
652
|
$fault: "client",
|
|
907
653
|
$metadata: deserializeMetadata(output),
|
|
908
|
-
};
|
|
654
|
+
});
|
|
655
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
909
656
|
}
|
|
910
|
-
const message = response.message || response.Message || errorCode;
|
|
911
|
-
response.message = message;
|
|
912
|
-
delete response.Message;
|
|
913
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
914
657
|
};
|
|
915
658
|
const deserializeAws_json1_1DescribeRepositoriesCommand = async (output, context) => {
|
|
916
659
|
if (output.statusCode >= 300) {
|
|
@@ -937,43 +680,22 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
937
680
|
switch (errorCode) {
|
|
938
681
|
case "InvalidParameterException":
|
|
939
682
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
940
|
-
|
|
941
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
942
|
-
name: errorCode,
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
};
|
|
945
|
-
break;
|
|
683
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
946
684
|
case "RepositoryNotFoundException":
|
|
947
685
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
948
|
-
|
|
949
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
950
|
-
name: errorCode,
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
953
|
-
break;
|
|
686
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
954
687
|
case "ServerException":
|
|
955
688
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
956
|
-
|
|
957
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
958
|
-
name: errorCode,
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
961
|
-
break;
|
|
689
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
962
690
|
default:
|
|
963
691
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
...parsedBody,
|
|
967
|
-
name: `${errorCode}`,
|
|
968
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
692
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
693
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
969
694
|
$fault: "client",
|
|
970
695
|
$metadata: deserializeMetadata(output),
|
|
971
|
-
};
|
|
696
|
+
});
|
|
697
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
972
698
|
}
|
|
973
|
-
const message = response.message || response.Message || errorCode;
|
|
974
|
-
response.message = message;
|
|
975
|
-
delete response.Message;
|
|
976
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
977
699
|
};
|
|
978
700
|
const deserializeAws_json1_1GetAuthorizationTokenCommand = async (output, context) => {
|
|
979
701
|
if (output.statusCode >= 300) {
|
|
@@ -1000,35 +722,19 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1000
722
|
switch (errorCode) {
|
|
1001
723
|
case "InvalidParameterException":
|
|
1002
724
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1003
|
-
|
|
1004
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1005
|
-
name: errorCode,
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
};
|
|
1008
|
-
break;
|
|
725
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1009
726
|
case "ServerException":
|
|
1010
727
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1011
|
-
|
|
1012
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
728
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1017
729
|
default:
|
|
1018
730
|
const parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
...parsedBody,
|
|
1022
|
-
name: `${errorCode}`,
|
|
1023
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
731
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
732
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1024
733
|
$fault: "client",
|
|
1025
734
|
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
735
|
+
});
|
|
736
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1027
737
|
}
|
|
1028
|
-
const message = response.message || response.Message || errorCode;
|
|
1029
|
-
response.message = message;
|
|
1030
|
-
delete response.Message;
|
|
1031
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1032
738
|
};
|
|
1033
739
|
const deserializeAws_json1_1GetRegistryCatalogDataCommand = async (output, context) => {
|
|
1034
740
|
if (output.statusCode >= 300) {
|
|
@@ -1055,35 +761,19 @@ const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output,
|
|
|
1055
761
|
switch (errorCode) {
|
|
1056
762
|
case "ServerException":
|
|
1057
763
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1058
|
-
|
|
1059
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1060
|
-
name: errorCode,
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
};
|
|
1063
|
-
break;
|
|
764
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1064
765
|
case "UnsupportedCommandException":
|
|
1065
766
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1066
|
-
|
|
1067
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1068
|
-
name: errorCode,
|
|
1069
|
-
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
1071
|
-
break;
|
|
767
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1072
768
|
default:
|
|
1073
769
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
...parsedBody,
|
|
1077
|
-
name: `${errorCode}`,
|
|
1078
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
770
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
771
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
772
|
$fault: "client",
|
|
1080
773
|
$metadata: deserializeMetadata(output),
|
|
1081
|
-
};
|
|
774
|
+
});
|
|
775
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1082
776
|
}
|
|
1083
|
-
const message = response.message || response.Message || errorCode;
|
|
1084
|
-
response.message = message;
|
|
1085
|
-
delete response.Message;
|
|
1086
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1087
777
|
};
|
|
1088
778
|
const deserializeAws_json1_1GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
1089
779
|
if (output.statusCode >= 300) {
|
|
@@ -1110,43 +800,22 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
1110
800
|
switch (errorCode) {
|
|
1111
801
|
case "InvalidParameterException":
|
|
1112
802
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1113
|
-
|
|
1114
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1115
|
-
name: errorCode,
|
|
1116
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
-
};
|
|
1118
|
-
break;
|
|
803
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1119
804
|
case "RepositoryNotFoundException":
|
|
1120
805
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1121
|
-
|
|
1122
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1123
|
-
name: errorCode,
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
};
|
|
1126
|
-
break;
|
|
806
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1127
807
|
case "ServerException":
|
|
1128
808
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1129
|
-
|
|
1130
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
809
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1135
810
|
default:
|
|
1136
811
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
...parsedBody,
|
|
1140
|
-
name: `${errorCode}`,
|
|
1141
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
812
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
813
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
814
|
$fault: "client",
|
|
1143
815
|
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
816
|
+
});
|
|
817
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1145
818
|
}
|
|
1146
|
-
const message = response.message || response.Message || errorCode;
|
|
1147
|
-
response.message = message;
|
|
1148
|
-
delete response.Message;
|
|
1149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1150
819
|
};
|
|
1151
820
|
const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => {
|
|
1152
821
|
if (output.statusCode >= 300) {
|
|
@@ -1173,51 +842,25 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
1173
842
|
switch (errorCode) {
|
|
1174
843
|
case "InvalidParameterException":
|
|
1175
844
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1176
|
-
|
|
1177
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1178
|
-
name: errorCode,
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
};
|
|
1181
|
-
break;
|
|
845
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1182
846
|
case "RepositoryNotFoundException":
|
|
1183
847
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1184
|
-
|
|
1185
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1186
|
-
name: errorCode,
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1189
|
-
break;
|
|
848
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1190
849
|
case "RepositoryPolicyNotFoundException":
|
|
1191
850
|
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
1192
|
-
|
|
1193
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1194
|
-
name: errorCode,
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1197
|
-
break;
|
|
851
|
+
throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1198
852
|
case "ServerException":
|
|
1199
853
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1200
|
-
|
|
1201
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1202
|
-
name: errorCode,
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
};
|
|
1205
|
-
break;
|
|
854
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1206
855
|
default:
|
|
1207
856
|
const parsedBody = parsedOutput.body;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
...parsedBody,
|
|
1211
|
-
name: `${errorCode}`,
|
|
1212
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
857
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
858
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1213
859
|
$fault: "client",
|
|
1214
860
|
$metadata: deserializeMetadata(output),
|
|
1215
|
-
};
|
|
861
|
+
});
|
|
862
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1216
863
|
}
|
|
1217
|
-
const message = response.message || response.Message || errorCode;
|
|
1218
|
-
response.message = message;
|
|
1219
|
-
delete response.Message;
|
|
1220
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1221
864
|
};
|
|
1222
865
|
const deserializeAws_json1_1InitiateLayerUploadCommand = async (output, context) => {
|
|
1223
866
|
if (output.statusCode >= 300) {
|
|
@@ -1244,59 +887,28 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
1244
887
|
switch (errorCode) {
|
|
1245
888
|
case "InvalidParameterException":
|
|
1246
889
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1247
|
-
|
|
1248
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1249
|
-
name: errorCode,
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
};
|
|
1252
|
-
break;
|
|
890
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1253
891
|
case "RegistryNotFoundException":
|
|
1254
892
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1255
|
-
|
|
1256
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1257
|
-
name: errorCode,
|
|
1258
|
-
$metadata: deserializeMetadata(output),
|
|
1259
|
-
};
|
|
1260
|
-
break;
|
|
893
|
+
throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context);
|
|
1261
894
|
case "RepositoryNotFoundException":
|
|
1262
895
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1263
|
-
|
|
1264
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1265
|
-
name: errorCode,
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
};
|
|
1268
|
-
break;
|
|
896
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1269
897
|
case "ServerException":
|
|
1270
898
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1271
|
-
|
|
1272
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1273
|
-
name: errorCode,
|
|
1274
|
-
$metadata: deserializeMetadata(output),
|
|
1275
|
-
};
|
|
1276
|
-
break;
|
|
899
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1277
900
|
case "UnsupportedCommandException":
|
|
1278
901
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1279
|
-
|
|
1280
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1281
|
-
name: errorCode,
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
};
|
|
1284
|
-
break;
|
|
902
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1285
903
|
default:
|
|
1286
904
|
const parsedBody = parsedOutput.body;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
...parsedBody,
|
|
1290
|
-
name: `${errorCode}`,
|
|
1291
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
905
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
906
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1292
907
|
$fault: "client",
|
|
1293
908
|
$metadata: deserializeMetadata(output),
|
|
1294
|
-
};
|
|
909
|
+
});
|
|
910
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1295
911
|
}
|
|
1296
|
-
const message = response.message || response.Message || errorCode;
|
|
1297
|
-
response.message = message;
|
|
1298
|
-
delete response.Message;
|
|
1299
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1300
912
|
};
|
|
1301
913
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1302
914
|
if (output.statusCode >= 300) {
|
|
@@ -1323,43 +935,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1323
935
|
switch (errorCode) {
|
|
1324
936
|
case "InvalidParameterException":
|
|
1325
937
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1326
|
-
|
|
1327
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1328
|
-
name: errorCode,
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
};
|
|
1331
|
-
break;
|
|
938
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1332
939
|
case "RepositoryNotFoundException":
|
|
1333
940
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1334
|
-
|
|
1335
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1336
|
-
name: errorCode,
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
};
|
|
1339
|
-
break;
|
|
941
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1340
942
|
case "ServerException":
|
|
1341
943
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1342
|
-
|
|
1343
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1344
|
-
name: errorCode,
|
|
1345
|
-
$metadata: deserializeMetadata(output),
|
|
1346
|
-
};
|
|
1347
|
-
break;
|
|
944
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1348
945
|
default:
|
|
1349
946
|
const parsedBody = parsedOutput.body;
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
...parsedBody,
|
|
1353
|
-
name: `${errorCode}`,
|
|
1354
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
947
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1355
949
|
$fault: "client",
|
|
1356
950
|
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
951
|
+
});
|
|
952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1358
953
|
}
|
|
1359
|
-
const message = response.message || response.Message || errorCode;
|
|
1360
|
-
response.message = message;
|
|
1361
|
-
delete response.Message;
|
|
1362
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1363
954
|
};
|
|
1364
955
|
const deserializeAws_json1_1PutImageCommand = async (output, context) => {
|
|
1365
956
|
if (output.statusCode >= 300) {
|
|
@@ -1386,107 +977,46 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1386
977
|
switch (errorCode) {
|
|
1387
978
|
case "ImageAlreadyExistsException":
|
|
1388
979
|
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
1389
|
-
|
|
1390
|
-
...(await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1391
|
-
name: errorCode,
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
};
|
|
1394
|
-
break;
|
|
980
|
+
throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1395
981
|
case "ImageDigestDoesNotMatchException":
|
|
1396
982
|
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
1397
|
-
|
|
1398
|
-
...(await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)),
|
|
1399
|
-
name: errorCode,
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
};
|
|
1402
|
-
break;
|
|
983
|
+
throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context);
|
|
1403
984
|
case "ImageTagAlreadyExistsException":
|
|
1404
985
|
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
1405
|
-
|
|
1406
|
-
...(await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1407
|
-
name: errorCode,
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
break;
|
|
986
|
+
throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1411
987
|
case "InvalidParameterException":
|
|
1412
988
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1413
|
-
|
|
1414
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1415
|
-
name: errorCode,
|
|
1416
|
-
$metadata: deserializeMetadata(output),
|
|
1417
|
-
};
|
|
1418
|
-
break;
|
|
989
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1419
990
|
case "LayersNotFoundException":
|
|
1420
991
|
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
1421
|
-
|
|
1422
|
-
...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)),
|
|
1423
|
-
name: errorCode,
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
};
|
|
1426
|
-
break;
|
|
992
|
+
throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context);
|
|
1427
993
|
case "LimitExceededException":
|
|
1428
994
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1429
|
-
|
|
1430
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1431
|
-
name: errorCode,
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1434
|
-
break;
|
|
995
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1435
996
|
case "ReferencedImagesNotFoundException":
|
|
1436
997
|
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
1437
|
-
|
|
1438
|
-
...(await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)),
|
|
1439
|
-
name: errorCode,
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1442
|
-
break;
|
|
998
|
+
throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context);
|
|
1443
999
|
case "RegistryNotFoundException":
|
|
1444
1000
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1001
|
+
throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context);
|
|
1451
1002
|
case "RepositoryNotFoundException":
|
|
1452
1003
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1004
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1459
1005
|
case "ServerException":
|
|
1460
1006
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1007
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1467
1008
|
case "UnsupportedCommandException":
|
|
1468
1009
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1010
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1475
1011
|
default:
|
|
1476
1012
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
...parsedBody,
|
|
1480
|
-
name: `${errorCode}`,
|
|
1481
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1013
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1014
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
1015
|
$fault: "client",
|
|
1483
1016
|
$metadata: deserializeMetadata(output),
|
|
1484
|
-
};
|
|
1017
|
+
});
|
|
1018
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1485
1019
|
}
|
|
1486
|
-
const message = response.message || response.Message || errorCode;
|
|
1487
|
-
response.message = message;
|
|
1488
|
-
delete response.Message;
|
|
1489
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1490
1020
|
};
|
|
1491
1021
|
const deserializeAws_json1_1PutRegistryCatalogDataCommand = async (output, context) => {
|
|
1492
1022
|
if (output.statusCode >= 300) {
|
|
@@ -1513,43 +1043,22 @@ const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output,
|
|
|
1513
1043
|
switch (errorCode) {
|
|
1514
1044
|
case "InvalidParameterException":
|
|
1515
1045
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1516
|
-
|
|
1517
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1518
|
-
name: errorCode,
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
};
|
|
1521
|
-
break;
|
|
1046
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1522
1047
|
case "ServerException":
|
|
1523
1048
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1524
|
-
|
|
1525
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1526
|
-
name: errorCode,
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1529
|
-
break;
|
|
1049
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1530
1050
|
case "UnsupportedCommandException":
|
|
1531
1051
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1532
|
-
|
|
1533
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1534
|
-
name: errorCode,
|
|
1535
|
-
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1537
|
-
break;
|
|
1052
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1538
1053
|
default:
|
|
1539
1054
|
const parsedBody = parsedOutput.body;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
...parsedBody,
|
|
1543
|
-
name: `${errorCode}`,
|
|
1544
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1055
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1056
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1545
1057
|
$fault: "client",
|
|
1546
1058
|
$metadata: deserializeMetadata(output),
|
|
1547
|
-
};
|
|
1059
|
+
});
|
|
1060
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1548
1061
|
}
|
|
1549
|
-
const message = response.message || response.Message || errorCode;
|
|
1550
|
-
response.message = message;
|
|
1551
|
-
delete response.Message;
|
|
1552
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1553
1062
|
};
|
|
1554
1063
|
const deserializeAws_json1_1PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
1555
1064
|
if (output.statusCode >= 300) {
|
|
@@ -1576,43 +1085,22 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1576
1085
|
switch (errorCode) {
|
|
1577
1086
|
case "InvalidParameterException":
|
|
1578
1087
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1579
|
-
|
|
1580
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1581
|
-
name: errorCode,
|
|
1582
|
-
$metadata: deserializeMetadata(output),
|
|
1583
|
-
};
|
|
1584
|
-
break;
|
|
1088
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1585
1089
|
case "RepositoryNotFoundException":
|
|
1586
1090
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1587
|
-
|
|
1588
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1589
|
-
name: errorCode,
|
|
1590
|
-
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1592
|
-
break;
|
|
1091
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1593
1092
|
case "ServerException":
|
|
1594
1093
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1595
|
-
|
|
1596
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1597
|
-
name: errorCode,
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
};
|
|
1600
|
-
break;
|
|
1094
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1601
1095
|
default:
|
|
1602
1096
|
const parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
...parsedBody,
|
|
1606
|
-
name: `${errorCode}`,
|
|
1607
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1097
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1098
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1608
1099
|
$fault: "client",
|
|
1609
1100
|
$metadata: deserializeMetadata(output),
|
|
1610
|
-
};
|
|
1101
|
+
});
|
|
1102
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1611
1103
|
}
|
|
1612
|
-
const message = response.message || response.Message || errorCode;
|
|
1613
|
-
response.message = message;
|
|
1614
|
-
delete response.Message;
|
|
1615
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1616
1104
|
};
|
|
1617
1105
|
const deserializeAws_json1_1SetRepositoryPolicyCommand = async (output, context) => {
|
|
1618
1106
|
if (output.statusCode >= 300) {
|
|
@@ -1639,43 +1127,22 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1639
1127
|
switch (errorCode) {
|
|
1640
1128
|
case "InvalidParameterException":
|
|
1641
1129
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1642
|
-
|
|
1643
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1644
|
-
name: errorCode,
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1647
|
-
break;
|
|
1130
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1648
1131
|
case "RepositoryNotFoundException":
|
|
1649
1132
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1650
|
-
|
|
1651
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1652
|
-
name: errorCode,
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1655
|
-
break;
|
|
1133
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1656
1134
|
case "ServerException":
|
|
1657
1135
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1658
|
-
|
|
1659
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1660
|
-
name: errorCode,
|
|
1661
|
-
$metadata: deserializeMetadata(output),
|
|
1662
|
-
};
|
|
1663
|
-
break;
|
|
1136
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1664
1137
|
default:
|
|
1665
1138
|
const parsedBody = parsedOutput.body;
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
...parsedBody,
|
|
1669
|
-
name: `${errorCode}`,
|
|
1670
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1139
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1140
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1671
1141
|
$fault: "client",
|
|
1672
1142
|
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1143
|
+
});
|
|
1144
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1674
1145
|
}
|
|
1675
|
-
const message = response.message || response.Message || errorCode;
|
|
1676
|
-
response.message = message;
|
|
1677
|
-
delete response.Message;
|
|
1678
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1679
1146
|
};
|
|
1680
1147
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1681
1148
|
if (output.statusCode >= 300) {
|
|
@@ -1702,59 +1169,28 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1702
1169
|
switch (errorCode) {
|
|
1703
1170
|
case "InvalidParameterException":
|
|
1704
1171
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1705
|
-
|
|
1706
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1172
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1711
1173
|
case "InvalidTagParameterException":
|
|
1712
1174
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1713
|
-
|
|
1714
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1175
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
1719
1176
|
case "RepositoryNotFoundException":
|
|
1720
1177
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1721
|
-
|
|
1722
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1723
|
-
name: errorCode,
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1726
|
-
break;
|
|
1178
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1727
1179
|
case "ServerException":
|
|
1728
1180
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1729
|
-
|
|
1730
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1731
|
-
name: errorCode,
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1734
|
-
break;
|
|
1181
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1735
1182
|
case "TooManyTagsException":
|
|
1736
1183
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1737
|
-
|
|
1738
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1739
|
-
name: errorCode,
|
|
1740
|
-
$metadata: deserializeMetadata(output),
|
|
1741
|
-
};
|
|
1742
|
-
break;
|
|
1184
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1743
1185
|
default:
|
|
1744
1186
|
const parsedBody = parsedOutput.body;
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
...parsedBody,
|
|
1748
|
-
name: `${errorCode}`,
|
|
1749
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1187
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1750
1189
|
$fault: "client",
|
|
1751
1190
|
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1191
|
+
});
|
|
1192
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1753
1193
|
}
|
|
1754
|
-
const message = response.message || response.Message || errorCode;
|
|
1755
|
-
response.message = message;
|
|
1756
|
-
delete response.Message;
|
|
1757
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1758
1194
|
};
|
|
1759
1195
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1760
1196
|
if (output.statusCode >= 300) {
|
|
@@ -1781,59 +1217,28 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1781
1217
|
switch (errorCode) {
|
|
1782
1218
|
case "InvalidParameterException":
|
|
1783
1219
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1784
|
-
|
|
1785
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1786
|
-
name: errorCode,
|
|
1787
|
-
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1789
|
-
break;
|
|
1220
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1790
1221
|
case "InvalidTagParameterException":
|
|
1791
1222
|
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1792
|
-
|
|
1793
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
1794
|
-
name: errorCode,
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1797
|
-
break;
|
|
1223
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
1798
1224
|
case "RepositoryNotFoundException":
|
|
1799
1225
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1800
|
-
|
|
1801
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1802
|
-
name: errorCode,
|
|
1803
|
-
$metadata: deserializeMetadata(output),
|
|
1804
|
-
};
|
|
1805
|
-
break;
|
|
1226
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1806
1227
|
case "ServerException":
|
|
1807
1228
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1808
|
-
|
|
1809
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1810
|
-
name: errorCode,
|
|
1811
|
-
$metadata: deserializeMetadata(output),
|
|
1812
|
-
};
|
|
1813
|
-
break;
|
|
1229
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1814
1230
|
case "TooManyTagsException":
|
|
1815
1231
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1816
|
-
|
|
1817
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1818
|
-
name: errorCode,
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
};
|
|
1821
|
-
break;
|
|
1232
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1822
1233
|
default:
|
|
1823
1234
|
const parsedBody = parsedOutput.body;
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
...parsedBody,
|
|
1827
|
-
name: `${errorCode}`,
|
|
1828
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1235
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1236
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1829
1237
|
$fault: "client",
|
|
1830
1238
|
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1239
|
+
});
|
|
1240
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1832
1241
|
}
|
|
1833
|
-
const message = response.message || response.Message || errorCode;
|
|
1834
|
-
response.message = message;
|
|
1835
|
-
delete response.Message;
|
|
1836
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1837
1242
|
};
|
|
1838
1243
|
const deserializeAws_json1_1UploadLayerPartCommand = async (output, context) => {
|
|
1839
1244
|
if (output.statusCode >= 300) {
|
|
@@ -1860,336 +1265,244 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
1860
1265
|
switch (errorCode) {
|
|
1861
1266
|
case "InvalidLayerPartException":
|
|
1862
1267
|
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1863
|
-
|
|
1864
|
-
...(await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)),
|
|
1865
|
-
name: errorCode,
|
|
1866
|
-
$metadata: deserializeMetadata(output),
|
|
1867
|
-
};
|
|
1868
|
-
break;
|
|
1268
|
+
throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context);
|
|
1869
1269
|
case "InvalidParameterException":
|
|
1870
1270
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1871
|
-
|
|
1872
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1873
|
-
name: errorCode,
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
};
|
|
1876
|
-
break;
|
|
1271
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1877
1272
|
case "LimitExceededException":
|
|
1878
1273
|
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1879
|
-
|
|
1880
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1881
|
-
name: errorCode,
|
|
1882
|
-
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1884
|
-
break;
|
|
1274
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1885
1275
|
case "RegistryNotFoundException":
|
|
1886
1276
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1887
|
-
|
|
1888
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1889
|
-
name: errorCode,
|
|
1890
|
-
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1892
|
-
break;
|
|
1277
|
+
throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context);
|
|
1893
1278
|
case "RepositoryNotFoundException":
|
|
1894
1279
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1895
|
-
|
|
1896
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1897
|
-
name: errorCode,
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1900
|
-
break;
|
|
1280
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1901
1281
|
case "ServerException":
|
|
1902
1282
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1903
|
-
|
|
1904
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1905
|
-
name: errorCode,
|
|
1906
|
-
$metadata: deserializeMetadata(output),
|
|
1907
|
-
};
|
|
1908
|
-
break;
|
|
1283
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1909
1284
|
case "UnsupportedCommandException":
|
|
1910
1285
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1911
|
-
|
|
1912
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1913
|
-
name: errorCode,
|
|
1914
|
-
$metadata: deserializeMetadata(output),
|
|
1915
|
-
};
|
|
1916
|
-
break;
|
|
1286
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1917
1287
|
case "UploadNotFoundException":
|
|
1918
1288
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
1919
|
-
|
|
1920
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
1921
|
-
name: errorCode,
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1924
|
-
break;
|
|
1289
|
+
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
1925
1290
|
default:
|
|
1926
1291
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
...parsedBody,
|
|
1930
|
-
name: `${errorCode}`,
|
|
1931
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1292
|
+
response = new ECRPUBLICServiceException_1.ECRPUBLICServiceException({
|
|
1293
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1932
1294
|
$fault: "client",
|
|
1933
1295
|
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1296
|
+
});
|
|
1297
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1935
1298
|
}
|
|
1936
|
-
const message = response.message || response.Message || errorCode;
|
|
1937
|
-
response.message = message;
|
|
1938
|
-
delete response.Message;
|
|
1939
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1940
1299
|
};
|
|
1941
1300
|
const deserializeAws_json1_1EmptyUploadExceptionResponse = async (parsedOutput, context) => {
|
|
1942
1301
|
const body = parsedOutput.body;
|
|
1943
1302
|
const deserialized = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
1944
|
-
const
|
|
1945
|
-
name: "EmptyUploadException",
|
|
1946
|
-
$fault: "client",
|
|
1303
|
+
const exception = new models_0_1.EmptyUploadException({
|
|
1947
1304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1948
1305
|
...deserialized,
|
|
1949
|
-
};
|
|
1950
|
-
return
|
|
1306
|
+
});
|
|
1307
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1951
1308
|
};
|
|
1952
1309
|
const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1953
1310
|
const body = parsedOutput.body;
|
|
1954
1311
|
const deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
1955
|
-
const
|
|
1956
|
-
name: "ImageAlreadyExistsException",
|
|
1957
|
-
$fault: "client",
|
|
1312
|
+
const exception = new models_0_1.ImageAlreadyExistsException({
|
|
1958
1313
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1959
1314
|
...deserialized,
|
|
1960
|
-
};
|
|
1961
|
-
return
|
|
1315
|
+
});
|
|
1316
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1962
1317
|
};
|
|
1963
1318
|
const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = async (parsedOutput, context) => {
|
|
1964
1319
|
const body = parsedOutput.body;
|
|
1965
1320
|
const deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
1966
|
-
const
|
|
1967
|
-
name: "ImageDigestDoesNotMatchException",
|
|
1968
|
-
$fault: "client",
|
|
1321
|
+
const exception = new models_0_1.ImageDigestDoesNotMatchException({
|
|
1969
1322
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1970
1323
|
...deserialized,
|
|
1971
|
-
};
|
|
1972
|
-
return
|
|
1324
|
+
});
|
|
1325
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1973
1326
|
};
|
|
1974
1327
|
const deserializeAws_json1_1ImageNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1975
1328
|
const body = parsedOutput.body;
|
|
1976
1329
|
const deserialized = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
1977
|
-
const
|
|
1978
|
-
name: "ImageNotFoundException",
|
|
1979
|
-
$fault: "client",
|
|
1330
|
+
const exception = new models_0_1.ImageNotFoundException({
|
|
1980
1331
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1981
1332
|
...deserialized,
|
|
1982
|
-
};
|
|
1983
|
-
return
|
|
1333
|
+
});
|
|
1334
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1984
1335
|
};
|
|
1985
1336
|
const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1986
1337
|
const body = parsedOutput.body;
|
|
1987
1338
|
const deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
1988
|
-
const
|
|
1989
|
-
name: "ImageTagAlreadyExistsException",
|
|
1990
|
-
$fault: "client",
|
|
1339
|
+
const exception = new models_0_1.ImageTagAlreadyExistsException({
|
|
1991
1340
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1992
1341
|
...deserialized,
|
|
1993
|
-
};
|
|
1994
|
-
return
|
|
1342
|
+
});
|
|
1343
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1995
1344
|
};
|
|
1996
1345
|
const deserializeAws_json1_1InvalidLayerExceptionResponse = async (parsedOutput, context) => {
|
|
1997
1346
|
const body = parsedOutput.body;
|
|
1998
1347
|
const deserialized = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
1999
|
-
const
|
|
2000
|
-
name: "InvalidLayerException",
|
|
2001
|
-
$fault: "client",
|
|
1348
|
+
const exception = new models_0_1.InvalidLayerException({
|
|
2002
1349
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2003
1350
|
...deserialized,
|
|
2004
|
-
};
|
|
2005
|
-
return
|
|
1351
|
+
});
|
|
1352
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2006
1353
|
};
|
|
2007
1354
|
const deserializeAws_json1_1InvalidLayerPartExceptionResponse = async (parsedOutput, context) => {
|
|
2008
1355
|
const body = parsedOutput.body;
|
|
2009
1356
|
const deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
2010
|
-
const
|
|
2011
|
-
name: "InvalidLayerPartException",
|
|
2012
|
-
$fault: "client",
|
|
1357
|
+
const exception = new models_0_1.InvalidLayerPartException({
|
|
2013
1358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2014
1359
|
...deserialized,
|
|
2015
|
-
};
|
|
2016
|
-
return
|
|
1360
|
+
});
|
|
1361
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2017
1362
|
};
|
|
2018
1363
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2019
1364
|
const body = parsedOutput.body;
|
|
2020
1365
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2021
|
-
const
|
|
2022
|
-
name: "InvalidParameterException",
|
|
2023
|
-
$fault: "client",
|
|
1366
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
2024
1367
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2025
1368
|
...deserialized,
|
|
2026
|
-
};
|
|
2027
|
-
return
|
|
1369
|
+
});
|
|
1370
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2028
1371
|
};
|
|
2029
1372
|
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2030
1373
|
const body = parsedOutput.body;
|
|
2031
1374
|
const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
2032
|
-
const
|
|
2033
|
-
name: "InvalidTagParameterException",
|
|
2034
|
-
$fault: "client",
|
|
1375
|
+
const exception = new models_0_1.InvalidTagParameterException({
|
|
2035
1376
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2036
1377
|
...deserialized,
|
|
2037
|
-
};
|
|
2038
|
-
return
|
|
1378
|
+
});
|
|
1379
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2039
1380
|
};
|
|
2040
1381
|
const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2041
1382
|
const body = parsedOutput.body;
|
|
2042
1383
|
const deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
2043
|
-
const
|
|
2044
|
-
name: "LayerAlreadyExistsException",
|
|
2045
|
-
$fault: "client",
|
|
1384
|
+
const exception = new models_0_1.LayerAlreadyExistsException({
|
|
2046
1385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2047
1386
|
...deserialized,
|
|
2048
|
-
};
|
|
2049
|
-
return
|
|
1387
|
+
});
|
|
1388
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2050
1389
|
};
|
|
2051
1390
|
const deserializeAws_json1_1LayerPartTooSmallExceptionResponse = async (parsedOutput, context) => {
|
|
2052
1391
|
const body = parsedOutput.body;
|
|
2053
1392
|
const deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
2054
|
-
const
|
|
2055
|
-
name: "LayerPartTooSmallException",
|
|
2056
|
-
$fault: "client",
|
|
1393
|
+
const exception = new models_0_1.LayerPartTooSmallException({
|
|
2057
1394
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2058
1395
|
...deserialized,
|
|
2059
|
-
};
|
|
2060
|
-
return
|
|
1396
|
+
});
|
|
1397
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2061
1398
|
};
|
|
2062
1399
|
const deserializeAws_json1_1LayersNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2063
1400
|
const body = parsedOutput.body;
|
|
2064
1401
|
const deserialized = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
2065
|
-
const
|
|
2066
|
-
name: "LayersNotFoundException",
|
|
2067
|
-
$fault: "client",
|
|
1402
|
+
const exception = new models_0_1.LayersNotFoundException({
|
|
2068
1403
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2069
1404
|
...deserialized,
|
|
2070
|
-
};
|
|
2071
|
-
return
|
|
1405
|
+
});
|
|
1406
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2072
1407
|
};
|
|
2073
1408
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2074
1409
|
const body = parsedOutput.body;
|
|
2075
1410
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2076
|
-
const
|
|
2077
|
-
name: "LimitExceededException",
|
|
2078
|
-
$fault: "client",
|
|
1411
|
+
const exception = new models_0_1.LimitExceededException({
|
|
2079
1412
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2080
1413
|
...deserialized,
|
|
2081
|
-
};
|
|
2082
|
-
return
|
|
1414
|
+
});
|
|
1415
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2083
1416
|
};
|
|
2084
1417
|
const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2085
1418
|
const body = parsedOutput.body;
|
|
2086
1419
|
const deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
2087
|
-
const
|
|
2088
|
-
name: "ReferencedImagesNotFoundException",
|
|
2089
|
-
$fault: "client",
|
|
1420
|
+
const exception = new models_0_1.ReferencedImagesNotFoundException({
|
|
2090
1421
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2091
1422
|
...deserialized,
|
|
2092
|
-
};
|
|
2093
|
-
return
|
|
1423
|
+
});
|
|
1424
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2094
1425
|
};
|
|
2095
1426
|
const deserializeAws_json1_1RegistryNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2096
1427
|
const body = parsedOutput.body;
|
|
2097
1428
|
const deserialized = deserializeAws_json1_1RegistryNotFoundException(body, context);
|
|
2098
|
-
const
|
|
2099
|
-
name: "RegistryNotFoundException",
|
|
2100
|
-
$fault: "client",
|
|
1429
|
+
const exception = new models_0_1.RegistryNotFoundException({
|
|
2101
1430
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2102
1431
|
...deserialized,
|
|
2103
|
-
};
|
|
2104
|
-
return
|
|
1432
|
+
});
|
|
1433
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2105
1434
|
};
|
|
2106
1435
|
const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2107
1436
|
const body = parsedOutput.body;
|
|
2108
1437
|
const deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
2109
|
-
const
|
|
2110
|
-
name: "RepositoryAlreadyExistsException",
|
|
2111
|
-
$fault: "client",
|
|
1438
|
+
const exception = new models_0_1.RepositoryAlreadyExistsException({
|
|
2112
1439
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2113
1440
|
...deserialized,
|
|
2114
|
-
};
|
|
2115
|
-
return
|
|
1441
|
+
});
|
|
1442
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2116
1443
|
};
|
|
2117
1444
|
const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => {
|
|
2118
1445
|
const body = parsedOutput.body;
|
|
2119
1446
|
const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
2120
|
-
const
|
|
2121
|
-
name: "RepositoryNotEmptyException",
|
|
2122
|
-
$fault: "client",
|
|
1447
|
+
const exception = new models_0_1.RepositoryNotEmptyException({
|
|
2123
1448
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2124
1449
|
...deserialized,
|
|
2125
|
-
};
|
|
2126
|
-
return
|
|
1450
|
+
});
|
|
1451
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2127
1452
|
};
|
|
2128
1453
|
const deserializeAws_json1_1RepositoryNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2129
1454
|
const body = parsedOutput.body;
|
|
2130
1455
|
const deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
2131
|
-
const
|
|
2132
|
-
name: "RepositoryNotFoundException",
|
|
2133
|
-
$fault: "client",
|
|
1456
|
+
const exception = new models_0_1.RepositoryNotFoundException({
|
|
2134
1457
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2135
1458
|
...deserialized,
|
|
2136
|
-
};
|
|
2137
|
-
return
|
|
1459
|
+
});
|
|
1460
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2138
1461
|
};
|
|
2139
1462
|
const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2140
1463
|
const body = parsedOutput.body;
|
|
2141
1464
|
const deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
2142
|
-
const
|
|
2143
|
-
name: "RepositoryPolicyNotFoundException",
|
|
2144
|
-
$fault: "client",
|
|
1465
|
+
const exception = new models_0_1.RepositoryPolicyNotFoundException({
|
|
2145
1466
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2146
1467
|
...deserialized,
|
|
2147
|
-
};
|
|
2148
|
-
return
|
|
1468
|
+
});
|
|
1469
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2149
1470
|
};
|
|
2150
1471
|
const deserializeAws_json1_1ServerExceptionResponse = async (parsedOutput, context) => {
|
|
2151
1472
|
const body = parsedOutput.body;
|
|
2152
1473
|
const deserialized = deserializeAws_json1_1ServerException(body, context);
|
|
2153
|
-
const
|
|
2154
|
-
name: "ServerException",
|
|
2155
|
-
$fault: "server",
|
|
1474
|
+
const exception = new models_0_1.ServerException({
|
|
2156
1475
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2157
1476
|
...deserialized,
|
|
2158
|
-
};
|
|
2159
|
-
return
|
|
1477
|
+
});
|
|
1478
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2160
1479
|
};
|
|
2161
1480
|
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
2162
1481
|
const body = parsedOutput.body;
|
|
2163
1482
|
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2164
|
-
const
|
|
2165
|
-
name: "TooManyTagsException",
|
|
2166
|
-
$fault: "client",
|
|
1483
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
2167
1484
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2168
1485
|
...deserialized,
|
|
2169
|
-
};
|
|
2170
|
-
return
|
|
1486
|
+
});
|
|
1487
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2171
1488
|
};
|
|
2172
1489
|
const deserializeAws_json1_1UnsupportedCommandExceptionResponse = async (parsedOutput, context) => {
|
|
2173
1490
|
const body = parsedOutput.body;
|
|
2174
1491
|
const deserialized = deserializeAws_json1_1UnsupportedCommandException(body, context);
|
|
2175
|
-
const
|
|
2176
|
-
name: "UnsupportedCommandException",
|
|
2177
|
-
$fault: "client",
|
|
1492
|
+
const exception = new models_0_1.UnsupportedCommandException({
|
|
2178
1493
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2179
1494
|
...deserialized,
|
|
2180
|
-
};
|
|
2181
|
-
return
|
|
1495
|
+
});
|
|
1496
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2182
1497
|
};
|
|
2183
1498
|
const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2184
1499
|
const body = parsedOutput.body;
|
|
2185
1500
|
const deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
2186
|
-
const
|
|
2187
|
-
name: "UploadNotFoundException",
|
|
2188
|
-
$fault: "client",
|
|
1501
|
+
const exception = new models_0_1.UploadNotFoundException({
|
|
2189
1502
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2190
1503
|
...deserialized,
|
|
2191
|
-
};
|
|
2192
|
-
return
|
|
1504
|
+
});
|
|
1505
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2193
1506
|
};
|
|
2194
1507
|
const serializeAws_json1_1ArchitectureList = (input, context) => {
|
|
2195
1508
|
return input
|
|
@@ -2490,7 +1803,7 @@ const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
|
2490
1803
|
};
|
|
2491
1804
|
};
|
|
2492
1805
|
const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
2493
|
-
|
|
1806
|
+
const retVal = (output || [])
|
|
2494
1807
|
.filter((e) => e != null)
|
|
2495
1808
|
.map((entry) => {
|
|
2496
1809
|
if (entry === null) {
|
|
@@ -2498,6 +1811,7 @@ const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
|
2498
1811
|
}
|
|
2499
1812
|
return smithy_client_1.expectString(entry);
|
|
2500
1813
|
});
|
|
1814
|
+
return retVal;
|
|
2501
1815
|
};
|
|
2502
1816
|
const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
2503
1817
|
return {
|
|
@@ -2657,7 +1971,7 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
2657
1971
|
};
|
|
2658
1972
|
};
|
|
2659
1973
|
const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
2660
|
-
|
|
1974
|
+
const retVal = (output || [])
|
|
2661
1975
|
.filter((e) => e != null)
|
|
2662
1976
|
.map((entry) => {
|
|
2663
1977
|
if (entry === null) {
|
|
@@ -2665,6 +1979,7 @@ const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
|
2665
1979
|
}
|
|
2666
1980
|
return deserializeAws_json1_1ImageDetail(entry, context);
|
|
2667
1981
|
});
|
|
1982
|
+
return retVal;
|
|
2668
1983
|
};
|
|
2669
1984
|
const deserializeAws_json1_1ImageDigestDoesNotMatchException = (output, context) => {
|
|
2670
1985
|
return {
|
|
@@ -2681,7 +1996,7 @@ const deserializeAws_json1_1ImageFailure = (output, context) => {
|
|
|
2681
1996
|
};
|
|
2682
1997
|
};
|
|
2683
1998
|
const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
2684
|
-
|
|
1999
|
+
const retVal = (output || [])
|
|
2685
2000
|
.filter((e) => e != null)
|
|
2686
2001
|
.map((entry) => {
|
|
2687
2002
|
if (entry === null) {
|
|
@@ -2689,6 +2004,7 @@ const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
|
2689
2004
|
}
|
|
2690
2005
|
return deserializeAws_json1_1ImageFailure(entry, context);
|
|
2691
2006
|
});
|
|
2007
|
+
return retVal;
|
|
2692
2008
|
};
|
|
2693
2009
|
const deserializeAws_json1_1ImageIdentifier = (output, context) => {
|
|
2694
2010
|
return {
|
|
@@ -2697,7 +2013,7 @@ const deserializeAws_json1_1ImageIdentifier = (output, context) => {
|
|
|
2697
2013
|
};
|
|
2698
2014
|
};
|
|
2699
2015
|
const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
2700
|
-
|
|
2016
|
+
const retVal = (output || [])
|
|
2701
2017
|
.filter((e) => e != null)
|
|
2702
2018
|
.map((entry) => {
|
|
2703
2019
|
if (entry === null) {
|
|
@@ -2705,6 +2021,7 @@ const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
|
2705
2021
|
}
|
|
2706
2022
|
return deserializeAws_json1_1ImageIdentifier(entry, context);
|
|
2707
2023
|
});
|
|
2024
|
+
return retVal;
|
|
2708
2025
|
};
|
|
2709
2026
|
const deserializeAws_json1_1ImageNotFoundException = (output, context) => {
|
|
2710
2027
|
return {
|
|
@@ -2728,7 +2045,7 @@ const deserializeAws_json1_1ImageTagDetail = (output, context) => {
|
|
|
2728
2045
|
};
|
|
2729
2046
|
};
|
|
2730
2047
|
const deserializeAws_json1_1ImageTagDetailList = (output, context) => {
|
|
2731
|
-
|
|
2048
|
+
const retVal = (output || [])
|
|
2732
2049
|
.filter((e) => e != null)
|
|
2733
2050
|
.map((entry) => {
|
|
2734
2051
|
if (entry === null) {
|
|
@@ -2736,9 +2053,10 @@ const deserializeAws_json1_1ImageTagDetailList = (output, context) => {
|
|
|
2736
2053
|
}
|
|
2737
2054
|
return deserializeAws_json1_1ImageTagDetail(entry, context);
|
|
2738
2055
|
});
|
|
2056
|
+
return retVal;
|
|
2739
2057
|
};
|
|
2740
2058
|
const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
2741
|
-
|
|
2059
|
+
const retVal = (output || [])
|
|
2742
2060
|
.filter((e) => e != null)
|
|
2743
2061
|
.map((entry) => {
|
|
2744
2062
|
if (entry === null) {
|
|
@@ -2746,6 +2064,7 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
2746
2064
|
}
|
|
2747
2065
|
return smithy_client_1.expectString(entry);
|
|
2748
2066
|
});
|
|
2067
|
+
return retVal;
|
|
2749
2068
|
};
|
|
2750
2069
|
const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => {
|
|
2751
2070
|
return {
|
|
@@ -2798,7 +2117,7 @@ const deserializeAws_json1_1LayerFailure = (output, context) => {
|
|
|
2798
2117
|
};
|
|
2799
2118
|
};
|
|
2800
2119
|
const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
2801
|
-
|
|
2120
|
+
const retVal = (output || [])
|
|
2802
2121
|
.filter((e) => e != null)
|
|
2803
2122
|
.map((entry) => {
|
|
2804
2123
|
if (entry === null) {
|
|
@@ -2806,9 +2125,10 @@ const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
|
2806
2125
|
}
|
|
2807
2126
|
return deserializeAws_json1_1LayerFailure(entry, context);
|
|
2808
2127
|
});
|
|
2128
|
+
return retVal;
|
|
2809
2129
|
};
|
|
2810
2130
|
const deserializeAws_json1_1LayerList = (output, context) => {
|
|
2811
|
-
|
|
2131
|
+
const retVal = (output || [])
|
|
2812
2132
|
.filter((e) => e != null)
|
|
2813
2133
|
.map((entry) => {
|
|
2814
2134
|
if (entry === null) {
|
|
@@ -2816,6 +2136,7 @@ const deserializeAws_json1_1LayerList = (output, context) => {
|
|
|
2816
2136
|
}
|
|
2817
2137
|
return deserializeAws_json1_1Layer(entry, context);
|
|
2818
2138
|
});
|
|
2139
|
+
return retVal;
|
|
2819
2140
|
};
|
|
2820
2141
|
const deserializeAws_json1_1LayerPartTooSmallException = (output, context) => {
|
|
2821
2142
|
return {
|
|
@@ -2840,7 +2161,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
2840
2161
|
};
|
|
2841
2162
|
};
|
|
2842
2163
|
const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
2843
|
-
|
|
2164
|
+
const retVal = (output || [])
|
|
2844
2165
|
.filter((e) => e != null)
|
|
2845
2166
|
.map((entry) => {
|
|
2846
2167
|
if (entry === null) {
|
|
@@ -2848,6 +2169,7 @@ const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
|
2848
2169
|
}
|
|
2849
2170
|
return smithy_client_1.expectString(entry);
|
|
2850
2171
|
});
|
|
2172
|
+
return retVal;
|
|
2851
2173
|
};
|
|
2852
2174
|
const deserializeAws_json1_1PutImageResponse = (output, context) => {
|
|
2853
2175
|
return {
|
|
@@ -2906,7 +2228,7 @@ const deserializeAws_json1_1RegistryAlias = (output, context) => {
|
|
|
2906
2228
|
};
|
|
2907
2229
|
};
|
|
2908
2230
|
const deserializeAws_json1_1RegistryAliasList = (output, context) => {
|
|
2909
|
-
|
|
2231
|
+
const retVal = (output || [])
|
|
2910
2232
|
.filter((e) => e != null)
|
|
2911
2233
|
.map((entry) => {
|
|
2912
2234
|
if (entry === null) {
|
|
@@ -2914,6 +2236,7 @@ const deserializeAws_json1_1RegistryAliasList = (output, context) => {
|
|
|
2914
2236
|
}
|
|
2915
2237
|
return deserializeAws_json1_1RegistryAlias(entry, context);
|
|
2916
2238
|
});
|
|
2239
|
+
return retVal;
|
|
2917
2240
|
};
|
|
2918
2241
|
const deserializeAws_json1_1RegistryCatalogData = (output, context) => {
|
|
2919
2242
|
return {
|
|
@@ -2921,7 +2244,7 @@ const deserializeAws_json1_1RegistryCatalogData = (output, context) => {
|
|
|
2921
2244
|
};
|
|
2922
2245
|
};
|
|
2923
2246
|
const deserializeAws_json1_1RegistryList = (output, context) => {
|
|
2924
|
-
|
|
2247
|
+
const retVal = (output || [])
|
|
2925
2248
|
.filter((e) => e != null)
|
|
2926
2249
|
.map((entry) => {
|
|
2927
2250
|
if (entry === null) {
|
|
@@ -2929,6 +2252,7 @@ const deserializeAws_json1_1RegistryList = (output, context) => {
|
|
|
2929
2252
|
}
|
|
2930
2253
|
return deserializeAws_json1_1Registry(entry, context);
|
|
2931
2254
|
});
|
|
2255
|
+
return retVal;
|
|
2932
2256
|
};
|
|
2933
2257
|
const deserializeAws_json1_1RegistryNotFoundException = (output, context) => {
|
|
2934
2258
|
return {
|
|
@@ -2967,7 +2291,7 @@ const deserializeAws_json1_1RepositoryCatalogData = (output, context) => {
|
|
|
2967
2291
|
};
|
|
2968
2292
|
};
|
|
2969
2293
|
const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
2970
|
-
|
|
2294
|
+
const retVal = (output || [])
|
|
2971
2295
|
.filter((e) => e != null)
|
|
2972
2296
|
.map((entry) => {
|
|
2973
2297
|
if (entry === null) {
|
|
@@ -2975,6 +2299,7 @@ const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
|
2975
2299
|
}
|
|
2976
2300
|
return deserializeAws_json1_1Repository(entry, context);
|
|
2977
2301
|
});
|
|
2302
|
+
return retVal;
|
|
2978
2303
|
};
|
|
2979
2304
|
const deserializeAws_json1_1RepositoryNotEmptyException = (output, context) => {
|
|
2980
2305
|
return {
|
|
@@ -3010,7 +2335,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
3010
2335
|
};
|
|
3011
2336
|
};
|
|
3012
2337
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
3013
|
-
|
|
2338
|
+
const retVal = (output || [])
|
|
3014
2339
|
.filter((e) => e != null)
|
|
3015
2340
|
.map((entry) => {
|
|
3016
2341
|
if (entry === null) {
|
|
@@ -3018,6 +2343,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
3018
2343
|
}
|
|
3019
2344
|
return deserializeAws_json1_1Tag(entry, context);
|
|
3020
2345
|
});
|
|
2346
|
+
return retVal;
|
|
3021
2347
|
};
|
|
3022
2348
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
3023
2349
|
return {};
|