@aws-sdk/client-ecr-public 3.934.0 → 3.935.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 CHANGED
@@ -117,14 +117,6 @@ let ECRPUBLICServiceException$1 = class ECRPUBLICServiceException extends smithy
117
117
  }
118
118
  };
119
119
 
120
- const LayerFailureCode = {
121
- InvalidLayerDigest: "InvalidLayerDigest",
122
- MissingLayerDigest: "MissingLayerDigest",
123
- };
124
- const LayerAvailability = {
125
- AVAILABLE: "AVAILABLE",
126
- UNAVAILABLE: "UNAVAILABLE",
127
- };
128
120
  let InvalidParameterException$1 = class InvalidParameterException extends ECRPUBLICServiceException$1 {
129
121
  name = "InvalidParameterException";
130
122
  $fault = "client";
@@ -185,15 +177,6 @@ let UnsupportedCommandException$1 = class UnsupportedCommandException extends EC
185
177
  Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
186
178
  }
187
179
  };
188
- const ImageFailureCode = {
189
- ImageNotFound: "ImageNotFound",
190
- ImageReferencedByManifestList: "ImageReferencedByManifestList",
191
- ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
192
- InvalidImageDigest: "InvalidImageDigest",
193
- InvalidImageTag: "InvalidImageTag",
194
- KmsError: "KmsError",
195
- MissingDigestAndTag: "MissingDigestAndTag",
196
- };
197
180
  let EmptyUploadException$1 = class EmptyUploadException extends ECRPUBLICServiceException$1 {
198
181
  name = "EmptyUploadException";
199
182
  $fault = "client";
@@ -338,11 +321,6 @@ let ImageNotFoundException$1 = class ImageNotFoundException extends ECRPUBLICSer
338
321
  Object.setPrototypeOf(this, ImageNotFoundException.prototype);
339
322
  }
340
323
  };
341
- const RegistryAliasStatus = {
342
- ACTIVE: "ACTIVE",
343
- PENDING: "PENDING",
344
- REJECTED: "REJECTED",
345
- };
346
324
  let RepositoryCatalogDataNotFoundException$1 = class RepositoryCatalogDataNotFoundException extends ECRPUBLICServiceException$1 {
347
325
  name = "RepositoryCatalogDataNotFoundException";
348
326
  $fault = "client";
@@ -1628,6 +1606,29 @@ const paginateDescribeRegistries = core.createPaginator(ECRPUBLICClient, Describ
1628
1606
 
1629
1607
  const paginateDescribeRepositories = core.createPaginator(ECRPUBLICClient, DescribeRepositoriesCommand, "nextToken", "nextToken", "maxResults");
1630
1608
 
1609
+ const LayerFailureCode = {
1610
+ InvalidLayerDigest: "InvalidLayerDigest",
1611
+ MissingLayerDigest: "MissingLayerDigest",
1612
+ };
1613
+ const LayerAvailability = {
1614
+ AVAILABLE: "AVAILABLE",
1615
+ UNAVAILABLE: "UNAVAILABLE",
1616
+ };
1617
+ const ImageFailureCode = {
1618
+ ImageNotFound: "ImageNotFound",
1619
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
1620
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
1621
+ InvalidImageDigest: "InvalidImageDigest",
1622
+ InvalidImageTag: "InvalidImageTag",
1623
+ KmsError: "KmsError",
1624
+ MissingDigestAndTag: "MissingDigestAndTag",
1625
+ };
1626
+ const RegistryAliasStatus = {
1627
+ ACTIVE: "ACTIVE",
1628
+ PENDING: "PENDING",
1629
+ REJECTED: "REJECTED",
1630
+ };
1631
+
1631
1632
  Object.defineProperty(exports, "$Command", {
1632
1633
  enumerable: true,
1633
1634
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./ECRPUBLICClient";
2
2
  export * from "./ECRPUBLIC";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { ECRPUBLICServiceException } from "./models/ECRPUBLICServiceException";
@@ -0,0 +1,22 @@
1
+ export const LayerFailureCode = {
2
+ InvalidLayerDigest: "InvalidLayerDigest",
3
+ MissingLayerDigest: "MissingLayerDigest",
4
+ };
5
+ export const LayerAvailability = {
6
+ AVAILABLE: "AVAILABLE",
7
+ UNAVAILABLE: "UNAVAILABLE",
8
+ };
9
+ export const ImageFailureCode = {
10
+ ImageNotFound: "ImageNotFound",
11
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
12
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
13
+ InvalidImageDigest: "InvalidImageDigest",
14
+ InvalidImageTag: "InvalidImageTag",
15
+ KmsError: "KmsError",
16
+ MissingDigestAndTag: "MissingDigestAndTag",
17
+ };
18
+ export const RegistryAliasStatus = {
19
+ ACTIVE: "ACTIVE",
20
+ PENDING: "PENDING",
21
+ REJECTED: "REJECTED",
22
+ };
@@ -0,0 +1,297 @@
1
+ import { ECRPUBLICServiceException as __BaseException } from "./ECRPUBLICServiceException";
2
+ export class InvalidParameterException extends __BaseException {
3
+ name = "InvalidParameterException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "InvalidParameterException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
12
+ }
13
+ }
14
+ export class RegistryNotFoundException extends __BaseException {
15
+ name = "RegistryNotFoundException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "RegistryNotFoundException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, RegistryNotFoundException.prototype);
24
+ }
25
+ }
26
+ export class RepositoryNotFoundException extends __BaseException {
27
+ name = "RepositoryNotFoundException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "RepositoryNotFoundException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, RepositoryNotFoundException.prototype);
36
+ }
37
+ }
38
+ export class ServerException extends __BaseException {
39
+ name = "ServerException";
40
+ $fault = "server";
41
+ constructor(opts) {
42
+ super({
43
+ name: "ServerException",
44
+ $fault: "server",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, ServerException.prototype);
48
+ }
49
+ }
50
+ export class UnsupportedCommandException extends __BaseException {
51
+ name = "UnsupportedCommandException";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "UnsupportedCommandException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
60
+ }
61
+ }
62
+ export class EmptyUploadException extends __BaseException {
63
+ name = "EmptyUploadException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "EmptyUploadException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, EmptyUploadException.prototype);
72
+ }
73
+ }
74
+ export class InvalidLayerException extends __BaseException {
75
+ name = "InvalidLayerException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "InvalidLayerException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, InvalidLayerException.prototype);
84
+ }
85
+ }
86
+ export class LayerAlreadyExistsException extends __BaseException {
87
+ name = "LayerAlreadyExistsException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "LayerAlreadyExistsException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, LayerAlreadyExistsException.prototype);
96
+ }
97
+ }
98
+ export class LayerPartTooSmallException extends __BaseException {
99
+ name = "LayerPartTooSmallException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "LayerPartTooSmallException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, LayerPartTooSmallException.prototype);
108
+ }
109
+ }
110
+ export class UploadNotFoundException extends __BaseException {
111
+ name = "UploadNotFoundException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "UploadNotFoundException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, UploadNotFoundException.prototype);
120
+ }
121
+ }
122
+ export class InvalidTagParameterException extends __BaseException {
123
+ name = "InvalidTagParameterException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "InvalidTagParameterException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
132
+ }
133
+ }
134
+ export class LimitExceededException extends __BaseException {
135
+ name = "LimitExceededException";
136
+ $fault = "client";
137
+ constructor(opts) {
138
+ super({
139
+ name: "LimitExceededException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
144
+ }
145
+ }
146
+ export class RepositoryAlreadyExistsException extends __BaseException {
147
+ name = "RepositoryAlreadyExistsException";
148
+ $fault = "client";
149
+ constructor(opts) {
150
+ super({
151
+ name: "RepositoryAlreadyExistsException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, RepositoryAlreadyExistsException.prototype);
156
+ }
157
+ }
158
+ export class TooManyTagsException extends __BaseException {
159
+ name = "TooManyTagsException";
160
+ $fault = "client";
161
+ constructor(opts) {
162
+ super({
163
+ name: "TooManyTagsException",
164
+ $fault: "client",
165
+ ...opts,
166
+ });
167
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
168
+ }
169
+ }
170
+ export class RepositoryNotEmptyException extends __BaseException {
171
+ name = "RepositoryNotEmptyException";
172
+ $fault = "client";
173
+ constructor(opts) {
174
+ super({
175
+ name: "RepositoryNotEmptyException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, RepositoryNotEmptyException.prototype);
180
+ }
181
+ }
182
+ export class RepositoryPolicyNotFoundException extends __BaseException {
183
+ name = "RepositoryPolicyNotFoundException";
184
+ $fault = "client";
185
+ constructor(opts) {
186
+ super({
187
+ name: "RepositoryPolicyNotFoundException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, RepositoryPolicyNotFoundException.prototype);
192
+ }
193
+ }
194
+ export class ImageNotFoundException extends __BaseException {
195
+ name = "ImageNotFoundException";
196
+ $fault = "client";
197
+ constructor(opts) {
198
+ super({
199
+ name: "ImageNotFoundException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ Object.setPrototypeOf(this, ImageNotFoundException.prototype);
204
+ }
205
+ }
206
+ export class RepositoryCatalogDataNotFoundException extends __BaseException {
207
+ name = "RepositoryCatalogDataNotFoundException";
208
+ $fault = "client";
209
+ constructor(opts) {
210
+ super({
211
+ name: "RepositoryCatalogDataNotFoundException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, RepositoryCatalogDataNotFoundException.prototype);
216
+ }
217
+ }
218
+ export class ImageAlreadyExistsException extends __BaseException {
219
+ name = "ImageAlreadyExistsException";
220
+ $fault = "client";
221
+ constructor(opts) {
222
+ super({
223
+ name: "ImageAlreadyExistsException",
224
+ $fault: "client",
225
+ ...opts,
226
+ });
227
+ Object.setPrototypeOf(this, ImageAlreadyExistsException.prototype);
228
+ }
229
+ }
230
+ export class ImageDigestDoesNotMatchException extends __BaseException {
231
+ name = "ImageDigestDoesNotMatchException";
232
+ $fault = "client";
233
+ constructor(opts) {
234
+ super({
235
+ name: "ImageDigestDoesNotMatchException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ Object.setPrototypeOf(this, ImageDigestDoesNotMatchException.prototype);
240
+ }
241
+ }
242
+ export class ImageTagAlreadyExistsException extends __BaseException {
243
+ name = "ImageTagAlreadyExistsException";
244
+ $fault = "client";
245
+ constructor(opts) {
246
+ super({
247
+ name: "ImageTagAlreadyExistsException",
248
+ $fault: "client",
249
+ ...opts,
250
+ });
251
+ Object.setPrototypeOf(this, ImageTagAlreadyExistsException.prototype);
252
+ }
253
+ }
254
+ export class InvalidLayerPartException extends __BaseException {
255
+ name = "InvalidLayerPartException";
256
+ $fault = "client";
257
+ registryId;
258
+ repositoryName;
259
+ uploadId;
260
+ lastValidByteReceived;
261
+ constructor(opts) {
262
+ super({
263
+ name: "InvalidLayerPartException",
264
+ $fault: "client",
265
+ ...opts,
266
+ });
267
+ Object.setPrototypeOf(this, InvalidLayerPartException.prototype);
268
+ this.registryId = opts.registryId;
269
+ this.repositoryName = opts.repositoryName;
270
+ this.uploadId = opts.uploadId;
271
+ this.lastValidByteReceived = opts.lastValidByteReceived;
272
+ }
273
+ }
274
+ export class LayersNotFoundException extends __BaseException {
275
+ name = "LayersNotFoundException";
276
+ $fault = "client";
277
+ constructor(opts) {
278
+ super({
279
+ name: "LayersNotFoundException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, LayersNotFoundException.prototype);
284
+ }
285
+ }
286
+ export class ReferencedImagesNotFoundException extends __BaseException {
287
+ name = "ReferencedImagesNotFoundException";
288
+ $fault = "client";
289
+ constructor(opts) {
290
+ super({
291
+ name: "ReferencedImagesNotFoundException",
292
+ $fault: "client",
293
+ ...opts,
294
+ });
295
+ Object.setPrototypeOf(this, ReferencedImagesNotFoundException.prototype);
296
+ }
297
+ }