@aws-sdk/client-ecr-public 3.241.0 → 3.247.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/README.md +6 -6
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +28 -15
- package/dist-cjs/protocols/Aws_json1_1.js +65 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +24 -12
- package/dist-es/protocols/Aws_json1_1.js +66 -1
- package/dist-types/ECRPUBLIC.d.ts +38 -36
- package/dist-types/ECRPUBLICClient.d.ts +6 -6
- package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +3 -3
- package/dist-types/commands/BatchDeleteImageCommand.d.ts +5 -4
- package/dist-types/commands/CompleteLayerUploadCommand.d.ts +3 -3
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +4 -3
- package/dist-types/commands/DescribeRepositoriesCommand.d.ts +1 -1
- package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +1 -1
- package/dist-types/commands/InitiateLayerUploadCommand.d.ts +3 -3
- package/dist-types/commands/PutImageCommand.d.ts +3 -3
- package/dist-types/commands/PutRegistryCatalogDataCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UploadLayerPartCommand.d.ts +2 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +245 -230
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +17 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,12 +11,12 @@ AWS SDK for JavaScript ECRPUBLIC Client for Node.js, Browser and React Native.
|
|
|
11
11
|
|
|
12
12
|
<fullname>Amazon Elastic Container Registry Public</fullname>
|
|
13
13
|
|
|
14
|
-
<p>Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Amazon ECR provides both
|
|
15
|
-
public and private registries to host your container images. You can use the
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
<p>Amazon Elastic Container Registry Public (Amazon ECR Public) is a managed container image registry service. Amazon ECR provides both
|
|
15
|
+
public and private registries to host your container images. You can use the Docker CLI or
|
|
16
|
+
your preferred client to push, pull, and manage images. Amazon ECR provides a secure, scalable,
|
|
17
|
+
and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR
|
|
18
|
+
supports public repositories with this API. For information about the Amazon ECR API for private
|
|
19
|
+
repositories, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/Welcome.html">Amazon Elastic Container Registry API Reference</a>.</p>
|
|
20
20
|
|
|
21
21
|
## Installing
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UploadLayerPartResponseFilterSensitiveLog = exports.UploadLayerPartRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SetRepositoryPolicyResponseFilterSensitiveLog = exports.SetRepositoryPolicyRequestFilterSensitiveLog = exports.PutRepositoryCatalogDataResponseFilterSensitiveLog = exports.PutRepositoryCatalogDataRequestFilterSensitiveLog = exports.PutRegistryCatalogDataResponseFilterSensitiveLog = exports.PutRegistryCatalogDataRequestFilterSensitiveLog = exports.PutImageResponseFilterSensitiveLog = exports.PutImageRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.InitiateLayerUploadResponseFilterSensitiveLog = exports.InitiateLayerUploadRequestFilterSensitiveLog = exports.ImageFilterSensitiveLog = exports.GetRepositoryPolicyResponseFilterSensitiveLog = exports.GetRepositoryPolicyRequestFilterSensitiveLog = exports.GetRepositoryCatalogDataResponseFilterSensitiveLog = exports.GetRepositoryCatalogDataRequestFilterSensitiveLog = exports.GetRegistryCatalogDataResponseFilterSensitiveLog = exports.RegistryCatalogDataFilterSensitiveLog = exports.GetRegistryCatalogDataRequestFilterSensitiveLog = exports.GetAuthorizationTokenResponseFilterSensitiveLog = exports.GetAuthorizationTokenRequestFilterSensitiveLog = exports.DescribeRepositoriesResponseFilterSensitiveLog = exports.DescribeRepositoriesRequestFilterSensitiveLog = exports.DescribeRegistriesResponseFilterSensitiveLog = exports.RegistryFilterSensitiveLog = exports.RegistryAliasFilterSensitiveLog = exports.DescribeRegistriesRequestFilterSensitiveLog = exports.DescribeImageTagsResponseFilterSensitiveLog = exports.ImageTagDetailFilterSensitiveLog = exports.ReferencedImageDetailFilterSensitiveLog = exports.DescribeImageTagsRequestFilterSensitiveLog = exports.DescribeImagesResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DescribeImagesRequestFilterSensitiveLog = exports.DeleteRepositoryPolicyResponseFilterSensitiveLog = exports.DeleteRepositoryPolicyRequestFilterSensitiveLog = exports.DeleteRepositoryResponseFilterSensitiveLog = exports.DeleteRepositoryRequestFilterSensitiveLog = exports.CreateRepositoryResponseFilterSensitiveLog = exports.RepositoryFilterSensitiveLog = exports.RepositoryCatalogDataFilterSensitiveLog = exports.CreateRepositoryRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.RepositoryCatalogDataInputFilterSensitiveLog = exports.CompleteLayerUploadResponseFilterSensitiveLog = exports.CompleteLayerUploadRequestFilterSensitiveLog = exports.BatchDeleteImageResponseFilterSensitiveLog = exports.ImageFailureFilterSensitiveLog = exports.BatchDeleteImageRequestFilterSensitiveLog = exports.ImageIdentifierFilterSensitiveLog = exports.BatchCheckLayerAvailabilityResponseFilterSensitiveLog = exports.LayerFilterSensitiveLog = exports.LayerFailureFilterSensitiveLog = exports.BatchCheckLayerAvailabilityRequestFilterSensitiveLog = exports.AuthorizationDataFilterSensitiveLog = exports.ReferencedImagesNotFoundException = exports.LayersNotFoundException = exports.InvalidLayerPartException = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.RepositoryCatalogDataNotFoundException = exports.RegistryAliasStatus = exports.ImageNotFoundException = exports.RepositoryPolicyNotFoundException = exports.RepositoryNotEmptyException = exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.LimitExceededException = exports.InvalidTagParameterException = exports.UploadNotFoundException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.ImageFailureCode = exports.UnsupportedCommandException = exports.ServerException = exports.RepositoryNotFoundException = exports.RegistryNotFoundException = exports.InvalidParameterException = exports.LayerAvailability = exports.LayerFailureCode = void 0;
|
|
4
|
+
exports.UploadLayerPartResponseFilterSensitiveLog = exports.UploadLayerPartRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SetRepositoryPolicyResponseFilterSensitiveLog = exports.SetRepositoryPolicyRequestFilterSensitiveLog = exports.PutRepositoryCatalogDataResponseFilterSensitiveLog = exports.PutRepositoryCatalogDataRequestFilterSensitiveLog = exports.PutRegistryCatalogDataResponseFilterSensitiveLog = exports.PutRegistryCatalogDataRequestFilterSensitiveLog = exports.PutImageResponseFilterSensitiveLog = exports.PutImageRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.InitiateLayerUploadResponseFilterSensitiveLog = exports.InitiateLayerUploadRequestFilterSensitiveLog = exports.ImageFilterSensitiveLog = exports.GetRepositoryPolicyResponseFilterSensitiveLog = exports.GetRepositoryPolicyRequestFilterSensitiveLog = exports.GetRepositoryCatalogDataResponseFilterSensitiveLog = exports.GetRepositoryCatalogDataRequestFilterSensitiveLog = exports.GetRegistryCatalogDataResponseFilterSensitiveLog = exports.RegistryCatalogDataFilterSensitiveLog = exports.GetRegistryCatalogDataRequestFilterSensitiveLog = exports.GetAuthorizationTokenResponseFilterSensitiveLog = exports.GetAuthorizationTokenRequestFilterSensitiveLog = exports.DescribeRepositoriesResponseFilterSensitiveLog = exports.DescribeRepositoriesRequestFilterSensitiveLog = exports.DescribeRegistriesResponseFilterSensitiveLog = exports.RegistryFilterSensitiveLog = exports.RegistryAliasFilterSensitiveLog = exports.DescribeRegistriesRequestFilterSensitiveLog = exports.DescribeImageTagsResponseFilterSensitiveLog = exports.ImageTagDetailFilterSensitiveLog = exports.ReferencedImageDetailFilterSensitiveLog = exports.DescribeImageTagsRequestFilterSensitiveLog = exports.DescribeImagesResponseFilterSensitiveLog = exports.ImageDetailFilterSensitiveLog = void 0;
|
|
5
5
|
const ECRPUBLICServiceException_1 = require("./ECRPUBLICServiceException");
|
|
6
6
|
var LayerFailureCode;
|
|
7
7
|
(function (LayerFailureCode) {
|
|
@@ -65,6 +65,19 @@ class ServerException extends ECRPUBLICServiceException_1.ECRPUBLICServiceExcept
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.ServerException = ServerException;
|
|
68
|
+
class UnsupportedCommandException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "UnsupportedCommandException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
this.name = "UnsupportedCommandException";
|
|
76
|
+
this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.UnsupportedCommandException = UnsupportedCommandException;
|
|
68
81
|
var ImageFailureCode;
|
|
69
82
|
(function (ImageFailureCode) {
|
|
70
83
|
ImageFailureCode["ImageNotFound"] = "ImageNotFound";
|
|
@@ -127,19 +140,6 @@ class LayerPartTooSmallException extends ECRPUBLICServiceException_1.ECRPUBLICSe
|
|
|
127
140
|
}
|
|
128
141
|
}
|
|
129
142
|
exports.LayerPartTooSmallException = LayerPartTooSmallException;
|
|
130
|
-
class UnsupportedCommandException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
131
|
-
constructor(opts) {
|
|
132
|
-
super({
|
|
133
|
-
name: "UnsupportedCommandException",
|
|
134
|
-
$fault: "client",
|
|
135
|
-
...opts,
|
|
136
|
-
});
|
|
137
|
-
this.name = "UnsupportedCommandException";
|
|
138
|
-
this.$fault = "client";
|
|
139
|
-
Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
exports.UnsupportedCommandException = UnsupportedCommandException;
|
|
143
143
|
class UploadNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
144
144
|
constructor(opts) {
|
|
145
145
|
super({
|
|
@@ -250,6 +250,19 @@ var RegistryAliasStatus;
|
|
|
250
250
|
RegistryAliasStatus["PENDING"] = "PENDING";
|
|
251
251
|
RegistryAliasStatus["REJECTED"] = "REJECTED";
|
|
252
252
|
})(RegistryAliasStatus = exports.RegistryAliasStatus || (exports.RegistryAliasStatus = {}));
|
|
253
|
+
class RepositoryCatalogDataNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "RepositoryCatalogDataNotFoundException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts,
|
|
259
|
+
});
|
|
260
|
+
this.name = "RepositoryCatalogDataNotFoundException";
|
|
261
|
+
this.$fault = "client";
|
|
262
|
+
Object.setPrototypeOf(this, RepositoryCatalogDataNotFoundException.prototype);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
exports.RepositoryCatalogDataNotFoundException = RepositoryCatalogDataNotFoundException;
|
|
253
266
|
class ImageAlreadyExistsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
254
267
|
constructor(opts) {
|
|
255
268
|
super({
|
|
@@ -268,6 +268,9 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
268
268
|
case "ServerException":
|
|
269
269
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
270
270
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
271
|
+
case "UnsupportedCommandException":
|
|
272
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
273
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
271
274
|
default:
|
|
272
275
|
const parsedBody = parsedOutput.body;
|
|
273
276
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -308,6 +311,9 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
308
311
|
case "ServerException":
|
|
309
312
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
310
313
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
314
|
+
case "UnsupportedCommandException":
|
|
315
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
316
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
311
317
|
default:
|
|
312
318
|
const parsedBody = parsedOutput.body;
|
|
313
319
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -418,6 +424,9 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
418
424
|
case "TooManyTagsException":
|
|
419
425
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
420
426
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
427
|
+
case "UnsupportedCommandException":
|
|
428
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
429
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
421
430
|
default:
|
|
422
431
|
const parsedBody = parsedOutput.body;
|
|
423
432
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -461,6 +470,9 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
461
470
|
case "ServerException":
|
|
462
471
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
463
472
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
473
|
+
case "UnsupportedCommandException":
|
|
474
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
475
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
464
476
|
default:
|
|
465
477
|
const parsedBody = parsedOutput.body;
|
|
466
478
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -504,6 +516,9 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
504
516
|
case "ServerException":
|
|
505
517
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
506
518
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
519
|
+
case "UnsupportedCommandException":
|
|
520
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
521
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
507
522
|
default:
|
|
508
523
|
const parsedBody = parsedOutput.body;
|
|
509
524
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -547,6 +562,9 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
547
562
|
case "ServerException":
|
|
548
563
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
549
564
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "UnsupportedCommandException":
|
|
566
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
567
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
550
568
|
default:
|
|
551
569
|
const parsedBody = parsedOutput.body;
|
|
552
570
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -587,6 +605,9 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
587
605
|
case "ServerException":
|
|
588
606
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
589
607
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
608
|
+
case "UnsupportedCommandException":
|
|
609
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
610
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
590
611
|
default:
|
|
591
612
|
const parsedBody = parsedOutput.body;
|
|
592
613
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -667,6 +688,9 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
667
688
|
case "ServerException":
|
|
668
689
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
669
690
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
691
|
+
case "UnsupportedCommandException":
|
|
692
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
693
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
670
694
|
default:
|
|
671
695
|
const parsedBody = parsedOutput.body;
|
|
672
696
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -704,6 +728,9 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
704
728
|
case "ServerException":
|
|
705
729
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
706
730
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
731
|
+
case "UnsupportedCommandException":
|
|
732
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
733
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
707
734
|
default:
|
|
708
735
|
const parsedBody = parsedOutput.body;
|
|
709
736
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -775,12 +802,18 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
775
802
|
case "InvalidParameterException":
|
|
776
803
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
777
804
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "RepositoryCatalogDataNotFoundException":
|
|
806
|
+
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
807
|
+
throw await deserializeAws_json1_1RepositoryCatalogDataNotFoundExceptionResponse(parsedOutput, context);
|
|
778
808
|
case "RepositoryNotFoundException":
|
|
779
809
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
780
810
|
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
781
811
|
case "ServerException":
|
|
782
812
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
783
813
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "UnsupportedCommandException":
|
|
815
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
816
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
784
817
|
default:
|
|
785
818
|
const parsedBody = parsedOutput.body;
|
|
786
819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -824,6 +857,9 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
824
857
|
case "ServerException":
|
|
825
858
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
826
859
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
860
|
+
case "UnsupportedCommandException":
|
|
861
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
862
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
827
863
|
default:
|
|
828
864
|
const parsedBody = parsedOutput.body;
|
|
829
865
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -910,6 +946,9 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
910
946
|
case "ServerException":
|
|
911
947
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
912
948
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "UnsupportedCommandException":
|
|
950
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
951
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
913
952
|
default:
|
|
914
953
|
const parsedBody = parsedOutput.body;
|
|
915
954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1054,6 +1093,9 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1054
1093
|
case "ServerException":
|
|
1055
1094
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1056
1095
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1096
|
+
case "UnsupportedCommandException":
|
|
1097
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1098
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1057
1099
|
default:
|
|
1058
1100
|
const parsedBody = parsedOutput.body;
|
|
1059
1101
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1094,6 +1136,9 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1094
1136
|
case "ServerException":
|
|
1095
1137
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1096
1138
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1139
|
+
case "UnsupportedCommandException":
|
|
1140
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1141
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1097
1142
|
default:
|
|
1098
1143
|
const parsedBody = parsedOutput.body;
|
|
1099
1144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1140,6 +1185,9 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1140
1185
|
case "TooManyTagsException":
|
|
1141
1186
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1142
1187
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1188
|
+
case "UnsupportedCommandException":
|
|
1189
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1190
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1143
1191
|
default:
|
|
1144
1192
|
const parsedBody = parsedOutput.body;
|
|
1145
1193
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1186,6 +1234,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1186
1234
|
case "TooManyTagsException":
|
|
1187
1235
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1188
1236
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1237
|
+
case "UnsupportedCommandException":
|
|
1238
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1239
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1189
1240
|
default:
|
|
1190
1241
|
const parsedBody = parsedOutput.body;
|
|
1191
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1395,6 +1446,15 @@ const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (pa
|
|
|
1395
1446
|
});
|
|
1396
1447
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1397
1448
|
};
|
|
1449
|
+
const deserializeAws_json1_1RepositoryCatalogDataNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1450
|
+
const body = parsedOutput.body;
|
|
1451
|
+
const deserialized = deserializeAws_json1_1RepositoryCatalogDataNotFoundException(body, context);
|
|
1452
|
+
const exception = new models_0_1.RepositoryCatalogDataNotFoundException({
|
|
1453
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1454
|
+
...deserialized,
|
|
1455
|
+
});
|
|
1456
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1457
|
+
};
|
|
1398
1458
|
const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => {
|
|
1399
1459
|
const body = parsedOutput.body;
|
|
1400
1460
|
const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
@@ -2146,6 +2206,11 @@ const deserializeAws_json1_1RepositoryCatalogData = (output, context) => {
|
|
|
2146
2206
|
usageText: (0, smithy_client_1.expectString)(output.usageText),
|
|
2147
2207
|
};
|
|
2148
2208
|
};
|
|
2209
|
+
const deserializeAws_json1_1RepositoryCatalogDataNotFoundException = (output, context) => {
|
|
2210
|
+
return {
|
|
2211
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2149
2214
|
const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
2150
2215
|
const retVal = (output || [])
|
|
2151
2216
|
.filter((e) => e != null)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -57,6 +57,18 @@ export class ServerException extends __BaseException {
|
|
|
57
57
|
Object.setPrototypeOf(this, ServerException.prototype);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
export class UnsupportedCommandException extends __BaseException {
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "UnsupportedCommandException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
this.name = "UnsupportedCommandException";
|
|
68
|
+
this.$fault = "client";
|
|
69
|
+
Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
60
72
|
export var ImageFailureCode;
|
|
61
73
|
(function (ImageFailureCode) {
|
|
62
74
|
ImageFailureCode["ImageNotFound"] = "ImageNotFound";
|
|
@@ -115,18 +127,6 @@ export class LayerPartTooSmallException extends __BaseException {
|
|
|
115
127
|
Object.setPrototypeOf(this, LayerPartTooSmallException.prototype);
|
|
116
128
|
}
|
|
117
129
|
}
|
|
118
|
-
export class UnsupportedCommandException extends __BaseException {
|
|
119
|
-
constructor(opts) {
|
|
120
|
-
super({
|
|
121
|
-
name: "UnsupportedCommandException",
|
|
122
|
-
$fault: "client",
|
|
123
|
-
...opts,
|
|
124
|
-
});
|
|
125
|
-
this.name = "UnsupportedCommandException";
|
|
126
|
-
this.$fault = "client";
|
|
127
|
-
Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
130
|
export class UploadNotFoundException extends __BaseException {
|
|
131
131
|
constructor(opts) {
|
|
132
132
|
super({
|
|
@@ -229,6 +229,18 @@ export var RegistryAliasStatus;
|
|
|
229
229
|
RegistryAliasStatus["PENDING"] = "PENDING";
|
|
230
230
|
RegistryAliasStatus["REJECTED"] = "REJECTED";
|
|
231
231
|
})(RegistryAliasStatus || (RegistryAliasStatus = {}));
|
|
232
|
+
export class RepositoryCatalogDataNotFoundException extends __BaseException {
|
|
233
|
+
constructor(opts) {
|
|
234
|
+
super({
|
|
235
|
+
name: "RepositoryCatalogDataNotFoundException",
|
|
236
|
+
$fault: "client",
|
|
237
|
+
...opts,
|
|
238
|
+
});
|
|
239
|
+
this.name = "RepositoryCatalogDataNotFoundException";
|
|
240
|
+
this.$fault = "client";
|
|
241
|
+
Object.setPrototypeOf(this, RepositoryCatalogDataNotFoundException.prototype);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
232
244
|
export class ImageAlreadyExistsException extends __BaseException {
|
|
233
245
|
constructor(opts) {
|
|
234
246
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ECRPUBLICServiceException as __BaseException } from "../models/ECRPUBLICServiceException";
|
|
4
|
-
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, LayerAlreadyExistsException, LayerPartTooSmallException, LayersNotFoundException, LimitExceededException, ReferencedImagesNotFoundException, RegistryNotFoundException, RepositoryAlreadyExistsException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ServerException, TooManyTagsException, UnsupportedCommandException, UploadNotFoundException, } from "../models/models_0";
|
|
4
|
+
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, LayerAlreadyExistsException, LayerPartTooSmallException, LayersNotFoundException, LimitExceededException, ReferencedImagesNotFoundException, RegistryNotFoundException, RepositoryAlreadyExistsException, RepositoryCatalogDataNotFoundException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ServerException, TooManyTagsException, UnsupportedCommandException, UploadNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -241,6 +241,9 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
241
241
|
case "ServerException":
|
|
242
242
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
243
243
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
244
|
+
case "UnsupportedCommandException":
|
|
245
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
246
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
244
247
|
default:
|
|
245
248
|
const parsedBody = parsedOutput.body;
|
|
246
249
|
throwDefaultError({
|
|
@@ -280,6 +283,9 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
280
283
|
case "ServerException":
|
|
281
284
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
282
285
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
286
|
+
case "UnsupportedCommandException":
|
|
287
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
288
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
283
289
|
default:
|
|
284
290
|
const parsedBody = parsedOutput.body;
|
|
285
291
|
throwDefaultError({
|
|
@@ -388,6 +394,9 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
388
394
|
case "TooManyTagsException":
|
|
389
395
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
390
396
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "UnsupportedCommandException":
|
|
398
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
399
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
391
400
|
default:
|
|
392
401
|
const parsedBody = parsedOutput.body;
|
|
393
402
|
throwDefaultError({
|
|
@@ -430,6 +439,9 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
430
439
|
case "ServerException":
|
|
431
440
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
432
441
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "UnsupportedCommandException":
|
|
443
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
444
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
433
445
|
default:
|
|
434
446
|
const parsedBody = parsedOutput.body;
|
|
435
447
|
throwDefaultError({
|
|
@@ -472,6 +484,9 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
472
484
|
case "ServerException":
|
|
473
485
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
474
486
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
487
|
+
case "UnsupportedCommandException":
|
|
488
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
489
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
475
490
|
default:
|
|
476
491
|
const parsedBody = parsedOutput.body;
|
|
477
492
|
throwDefaultError({
|
|
@@ -514,6 +529,9 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
514
529
|
case "ServerException":
|
|
515
530
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
516
531
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "UnsupportedCommandException":
|
|
533
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
534
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
517
535
|
default:
|
|
518
536
|
const parsedBody = parsedOutput.body;
|
|
519
537
|
throwDefaultError({
|
|
@@ -553,6 +571,9 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
553
571
|
case "ServerException":
|
|
554
572
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
555
573
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "UnsupportedCommandException":
|
|
575
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
576
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
556
577
|
default:
|
|
557
578
|
const parsedBody = parsedOutput.body;
|
|
558
579
|
throwDefaultError({
|
|
@@ -631,6 +652,9 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
631
652
|
case "ServerException":
|
|
632
653
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
633
654
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
655
|
+
case "UnsupportedCommandException":
|
|
656
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
657
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
634
658
|
default:
|
|
635
659
|
const parsedBody = parsedOutput.body;
|
|
636
660
|
throwDefaultError({
|
|
@@ -667,6 +691,9 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
667
691
|
case "ServerException":
|
|
668
692
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
669
693
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
694
|
+
case "UnsupportedCommandException":
|
|
695
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
696
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
670
697
|
default:
|
|
671
698
|
const parsedBody = parsedOutput.body;
|
|
672
699
|
throwDefaultError({
|
|
@@ -736,12 +763,18 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
736
763
|
case "InvalidParameterException":
|
|
737
764
|
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
738
765
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
766
|
+
case "RepositoryCatalogDataNotFoundException":
|
|
767
|
+
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
768
|
+
throw await deserializeAws_json1_1RepositoryCatalogDataNotFoundExceptionResponse(parsedOutput, context);
|
|
739
769
|
case "RepositoryNotFoundException":
|
|
740
770
|
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
741
771
|
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
742
772
|
case "ServerException":
|
|
743
773
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
744
774
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
775
|
+
case "UnsupportedCommandException":
|
|
776
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
777
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
745
778
|
default:
|
|
746
779
|
const parsedBody = parsedOutput.body;
|
|
747
780
|
throwDefaultError({
|
|
@@ -784,6 +817,9 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
784
817
|
case "ServerException":
|
|
785
818
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
786
819
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "UnsupportedCommandException":
|
|
821
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
822
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
787
823
|
default:
|
|
788
824
|
const parsedBody = parsedOutput.body;
|
|
789
825
|
throwDefaultError({
|
|
@@ -868,6 +904,9 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
868
904
|
case "ServerException":
|
|
869
905
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
870
906
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
907
|
+
case "UnsupportedCommandException":
|
|
908
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
909
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
871
910
|
default:
|
|
872
911
|
const parsedBody = parsedOutput.body;
|
|
873
912
|
throwDefaultError({
|
|
@@ -1009,6 +1048,9 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1009
1048
|
case "ServerException":
|
|
1010
1049
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1011
1050
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1051
|
+
case "UnsupportedCommandException":
|
|
1052
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1053
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1012
1054
|
default:
|
|
1013
1055
|
const parsedBody = parsedOutput.body;
|
|
1014
1056
|
throwDefaultError({
|
|
@@ -1048,6 +1090,9 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1048
1090
|
case "ServerException":
|
|
1049
1091
|
case "com.amazonaws.ecrpublic#ServerException":
|
|
1050
1092
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1093
|
+
case "UnsupportedCommandException":
|
|
1094
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1095
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1051
1096
|
default:
|
|
1052
1097
|
const parsedBody = parsedOutput.body;
|
|
1053
1098
|
throwDefaultError({
|
|
@@ -1093,6 +1138,9 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1093
1138
|
case "TooManyTagsException":
|
|
1094
1139
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1095
1140
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "UnsupportedCommandException":
|
|
1142
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1143
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1096
1144
|
default:
|
|
1097
1145
|
const parsedBody = parsedOutput.body;
|
|
1098
1146
|
throwDefaultError({
|
|
@@ -1138,6 +1186,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1138
1186
|
case "TooManyTagsException":
|
|
1139
1187
|
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1140
1188
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1189
|
+
case "UnsupportedCommandException":
|
|
1190
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1191
|
+
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1141
1192
|
default:
|
|
1142
1193
|
const parsedBody = parsedOutput.body;
|
|
1143
1194
|
throwDefaultError({
|
|
@@ -1346,6 +1397,15 @@ const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (pa
|
|
|
1346
1397
|
});
|
|
1347
1398
|
return __decorateServiceException(exception, body);
|
|
1348
1399
|
};
|
|
1400
|
+
const deserializeAws_json1_1RepositoryCatalogDataNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1401
|
+
const body = parsedOutput.body;
|
|
1402
|
+
const deserialized = deserializeAws_json1_1RepositoryCatalogDataNotFoundException(body, context);
|
|
1403
|
+
const exception = new RepositoryCatalogDataNotFoundException({
|
|
1404
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1405
|
+
...deserialized,
|
|
1406
|
+
});
|
|
1407
|
+
return __decorateServiceException(exception, body);
|
|
1408
|
+
};
|
|
1349
1409
|
const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => {
|
|
1350
1410
|
const body = parsedOutput.body;
|
|
1351
1411
|
const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
@@ -2097,6 +2157,11 @@ const deserializeAws_json1_1RepositoryCatalogData = (output, context) => {
|
|
|
2097
2157
|
usageText: __expectString(output.usageText),
|
|
2098
2158
|
};
|
|
2099
2159
|
};
|
|
2160
|
+
const deserializeAws_json1_1RepositoryCatalogDataNotFoundException = (output, context) => {
|
|
2161
|
+
return {
|
|
2162
|
+
message: __expectString(output.message),
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2100
2165
|
const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
2101
2166
|
const retVal = (output || [])
|
|
2102
2167
|
.filter((e) => e != null)
|