@aws-sdk/client-ecr 3.1068.0 → 3.1070.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +237 -257
- package/dist-cjs/models/ECRServiceException.js +4 -8
- package/dist-cjs/models/errors.js +95 -145
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +630 -418
- package/package.json +9 -9
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ECRServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class ECRServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.ECRServiceException = class ECRServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, ECRServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.ECRServiceException = ECRServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.InvalidLayerPartException = exports.ImageStorageClassUpdateNotSupportedException = exports.LifecyclePolicyPreviewInProgressException = exports.UnsupportedImageTypeException = exports.ImageArchivedException = exports.ExclusionAlreadyExistsException = exports.BlockedByOrganizationPolicyException = exports.ReferencedImagesNotFoundException = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.UnableToListUpstreamImageReferrersException = exports.LifecyclePolicyPreviewNotFoundException = exports.UnableToGetUpstreamLayerException = exports.LayersNotFoundException = exports.LayerInaccessibleException = exports.ScanNotFoundException = exports.ImageNotFoundException = exports.ExclusionNotFoundException = exports.SigningConfigurationNotFoundException = exports.RepositoryPolicyNotFoundException = exports.TemplateNotFoundException = exports.RepositoryNotEmptyException = exports.RegistryPolicyNotFoundException = exports.PullThroughCacheRuleNotFoundException = exports.LifecyclePolicyNotFoundException = exports.TemplateAlreadyExistsException = exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.InvalidTagParameterException = exports.UnsupportedUpstreamRegistryException = exports.UnableToDecryptSecretValueException = exports.UnableToAccessSecretException = exports.SecretNotFoundException = exports.PullThroughCacheRuleAlreadyExistsException = exports.UploadNotFoundException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.KmsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.ValidationException = exports.UnableToGetUpstreamImageException = exports.LimitExceededException = exports.ServerException = exports.RepositoryNotFoundException = exports.InvalidParameterException = void 0;
|
|
4
|
-
const ECRServiceException_1 = require("./ECRServiceException");
|
|
5
|
-
class InvalidParameterException extends ECRServiceException_1.ECRServiceException {
|
|
1
|
+
const { ECRServiceException: __BaseException } = require("./ECRServiceException");
|
|
2
|
+
exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
|
|
6
3
|
name = "InvalidParameterException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
constructor(opts) {
|
|
@@ -13,9 +10,8 @@ class InvalidParameterException extends ECRServiceException_1.ECRServiceExceptio
|
|
|
13
10
|
});
|
|
14
11
|
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
15
12
|
}
|
|
16
|
-
}
|
|
17
|
-
exports.
|
|
18
|
-
class RepositoryNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
13
|
+
};
|
|
14
|
+
exports.RepositoryNotFoundException = class RepositoryNotFoundException extends __BaseException {
|
|
19
15
|
name = "RepositoryNotFoundException";
|
|
20
16
|
$fault = "client";
|
|
21
17
|
constructor(opts) {
|
|
@@ -26,9 +22,8 @@ class RepositoryNotFoundException extends ECRServiceException_1.ECRServiceExcept
|
|
|
26
22
|
});
|
|
27
23
|
Object.setPrototypeOf(this, RepositoryNotFoundException.prototype);
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
|
-
exports.
|
|
31
|
-
class ServerException extends ECRServiceException_1.ECRServiceException {
|
|
25
|
+
};
|
|
26
|
+
exports.ServerException = class ServerException extends __BaseException {
|
|
32
27
|
name = "ServerException";
|
|
33
28
|
$fault = "server";
|
|
34
29
|
constructor(opts) {
|
|
@@ -39,9 +34,8 @@ class ServerException extends ECRServiceException_1.ECRServiceException {
|
|
|
39
34
|
});
|
|
40
35
|
Object.setPrototypeOf(this, ServerException.prototype);
|
|
41
36
|
}
|
|
42
|
-
}
|
|
43
|
-
exports.
|
|
44
|
-
class LimitExceededException extends ECRServiceException_1.ECRServiceException {
|
|
37
|
+
};
|
|
38
|
+
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
45
39
|
name = "LimitExceededException";
|
|
46
40
|
$fault = "client";
|
|
47
41
|
constructor(opts) {
|
|
@@ -52,9 +46,8 @@ class LimitExceededException extends ECRServiceException_1.ECRServiceException {
|
|
|
52
46
|
});
|
|
53
47
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
54
48
|
}
|
|
55
|
-
}
|
|
56
|
-
exports.
|
|
57
|
-
class UnableToGetUpstreamImageException extends ECRServiceException_1.ECRServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.UnableToGetUpstreamImageException = class UnableToGetUpstreamImageException extends __BaseException {
|
|
58
51
|
name = "UnableToGetUpstreamImageException";
|
|
59
52
|
$fault = "client";
|
|
60
53
|
constructor(opts) {
|
|
@@ -65,9 +58,8 @@ class UnableToGetUpstreamImageException extends ECRServiceException_1.ECRService
|
|
|
65
58
|
});
|
|
66
59
|
Object.setPrototypeOf(this, UnableToGetUpstreamImageException.prototype);
|
|
67
60
|
}
|
|
68
|
-
}
|
|
69
|
-
exports.
|
|
70
|
-
class ValidationException extends ECRServiceException_1.ECRServiceException {
|
|
61
|
+
};
|
|
62
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
71
63
|
name = "ValidationException";
|
|
72
64
|
$fault = "client";
|
|
73
65
|
constructor(opts) {
|
|
@@ -78,9 +70,8 @@ class ValidationException extends ECRServiceException_1.ECRServiceException {
|
|
|
78
70
|
});
|
|
79
71
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
80
72
|
}
|
|
81
|
-
}
|
|
82
|
-
exports.
|
|
83
|
-
class EmptyUploadException extends ECRServiceException_1.ECRServiceException {
|
|
73
|
+
};
|
|
74
|
+
exports.EmptyUploadException = class EmptyUploadException extends __BaseException {
|
|
84
75
|
name = "EmptyUploadException";
|
|
85
76
|
$fault = "client";
|
|
86
77
|
constructor(opts) {
|
|
@@ -91,9 +82,8 @@ class EmptyUploadException extends ECRServiceException_1.ECRServiceException {
|
|
|
91
82
|
});
|
|
92
83
|
Object.setPrototypeOf(this, EmptyUploadException.prototype);
|
|
93
84
|
}
|
|
94
|
-
}
|
|
95
|
-
exports.
|
|
96
|
-
class InvalidLayerException extends ECRServiceException_1.ECRServiceException {
|
|
85
|
+
};
|
|
86
|
+
exports.InvalidLayerException = class InvalidLayerException extends __BaseException {
|
|
97
87
|
name = "InvalidLayerException";
|
|
98
88
|
$fault = "client";
|
|
99
89
|
constructor(opts) {
|
|
@@ -104,9 +94,8 @@ class InvalidLayerException extends ECRServiceException_1.ECRServiceException {
|
|
|
104
94
|
});
|
|
105
95
|
Object.setPrototypeOf(this, InvalidLayerException.prototype);
|
|
106
96
|
}
|
|
107
|
-
}
|
|
108
|
-
exports.
|
|
109
|
-
class KmsException extends ECRServiceException_1.ECRServiceException {
|
|
97
|
+
};
|
|
98
|
+
exports.KmsException = class KmsException extends __BaseException {
|
|
110
99
|
name = "KmsException";
|
|
111
100
|
$fault = "client";
|
|
112
101
|
kmsError;
|
|
@@ -119,9 +108,8 @@ class KmsException extends ECRServiceException_1.ECRServiceException {
|
|
|
119
108
|
Object.setPrototypeOf(this, KmsException.prototype);
|
|
120
109
|
this.kmsError = opts.kmsError;
|
|
121
110
|
}
|
|
122
|
-
}
|
|
123
|
-
exports.
|
|
124
|
-
class LayerAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
111
|
+
};
|
|
112
|
+
exports.LayerAlreadyExistsException = class LayerAlreadyExistsException extends __BaseException {
|
|
125
113
|
name = "LayerAlreadyExistsException";
|
|
126
114
|
$fault = "client";
|
|
127
115
|
constructor(opts) {
|
|
@@ -132,9 +120,8 @@ class LayerAlreadyExistsException extends ECRServiceException_1.ECRServiceExcept
|
|
|
132
120
|
});
|
|
133
121
|
Object.setPrototypeOf(this, LayerAlreadyExistsException.prototype);
|
|
134
122
|
}
|
|
135
|
-
}
|
|
136
|
-
exports.
|
|
137
|
-
class LayerPartTooSmallException extends ECRServiceException_1.ECRServiceException {
|
|
123
|
+
};
|
|
124
|
+
exports.LayerPartTooSmallException = class LayerPartTooSmallException extends __BaseException {
|
|
138
125
|
name = "LayerPartTooSmallException";
|
|
139
126
|
$fault = "client";
|
|
140
127
|
constructor(opts) {
|
|
@@ -145,9 +132,8 @@ class LayerPartTooSmallException extends ECRServiceException_1.ECRServiceExcepti
|
|
|
145
132
|
});
|
|
146
133
|
Object.setPrototypeOf(this, LayerPartTooSmallException.prototype);
|
|
147
134
|
}
|
|
148
|
-
}
|
|
149
|
-
exports.
|
|
150
|
-
class UploadNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
135
|
+
};
|
|
136
|
+
exports.UploadNotFoundException = class UploadNotFoundException extends __BaseException {
|
|
151
137
|
name = "UploadNotFoundException";
|
|
152
138
|
$fault = "client";
|
|
153
139
|
constructor(opts) {
|
|
@@ -158,9 +144,8 @@ class UploadNotFoundException extends ECRServiceException_1.ECRServiceException
|
|
|
158
144
|
});
|
|
159
145
|
Object.setPrototypeOf(this, UploadNotFoundException.prototype);
|
|
160
146
|
}
|
|
161
|
-
}
|
|
162
|
-
exports.
|
|
163
|
-
class PullThroughCacheRuleAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
147
|
+
};
|
|
148
|
+
exports.PullThroughCacheRuleAlreadyExistsException = class PullThroughCacheRuleAlreadyExistsException extends __BaseException {
|
|
164
149
|
name = "PullThroughCacheRuleAlreadyExistsException";
|
|
165
150
|
$fault = "client";
|
|
166
151
|
constructor(opts) {
|
|
@@ -171,9 +156,8 @@ class PullThroughCacheRuleAlreadyExistsException extends ECRServiceException_1.E
|
|
|
171
156
|
});
|
|
172
157
|
Object.setPrototypeOf(this, PullThroughCacheRuleAlreadyExistsException.prototype);
|
|
173
158
|
}
|
|
174
|
-
}
|
|
175
|
-
exports.
|
|
176
|
-
class SecretNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
159
|
+
};
|
|
160
|
+
exports.SecretNotFoundException = class SecretNotFoundException extends __BaseException {
|
|
177
161
|
name = "SecretNotFoundException";
|
|
178
162
|
$fault = "client";
|
|
179
163
|
constructor(opts) {
|
|
@@ -184,9 +168,8 @@ class SecretNotFoundException extends ECRServiceException_1.ECRServiceException
|
|
|
184
168
|
});
|
|
185
169
|
Object.setPrototypeOf(this, SecretNotFoundException.prototype);
|
|
186
170
|
}
|
|
187
|
-
}
|
|
188
|
-
exports.
|
|
189
|
-
class UnableToAccessSecretException extends ECRServiceException_1.ECRServiceException {
|
|
171
|
+
};
|
|
172
|
+
exports.UnableToAccessSecretException = class UnableToAccessSecretException extends __BaseException {
|
|
190
173
|
name = "UnableToAccessSecretException";
|
|
191
174
|
$fault = "client";
|
|
192
175
|
constructor(opts) {
|
|
@@ -197,9 +180,8 @@ class UnableToAccessSecretException extends ECRServiceException_1.ECRServiceExce
|
|
|
197
180
|
});
|
|
198
181
|
Object.setPrototypeOf(this, UnableToAccessSecretException.prototype);
|
|
199
182
|
}
|
|
200
|
-
}
|
|
201
|
-
exports.
|
|
202
|
-
class UnableToDecryptSecretValueException extends ECRServiceException_1.ECRServiceException {
|
|
183
|
+
};
|
|
184
|
+
exports.UnableToDecryptSecretValueException = class UnableToDecryptSecretValueException extends __BaseException {
|
|
203
185
|
name = "UnableToDecryptSecretValueException";
|
|
204
186
|
$fault = "client";
|
|
205
187
|
constructor(opts) {
|
|
@@ -210,9 +192,8 @@ class UnableToDecryptSecretValueException extends ECRServiceException_1.ECRServi
|
|
|
210
192
|
});
|
|
211
193
|
Object.setPrototypeOf(this, UnableToDecryptSecretValueException.prototype);
|
|
212
194
|
}
|
|
213
|
-
}
|
|
214
|
-
exports.
|
|
215
|
-
class UnsupportedUpstreamRegistryException extends ECRServiceException_1.ECRServiceException {
|
|
195
|
+
};
|
|
196
|
+
exports.UnsupportedUpstreamRegistryException = class UnsupportedUpstreamRegistryException extends __BaseException {
|
|
216
197
|
name = "UnsupportedUpstreamRegistryException";
|
|
217
198
|
$fault = "client";
|
|
218
199
|
constructor(opts) {
|
|
@@ -223,9 +204,8 @@ class UnsupportedUpstreamRegistryException extends ECRServiceException_1.ECRServ
|
|
|
223
204
|
});
|
|
224
205
|
Object.setPrototypeOf(this, UnsupportedUpstreamRegistryException.prototype);
|
|
225
206
|
}
|
|
226
|
-
}
|
|
227
|
-
exports.
|
|
228
|
-
class InvalidTagParameterException extends ECRServiceException_1.ECRServiceException {
|
|
207
|
+
};
|
|
208
|
+
exports.InvalidTagParameterException = class InvalidTagParameterException extends __BaseException {
|
|
229
209
|
name = "InvalidTagParameterException";
|
|
230
210
|
$fault = "client";
|
|
231
211
|
constructor(opts) {
|
|
@@ -236,9 +216,8 @@ class InvalidTagParameterException extends ECRServiceException_1.ECRServiceExcep
|
|
|
236
216
|
});
|
|
237
217
|
Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
|
|
238
218
|
}
|
|
239
|
-
}
|
|
240
|
-
exports.
|
|
241
|
-
class RepositoryAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
219
|
+
};
|
|
220
|
+
exports.RepositoryAlreadyExistsException = class RepositoryAlreadyExistsException extends __BaseException {
|
|
242
221
|
name = "RepositoryAlreadyExistsException";
|
|
243
222
|
$fault = "client";
|
|
244
223
|
constructor(opts) {
|
|
@@ -249,9 +228,8 @@ class RepositoryAlreadyExistsException extends ECRServiceException_1.ECRServiceE
|
|
|
249
228
|
});
|
|
250
229
|
Object.setPrototypeOf(this, RepositoryAlreadyExistsException.prototype);
|
|
251
230
|
}
|
|
252
|
-
}
|
|
253
|
-
exports.
|
|
254
|
-
class TooManyTagsException extends ECRServiceException_1.ECRServiceException {
|
|
231
|
+
};
|
|
232
|
+
exports.TooManyTagsException = class TooManyTagsException extends __BaseException {
|
|
255
233
|
name = "TooManyTagsException";
|
|
256
234
|
$fault = "client";
|
|
257
235
|
constructor(opts) {
|
|
@@ -262,9 +240,8 @@ class TooManyTagsException extends ECRServiceException_1.ECRServiceException {
|
|
|
262
240
|
});
|
|
263
241
|
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
264
242
|
}
|
|
265
|
-
}
|
|
266
|
-
exports.
|
|
267
|
-
class TemplateAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
243
|
+
};
|
|
244
|
+
exports.TemplateAlreadyExistsException = class TemplateAlreadyExistsException extends __BaseException {
|
|
268
245
|
name = "TemplateAlreadyExistsException";
|
|
269
246
|
$fault = "client";
|
|
270
247
|
constructor(opts) {
|
|
@@ -275,9 +252,8 @@ class TemplateAlreadyExistsException extends ECRServiceException_1.ECRServiceExc
|
|
|
275
252
|
});
|
|
276
253
|
Object.setPrototypeOf(this, TemplateAlreadyExistsException.prototype);
|
|
277
254
|
}
|
|
278
|
-
}
|
|
279
|
-
exports.
|
|
280
|
-
class LifecyclePolicyNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
255
|
+
};
|
|
256
|
+
exports.LifecyclePolicyNotFoundException = class LifecyclePolicyNotFoundException extends __BaseException {
|
|
281
257
|
name = "LifecyclePolicyNotFoundException";
|
|
282
258
|
$fault = "client";
|
|
283
259
|
constructor(opts) {
|
|
@@ -288,9 +264,8 @@ class LifecyclePolicyNotFoundException extends ECRServiceException_1.ECRServiceE
|
|
|
288
264
|
});
|
|
289
265
|
Object.setPrototypeOf(this, LifecyclePolicyNotFoundException.prototype);
|
|
290
266
|
}
|
|
291
|
-
}
|
|
292
|
-
exports.
|
|
293
|
-
class PullThroughCacheRuleNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
267
|
+
};
|
|
268
|
+
exports.PullThroughCacheRuleNotFoundException = class PullThroughCacheRuleNotFoundException extends __BaseException {
|
|
294
269
|
name = "PullThroughCacheRuleNotFoundException";
|
|
295
270
|
$fault = "client";
|
|
296
271
|
constructor(opts) {
|
|
@@ -301,9 +276,8 @@ class PullThroughCacheRuleNotFoundException extends ECRServiceException_1.ECRSer
|
|
|
301
276
|
});
|
|
302
277
|
Object.setPrototypeOf(this, PullThroughCacheRuleNotFoundException.prototype);
|
|
303
278
|
}
|
|
304
|
-
}
|
|
305
|
-
exports.
|
|
306
|
-
class RegistryPolicyNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
279
|
+
};
|
|
280
|
+
exports.RegistryPolicyNotFoundException = class RegistryPolicyNotFoundException extends __BaseException {
|
|
307
281
|
name = "RegistryPolicyNotFoundException";
|
|
308
282
|
$fault = "client";
|
|
309
283
|
constructor(opts) {
|
|
@@ -314,9 +288,8 @@ class RegistryPolicyNotFoundException extends ECRServiceException_1.ECRServiceEx
|
|
|
314
288
|
});
|
|
315
289
|
Object.setPrototypeOf(this, RegistryPolicyNotFoundException.prototype);
|
|
316
290
|
}
|
|
317
|
-
}
|
|
318
|
-
exports.
|
|
319
|
-
class RepositoryNotEmptyException extends ECRServiceException_1.ECRServiceException {
|
|
291
|
+
};
|
|
292
|
+
exports.RepositoryNotEmptyException = class RepositoryNotEmptyException extends __BaseException {
|
|
320
293
|
name = "RepositoryNotEmptyException";
|
|
321
294
|
$fault = "client";
|
|
322
295
|
constructor(opts) {
|
|
@@ -327,9 +300,8 @@ class RepositoryNotEmptyException extends ECRServiceException_1.ECRServiceExcept
|
|
|
327
300
|
});
|
|
328
301
|
Object.setPrototypeOf(this, RepositoryNotEmptyException.prototype);
|
|
329
302
|
}
|
|
330
|
-
}
|
|
331
|
-
exports.
|
|
332
|
-
class TemplateNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
303
|
+
};
|
|
304
|
+
exports.TemplateNotFoundException = class TemplateNotFoundException extends __BaseException {
|
|
333
305
|
name = "TemplateNotFoundException";
|
|
334
306
|
$fault = "client";
|
|
335
307
|
constructor(opts) {
|
|
@@ -340,9 +312,8 @@ class TemplateNotFoundException extends ECRServiceException_1.ECRServiceExceptio
|
|
|
340
312
|
});
|
|
341
313
|
Object.setPrototypeOf(this, TemplateNotFoundException.prototype);
|
|
342
314
|
}
|
|
343
|
-
}
|
|
344
|
-
exports.
|
|
345
|
-
class RepositoryPolicyNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
315
|
+
};
|
|
316
|
+
exports.RepositoryPolicyNotFoundException = class RepositoryPolicyNotFoundException extends __BaseException {
|
|
346
317
|
name = "RepositoryPolicyNotFoundException";
|
|
347
318
|
$fault = "client";
|
|
348
319
|
constructor(opts) {
|
|
@@ -353,9 +324,8 @@ class RepositoryPolicyNotFoundException extends ECRServiceException_1.ECRService
|
|
|
353
324
|
});
|
|
354
325
|
Object.setPrototypeOf(this, RepositoryPolicyNotFoundException.prototype);
|
|
355
326
|
}
|
|
356
|
-
}
|
|
357
|
-
exports.
|
|
358
|
-
class SigningConfigurationNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
327
|
+
};
|
|
328
|
+
exports.SigningConfigurationNotFoundException = class SigningConfigurationNotFoundException extends __BaseException {
|
|
359
329
|
name = "SigningConfigurationNotFoundException";
|
|
360
330
|
$fault = "client";
|
|
361
331
|
constructor(opts) {
|
|
@@ -366,9 +336,8 @@ class SigningConfigurationNotFoundException extends ECRServiceException_1.ECRSer
|
|
|
366
336
|
});
|
|
367
337
|
Object.setPrototypeOf(this, SigningConfigurationNotFoundException.prototype);
|
|
368
338
|
}
|
|
369
|
-
}
|
|
370
|
-
exports.
|
|
371
|
-
class ExclusionNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
339
|
+
};
|
|
340
|
+
exports.ExclusionNotFoundException = class ExclusionNotFoundException extends __BaseException {
|
|
372
341
|
name = "ExclusionNotFoundException";
|
|
373
342
|
$fault = "client";
|
|
374
343
|
constructor(opts) {
|
|
@@ -379,9 +348,8 @@ class ExclusionNotFoundException extends ECRServiceException_1.ECRServiceExcepti
|
|
|
379
348
|
});
|
|
380
349
|
Object.setPrototypeOf(this, ExclusionNotFoundException.prototype);
|
|
381
350
|
}
|
|
382
|
-
}
|
|
383
|
-
exports.
|
|
384
|
-
class ImageNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
351
|
+
};
|
|
352
|
+
exports.ImageNotFoundException = class ImageNotFoundException extends __BaseException {
|
|
385
353
|
name = "ImageNotFoundException";
|
|
386
354
|
$fault = "client";
|
|
387
355
|
constructor(opts) {
|
|
@@ -392,9 +360,8 @@ class ImageNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
|
392
360
|
});
|
|
393
361
|
Object.setPrototypeOf(this, ImageNotFoundException.prototype);
|
|
394
362
|
}
|
|
395
|
-
}
|
|
396
|
-
exports.
|
|
397
|
-
class ScanNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
363
|
+
};
|
|
364
|
+
exports.ScanNotFoundException = class ScanNotFoundException extends __BaseException {
|
|
398
365
|
name = "ScanNotFoundException";
|
|
399
366
|
$fault = "client";
|
|
400
367
|
constructor(opts) {
|
|
@@ -405,9 +372,8 @@ class ScanNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
|
405
372
|
});
|
|
406
373
|
Object.setPrototypeOf(this, ScanNotFoundException.prototype);
|
|
407
374
|
}
|
|
408
|
-
}
|
|
409
|
-
exports.
|
|
410
|
-
class LayerInaccessibleException extends ECRServiceException_1.ECRServiceException {
|
|
375
|
+
};
|
|
376
|
+
exports.LayerInaccessibleException = class LayerInaccessibleException extends __BaseException {
|
|
411
377
|
name = "LayerInaccessibleException";
|
|
412
378
|
$fault = "client";
|
|
413
379
|
constructor(opts) {
|
|
@@ -418,9 +384,8 @@ class LayerInaccessibleException extends ECRServiceException_1.ECRServiceExcepti
|
|
|
418
384
|
});
|
|
419
385
|
Object.setPrototypeOf(this, LayerInaccessibleException.prototype);
|
|
420
386
|
}
|
|
421
|
-
}
|
|
422
|
-
exports.
|
|
423
|
-
class LayersNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
387
|
+
};
|
|
388
|
+
exports.LayersNotFoundException = class LayersNotFoundException extends __BaseException {
|
|
424
389
|
name = "LayersNotFoundException";
|
|
425
390
|
$fault = "client";
|
|
426
391
|
constructor(opts) {
|
|
@@ -431,9 +396,8 @@ class LayersNotFoundException extends ECRServiceException_1.ECRServiceException
|
|
|
431
396
|
});
|
|
432
397
|
Object.setPrototypeOf(this, LayersNotFoundException.prototype);
|
|
433
398
|
}
|
|
434
|
-
}
|
|
435
|
-
exports.
|
|
436
|
-
class UnableToGetUpstreamLayerException extends ECRServiceException_1.ECRServiceException {
|
|
399
|
+
};
|
|
400
|
+
exports.UnableToGetUpstreamLayerException = class UnableToGetUpstreamLayerException extends __BaseException {
|
|
437
401
|
name = "UnableToGetUpstreamLayerException";
|
|
438
402
|
$fault = "client";
|
|
439
403
|
constructor(opts) {
|
|
@@ -444,9 +408,8 @@ class UnableToGetUpstreamLayerException extends ECRServiceException_1.ECRService
|
|
|
444
408
|
});
|
|
445
409
|
Object.setPrototypeOf(this, UnableToGetUpstreamLayerException.prototype);
|
|
446
410
|
}
|
|
447
|
-
}
|
|
448
|
-
exports.
|
|
449
|
-
class LifecyclePolicyPreviewNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
411
|
+
};
|
|
412
|
+
exports.LifecyclePolicyPreviewNotFoundException = class LifecyclePolicyPreviewNotFoundException extends __BaseException {
|
|
450
413
|
name = "LifecyclePolicyPreviewNotFoundException";
|
|
451
414
|
$fault = "client";
|
|
452
415
|
constructor(opts) {
|
|
@@ -457,9 +420,8 @@ class LifecyclePolicyPreviewNotFoundException extends ECRServiceException_1.ECRS
|
|
|
457
420
|
});
|
|
458
421
|
Object.setPrototypeOf(this, LifecyclePolicyPreviewNotFoundException.prototype);
|
|
459
422
|
}
|
|
460
|
-
}
|
|
461
|
-
exports.
|
|
462
|
-
class UnableToListUpstreamImageReferrersException extends ECRServiceException_1.ECRServiceException {
|
|
423
|
+
};
|
|
424
|
+
exports.UnableToListUpstreamImageReferrersException = class UnableToListUpstreamImageReferrersException extends __BaseException {
|
|
463
425
|
name = "UnableToListUpstreamImageReferrersException";
|
|
464
426
|
$fault = "client";
|
|
465
427
|
constructor(opts) {
|
|
@@ -470,9 +432,8 @@ class UnableToListUpstreamImageReferrersException extends ECRServiceException_1.
|
|
|
470
432
|
});
|
|
471
433
|
Object.setPrototypeOf(this, UnableToListUpstreamImageReferrersException.prototype);
|
|
472
434
|
}
|
|
473
|
-
}
|
|
474
|
-
exports.
|
|
475
|
-
class ImageAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
435
|
+
};
|
|
436
|
+
exports.ImageAlreadyExistsException = class ImageAlreadyExistsException extends __BaseException {
|
|
476
437
|
name = "ImageAlreadyExistsException";
|
|
477
438
|
$fault = "client";
|
|
478
439
|
constructor(opts) {
|
|
@@ -483,9 +444,8 @@ class ImageAlreadyExistsException extends ECRServiceException_1.ECRServiceExcept
|
|
|
483
444
|
});
|
|
484
445
|
Object.setPrototypeOf(this, ImageAlreadyExistsException.prototype);
|
|
485
446
|
}
|
|
486
|
-
}
|
|
487
|
-
exports.
|
|
488
|
-
class ImageDigestDoesNotMatchException extends ECRServiceException_1.ECRServiceException {
|
|
447
|
+
};
|
|
448
|
+
exports.ImageDigestDoesNotMatchException = class ImageDigestDoesNotMatchException extends __BaseException {
|
|
489
449
|
name = "ImageDigestDoesNotMatchException";
|
|
490
450
|
$fault = "client";
|
|
491
451
|
constructor(opts) {
|
|
@@ -496,9 +456,8 @@ class ImageDigestDoesNotMatchException extends ECRServiceException_1.ECRServiceE
|
|
|
496
456
|
});
|
|
497
457
|
Object.setPrototypeOf(this, ImageDigestDoesNotMatchException.prototype);
|
|
498
458
|
}
|
|
499
|
-
}
|
|
500
|
-
exports.
|
|
501
|
-
class ImageTagAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
459
|
+
};
|
|
460
|
+
exports.ImageTagAlreadyExistsException = class ImageTagAlreadyExistsException extends __BaseException {
|
|
502
461
|
name = "ImageTagAlreadyExistsException";
|
|
503
462
|
$fault = "client";
|
|
504
463
|
constructor(opts) {
|
|
@@ -509,9 +468,8 @@ class ImageTagAlreadyExistsException extends ECRServiceException_1.ECRServiceExc
|
|
|
509
468
|
});
|
|
510
469
|
Object.setPrototypeOf(this, ImageTagAlreadyExistsException.prototype);
|
|
511
470
|
}
|
|
512
|
-
}
|
|
513
|
-
exports.
|
|
514
|
-
class ReferencedImagesNotFoundException extends ECRServiceException_1.ECRServiceException {
|
|
471
|
+
};
|
|
472
|
+
exports.ReferencedImagesNotFoundException = class ReferencedImagesNotFoundException extends __BaseException {
|
|
515
473
|
name = "ReferencedImagesNotFoundException";
|
|
516
474
|
$fault = "client";
|
|
517
475
|
constructor(opts) {
|
|
@@ -522,9 +480,8 @@ class ReferencedImagesNotFoundException extends ECRServiceException_1.ECRService
|
|
|
522
480
|
});
|
|
523
481
|
Object.setPrototypeOf(this, ReferencedImagesNotFoundException.prototype);
|
|
524
482
|
}
|
|
525
|
-
}
|
|
526
|
-
exports.
|
|
527
|
-
class BlockedByOrganizationPolicyException extends ECRServiceException_1.ECRServiceException {
|
|
483
|
+
};
|
|
484
|
+
exports.BlockedByOrganizationPolicyException = class BlockedByOrganizationPolicyException extends __BaseException {
|
|
528
485
|
name = "BlockedByOrganizationPolicyException";
|
|
529
486
|
$fault = "client";
|
|
530
487
|
constructor(opts) {
|
|
@@ -535,9 +492,8 @@ class BlockedByOrganizationPolicyException extends ECRServiceException_1.ECRServ
|
|
|
535
492
|
});
|
|
536
493
|
Object.setPrototypeOf(this, BlockedByOrganizationPolicyException.prototype);
|
|
537
494
|
}
|
|
538
|
-
}
|
|
539
|
-
exports.
|
|
540
|
-
class ExclusionAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
|
|
495
|
+
};
|
|
496
|
+
exports.ExclusionAlreadyExistsException = class ExclusionAlreadyExistsException extends __BaseException {
|
|
541
497
|
name = "ExclusionAlreadyExistsException";
|
|
542
498
|
$fault = "client";
|
|
543
499
|
constructor(opts) {
|
|
@@ -548,9 +504,8 @@ class ExclusionAlreadyExistsException extends ECRServiceException_1.ECRServiceEx
|
|
|
548
504
|
});
|
|
549
505
|
Object.setPrototypeOf(this, ExclusionAlreadyExistsException.prototype);
|
|
550
506
|
}
|
|
551
|
-
}
|
|
552
|
-
exports.
|
|
553
|
-
class ImageArchivedException extends ECRServiceException_1.ECRServiceException {
|
|
507
|
+
};
|
|
508
|
+
exports.ImageArchivedException = class ImageArchivedException extends __BaseException {
|
|
554
509
|
name = "ImageArchivedException";
|
|
555
510
|
$fault = "client";
|
|
556
511
|
constructor(opts) {
|
|
@@ -561,9 +516,8 @@ class ImageArchivedException extends ECRServiceException_1.ECRServiceException {
|
|
|
561
516
|
});
|
|
562
517
|
Object.setPrototypeOf(this, ImageArchivedException.prototype);
|
|
563
518
|
}
|
|
564
|
-
}
|
|
565
|
-
exports.
|
|
566
|
-
class UnsupportedImageTypeException extends ECRServiceException_1.ECRServiceException {
|
|
519
|
+
};
|
|
520
|
+
exports.UnsupportedImageTypeException = class UnsupportedImageTypeException extends __BaseException {
|
|
567
521
|
name = "UnsupportedImageTypeException";
|
|
568
522
|
$fault = "client";
|
|
569
523
|
constructor(opts) {
|
|
@@ -574,9 +528,8 @@ class UnsupportedImageTypeException extends ECRServiceException_1.ECRServiceExce
|
|
|
574
528
|
});
|
|
575
529
|
Object.setPrototypeOf(this, UnsupportedImageTypeException.prototype);
|
|
576
530
|
}
|
|
577
|
-
}
|
|
578
|
-
exports.
|
|
579
|
-
class LifecyclePolicyPreviewInProgressException extends ECRServiceException_1.ECRServiceException {
|
|
531
|
+
};
|
|
532
|
+
exports.LifecyclePolicyPreviewInProgressException = class LifecyclePolicyPreviewInProgressException extends __BaseException {
|
|
580
533
|
name = "LifecyclePolicyPreviewInProgressException";
|
|
581
534
|
$fault = "client";
|
|
582
535
|
constructor(opts) {
|
|
@@ -587,9 +540,8 @@ class LifecyclePolicyPreviewInProgressException extends ECRServiceException_1.EC
|
|
|
587
540
|
});
|
|
588
541
|
Object.setPrototypeOf(this, LifecyclePolicyPreviewInProgressException.prototype);
|
|
589
542
|
}
|
|
590
|
-
}
|
|
591
|
-
exports.
|
|
592
|
-
class ImageStorageClassUpdateNotSupportedException extends ECRServiceException_1.ECRServiceException {
|
|
543
|
+
};
|
|
544
|
+
exports.ImageStorageClassUpdateNotSupportedException = class ImageStorageClassUpdateNotSupportedException extends __BaseException {
|
|
593
545
|
name = "ImageStorageClassUpdateNotSupportedException";
|
|
594
546
|
$fault = "client";
|
|
595
547
|
constructor(opts) {
|
|
@@ -600,9 +552,8 @@ class ImageStorageClassUpdateNotSupportedException extends ECRServiceException_1
|
|
|
600
552
|
});
|
|
601
553
|
Object.setPrototypeOf(this, ImageStorageClassUpdateNotSupportedException.prototype);
|
|
602
554
|
}
|
|
603
|
-
}
|
|
604
|
-
exports.
|
|
605
|
-
class InvalidLayerPartException extends ECRServiceException_1.ECRServiceException {
|
|
555
|
+
};
|
|
556
|
+
exports.InvalidLayerPartException = class InvalidLayerPartException extends __BaseException {
|
|
606
557
|
name = "InvalidLayerPartException";
|
|
607
558
|
$fault = "client";
|
|
608
559
|
registryId;
|
|
@@ -621,5 +572,4 @@ class InvalidLayerPartException extends ECRServiceException_1.ECRServiceExceptio
|
|
|
621
572
|
this.uploadId = opts.uploadId;
|
|
622
573
|
this.lastValidByteReceived = opts.lastValidByteReceived;
|
|
623
574
|
}
|
|
624
|
-
}
|
|
625
|
-
exports.InvalidLayerPartException = InvalidLayerPartException;
|
|
575
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|