@aws-sdk/client-ecr 3.301.0 → 3.306.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.
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidLayerPartException = exports.LifecyclePolicyPreviewInProgressException = exports.UnsupportedImageTypeException = exports.ReferencedImagesNotFoundException = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.ScanType = exports.LifecyclePolicyPreviewNotFoundException = exports.LifecyclePolicyPreviewStatus = exports.ImageActionType = exports.LayersNotFoundException = exports.LayerInaccessibleException = exports.RepositoryFilterType = exports.ScanNotFoundException = exports.ScanStatus = exports.FindingSeverity = exports.TagStatus = exports.ImageNotFoundException = exports.ReplicationStatus = exports.RepositoryPolicyNotFoundException = exports.RepositoryNotEmptyException = exports.RegistryPolicyNotFoundException = exports.PullThroughCacheRuleNotFoundException = exports.LifecyclePolicyNotFoundException = exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.InvalidTagParameterException = exports.ImageTagMutability = exports.EncryptionType = exports.UnsupportedUpstreamRegistryException = exports.PullThroughCacheRuleAlreadyExistsException = exports.LimitExceededException = exports.UploadNotFoundException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.KmsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.ValidationException = exports.ScanFrequency = exports.ScanningRepositoryFilterType = exports.ScanningConfigurationFailureCode = exports.ImageFailureCode = exports.ServerException = exports.RepositoryNotFoundException = exports.InvalidParameterException = exports.LayerAvailability = exports.LayerFailureCode = void 0;
4
4
  const ECRServiceException_1 = require("./ECRServiceException");
5
- var LayerFailureCode;
6
- (function (LayerFailureCode) {
7
- LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest";
8
- LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest";
9
- })(LayerFailureCode = exports.LayerFailureCode || (exports.LayerFailureCode = {}));
10
- var LayerAvailability;
11
- (function (LayerAvailability) {
12
- LayerAvailability["AVAILABLE"] = "AVAILABLE";
13
- LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE";
14
- })(LayerAvailability = exports.LayerAvailability || (exports.LayerAvailability = {}));
5
+ exports.LayerFailureCode = {
6
+ InvalidLayerDigest: "InvalidLayerDigest",
7
+ MissingLayerDigest: "MissingLayerDigest",
8
+ };
9
+ exports.LayerAvailability = {
10
+ AVAILABLE: "AVAILABLE",
11
+ UNAVAILABLE: "UNAVAILABLE",
12
+ };
15
13
  class InvalidParameterException extends ECRServiceException_1.ECRServiceException {
16
14
  constructor(opts) {
17
15
  super({
@@ -51,30 +49,26 @@ class ServerException extends ECRServiceException_1.ECRServiceException {
51
49
  }
52
50
  }
53
51
  exports.ServerException = ServerException;
54
- var ImageFailureCode;
55
- (function (ImageFailureCode) {
56
- ImageFailureCode["ImageNotFound"] = "ImageNotFound";
57
- ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList";
58
- ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest";
59
- ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest";
60
- ImageFailureCode["InvalidImageTag"] = "InvalidImageTag";
61
- ImageFailureCode["KmsError"] = "KmsError";
62
- ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag";
63
- })(ImageFailureCode = exports.ImageFailureCode || (exports.ImageFailureCode = {}));
64
- var ScanningConfigurationFailureCode;
65
- (function (ScanningConfigurationFailureCode) {
66
- ScanningConfigurationFailureCode["REPOSITORY_NOT_FOUND"] = "REPOSITORY_NOT_FOUND";
67
- })(ScanningConfigurationFailureCode = exports.ScanningConfigurationFailureCode || (exports.ScanningConfigurationFailureCode = {}));
68
- var ScanningRepositoryFilterType;
69
- (function (ScanningRepositoryFilterType) {
70
- ScanningRepositoryFilterType["WILDCARD"] = "WILDCARD";
71
- })(ScanningRepositoryFilterType = exports.ScanningRepositoryFilterType || (exports.ScanningRepositoryFilterType = {}));
72
- var ScanFrequency;
73
- (function (ScanFrequency) {
74
- ScanFrequency["CONTINUOUS_SCAN"] = "CONTINUOUS_SCAN";
75
- ScanFrequency["MANUAL"] = "MANUAL";
76
- ScanFrequency["SCAN_ON_PUSH"] = "SCAN_ON_PUSH";
77
- })(ScanFrequency = exports.ScanFrequency || (exports.ScanFrequency = {}));
52
+ exports.ImageFailureCode = {
53
+ ImageNotFound: "ImageNotFound",
54
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
55
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
56
+ InvalidImageDigest: "InvalidImageDigest",
57
+ InvalidImageTag: "InvalidImageTag",
58
+ KmsError: "KmsError",
59
+ MissingDigestAndTag: "MissingDigestAndTag",
60
+ };
61
+ exports.ScanningConfigurationFailureCode = {
62
+ REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND",
63
+ };
64
+ exports.ScanningRepositoryFilterType = {
65
+ WILDCARD: "WILDCARD",
66
+ };
67
+ exports.ScanFrequency = {
68
+ CONTINUOUS_SCAN: "CONTINUOUS_SCAN",
69
+ MANUAL: "MANUAL",
70
+ SCAN_ON_PUSH: "SCAN_ON_PUSH",
71
+ };
78
72
  class ValidationException extends ECRServiceException_1.ECRServiceException {
79
73
  constructor(opts) {
80
74
  super({
@@ -206,16 +200,14 @@ class UnsupportedUpstreamRegistryException extends ECRServiceException_1.ECRServ
206
200
  }
207
201
  }
208
202
  exports.UnsupportedUpstreamRegistryException = UnsupportedUpstreamRegistryException;
209
- var EncryptionType;
210
- (function (EncryptionType) {
211
- EncryptionType["AES256"] = "AES256";
212
- EncryptionType["KMS"] = "KMS";
213
- })(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
214
- var ImageTagMutability;
215
- (function (ImageTagMutability) {
216
- ImageTagMutability["IMMUTABLE"] = "IMMUTABLE";
217
- ImageTagMutability["MUTABLE"] = "MUTABLE";
218
- })(ImageTagMutability = exports.ImageTagMutability || (exports.ImageTagMutability = {}));
203
+ exports.EncryptionType = {
204
+ AES256: "AES256",
205
+ KMS: "KMS",
206
+ };
207
+ exports.ImageTagMutability = {
208
+ IMMUTABLE: "IMMUTABLE",
209
+ MUTABLE: "MUTABLE",
210
+ };
219
211
  class InvalidTagParameterException extends ECRServiceException_1.ECRServiceException {
220
212
  constructor(opts) {
221
213
  super({
@@ -320,12 +312,11 @@ class RepositoryPolicyNotFoundException extends ECRServiceException_1.ECRService
320
312
  }
321
313
  }
322
314
  exports.RepositoryPolicyNotFoundException = RepositoryPolicyNotFoundException;
323
- var ReplicationStatus;
324
- (function (ReplicationStatus) {
325
- ReplicationStatus["COMPLETE"] = "COMPLETE";
326
- ReplicationStatus["FAILED"] = "FAILED";
327
- ReplicationStatus["IN_PROGRESS"] = "IN_PROGRESS";
328
- })(ReplicationStatus = exports.ReplicationStatus || (exports.ReplicationStatus = {}));
315
+ exports.ReplicationStatus = {
316
+ COMPLETE: "COMPLETE",
317
+ FAILED: "FAILED",
318
+ IN_PROGRESS: "IN_PROGRESS",
319
+ };
329
320
  class ImageNotFoundException extends ECRServiceException_1.ECRServiceException {
330
321
  constructor(opts) {
331
322
  super({
@@ -339,32 +330,29 @@ class ImageNotFoundException extends ECRServiceException_1.ECRServiceException {
339
330
  }
340
331
  }
341
332
  exports.ImageNotFoundException = ImageNotFoundException;
342
- var TagStatus;
343
- (function (TagStatus) {
344
- TagStatus["ANY"] = "ANY";
345
- TagStatus["TAGGED"] = "TAGGED";
346
- TagStatus["UNTAGGED"] = "UNTAGGED";
347
- })(TagStatus = exports.TagStatus || (exports.TagStatus = {}));
348
- var FindingSeverity;
349
- (function (FindingSeverity) {
350
- FindingSeverity["CRITICAL"] = "CRITICAL";
351
- FindingSeverity["HIGH"] = "HIGH";
352
- FindingSeverity["INFORMATIONAL"] = "INFORMATIONAL";
353
- FindingSeverity["LOW"] = "LOW";
354
- FindingSeverity["MEDIUM"] = "MEDIUM";
355
- FindingSeverity["UNDEFINED"] = "UNDEFINED";
356
- })(FindingSeverity = exports.FindingSeverity || (exports.FindingSeverity = {}));
357
- var ScanStatus;
358
- (function (ScanStatus) {
359
- ScanStatus["ACTIVE"] = "ACTIVE";
360
- ScanStatus["COMPLETE"] = "COMPLETE";
361
- ScanStatus["FAILED"] = "FAILED";
362
- ScanStatus["FINDINGS_UNAVAILABLE"] = "FINDINGS_UNAVAILABLE";
363
- ScanStatus["IN_PROGRESS"] = "IN_PROGRESS";
364
- ScanStatus["PENDING"] = "PENDING";
365
- ScanStatus["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED";
366
- ScanStatus["UNSUPPORTED_IMAGE"] = "UNSUPPORTED_IMAGE";
367
- })(ScanStatus = exports.ScanStatus || (exports.ScanStatus = {}));
333
+ exports.TagStatus = {
334
+ ANY: "ANY",
335
+ TAGGED: "TAGGED",
336
+ UNTAGGED: "UNTAGGED",
337
+ };
338
+ exports.FindingSeverity = {
339
+ CRITICAL: "CRITICAL",
340
+ HIGH: "HIGH",
341
+ INFORMATIONAL: "INFORMATIONAL",
342
+ LOW: "LOW",
343
+ MEDIUM: "MEDIUM",
344
+ UNDEFINED: "UNDEFINED",
345
+ };
346
+ exports.ScanStatus = {
347
+ ACTIVE: "ACTIVE",
348
+ COMPLETE: "COMPLETE",
349
+ FAILED: "FAILED",
350
+ FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE",
351
+ IN_PROGRESS: "IN_PROGRESS",
352
+ PENDING: "PENDING",
353
+ SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
354
+ UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE",
355
+ };
368
356
  class ScanNotFoundException extends ECRServiceException_1.ECRServiceException {
369
357
  constructor(opts) {
370
358
  super({
@@ -378,10 +366,9 @@ class ScanNotFoundException extends ECRServiceException_1.ECRServiceException {
378
366
  }
379
367
  }
380
368
  exports.ScanNotFoundException = ScanNotFoundException;
381
- var RepositoryFilterType;
382
- (function (RepositoryFilterType) {
383
- RepositoryFilterType["PREFIX_MATCH"] = "PREFIX_MATCH";
384
- })(RepositoryFilterType = exports.RepositoryFilterType || (exports.RepositoryFilterType = {}));
369
+ exports.RepositoryFilterType = {
370
+ PREFIX_MATCH: "PREFIX_MATCH",
371
+ };
385
372
  class LayerInaccessibleException extends ECRServiceException_1.ECRServiceException {
386
373
  constructor(opts) {
387
374
  super({
@@ -408,17 +395,15 @@ class LayersNotFoundException extends ECRServiceException_1.ECRServiceException
408
395
  }
409
396
  }
410
397
  exports.LayersNotFoundException = LayersNotFoundException;
411
- var ImageActionType;
412
- (function (ImageActionType) {
413
- ImageActionType["EXPIRE"] = "EXPIRE";
414
- })(ImageActionType = exports.ImageActionType || (exports.ImageActionType = {}));
415
- var LifecyclePolicyPreviewStatus;
416
- (function (LifecyclePolicyPreviewStatus) {
417
- LifecyclePolicyPreviewStatus["COMPLETE"] = "COMPLETE";
418
- LifecyclePolicyPreviewStatus["EXPIRED"] = "EXPIRED";
419
- LifecyclePolicyPreviewStatus["FAILED"] = "FAILED";
420
- LifecyclePolicyPreviewStatus["IN_PROGRESS"] = "IN_PROGRESS";
421
- })(LifecyclePolicyPreviewStatus = exports.LifecyclePolicyPreviewStatus || (exports.LifecyclePolicyPreviewStatus = {}));
398
+ exports.ImageActionType = {
399
+ EXPIRE: "EXPIRE",
400
+ };
401
+ exports.LifecyclePolicyPreviewStatus = {
402
+ COMPLETE: "COMPLETE",
403
+ EXPIRED: "EXPIRED",
404
+ FAILED: "FAILED",
405
+ IN_PROGRESS: "IN_PROGRESS",
406
+ };
422
407
  class LifecyclePolicyPreviewNotFoundException extends ECRServiceException_1.ECRServiceException {
423
408
  constructor(opts) {
424
409
  super({
@@ -432,11 +417,10 @@ class LifecyclePolicyPreviewNotFoundException extends ECRServiceException_1.ECRS
432
417
  }
433
418
  }
434
419
  exports.LifecyclePolicyPreviewNotFoundException = LifecyclePolicyPreviewNotFoundException;
435
- var ScanType;
436
- (function (ScanType) {
437
- ScanType["BASIC"] = "BASIC";
438
- ScanType["ENHANCED"] = "ENHANCED";
439
- })(ScanType = exports.ScanType || (exports.ScanType = {}));
420
+ exports.ScanType = {
421
+ BASIC: "BASIC",
422
+ ENHANCED: "ENHANCED",
423
+ };
440
424
  class ImageAlreadyExistsException extends ECRServiceException_1.ECRServiceException {
441
425
  constructor(opts) {
442
426
  super({
@@ -1,14 +1,12 @@
1
1
  import { ECRServiceException as __BaseException } from "./ECRServiceException";
2
- export var LayerFailureCode;
3
- (function (LayerFailureCode) {
4
- LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest";
5
- LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest";
6
- })(LayerFailureCode || (LayerFailureCode = {}));
7
- export var LayerAvailability;
8
- (function (LayerAvailability) {
9
- LayerAvailability["AVAILABLE"] = "AVAILABLE";
10
- LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE";
11
- })(LayerAvailability || (LayerAvailability = {}));
2
+ export const LayerFailureCode = {
3
+ InvalidLayerDigest: "InvalidLayerDigest",
4
+ MissingLayerDigest: "MissingLayerDigest",
5
+ };
6
+ export const LayerAvailability = {
7
+ AVAILABLE: "AVAILABLE",
8
+ UNAVAILABLE: "UNAVAILABLE",
9
+ };
12
10
  export class InvalidParameterException extends __BaseException {
13
11
  constructor(opts) {
14
12
  super({
@@ -45,30 +43,26 @@ export class ServerException extends __BaseException {
45
43
  Object.setPrototypeOf(this, ServerException.prototype);
46
44
  }
47
45
  }
48
- export var ImageFailureCode;
49
- (function (ImageFailureCode) {
50
- ImageFailureCode["ImageNotFound"] = "ImageNotFound";
51
- ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList";
52
- ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest";
53
- ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest";
54
- ImageFailureCode["InvalidImageTag"] = "InvalidImageTag";
55
- ImageFailureCode["KmsError"] = "KmsError";
56
- ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag";
57
- })(ImageFailureCode || (ImageFailureCode = {}));
58
- export var ScanningConfigurationFailureCode;
59
- (function (ScanningConfigurationFailureCode) {
60
- ScanningConfigurationFailureCode["REPOSITORY_NOT_FOUND"] = "REPOSITORY_NOT_FOUND";
61
- })(ScanningConfigurationFailureCode || (ScanningConfigurationFailureCode = {}));
62
- export var ScanningRepositoryFilterType;
63
- (function (ScanningRepositoryFilterType) {
64
- ScanningRepositoryFilterType["WILDCARD"] = "WILDCARD";
65
- })(ScanningRepositoryFilterType || (ScanningRepositoryFilterType = {}));
66
- export var ScanFrequency;
67
- (function (ScanFrequency) {
68
- ScanFrequency["CONTINUOUS_SCAN"] = "CONTINUOUS_SCAN";
69
- ScanFrequency["MANUAL"] = "MANUAL";
70
- ScanFrequency["SCAN_ON_PUSH"] = "SCAN_ON_PUSH";
71
- })(ScanFrequency || (ScanFrequency = {}));
46
+ export const ImageFailureCode = {
47
+ ImageNotFound: "ImageNotFound",
48
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
49
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
50
+ InvalidImageDigest: "InvalidImageDigest",
51
+ InvalidImageTag: "InvalidImageTag",
52
+ KmsError: "KmsError",
53
+ MissingDigestAndTag: "MissingDigestAndTag",
54
+ };
55
+ export const ScanningConfigurationFailureCode = {
56
+ REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND",
57
+ };
58
+ export const ScanningRepositoryFilterType = {
59
+ WILDCARD: "WILDCARD",
60
+ };
61
+ export const ScanFrequency = {
62
+ CONTINUOUS_SCAN: "CONTINUOUS_SCAN",
63
+ MANUAL: "MANUAL",
64
+ SCAN_ON_PUSH: "SCAN_ON_PUSH",
65
+ };
72
66
  export class ValidationException extends __BaseException {
73
67
  constructor(opts) {
74
68
  super({
@@ -190,16 +184,14 @@ export class UnsupportedUpstreamRegistryException extends __BaseException {
190
184
  Object.setPrototypeOf(this, UnsupportedUpstreamRegistryException.prototype);
191
185
  }
192
186
  }
193
- export var EncryptionType;
194
- (function (EncryptionType) {
195
- EncryptionType["AES256"] = "AES256";
196
- EncryptionType["KMS"] = "KMS";
197
- })(EncryptionType || (EncryptionType = {}));
198
- export var ImageTagMutability;
199
- (function (ImageTagMutability) {
200
- ImageTagMutability["IMMUTABLE"] = "IMMUTABLE";
201
- ImageTagMutability["MUTABLE"] = "MUTABLE";
202
- })(ImageTagMutability || (ImageTagMutability = {}));
187
+ export const EncryptionType = {
188
+ AES256: "AES256",
189
+ KMS: "KMS",
190
+ };
191
+ export const ImageTagMutability = {
192
+ IMMUTABLE: "IMMUTABLE",
193
+ MUTABLE: "MUTABLE",
194
+ };
203
195
  export class InvalidTagParameterException extends __BaseException {
204
196
  constructor(opts) {
205
197
  super({
@@ -296,12 +288,11 @@ export class RepositoryPolicyNotFoundException extends __BaseException {
296
288
  Object.setPrototypeOf(this, RepositoryPolicyNotFoundException.prototype);
297
289
  }
298
290
  }
299
- export var ReplicationStatus;
300
- (function (ReplicationStatus) {
301
- ReplicationStatus["COMPLETE"] = "COMPLETE";
302
- ReplicationStatus["FAILED"] = "FAILED";
303
- ReplicationStatus["IN_PROGRESS"] = "IN_PROGRESS";
304
- })(ReplicationStatus || (ReplicationStatus = {}));
291
+ export const ReplicationStatus = {
292
+ COMPLETE: "COMPLETE",
293
+ FAILED: "FAILED",
294
+ IN_PROGRESS: "IN_PROGRESS",
295
+ };
305
296
  export class ImageNotFoundException extends __BaseException {
306
297
  constructor(opts) {
307
298
  super({
@@ -314,32 +305,29 @@ export class ImageNotFoundException extends __BaseException {
314
305
  Object.setPrototypeOf(this, ImageNotFoundException.prototype);
315
306
  }
316
307
  }
317
- export var TagStatus;
318
- (function (TagStatus) {
319
- TagStatus["ANY"] = "ANY";
320
- TagStatus["TAGGED"] = "TAGGED";
321
- TagStatus["UNTAGGED"] = "UNTAGGED";
322
- })(TagStatus || (TagStatus = {}));
323
- export var FindingSeverity;
324
- (function (FindingSeverity) {
325
- FindingSeverity["CRITICAL"] = "CRITICAL";
326
- FindingSeverity["HIGH"] = "HIGH";
327
- FindingSeverity["INFORMATIONAL"] = "INFORMATIONAL";
328
- FindingSeverity["LOW"] = "LOW";
329
- FindingSeverity["MEDIUM"] = "MEDIUM";
330
- FindingSeverity["UNDEFINED"] = "UNDEFINED";
331
- })(FindingSeverity || (FindingSeverity = {}));
332
- export var ScanStatus;
333
- (function (ScanStatus) {
334
- ScanStatus["ACTIVE"] = "ACTIVE";
335
- ScanStatus["COMPLETE"] = "COMPLETE";
336
- ScanStatus["FAILED"] = "FAILED";
337
- ScanStatus["FINDINGS_UNAVAILABLE"] = "FINDINGS_UNAVAILABLE";
338
- ScanStatus["IN_PROGRESS"] = "IN_PROGRESS";
339
- ScanStatus["PENDING"] = "PENDING";
340
- ScanStatus["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED";
341
- ScanStatus["UNSUPPORTED_IMAGE"] = "UNSUPPORTED_IMAGE";
342
- })(ScanStatus || (ScanStatus = {}));
308
+ export const TagStatus = {
309
+ ANY: "ANY",
310
+ TAGGED: "TAGGED",
311
+ UNTAGGED: "UNTAGGED",
312
+ };
313
+ export const FindingSeverity = {
314
+ CRITICAL: "CRITICAL",
315
+ HIGH: "HIGH",
316
+ INFORMATIONAL: "INFORMATIONAL",
317
+ LOW: "LOW",
318
+ MEDIUM: "MEDIUM",
319
+ UNDEFINED: "UNDEFINED",
320
+ };
321
+ export const ScanStatus = {
322
+ ACTIVE: "ACTIVE",
323
+ COMPLETE: "COMPLETE",
324
+ FAILED: "FAILED",
325
+ FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE",
326
+ IN_PROGRESS: "IN_PROGRESS",
327
+ PENDING: "PENDING",
328
+ SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
329
+ UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE",
330
+ };
343
331
  export class ScanNotFoundException extends __BaseException {
344
332
  constructor(opts) {
345
333
  super({
@@ -352,10 +340,9 @@ export class ScanNotFoundException extends __BaseException {
352
340
  Object.setPrototypeOf(this, ScanNotFoundException.prototype);
353
341
  }
354
342
  }
355
- export var RepositoryFilterType;
356
- (function (RepositoryFilterType) {
357
- RepositoryFilterType["PREFIX_MATCH"] = "PREFIX_MATCH";
358
- })(RepositoryFilterType || (RepositoryFilterType = {}));
343
+ export const RepositoryFilterType = {
344
+ PREFIX_MATCH: "PREFIX_MATCH",
345
+ };
359
346
  export class LayerInaccessibleException extends __BaseException {
360
347
  constructor(opts) {
361
348
  super({
@@ -380,17 +367,15 @@ export class LayersNotFoundException extends __BaseException {
380
367
  Object.setPrototypeOf(this, LayersNotFoundException.prototype);
381
368
  }
382
369
  }
383
- export var ImageActionType;
384
- (function (ImageActionType) {
385
- ImageActionType["EXPIRE"] = "EXPIRE";
386
- })(ImageActionType || (ImageActionType = {}));
387
- export var LifecyclePolicyPreviewStatus;
388
- (function (LifecyclePolicyPreviewStatus) {
389
- LifecyclePolicyPreviewStatus["COMPLETE"] = "COMPLETE";
390
- LifecyclePolicyPreviewStatus["EXPIRED"] = "EXPIRED";
391
- LifecyclePolicyPreviewStatus["FAILED"] = "FAILED";
392
- LifecyclePolicyPreviewStatus["IN_PROGRESS"] = "IN_PROGRESS";
393
- })(LifecyclePolicyPreviewStatus || (LifecyclePolicyPreviewStatus = {}));
370
+ export const ImageActionType = {
371
+ EXPIRE: "EXPIRE",
372
+ };
373
+ export const LifecyclePolicyPreviewStatus = {
374
+ COMPLETE: "COMPLETE",
375
+ EXPIRED: "EXPIRED",
376
+ FAILED: "FAILED",
377
+ IN_PROGRESS: "IN_PROGRESS",
378
+ };
394
379
  export class LifecyclePolicyPreviewNotFoundException extends __BaseException {
395
380
  constructor(opts) {
396
381
  super({
@@ -403,11 +388,10 @@ export class LifecyclePolicyPreviewNotFoundException extends __BaseException {
403
388
  Object.setPrototypeOf(this, LifecyclePolicyPreviewNotFoundException.prototype);
404
389
  }
405
390
  }
406
- export var ScanType;
407
- (function (ScanType) {
408
- ScanType["BASIC"] = "BASIC";
409
- ScanType["ENHANCED"] = "ENHANCED";
410
- })(ScanType || (ScanType = {}));
391
+ export const ScanType = {
392
+ BASIC: "BASIC",
393
+ ENHANCED: "ENHANCED",
394
+ };
411
395
  export class ImageAlreadyExistsException extends __BaseException {
412
396
  constructor(opts) {
413
397
  super({
@@ -20,11 +20,16 @@ export interface BatchCheckLayerAvailabilityRequest {
20
20
  }
21
21
  /**
22
22
  * @public
23
+ * @enum
23
24
  */
24
- export declare enum LayerFailureCode {
25
- InvalidLayerDigest = "InvalidLayerDigest",
26
- MissingLayerDigest = "MissingLayerDigest"
27
- }
25
+ export declare const LayerFailureCode: {
26
+ readonly InvalidLayerDigest: "InvalidLayerDigest";
27
+ readonly MissingLayerDigest: "MissingLayerDigest";
28
+ };
29
+ /**
30
+ * @public
31
+ */
32
+ export type LayerFailureCode = (typeof LayerFailureCode)[keyof typeof LayerFailureCode];
28
33
  /**
29
34
  * @public
30
35
  * <p>An object representing an Amazon ECR image layer failure.</p>
@@ -45,11 +50,16 @@ export interface LayerFailure {
45
50
  }
46
51
  /**
47
52
  * @public
53
+ * @enum
48
54
  */
49
- export declare enum LayerAvailability {
50
- AVAILABLE = "AVAILABLE",
51
- UNAVAILABLE = "UNAVAILABLE"
52
- }
55
+ export declare const LayerAvailability: {
56
+ readonly AVAILABLE: "AVAILABLE";
57
+ readonly UNAVAILABLE: "UNAVAILABLE";
58
+ };
59
+ /**
60
+ * @public
61
+ */
62
+ export type LayerAvailability = (typeof LayerAvailability)[keyof typeof LayerAvailability];
53
63
  /**
54
64
  * @public
55
65
  * <p>An object representing an Amazon ECR image layer.</p>
@@ -164,16 +174,21 @@ export interface BatchDeleteImageRequest {
164
174
  }
165
175
  /**
166
176
  * @public
177
+ * @enum
167
178
  */
168
- export declare enum ImageFailureCode {
169
- ImageNotFound = "ImageNotFound",
170
- ImageReferencedByManifestList = "ImageReferencedByManifestList",
171
- ImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest",
172
- InvalidImageDigest = "InvalidImageDigest",
173
- InvalidImageTag = "InvalidImageTag",
174
- KmsError = "KmsError",
175
- MissingDigestAndTag = "MissingDigestAndTag"
176
- }
179
+ export declare const ImageFailureCode: {
180
+ readonly ImageNotFound: "ImageNotFound";
181
+ readonly ImageReferencedByManifestList: "ImageReferencedByManifestList";
182
+ readonly ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest";
183
+ readonly InvalidImageDigest: "InvalidImageDigest";
184
+ readonly InvalidImageTag: "InvalidImageTag";
185
+ readonly KmsError: "KmsError";
186
+ readonly MissingDigestAndTag: "MissingDigestAndTag";
187
+ };
188
+ /**
189
+ * @public
190
+ */
191
+ export type ImageFailureCode = (typeof ImageFailureCode)[keyof typeof ImageFailureCode];
177
192
  /**
178
193
  * @public
179
194
  * <p>An object representing an Amazon ECR image failure.</p>
@@ -283,10 +298,15 @@ export interface BatchGetRepositoryScanningConfigurationRequest {
283
298
  }
284
299
  /**
285
300
  * @public
301
+ * @enum
286
302
  */
287
- export declare enum ScanningConfigurationFailureCode {
288
- REPOSITORY_NOT_FOUND = "REPOSITORY_NOT_FOUND"
289
- }
303
+ export declare const ScanningConfigurationFailureCode: {
304
+ readonly REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND";
305
+ };
306
+ /**
307
+ * @public
308
+ */
309
+ export type ScanningConfigurationFailureCode = (typeof ScanningConfigurationFailureCode)[keyof typeof ScanningConfigurationFailureCode];
290
310
  /**
291
311
  * @public
292
312
  * <p>The details about any failures associated with the scanning configuration of a
@@ -308,10 +328,15 @@ export interface RepositoryScanningConfigurationFailure {
308
328
  }
309
329
  /**
310
330
  * @public
331
+ * @enum
311
332
  */
312
- export declare enum ScanningRepositoryFilterType {
313
- WILDCARD = "WILDCARD"
314
- }
333
+ export declare const ScanningRepositoryFilterType: {
334
+ readonly WILDCARD: "WILDCARD";
335
+ };
336
+ /**
337
+ * @public
338
+ */
339
+ export type ScanningRepositoryFilterType = (typeof ScanningRepositoryFilterType)[keyof typeof ScanningRepositoryFilterType];
315
340
  /**
316
341
  * @public
317
342
  * <p>The details of a scanning repository filter. For more information on how to use
@@ -330,12 +355,17 @@ export interface ScanningRepositoryFilter {
330
355
  }
331
356
  /**
332
357
  * @public
358
+ * @enum
333
359
  */
334
- export declare enum ScanFrequency {
335
- CONTINUOUS_SCAN = "CONTINUOUS_SCAN",
336
- MANUAL = "MANUAL",
337
- SCAN_ON_PUSH = "SCAN_ON_PUSH"
338
- }
360
+ export declare const ScanFrequency: {
361
+ readonly CONTINUOUS_SCAN: "CONTINUOUS_SCAN";
362
+ readonly MANUAL: "MANUAL";
363
+ readonly SCAN_ON_PUSH: "SCAN_ON_PUSH";
364
+ };
365
+ /**
366
+ * @public
367
+ */
368
+ export type ScanFrequency = (typeof ScanFrequency)[keyof typeof ScanFrequency];
339
369
  /**
340
370
  * @public
341
371
  * <p>The details of the scanning configuration for a repository.</p>
@@ -591,11 +621,16 @@ export declare class UnsupportedUpstreamRegistryException extends __BaseExceptio
591
621
  }
592
622
  /**
593
623
  * @public
624
+ * @enum
594
625
  */
595
- export declare enum EncryptionType {
596
- AES256 = "AES256",
597
- KMS = "KMS"
598
- }
626
+ export declare const EncryptionType: {
627
+ readonly AES256: "AES256";
628
+ readonly KMS: "KMS";
629
+ };
630
+ /**
631
+ * @public
632
+ */
633
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
599
634
  /**
600
635
  * @public
601
636
  * <p>The encryption configuration for the repository. This determines how the contents of
@@ -649,11 +684,16 @@ export interface ImageScanningConfiguration {
649
684
  }
650
685
  /**
651
686
  * @public
687
+ * @enum
652
688
  */
653
- export declare enum ImageTagMutability {
654
- IMMUTABLE = "IMMUTABLE",
655
- MUTABLE = "MUTABLE"
656
- }
689
+ export declare const ImageTagMutability: {
690
+ readonly IMMUTABLE: "IMMUTABLE";
691
+ readonly MUTABLE: "MUTABLE";
692
+ };
693
+ /**
694
+ * @public
695
+ */
696
+ export type ImageTagMutability = (typeof ImageTagMutability)[keyof typeof ImageTagMutability];
657
697
  /**
658
698
  * @public
659
699
  * <p>The metadata to apply to a resource to help you categorize and organize them. Each tag
@@ -1031,12 +1071,17 @@ export interface DescribeImageReplicationStatusRequest {
1031
1071
  }
1032
1072
  /**
1033
1073
  * @public
1074
+ * @enum
1034
1075
  */
1035
- export declare enum ReplicationStatus {
1036
- COMPLETE = "COMPLETE",
1037
- FAILED = "FAILED",
1038
- IN_PROGRESS = "IN_PROGRESS"
1039
- }
1076
+ export declare const ReplicationStatus: {
1077
+ readonly COMPLETE: "COMPLETE";
1078
+ readonly FAILED: "FAILED";
1079
+ readonly IN_PROGRESS: "IN_PROGRESS";
1080
+ };
1081
+ /**
1082
+ * @public
1083
+ */
1084
+ export type ReplicationStatus = (typeof ReplicationStatus)[keyof typeof ReplicationStatus];
1040
1085
  /**
1041
1086
  * @public
1042
1087
  * <p>The status of the replication process for an image.</p>
@@ -1090,12 +1135,17 @@ export declare class ImageNotFoundException extends __BaseException {
1090
1135
  }
1091
1136
  /**
1092
1137
  * @public
1138
+ * @enum
1093
1139
  */
1094
- export declare enum TagStatus {
1095
- ANY = "ANY",
1096
- TAGGED = "TAGGED",
1097
- UNTAGGED = "UNTAGGED"
1098
- }
1140
+ export declare const TagStatus: {
1141
+ readonly ANY: "ANY";
1142
+ readonly TAGGED: "TAGGED";
1143
+ readonly UNTAGGED: "UNTAGGED";
1144
+ };
1145
+ /**
1146
+ * @public
1147
+ */
1148
+ export type TagStatus = (typeof TagStatus)[keyof typeof TagStatus];
1099
1149
  /**
1100
1150
  * @public
1101
1151
  * <p>An object representing a filter on a <a>DescribeImages</a>
@@ -1155,15 +1205,20 @@ export interface DescribeImagesRequest {
1155
1205
  }
1156
1206
  /**
1157
1207
  * @public
1208
+ * @enum
1158
1209
  */
1159
- export declare enum FindingSeverity {
1160
- CRITICAL = "CRITICAL",
1161
- HIGH = "HIGH",
1162
- INFORMATIONAL = "INFORMATIONAL",
1163
- LOW = "LOW",
1164
- MEDIUM = "MEDIUM",
1165
- UNDEFINED = "UNDEFINED"
1166
- }
1210
+ export declare const FindingSeverity: {
1211
+ readonly CRITICAL: "CRITICAL";
1212
+ readonly HIGH: "HIGH";
1213
+ readonly INFORMATIONAL: "INFORMATIONAL";
1214
+ readonly LOW: "LOW";
1215
+ readonly MEDIUM: "MEDIUM";
1216
+ readonly UNDEFINED: "UNDEFINED";
1217
+ };
1218
+ /**
1219
+ * @public
1220
+ */
1221
+ export type FindingSeverity = (typeof FindingSeverity)[keyof typeof FindingSeverity];
1167
1222
  /**
1168
1223
  * @public
1169
1224
  * <p>A summary of the last completed image scan.</p>
@@ -1184,17 +1239,22 @@ export interface ImageScanFindingsSummary {
1184
1239
  }
1185
1240
  /**
1186
1241
  * @public
1242
+ * @enum
1187
1243
  */
1188
- export declare enum ScanStatus {
1189
- ACTIVE = "ACTIVE",
1190
- COMPLETE = "COMPLETE",
1191
- FAILED = "FAILED",
1192
- FINDINGS_UNAVAILABLE = "FINDINGS_UNAVAILABLE",
1193
- IN_PROGRESS = "IN_PROGRESS",
1194
- PENDING = "PENDING",
1195
- SCAN_ELIGIBILITY_EXPIRED = "SCAN_ELIGIBILITY_EXPIRED",
1196
- UNSUPPORTED_IMAGE = "UNSUPPORTED_IMAGE"
1197
- }
1244
+ export declare const ScanStatus: {
1245
+ readonly ACTIVE: "ACTIVE";
1246
+ readonly COMPLETE: "COMPLETE";
1247
+ readonly FAILED: "FAILED";
1248
+ readonly FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE";
1249
+ readonly IN_PROGRESS: "IN_PROGRESS";
1250
+ readonly PENDING: "PENDING";
1251
+ readonly SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED";
1252
+ readonly UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE";
1253
+ };
1254
+ /**
1255
+ * @public
1256
+ */
1257
+ export type ScanStatus = (typeof ScanStatus)[keyof typeof ScanStatus];
1198
1258
  /**
1199
1259
  * @public
1200
1260
  * <p>The current status of an image scan.</p>
@@ -1865,10 +1925,15 @@ export interface ReplicationDestination {
1865
1925
  }
1866
1926
  /**
1867
1927
  * @public
1928
+ * @enum
1868
1929
  */
1869
- export declare enum RepositoryFilterType {
1870
- PREFIX_MATCH = "PREFIX_MATCH"
1871
- }
1930
+ export declare const RepositoryFilterType: {
1931
+ readonly PREFIX_MATCH: "PREFIX_MATCH";
1932
+ };
1933
+ /**
1934
+ * @public
1935
+ */
1936
+ export type RepositoryFilterType = (typeof RepositoryFilterType)[keyof typeof RepositoryFilterType];
1872
1937
  /**
1873
1938
  * @public
1874
1939
  * <p>The filter settings used with image replication. Specifying a repository filter to a
@@ -2196,10 +2261,15 @@ export interface GetLifecyclePolicyPreviewRequest {
2196
2261
  }
2197
2262
  /**
2198
2263
  * @public
2264
+ * @enum
2199
2265
  */
2200
- export declare enum ImageActionType {
2201
- EXPIRE = "EXPIRE"
2202
- }
2266
+ export declare const ImageActionType: {
2267
+ readonly EXPIRE: "EXPIRE";
2268
+ };
2269
+ /**
2270
+ * @public
2271
+ */
2272
+ export type ImageActionType = (typeof ImageActionType)[keyof typeof ImageActionType];
2203
2273
  /**
2204
2274
  * @public
2205
2275
  * <p>The type of action to be taken.</p>
@@ -2239,13 +2309,18 @@ export interface LifecyclePolicyPreviewResult {
2239
2309
  }
2240
2310
  /**
2241
2311
  * @public
2312
+ * @enum
2242
2313
  */
2243
- export declare enum LifecyclePolicyPreviewStatus {
2244
- COMPLETE = "COMPLETE",
2245
- EXPIRED = "EXPIRED",
2246
- FAILED = "FAILED",
2247
- IN_PROGRESS = "IN_PROGRESS"
2248
- }
2314
+ export declare const LifecyclePolicyPreviewStatus: {
2315
+ readonly COMPLETE: "COMPLETE";
2316
+ readonly EXPIRED: "EXPIRED";
2317
+ readonly FAILED: "FAILED";
2318
+ readonly IN_PROGRESS: "IN_PROGRESS";
2319
+ };
2320
+ /**
2321
+ * @public
2322
+ */
2323
+ export type LifecyclePolicyPreviewStatus = (typeof LifecyclePolicyPreviewStatus)[keyof typeof LifecyclePolicyPreviewStatus];
2249
2324
  /**
2250
2325
  * @public
2251
2326
  * <p>The summary of the lifecycle policy preview request.</p>
@@ -2349,11 +2424,16 @@ export interface RegistryScanningRule {
2349
2424
  }
2350
2425
  /**
2351
2426
  * @public
2427
+ * @enum
2352
2428
  */
2353
- export declare enum ScanType {
2354
- BASIC = "BASIC",
2355
- ENHANCED = "ENHANCED"
2356
- }
2429
+ export declare const ScanType: {
2430
+ readonly BASIC: "BASIC";
2431
+ readonly ENHANCED: "ENHANCED";
2432
+ };
2433
+ /**
2434
+ * @public
2435
+ */
2436
+ export type ScanType = (typeof ScanType)[keyof typeof ScanType];
2357
2437
  /**
2358
2438
  * @public
2359
2439
  * <p>The scanning configuration for a private registry.</p>
@@ -5,19 +5,23 @@ export interface BatchCheckLayerAvailabilityRequest {
5
5
  repositoryName: string | undefined;
6
6
  layerDigests: string[] | undefined;
7
7
  }
8
- export declare enum LayerFailureCode {
9
- InvalidLayerDigest = "InvalidLayerDigest",
10
- MissingLayerDigest = "MissingLayerDigest",
11
- }
8
+ export declare const LayerFailureCode: {
9
+ readonly InvalidLayerDigest: "InvalidLayerDigest";
10
+ readonly MissingLayerDigest: "MissingLayerDigest";
11
+ };
12
+ export type LayerFailureCode =
13
+ (typeof LayerFailureCode)[keyof typeof LayerFailureCode];
12
14
  export interface LayerFailure {
13
15
  layerDigest?: string;
14
16
  failureCode?: LayerFailureCode | string;
15
17
  failureReason?: string;
16
18
  }
17
- export declare enum LayerAvailability {
18
- AVAILABLE = "AVAILABLE",
19
- UNAVAILABLE = "UNAVAILABLE",
20
- }
19
+ export declare const LayerAvailability: {
20
+ readonly AVAILABLE: "AVAILABLE";
21
+ readonly UNAVAILABLE: "UNAVAILABLE";
22
+ };
23
+ export type LayerAvailability =
24
+ (typeof LayerAvailability)[keyof typeof LayerAvailability];
21
25
  export interface Layer {
22
26
  layerDigest?: string;
23
27
  layerAvailability?: LayerAvailability | string;
@@ -56,15 +60,17 @@ export interface BatchDeleteImageRequest {
56
60
  repositoryName: string | undefined;
57
61
  imageIds: ImageIdentifier[] | undefined;
58
62
  }
59
- export declare enum ImageFailureCode {
60
- ImageNotFound = "ImageNotFound",
61
- ImageReferencedByManifestList = "ImageReferencedByManifestList",
62
- ImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest",
63
- InvalidImageDigest = "InvalidImageDigest",
64
- InvalidImageTag = "InvalidImageTag",
65
- KmsError = "KmsError",
66
- MissingDigestAndTag = "MissingDigestAndTag",
67
- }
63
+ export declare const ImageFailureCode: {
64
+ readonly ImageNotFound: "ImageNotFound";
65
+ readonly ImageReferencedByManifestList: "ImageReferencedByManifestList";
66
+ readonly ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest";
67
+ readonly InvalidImageDigest: "InvalidImageDigest";
68
+ readonly InvalidImageTag: "InvalidImageTag";
69
+ readonly KmsError: "KmsError";
70
+ readonly MissingDigestAndTag: "MissingDigestAndTag";
71
+ };
72
+ export type ImageFailureCode =
73
+ (typeof ImageFailureCode)[keyof typeof ImageFailureCode];
68
74
  export interface ImageFailure {
69
75
  imageId?: ImageIdentifier;
70
76
  failureCode?: ImageFailureCode | string;
@@ -94,26 +100,31 @@ export interface BatchGetImageResponse {
94
100
  export interface BatchGetRepositoryScanningConfigurationRequest {
95
101
  repositoryNames: string[] | undefined;
96
102
  }
97
- export declare enum ScanningConfigurationFailureCode {
98
- REPOSITORY_NOT_FOUND = "REPOSITORY_NOT_FOUND",
99
- }
103
+ export declare const ScanningConfigurationFailureCode: {
104
+ readonly REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND";
105
+ };
106
+ export type ScanningConfigurationFailureCode =
107
+ (typeof ScanningConfigurationFailureCode)[keyof typeof ScanningConfigurationFailureCode];
100
108
  export interface RepositoryScanningConfigurationFailure {
101
109
  repositoryName?: string;
102
110
  failureCode?: ScanningConfigurationFailureCode | string;
103
111
  failureReason?: string;
104
112
  }
105
- export declare enum ScanningRepositoryFilterType {
106
- WILDCARD = "WILDCARD",
107
- }
113
+ export declare const ScanningRepositoryFilterType: {
114
+ readonly WILDCARD: "WILDCARD";
115
+ };
116
+ export type ScanningRepositoryFilterType =
117
+ (typeof ScanningRepositoryFilterType)[keyof typeof ScanningRepositoryFilterType];
108
118
  export interface ScanningRepositoryFilter {
109
119
  filter: string | undefined;
110
120
  filterType: ScanningRepositoryFilterType | string | undefined;
111
121
  }
112
- export declare enum ScanFrequency {
113
- CONTINUOUS_SCAN = "CONTINUOUS_SCAN",
114
- MANUAL = "MANUAL",
115
- SCAN_ON_PUSH = "SCAN_ON_PUSH",
116
- }
122
+ export declare const ScanFrequency: {
123
+ readonly CONTINUOUS_SCAN: "CONTINUOUS_SCAN";
124
+ readonly MANUAL: "MANUAL";
125
+ readonly SCAN_ON_PUSH: "SCAN_ON_PUSH";
126
+ };
127
+ export type ScanFrequency = (typeof ScanFrequency)[keyof typeof ScanFrequency];
117
128
  export interface RepositoryScanningConfiguration {
118
129
  repositoryArn?: string;
119
130
  repositoryName?: string;
@@ -223,10 +234,12 @@ export declare class UnsupportedUpstreamRegistryException extends __BaseExceptio
223
234
  >
224
235
  );
225
236
  }
226
- export declare enum EncryptionType {
227
- AES256 = "AES256",
228
- KMS = "KMS",
229
- }
237
+ export declare const EncryptionType: {
238
+ readonly AES256: "AES256";
239
+ readonly KMS: "KMS";
240
+ };
241
+ export type EncryptionType =
242
+ (typeof EncryptionType)[keyof typeof EncryptionType];
230
243
  export interface EncryptionConfiguration {
231
244
  encryptionType: EncryptionType | string | undefined;
232
245
  kmsKey?: string;
@@ -234,10 +247,12 @@ export interface EncryptionConfiguration {
234
247
  export interface ImageScanningConfiguration {
235
248
  scanOnPush?: boolean;
236
249
  }
237
- export declare enum ImageTagMutability {
238
- IMMUTABLE = "IMMUTABLE",
239
- MUTABLE = "MUTABLE",
240
- }
250
+ export declare const ImageTagMutability: {
251
+ readonly IMMUTABLE: "IMMUTABLE";
252
+ readonly MUTABLE: "MUTABLE";
253
+ };
254
+ export type ImageTagMutability =
255
+ (typeof ImageTagMutability)[keyof typeof ImageTagMutability];
241
256
  export interface Tag {
242
257
  Key?: string;
243
258
  Value?: string;
@@ -381,11 +396,13 @@ export interface DescribeImageReplicationStatusRequest {
381
396
  imageId: ImageIdentifier | undefined;
382
397
  registryId?: string;
383
398
  }
384
- export declare enum ReplicationStatus {
385
- COMPLETE = "COMPLETE",
386
- FAILED = "FAILED",
387
- IN_PROGRESS = "IN_PROGRESS",
388
- }
399
+ export declare const ReplicationStatus: {
400
+ readonly COMPLETE: "COMPLETE";
401
+ readonly FAILED: "FAILED";
402
+ readonly IN_PROGRESS: "IN_PROGRESS";
403
+ };
404
+ export type ReplicationStatus =
405
+ (typeof ReplicationStatus)[keyof typeof ReplicationStatus];
389
406
  export interface ImageReplicationStatus {
390
407
  region?: string;
391
408
  registryId?: string;
@@ -404,11 +421,12 @@ export declare class ImageNotFoundException extends __BaseException {
404
421
  opts: __ExceptionOptionType<ImageNotFoundException, __BaseException>
405
422
  );
406
423
  }
407
- export declare enum TagStatus {
408
- ANY = "ANY",
409
- TAGGED = "TAGGED",
410
- UNTAGGED = "UNTAGGED",
411
- }
424
+ export declare const TagStatus: {
425
+ readonly ANY: "ANY";
426
+ readonly TAGGED: "TAGGED";
427
+ readonly UNTAGGED: "UNTAGGED";
428
+ };
429
+ export type TagStatus = (typeof TagStatus)[keyof typeof TagStatus];
412
430
  export interface DescribeImagesFilter {
413
431
  tagStatus?: TagStatus | string;
414
432
  }
@@ -420,29 +438,32 @@ export interface DescribeImagesRequest {
420
438
  maxResults?: number;
421
439
  filter?: DescribeImagesFilter;
422
440
  }
423
- export declare enum FindingSeverity {
424
- CRITICAL = "CRITICAL",
425
- HIGH = "HIGH",
426
- INFORMATIONAL = "INFORMATIONAL",
427
- LOW = "LOW",
428
- MEDIUM = "MEDIUM",
429
- UNDEFINED = "UNDEFINED",
430
- }
441
+ export declare const FindingSeverity: {
442
+ readonly CRITICAL: "CRITICAL";
443
+ readonly HIGH: "HIGH";
444
+ readonly INFORMATIONAL: "INFORMATIONAL";
445
+ readonly LOW: "LOW";
446
+ readonly MEDIUM: "MEDIUM";
447
+ readonly UNDEFINED: "UNDEFINED";
448
+ };
449
+ export type FindingSeverity =
450
+ (typeof FindingSeverity)[keyof typeof FindingSeverity];
431
451
  export interface ImageScanFindingsSummary {
432
452
  imageScanCompletedAt?: Date;
433
453
  vulnerabilitySourceUpdatedAt?: Date;
434
454
  findingSeverityCounts?: Record<string, number>;
435
455
  }
436
- export declare enum ScanStatus {
437
- ACTIVE = "ACTIVE",
438
- COMPLETE = "COMPLETE",
439
- FAILED = "FAILED",
440
- FINDINGS_UNAVAILABLE = "FINDINGS_UNAVAILABLE",
441
- IN_PROGRESS = "IN_PROGRESS",
442
- PENDING = "PENDING",
443
- SCAN_ELIGIBILITY_EXPIRED = "SCAN_ELIGIBILITY_EXPIRED",
444
- UNSUPPORTED_IMAGE = "UNSUPPORTED_IMAGE",
445
- }
456
+ export declare const ScanStatus: {
457
+ readonly ACTIVE: "ACTIVE";
458
+ readonly COMPLETE: "COMPLETE";
459
+ readonly FAILED: "FAILED";
460
+ readonly FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE";
461
+ readonly IN_PROGRESS: "IN_PROGRESS";
462
+ readonly PENDING: "PENDING";
463
+ readonly SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED";
464
+ readonly UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE";
465
+ };
466
+ export type ScanStatus = (typeof ScanStatus)[keyof typeof ScanStatus];
446
467
  export interface ImageScanStatus {
447
468
  status?: ScanStatus | string;
448
469
  description?: string;
@@ -610,9 +631,11 @@ export interface ReplicationDestination {
610
631
  region: string | undefined;
611
632
  registryId: string | undefined;
612
633
  }
613
- export declare enum RepositoryFilterType {
614
- PREFIX_MATCH = "PREFIX_MATCH",
615
- }
634
+ export declare const RepositoryFilterType: {
635
+ readonly PREFIX_MATCH: "PREFIX_MATCH";
636
+ };
637
+ export type RepositoryFilterType =
638
+ (typeof RepositoryFilterType)[keyof typeof RepositoryFilterType];
616
639
  export interface RepositoryFilter {
617
640
  filter: string | undefined;
618
641
  filterType: RepositoryFilterType | string | undefined;
@@ -693,9 +716,11 @@ export interface GetLifecyclePolicyPreviewRequest {
693
716
  maxResults?: number;
694
717
  filter?: LifecyclePolicyPreviewFilter;
695
718
  }
696
- export declare enum ImageActionType {
697
- EXPIRE = "EXPIRE",
698
- }
719
+ export declare const ImageActionType: {
720
+ readonly EXPIRE: "EXPIRE";
721
+ };
722
+ export type ImageActionType =
723
+ (typeof ImageActionType)[keyof typeof ImageActionType];
699
724
  export interface LifecyclePolicyRuleAction {
700
725
  type?: ImageActionType | string;
701
726
  }
@@ -706,12 +731,14 @@ export interface LifecyclePolicyPreviewResult {
706
731
  action?: LifecyclePolicyRuleAction;
707
732
  appliedRulePriority?: number;
708
733
  }
709
- export declare enum LifecyclePolicyPreviewStatus {
710
- COMPLETE = "COMPLETE",
711
- EXPIRED = "EXPIRED",
712
- FAILED = "FAILED",
713
- IN_PROGRESS = "IN_PROGRESS",
714
- }
734
+ export declare const LifecyclePolicyPreviewStatus: {
735
+ readonly COMPLETE: "COMPLETE";
736
+ readonly EXPIRED: "EXPIRED";
737
+ readonly FAILED: "FAILED";
738
+ readonly IN_PROGRESS: "IN_PROGRESS";
739
+ };
740
+ export type LifecyclePolicyPreviewStatus =
741
+ (typeof LifecyclePolicyPreviewStatus)[keyof typeof LifecyclePolicyPreviewStatus];
715
742
  export interface LifecyclePolicyPreviewSummary {
716
743
  expiringImageTotalCount?: number;
717
744
  }
@@ -744,10 +771,11 @@ export interface RegistryScanningRule {
744
771
  scanFrequency: ScanFrequency | string | undefined;
745
772
  repositoryFilters: ScanningRepositoryFilter[] | undefined;
746
773
  }
747
- export declare enum ScanType {
748
- BASIC = "BASIC",
749
- ENHANCED = "ENHANCED",
750
- }
774
+ export declare const ScanType: {
775
+ readonly BASIC: "BASIC";
776
+ readonly ENHANCED: "ENHANCED";
777
+ };
778
+ export type ScanType = (typeof ScanType)[keyof typeof ScanType];
751
779
  export interface RegistryScanningConfiguration {
752
780
  scanType?: ScanType | string;
753
781
  rules?: RegistryScanningRule[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecr",
3
3
  "description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
56
- "@aws-sdk/util-waiter": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
+ "@aws-sdk/util-waiter": "3.306.0",
57
57
  "tslib": "^2.5.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "concurrently": "7.0.0",