@aws-sdk/client-ecr-public 3.503.1 → 3.507.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/dist-cjs/index.js +89 -723
- package/dist-es/protocols/Aws_json1_1.js +82 -716
- package/package.json +3 -3
|
@@ -142,7 +142,7 @@ export const se_UploadLayerPartCommand = async (input, context) => {
|
|
|
142
142
|
};
|
|
143
143
|
export const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
|
|
144
144
|
if (output.statusCode >= 300) {
|
|
145
|
-
return
|
|
145
|
+
return de_CommandError(output, context);
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
@@ -153,40 +153,9 @@ export const de_BatchCheckLayerAvailabilityCommand = async (output, context) =>
|
|
|
153
153
|
};
|
|
154
154
|
return response;
|
|
155
155
|
};
|
|
156
|
-
const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
157
|
-
const parsedOutput = {
|
|
158
|
-
...output,
|
|
159
|
-
body: await parseErrorBody(output.body, context),
|
|
160
|
-
};
|
|
161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
162
|
-
switch (errorCode) {
|
|
163
|
-
case "InvalidParameterException":
|
|
164
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
165
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
166
|
-
case "RegistryNotFoundException":
|
|
167
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
168
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
169
|
-
case "RepositoryNotFoundException":
|
|
170
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
171
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
172
|
-
case "ServerException":
|
|
173
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
174
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
175
|
-
case "UnsupportedCommandException":
|
|
176
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
177
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
178
|
-
default:
|
|
179
|
-
const parsedBody = parsedOutput.body;
|
|
180
|
-
return throwDefaultError({
|
|
181
|
-
output,
|
|
182
|
-
parsedBody,
|
|
183
|
-
errorCode,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
156
|
export const de_BatchDeleteImageCommand = async (output, context) => {
|
|
188
157
|
if (output.statusCode >= 300) {
|
|
189
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
190
159
|
}
|
|
191
160
|
const data = await parseBody(output.body, context);
|
|
192
161
|
let contents = {};
|
|
@@ -197,37 +166,9 @@ export const de_BatchDeleteImageCommand = async (output, context) => {
|
|
|
197
166
|
};
|
|
198
167
|
return response;
|
|
199
168
|
};
|
|
200
|
-
const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
201
|
-
const parsedOutput = {
|
|
202
|
-
...output,
|
|
203
|
-
body: await parseErrorBody(output.body, context),
|
|
204
|
-
};
|
|
205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
206
|
-
switch (errorCode) {
|
|
207
|
-
case "InvalidParameterException":
|
|
208
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
209
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
210
|
-
case "RepositoryNotFoundException":
|
|
211
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
212
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
213
|
-
case "ServerException":
|
|
214
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
215
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
216
|
-
case "UnsupportedCommandException":
|
|
217
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
218
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
219
|
-
default:
|
|
220
|
-
const parsedBody = parsedOutput.body;
|
|
221
|
-
return throwDefaultError({
|
|
222
|
-
output,
|
|
223
|
-
parsedBody,
|
|
224
|
-
errorCode,
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
169
|
export const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
229
170
|
if (output.statusCode >= 300) {
|
|
230
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
231
172
|
}
|
|
232
173
|
const data = await parseBody(output.body, context);
|
|
233
174
|
let contents = {};
|
|
@@ -238,55 +179,9 @@ export const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
|
238
179
|
};
|
|
239
180
|
return response;
|
|
240
181
|
};
|
|
241
|
-
const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
242
|
-
const parsedOutput = {
|
|
243
|
-
...output,
|
|
244
|
-
body: await parseErrorBody(output.body, context),
|
|
245
|
-
};
|
|
246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
-
switch (errorCode) {
|
|
248
|
-
case "EmptyUploadException":
|
|
249
|
-
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
250
|
-
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
251
|
-
case "InvalidLayerException":
|
|
252
|
-
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
253
|
-
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
254
|
-
case "InvalidParameterException":
|
|
255
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
256
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
257
|
-
case "LayerAlreadyExistsException":
|
|
258
|
-
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
259
|
-
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
260
|
-
case "LayerPartTooSmallException":
|
|
261
|
-
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
262
|
-
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
263
|
-
case "RegistryNotFoundException":
|
|
264
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
265
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
266
|
-
case "RepositoryNotFoundException":
|
|
267
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
268
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
269
|
-
case "ServerException":
|
|
270
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
271
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
272
|
-
case "UnsupportedCommandException":
|
|
273
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
274
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
275
|
-
case "UploadNotFoundException":
|
|
276
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
277
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
278
|
-
default:
|
|
279
|
-
const parsedBody = parsedOutput.body;
|
|
280
|
-
return throwDefaultError({
|
|
281
|
-
output,
|
|
282
|
-
parsedBody,
|
|
283
|
-
errorCode,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
182
|
export const de_CreateRepositoryCommand = async (output, context) => {
|
|
288
183
|
if (output.statusCode >= 300) {
|
|
289
|
-
return
|
|
184
|
+
return de_CommandError(output, context);
|
|
290
185
|
}
|
|
291
186
|
const data = await parseBody(output.body, context);
|
|
292
187
|
let contents = {};
|
|
@@ -297,46 +192,9 @@ export const de_CreateRepositoryCommand = async (output, context) => {
|
|
|
297
192
|
};
|
|
298
193
|
return response;
|
|
299
194
|
};
|
|
300
|
-
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
301
|
-
const parsedOutput = {
|
|
302
|
-
...output,
|
|
303
|
-
body: await parseErrorBody(output.body, context),
|
|
304
|
-
};
|
|
305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
-
switch (errorCode) {
|
|
307
|
-
case "InvalidParameterException":
|
|
308
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
309
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
310
|
-
case "InvalidTagParameterException":
|
|
311
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
312
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
313
|
-
case "LimitExceededException":
|
|
314
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
315
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
316
|
-
case "RepositoryAlreadyExistsException":
|
|
317
|
-
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
318
|
-
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ServerException":
|
|
320
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
321
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
322
|
-
case "TooManyTagsException":
|
|
323
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
324
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
325
|
-
case "UnsupportedCommandException":
|
|
326
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
327
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
328
|
-
default:
|
|
329
|
-
const parsedBody = parsedOutput.body;
|
|
330
|
-
return throwDefaultError({
|
|
331
|
-
output,
|
|
332
|
-
parsedBody,
|
|
333
|
-
errorCode,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
195
|
export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
338
196
|
if (output.statusCode >= 300) {
|
|
339
|
-
return
|
|
197
|
+
return de_CommandError(output, context);
|
|
340
198
|
}
|
|
341
199
|
const data = await parseBody(output.body, context);
|
|
342
200
|
let contents = {};
|
|
@@ -347,40 +205,9 @@ export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
|
347
205
|
};
|
|
348
206
|
return response;
|
|
349
207
|
};
|
|
350
|
-
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
351
|
-
const parsedOutput = {
|
|
352
|
-
...output,
|
|
353
|
-
body: await parseErrorBody(output.body, context),
|
|
354
|
-
};
|
|
355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
|
-
switch (errorCode) {
|
|
357
|
-
case "InvalidParameterException":
|
|
358
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
359
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
360
|
-
case "RepositoryNotEmptyException":
|
|
361
|
-
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
362
|
-
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
363
|
-
case "RepositoryNotFoundException":
|
|
364
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
365
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ServerException":
|
|
367
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
368
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
369
|
-
case "UnsupportedCommandException":
|
|
370
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
371
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
208
|
export const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
382
209
|
if (output.statusCode >= 300) {
|
|
383
|
-
return
|
|
210
|
+
return de_CommandError(output, context);
|
|
384
211
|
}
|
|
385
212
|
const data = await parseBody(output.body, context);
|
|
386
213
|
let contents = {};
|
|
@@ -391,40 +218,9 @@ export const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
|
391
218
|
};
|
|
392
219
|
return response;
|
|
393
220
|
};
|
|
394
|
-
const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
395
|
-
const parsedOutput = {
|
|
396
|
-
...output,
|
|
397
|
-
body: await parseErrorBody(output.body, context),
|
|
398
|
-
};
|
|
399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
-
switch (errorCode) {
|
|
401
|
-
case "InvalidParameterException":
|
|
402
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
403
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
404
|
-
case "RepositoryNotFoundException":
|
|
405
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
406
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
407
|
-
case "RepositoryPolicyNotFoundException":
|
|
408
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
409
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ServerException":
|
|
411
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
412
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
413
|
-
case "UnsupportedCommandException":
|
|
414
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
415
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
416
|
-
default:
|
|
417
|
-
const parsedBody = parsedOutput.body;
|
|
418
|
-
return throwDefaultError({
|
|
419
|
-
output,
|
|
420
|
-
parsedBody,
|
|
421
|
-
errorCode,
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
221
|
export const de_DescribeImagesCommand = async (output, context) => {
|
|
426
222
|
if (output.statusCode >= 300) {
|
|
427
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
428
224
|
}
|
|
429
225
|
const data = await parseBody(output.body, context);
|
|
430
226
|
let contents = {};
|
|
@@ -435,40 +231,9 @@ export const de_DescribeImagesCommand = async (output, context) => {
|
|
|
435
231
|
};
|
|
436
232
|
return response;
|
|
437
233
|
};
|
|
438
|
-
const de_DescribeImagesCommandError = async (output, context) => {
|
|
439
|
-
const parsedOutput = {
|
|
440
|
-
...output,
|
|
441
|
-
body: await parseErrorBody(output.body, context),
|
|
442
|
-
};
|
|
443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
|
-
switch (errorCode) {
|
|
445
|
-
case "ImageNotFoundException":
|
|
446
|
-
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
447
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
case "InvalidParameterException":
|
|
449
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
450
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
451
|
-
case "RepositoryNotFoundException":
|
|
452
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
453
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ServerException":
|
|
455
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
456
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
457
|
-
case "UnsupportedCommandException":
|
|
458
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
459
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
460
|
-
default:
|
|
461
|
-
const parsedBody = parsedOutput.body;
|
|
462
|
-
return throwDefaultError({
|
|
463
|
-
output,
|
|
464
|
-
parsedBody,
|
|
465
|
-
errorCode,
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
234
|
export const de_DescribeImageTagsCommand = async (output, context) => {
|
|
470
235
|
if (output.statusCode >= 300) {
|
|
471
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
472
237
|
}
|
|
473
238
|
const data = await parseBody(output.body, context);
|
|
474
239
|
let contents = {};
|
|
@@ -479,37 +244,9 @@ export const de_DescribeImageTagsCommand = async (output, context) => {
|
|
|
479
244
|
};
|
|
480
245
|
return response;
|
|
481
246
|
};
|
|
482
|
-
const de_DescribeImageTagsCommandError = async (output, context) => {
|
|
483
|
-
const parsedOutput = {
|
|
484
|
-
...output,
|
|
485
|
-
body: await parseErrorBody(output.body, context),
|
|
486
|
-
};
|
|
487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
|
-
switch (errorCode) {
|
|
489
|
-
case "InvalidParameterException":
|
|
490
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
491
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
492
|
-
case "RepositoryNotFoundException":
|
|
493
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
494
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ServerException":
|
|
496
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
497
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
498
|
-
case "UnsupportedCommandException":
|
|
499
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
500
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
247
|
export const de_DescribeRegistriesCommand = async (output, context) => {
|
|
511
248
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
513
250
|
}
|
|
514
251
|
const data = await parseBody(output.body, context);
|
|
515
252
|
let contents = {};
|
|
@@ -520,34 +257,9 @@ export const de_DescribeRegistriesCommand = async (output, context) => {
|
|
|
520
257
|
};
|
|
521
258
|
return response;
|
|
522
259
|
};
|
|
523
|
-
const de_DescribeRegistriesCommandError = async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context),
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "InvalidParameterException":
|
|
531
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
532
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ServerException":
|
|
534
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
535
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
536
|
-
case "UnsupportedCommandException":
|
|
537
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
538
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
539
|
-
default:
|
|
540
|
-
const parsedBody = parsedOutput.body;
|
|
541
|
-
return throwDefaultError({
|
|
542
|
-
output,
|
|
543
|
-
parsedBody,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
260
|
export const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
549
261
|
if (output.statusCode >= 300) {
|
|
550
|
-
return
|
|
262
|
+
return de_CommandError(output, context);
|
|
551
263
|
}
|
|
552
264
|
const data = await parseBody(output.body, context);
|
|
553
265
|
let contents = {};
|
|
@@ -558,37 +270,9 @@ export const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
|
558
270
|
};
|
|
559
271
|
return response;
|
|
560
272
|
};
|
|
561
|
-
const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context),
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "InvalidParameterException":
|
|
569
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
570
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
571
|
-
case "RepositoryNotFoundException":
|
|
572
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
573
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ServerException":
|
|
575
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
576
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
577
|
-
case "UnsupportedCommandException":
|
|
578
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
579
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
return throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
errorCode,
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
273
|
export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
590
274
|
if (output.statusCode >= 300) {
|
|
591
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
592
276
|
}
|
|
593
277
|
const data = await parseBody(output.body, context);
|
|
594
278
|
let contents = {};
|
|
@@ -599,34 +283,9 @@ export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
|
599
283
|
};
|
|
600
284
|
return response;
|
|
601
285
|
};
|
|
602
|
-
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "InvalidParameterException":
|
|
610
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
611
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ServerException":
|
|
613
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
614
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
615
|
-
case "UnsupportedCommandException":
|
|
616
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
617
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
618
|
-
default:
|
|
619
|
-
const parsedBody = parsedOutput.body;
|
|
620
|
-
return throwDefaultError({
|
|
621
|
-
output,
|
|
622
|
-
parsedBody,
|
|
623
|
-
errorCode,
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
286
|
export const de_GetRegistryCatalogDataCommand = async (output, context) => {
|
|
628
287
|
if (output.statusCode >= 300) {
|
|
629
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
630
289
|
}
|
|
631
290
|
const data = await parseBody(output.body, context);
|
|
632
291
|
let contents = {};
|
|
@@ -637,31 +296,9 @@ export const de_GetRegistryCatalogDataCommand = async (output, context) => {
|
|
|
637
296
|
};
|
|
638
297
|
return response;
|
|
639
298
|
};
|
|
640
|
-
const de_GetRegistryCatalogDataCommandError = async (output, context) => {
|
|
641
|
-
const parsedOutput = {
|
|
642
|
-
...output,
|
|
643
|
-
body: await parseErrorBody(output.body, context),
|
|
644
|
-
};
|
|
645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
|
-
switch (errorCode) {
|
|
647
|
-
case "ServerException":
|
|
648
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
649
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
650
|
-
case "UnsupportedCommandException":
|
|
651
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
652
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
return throwDefaultError({
|
|
656
|
-
output,
|
|
657
|
-
parsedBody,
|
|
658
|
-
errorCode,
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
299
|
export const de_GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
663
300
|
if (output.statusCode >= 300) {
|
|
664
|
-
return
|
|
301
|
+
return de_CommandError(output, context);
|
|
665
302
|
}
|
|
666
303
|
const data = await parseBody(output.body, context);
|
|
667
304
|
let contents = {};
|
|
@@ -672,40 +309,9 @@ export const de_GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
|
672
309
|
};
|
|
673
310
|
return response;
|
|
674
311
|
};
|
|
675
|
-
const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
|
|
676
|
-
const parsedOutput = {
|
|
677
|
-
...output,
|
|
678
|
-
body: await parseErrorBody(output.body, context),
|
|
679
|
-
};
|
|
680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
|
-
switch (errorCode) {
|
|
682
|
-
case "InvalidParameterException":
|
|
683
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
684
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
685
|
-
case "RepositoryCatalogDataNotFoundException":
|
|
686
|
-
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
687
|
-
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
688
|
-
case "RepositoryNotFoundException":
|
|
689
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
690
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
691
|
-
case "ServerException":
|
|
692
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
693
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
694
|
-
case "UnsupportedCommandException":
|
|
695
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
696
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
697
|
-
default:
|
|
698
|
-
const parsedBody = parsedOutput.body;
|
|
699
|
-
return throwDefaultError({
|
|
700
|
-
output,
|
|
701
|
-
parsedBody,
|
|
702
|
-
errorCode,
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
312
|
export const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
707
313
|
if (output.statusCode >= 300) {
|
|
708
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
709
315
|
}
|
|
710
316
|
const data = await parseBody(output.body, context);
|
|
711
317
|
let contents = {};
|
|
@@ -716,40 +322,9 @@ export const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
|
716
322
|
};
|
|
717
323
|
return response;
|
|
718
324
|
};
|
|
719
|
-
const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context),
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "InvalidParameterException":
|
|
727
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
728
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
729
|
-
case "RepositoryNotFoundException":
|
|
730
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
731
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
732
|
-
case "RepositoryPolicyNotFoundException":
|
|
733
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
734
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ServerException":
|
|
736
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
737
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
738
|
-
case "UnsupportedCommandException":
|
|
739
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
740
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
741
|
-
default:
|
|
742
|
-
const parsedBody = parsedOutput.body;
|
|
743
|
-
return throwDefaultError({
|
|
744
|
-
output,
|
|
745
|
-
parsedBody,
|
|
746
|
-
errorCode,
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
325
|
export const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
751
326
|
if (output.statusCode >= 300) {
|
|
752
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
753
328
|
}
|
|
754
329
|
const data = await parseBody(output.body, context);
|
|
755
330
|
let contents = {};
|
|
@@ -760,81 +335,22 @@ export const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
|
760
335
|
};
|
|
761
336
|
return response;
|
|
762
337
|
};
|
|
763
|
-
const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "InvalidParameterException":
|
|
771
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
772
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
773
|
-
case "RegistryNotFoundException":
|
|
774
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
775
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "RepositoryNotFoundException":
|
|
777
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
778
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ServerException":
|
|
780
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
781
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
782
|
-
case "UnsupportedCommandException":
|
|
783
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
784
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
785
|
-
default:
|
|
786
|
-
const parsedBody = parsedOutput.body;
|
|
787
|
-
return throwDefaultError({
|
|
788
|
-
output,
|
|
789
|
-
parsedBody,
|
|
790
|
-
errorCode,
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
338
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
795
339
|
if (output.statusCode >= 300) {
|
|
796
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
797
341
|
}
|
|
798
342
|
const data = await parseBody(output.body, context);
|
|
799
343
|
let contents = {};
|
|
800
344
|
contents = _json(data);
|
|
801
345
|
const response = {
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
...contents,
|
|
804
|
-
};
|
|
805
|
-
return response;
|
|
806
|
-
};
|
|
807
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
808
|
-
const parsedOutput = {
|
|
809
|
-
...output,
|
|
810
|
-
body: await parseErrorBody(output.body, context),
|
|
811
|
-
};
|
|
812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
-
switch (errorCode) {
|
|
814
|
-
case "InvalidParameterException":
|
|
815
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
816
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
817
|
-
case "RepositoryNotFoundException":
|
|
818
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
819
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ServerException":
|
|
821
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
822
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
823
|
-
case "UnsupportedCommandException":
|
|
824
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
825
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
346
|
+
$metadata: deserializeMetadata(output),
|
|
347
|
+
...contents,
|
|
348
|
+
};
|
|
349
|
+
return response;
|
|
834
350
|
};
|
|
835
351
|
export const de_PutImageCommand = async (output, context) => {
|
|
836
352
|
if (output.statusCode >= 300) {
|
|
837
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
838
354
|
}
|
|
839
355
|
const data = await parseBody(output.body, context);
|
|
840
356
|
let contents = {};
|
|
@@ -845,58 +361,9 @@ export const de_PutImageCommand = async (output, context) => {
|
|
|
845
361
|
};
|
|
846
362
|
return response;
|
|
847
363
|
};
|
|
848
|
-
const de_PutImageCommandError = async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context),
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "ImageAlreadyExistsException":
|
|
856
|
-
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
857
|
-
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ImageDigestDoesNotMatchException":
|
|
859
|
-
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
860
|
-
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ImageTagAlreadyExistsException":
|
|
862
|
-
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
863
|
-
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
864
|
-
case "InvalidParameterException":
|
|
865
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
866
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
867
|
-
case "LayersNotFoundException":
|
|
868
|
-
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
869
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
870
|
-
case "LimitExceededException":
|
|
871
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
872
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ReferencedImagesNotFoundException":
|
|
874
|
-
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
875
|
-
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
876
|
-
case "RegistryNotFoundException":
|
|
877
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
878
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
case "RepositoryNotFoundException":
|
|
880
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
881
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ServerException":
|
|
883
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
884
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
885
|
-
case "UnsupportedCommandException":
|
|
886
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
887
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
888
|
-
default:
|
|
889
|
-
const parsedBody = parsedOutput.body;
|
|
890
|
-
return throwDefaultError({
|
|
891
|
-
output,
|
|
892
|
-
parsedBody,
|
|
893
|
-
errorCode,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
364
|
export const de_PutRegistryCatalogDataCommand = async (output, context) => {
|
|
898
365
|
if (output.statusCode >= 300) {
|
|
899
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
900
367
|
}
|
|
901
368
|
const data = await parseBody(output.body, context);
|
|
902
369
|
let contents = {};
|
|
@@ -907,34 +374,9 @@ export const de_PutRegistryCatalogDataCommand = async (output, context) => {
|
|
|
907
374
|
};
|
|
908
375
|
return response;
|
|
909
376
|
};
|
|
910
|
-
const de_PutRegistryCatalogDataCommandError = async (output, context) => {
|
|
911
|
-
const parsedOutput = {
|
|
912
|
-
...output,
|
|
913
|
-
body: await parseErrorBody(output.body, context),
|
|
914
|
-
};
|
|
915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
switch (errorCode) {
|
|
917
|
-
case "InvalidParameterException":
|
|
918
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
919
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ServerException":
|
|
921
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
922
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
923
|
-
case "UnsupportedCommandException":
|
|
924
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
925
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode,
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
377
|
export const de_PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
936
378
|
if (output.statusCode >= 300) {
|
|
937
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
938
380
|
}
|
|
939
381
|
const data = await parseBody(output.body, context);
|
|
940
382
|
let contents = {};
|
|
@@ -945,37 +387,9 @@ export const de_PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
|
945
387
|
};
|
|
946
388
|
return response;
|
|
947
389
|
};
|
|
948
|
-
const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context),
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
switch (errorCode) {
|
|
955
|
-
case "InvalidParameterException":
|
|
956
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
957
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
958
|
-
case "RepositoryNotFoundException":
|
|
959
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
960
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ServerException":
|
|
962
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
963
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
964
|
-
case "UnsupportedCommandException":
|
|
965
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
966
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
967
|
-
default:
|
|
968
|
-
const parsedBody = parsedOutput.body;
|
|
969
|
-
return throwDefaultError({
|
|
970
|
-
output,
|
|
971
|
-
parsedBody,
|
|
972
|
-
errorCode,
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
};
|
|
976
390
|
export const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
977
391
|
if (output.statusCode >= 300) {
|
|
978
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
979
393
|
}
|
|
980
394
|
const data = await parseBody(output.body, context);
|
|
981
395
|
let contents = {};
|
|
@@ -986,37 +400,9 @@ export const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
|
986
400
|
};
|
|
987
401
|
return response;
|
|
988
402
|
};
|
|
989
|
-
const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
990
|
-
const parsedOutput = {
|
|
991
|
-
...output,
|
|
992
|
-
body: await parseErrorBody(output.body, context),
|
|
993
|
-
};
|
|
994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
|
-
switch (errorCode) {
|
|
996
|
-
case "InvalidParameterException":
|
|
997
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
998
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
999
|
-
case "RepositoryNotFoundException":
|
|
1000
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1001
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ServerException":
|
|
1003
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1004
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "UnsupportedCommandException":
|
|
1006
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1007
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
403
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1018
404
|
if (output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
1020
406
|
}
|
|
1021
407
|
const data = await parseBody(output.body, context);
|
|
1022
408
|
let contents = {};
|
|
@@ -1027,43 +413,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1027
413
|
};
|
|
1028
414
|
return response;
|
|
1029
415
|
};
|
|
1030
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1031
|
-
const parsedOutput = {
|
|
1032
|
-
...output,
|
|
1033
|
-
body: await parseErrorBody(output.body, context),
|
|
1034
|
-
};
|
|
1035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
-
switch (errorCode) {
|
|
1037
|
-
case "InvalidParameterException":
|
|
1038
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1039
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "InvalidTagParameterException":
|
|
1041
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1042
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "RepositoryNotFoundException":
|
|
1044
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1045
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ServerException":
|
|
1047
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1048
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "TooManyTagsException":
|
|
1050
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1051
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "UnsupportedCommandException":
|
|
1053
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1054
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1055
|
-
default:
|
|
1056
|
-
const parsedBody = parsedOutput.body;
|
|
1057
|
-
return throwDefaultError({
|
|
1058
|
-
output,
|
|
1059
|
-
parsedBody,
|
|
1060
|
-
errorCode,
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
};
|
|
1064
416
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1065
417
|
if (output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
1067
419
|
}
|
|
1068
420
|
const data = await parseBody(output.body, context);
|
|
1069
421
|
let contents = {};
|
|
@@ -1074,43 +426,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1074
426
|
};
|
|
1075
427
|
return response;
|
|
1076
428
|
};
|
|
1077
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "InvalidParameterException":
|
|
1085
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1086
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InvalidTagParameterException":
|
|
1088
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1089
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "RepositoryNotFoundException":
|
|
1091
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1092
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ServerException":
|
|
1094
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1095
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "TooManyTagsException":
|
|
1097
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1098
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "UnsupportedCommandException":
|
|
1100
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1101
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
429
|
export const de_UploadLayerPartCommand = async (output, context) => {
|
|
1112
430
|
if (output.statusCode >= 300) {
|
|
1113
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
1114
432
|
}
|
|
1115
433
|
const data = await parseBody(output.body, context);
|
|
1116
434
|
let contents = {};
|
|
@@ -1121,22 +439,16 @@ export const de_UploadLayerPartCommand = async (output, context) => {
|
|
|
1121
439
|
};
|
|
1122
440
|
return response;
|
|
1123
441
|
};
|
|
1124
|
-
const
|
|
442
|
+
const de_CommandError = async (output, context) => {
|
|
1125
443
|
const parsedOutput = {
|
|
1126
444
|
...output,
|
|
1127
445
|
body: await parseErrorBody(output.body, context),
|
|
1128
446
|
};
|
|
1129
447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
448
|
switch (errorCode) {
|
|
1131
|
-
case "InvalidLayerPartException":
|
|
1132
|
-
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1133
|
-
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1134
449
|
case "InvalidParameterException":
|
|
1135
450
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1136
451
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "LimitExceededException":
|
|
1138
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1139
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1140
452
|
case "RegistryNotFoundException":
|
|
1141
453
|
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1142
454
|
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1149,9 +461,63 @@ const de_UploadLayerPartCommandError = async (output, context) => {
|
|
|
1149
461
|
case "UnsupportedCommandException":
|
|
1150
462
|
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1151
463
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
464
|
+
case "EmptyUploadException":
|
|
465
|
+
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
466
|
+
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
467
|
+
case "InvalidLayerException":
|
|
468
|
+
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
469
|
+
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
470
|
+
case "LayerAlreadyExistsException":
|
|
471
|
+
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
472
|
+
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
473
|
+
case "LayerPartTooSmallException":
|
|
474
|
+
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
475
|
+
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
1152
476
|
case "UploadNotFoundException":
|
|
1153
477
|
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
1154
478
|
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
479
|
+
case "InvalidTagParameterException":
|
|
480
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
481
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
482
|
+
case "LimitExceededException":
|
|
483
|
+
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
484
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
485
|
+
case "RepositoryAlreadyExistsException":
|
|
486
|
+
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
487
|
+
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
488
|
+
case "TooManyTagsException":
|
|
489
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
490
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
491
|
+
case "RepositoryNotEmptyException":
|
|
492
|
+
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
493
|
+
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
494
|
+
case "RepositoryPolicyNotFoundException":
|
|
495
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
496
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
497
|
+
case "ImageNotFoundException":
|
|
498
|
+
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
499
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
500
|
+
case "RepositoryCatalogDataNotFoundException":
|
|
501
|
+
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
502
|
+
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
503
|
+
case "ImageAlreadyExistsException":
|
|
504
|
+
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
505
|
+
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
506
|
+
case "ImageDigestDoesNotMatchException":
|
|
507
|
+
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
508
|
+
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
509
|
+
case "ImageTagAlreadyExistsException":
|
|
510
|
+
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
511
|
+
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
512
|
+
case "LayersNotFoundException":
|
|
513
|
+
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
514
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
515
|
+
case "ReferencedImagesNotFoundException":
|
|
516
|
+
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
517
|
+
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
518
|
+
case "InvalidLayerPartException":
|
|
519
|
+
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
520
|
+
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1155
521
|
default:
|
|
1156
522
|
const parsedBody = parsedOutput.body;
|
|
1157
523
|
return throwDefaultError({
|