@aws-sdk/client-ecr-public 3.987.0 → 3.988.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 +42 -1213
- package/dist-cjs/models/ECRPUBLICServiceException.js +12 -0
- package/dist-cjs/models/errors.js +324 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +771 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +155 -149
- package/dist-types/schemas/schemas_0.d.ts +32 -25
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -25
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ECRPUBLICServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class ECRPUBLICServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, ECRPUBLICServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ECRPUBLICServiceException = ECRPUBLICServiceException;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReferencedImagesNotFoundException = exports.LayersNotFoundException = exports.InvalidLayerPartException = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.RepositoryCatalogDataNotFoundException = 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.UnsupportedCommandException = exports.ServerException = exports.RepositoryNotFoundException = exports.RegistryNotFoundException = exports.InvalidParameterException = void 0;
|
|
4
|
+
const ECRPUBLICServiceException_1 = require("./ECRPUBLICServiceException");
|
|
5
|
+
class InvalidParameterException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
6
|
+
name = "InvalidParameterException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "InvalidParameterException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
18
|
+
class RegistryNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
19
|
+
name = "RegistryNotFoundException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "RegistryNotFoundException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, RegistryNotFoundException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.RegistryNotFoundException = RegistryNotFoundException;
|
|
31
|
+
class RepositoryNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
32
|
+
name = "RepositoryNotFoundException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "RepositoryNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, RepositoryNotFoundException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.RepositoryNotFoundException = RepositoryNotFoundException;
|
|
44
|
+
class ServerException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
45
|
+
name = "ServerException";
|
|
46
|
+
$fault = "server";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ServerException",
|
|
50
|
+
$fault: "server",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, ServerException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ServerException = ServerException;
|
|
57
|
+
class UnsupportedCommandException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
58
|
+
name = "UnsupportedCommandException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "UnsupportedCommandException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.UnsupportedCommandException = UnsupportedCommandException;
|
|
70
|
+
class EmptyUploadException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
71
|
+
name = "EmptyUploadException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "EmptyUploadException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, EmptyUploadException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.EmptyUploadException = EmptyUploadException;
|
|
83
|
+
class InvalidLayerException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
84
|
+
name = "InvalidLayerException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "InvalidLayerException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, InvalidLayerException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.InvalidLayerException = InvalidLayerException;
|
|
96
|
+
class LayerAlreadyExistsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
97
|
+
name = "LayerAlreadyExistsException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "LayerAlreadyExistsException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, LayerAlreadyExistsException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.LayerAlreadyExistsException = LayerAlreadyExistsException;
|
|
109
|
+
class LayerPartTooSmallException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
110
|
+
name = "LayerPartTooSmallException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "LayerPartTooSmallException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, LayerPartTooSmallException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.LayerPartTooSmallException = LayerPartTooSmallException;
|
|
122
|
+
class UploadNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
123
|
+
name = "UploadNotFoundException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "UploadNotFoundException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, UploadNotFoundException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.UploadNotFoundException = UploadNotFoundException;
|
|
135
|
+
class InvalidTagParameterException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
136
|
+
name = "InvalidTagParameterException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "InvalidTagParameterException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.InvalidTagParameterException = InvalidTagParameterException;
|
|
148
|
+
class LimitExceededException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
149
|
+
name = "LimitExceededException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "LimitExceededException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.LimitExceededException = LimitExceededException;
|
|
161
|
+
class RepositoryAlreadyExistsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
162
|
+
name = "RepositoryAlreadyExistsException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "RepositoryAlreadyExistsException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, RepositoryAlreadyExistsException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.RepositoryAlreadyExistsException = RepositoryAlreadyExistsException;
|
|
174
|
+
class TooManyTagsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
175
|
+
name = "TooManyTagsException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "TooManyTagsException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
187
|
+
class RepositoryNotEmptyException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
188
|
+
name = "RepositoryNotEmptyException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "RepositoryNotEmptyException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, RepositoryNotEmptyException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.RepositoryNotEmptyException = RepositoryNotEmptyException;
|
|
200
|
+
class RepositoryPolicyNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
201
|
+
name = "RepositoryPolicyNotFoundException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "RepositoryPolicyNotFoundException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, RepositoryPolicyNotFoundException.prototype);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.RepositoryPolicyNotFoundException = RepositoryPolicyNotFoundException;
|
|
213
|
+
class ImageNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
214
|
+
name = "ImageNotFoundException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ImageNotFoundException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ImageNotFoundException.prototype);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.ImageNotFoundException = ImageNotFoundException;
|
|
226
|
+
class RepositoryCatalogDataNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
227
|
+
name = "RepositoryCatalogDataNotFoundException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "RepositoryCatalogDataNotFoundException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, RepositoryCatalogDataNotFoundException.prototype);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.RepositoryCatalogDataNotFoundException = RepositoryCatalogDataNotFoundException;
|
|
239
|
+
class ImageAlreadyExistsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
240
|
+
name = "ImageAlreadyExistsException";
|
|
241
|
+
$fault = "client";
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "ImageAlreadyExistsException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, ImageAlreadyExistsException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
exports.ImageAlreadyExistsException = ImageAlreadyExistsException;
|
|
252
|
+
class ImageDigestDoesNotMatchException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
253
|
+
name = "ImageDigestDoesNotMatchException";
|
|
254
|
+
$fault = "client";
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "ImageDigestDoesNotMatchException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
Object.setPrototypeOf(this, ImageDigestDoesNotMatchException.prototype);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
exports.ImageDigestDoesNotMatchException = ImageDigestDoesNotMatchException;
|
|
265
|
+
class ImageTagAlreadyExistsException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
266
|
+
name = "ImageTagAlreadyExistsException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "ImageTagAlreadyExistsException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts,
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, ImageTagAlreadyExistsException.prototype);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.ImageTagAlreadyExistsException = ImageTagAlreadyExistsException;
|
|
278
|
+
class InvalidLayerPartException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
279
|
+
name = "InvalidLayerPartException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
registryId;
|
|
282
|
+
repositoryName;
|
|
283
|
+
uploadId;
|
|
284
|
+
lastValidByteReceived;
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "InvalidLayerPartException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts,
|
|
290
|
+
});
|
|
291
|
+
Object.setPrototypeOf(this, InvalidLayerPartException.prototype);
|
|
292
|
+
this.registryId = opts.registryId;
|
|
293
|
+
this.repositoryName = opts.repositoryName;
|
|
294
|
+
this.uploadId = opts.uploadId;
|
|
295
|
+
this.lastValidByteReceived = opts.lastValidByteReceived;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
exports.InvalidLayerPartException = InvalidLayerPartException;
|
|
299
|
+
class LayersNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
300
|
+
name = "LayersNotFoundException";
|
|
301
|
+
$fault = "client";
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "LayersNotFoundException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts,
|
|
307
|
+
});
|
|
308
|
+
Object.setPrototypeOf(this, LayersNotFoundException.prototype);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.LayersNotFoundException = LayersNotFoundException;
|
|
312
|
+
class ReferencedImagesNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
|
|
313
|
+
name = "ReferencedImagesNotFoundException";
|
|
314
|
+
$fault = "client";
|
|
315
|
+
constructor(opts) {
|
|
316
|
+
super({
|
|
317
|
+
name: "ReferencedImagesNotFoundException",
|
|
318
|
+
$fault: "client",
|
|
319
|
+
...opts,
|
|
320
|
+
});
|
|
321
|
+
Object.setPrototypeOf(this, ReferencedImagesNotFoundException.prototype);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
exports.ReferencedImagesNotFoundException = ReferencedImagesNotFoundException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2020-10-30",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.ecrpublic",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://ecr-public.amazonaws.com/doc/2020-12-02/",
|
|
33
35
|
version: "2020-10-30",
|
|
34
36
|
serviceTarget: "SpencerFrontendService",
|