@aws-sdk/client-ecr 3.300.0 → 3.303.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.
Files changed (42) hide show
  1. package/dist-cjs/models/models_0.js +80 -96
  2. package/dist-es/models/models_0.js +80 -96
  3. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
  4. package/dist-types/commands/BatchDeleteImageCommand.d.ts +3 -3
  5. package/dist-types/commands/BatchGetImageCommand.d.ts +4 -4
  6. package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +2 -2
  7. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +2 -2
  8. package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +1 -1
  9. package/dist-types/commands/CreateRepositoryCommand.d.ts +5 -5
  10. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
  11. package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +1 -1
  12. package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +2 -2
  15. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +2 -2
  16. package/dist-types/commands/DescribeImagesCommand.d.ts +4 -4
  17. package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +2 -2
  18. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +2 -2
  19. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +2 -2
  20. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
  21. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +1 -1
  22. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +4 -4
  23. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  25. package/dist-types/commands/ListImagesCommand.d.ts +2 -2
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/PutImageCommand.d.ts +1 -1
  28. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +2 -2
  29. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +1 -1
  30. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +1 -1
  32. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +5 -5
  33. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +8 -8
  34. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  35. package/dist-types/commands/StartImageScanCommand.d.ts +2 -2
  36. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +1 -1
  37. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  38. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  39. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  40. package/dist-types/models/models_0.d.ts +160 -80
  41. package/dist-types/ts3.4/models/models_0.d.ts +108 -80
  42. package/package.json +35 -35
@@ -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({
@@ -33,10 +33,10 @@ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLaye
33
33
  * import { ECRClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr"; // ES Modules import
34
34
  * // const { ECRClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
35
35
  * const client = new ECRClient(config);
36
- * const input = {
36
+ * const input = { // BatchCheckLayerAvailabilityRequest
37
37
  * registryId: "STRING_VALUE",
38
38
  * repositoryName: "STRING_VALUE", // required
39
- * layerDigests: [ // required
39
+ * layerDigests: [ // BatchedOperationLayerDigestList // required
40
40
  * "STRING_VALUE",
41
41
  * ],
42
42
  * };
@@ -31,11 +31,11 @@ export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse,
31
31
  * import { ECRClient, BatchDeleteImageCommand } from "@aws-sdk/client-ecr"; // ES Modules import
32
32
  * // const { ECRClient, BatchDeleteImageCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
33
33
  * const client = new ECRClient(config);
34
- * const input = {
34
+ * const input = { // BatchDeleteImageRequest
35
35
  * registryId: "STRING_VALUE",
36
36
  * repositoryName: "STRING_VALUE", // required
37
- * imageIds: [ // required
38
- * {
37
+ * imageIds: [ // ImageIdentifierList // required
38
+ * { // ImageIdentifier
39
39
  * imageDigest: "STRING_VALUE",
40
40
  * imageTag: "STRING_VALUE",
41
41
  * },
@@ -29,16 +29,16 @@ export interface BatchGetImageCommandOutput extends BatchGetImageResponse, __Met
29
29
  * import { ECRClient, BatchGetImageCommand } from "@aws-sdk/client-ecr"; // ES Modules import
30
30
  * // const { ECRClient, BatchGetImageCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
31
31
  * const client = new ECRClient(config);
32
- * const input = {
32
+ * const input = { // BatchGetImageRequest
33
33
  * registryId: "STRING_VALUE",
34
34
  * repositoryName: "STRING_VALUE", // required
35
- * imageIds: [ // required
36
- * {
35
+ * imageIds: [ // ImageIdentifierList // required
36
+ * { // ImageIdentifier
37
37
  * imageDigest: "STRING_VALUE",
38
38
  * imageTag: "STRING_VALUE",
39
39
  * },
40
40
  * ],
41
- * acceptedMediaTypes: [
41
+ * acceptedMediaTypes: [ // MediaTypeList
42
42
  * "STRING_VALUE",
43
43
  * ],
44
44
  * };
@@ -26,8 +26,8 @@ export interface BatchGetRepositoryScanningConfigurationCommandOutput extends Ba
26
26
  * import { ECRClient, BatchGetRepositoryScanningConfigurationCommand } from "@aws-sdk/client-ecr"; // ES Modules import
27
27
  * // const { ECRClient, BatchGetRepositoryScanningConfigurationCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
28
28
  * const client = new ECRClient(config);
29
- * const input = {
30
- * repositoryNames: [ // required
29
+ * const input = { // BatchGetRepositoryScanningConfigurationRequest
30
+ * repositoryNames: [ // ScanningConfigurationRepositoryNameList // required
31
31
  * "STRING_VALUE",
32
32
  * ],
33
33
  * };
@@ -34,11 +34,11 @@ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadRes
34
34
  * import { ECRClient, CompleteLayerUploadCommand } from "@aws-sdk/client-ecr"; // ES Modules import
35
35
  * // const { ECRClient, CompleteLayerUploadCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
36
36
  * const client = new ECRClient(config);
37
- * const input = {
37
+ * const input = { // CompleteLayerUploadRequest
38
38
  * registryId: "STRING_VALUE",
39
39
  * repositoryName: "STRING_VALUE", // required
40
40
  * uploadId: "STRING_VALUE", // required
41
- * layerDigests: [ // required
41
+ * layerDigests: [ // LayerDigestList // required
42
42
  * "STRING_VALUE",
43
43
  * ],
44
44
  * };
@@ -27,7 +27,7 @@ export interface CreatePullThroughCacheRuleCommandOutput extends CreatePullThrou
27
27
  * import { ECRClient, CreatePullThroughCacheRuleCommand } from "@aws-sdk/client-ecr"; // ES Modules import
28
28
  * // const { ECRClient, CreatePullThroughCacheRuleCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
29
29
  * const client = new ECRClient(config);
30
- * const input = {
30
+ * const input = { // CreatePullThroughCacheRuleRequest
31
31
  * ecrRepositoryPrefix: "STRING_VALUE", // required
32
32
  * upstreamRegistryUrl: "STRING_VALUE", // required
33
33
  * registryId: "STRING_VALUE",
@@ -27,20 +27,20 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse,
27
27
  * import { ECRClient, CreateRepositoryCommand } from "@aws-sdk/client-ecr"; // ES Modules import
28
28
  * // const { ECRClient, CreateRepositoryCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
29
29
  * const client = new ECRClient(config);
30
- * const input = {
30
+ * const input = { // CreateRepositoryRequest
31
31
  * registryId: "STRING_VALUE",
32
32
  * repositoryName: "STRING_VALUE", // required
33
- * tags: [
34
- * {
33
+ * tags: [ // TagList
34
+ * { // Tag
35
35
  * Key: "STRING_VALUE",
36
36
  * Value: "STRING_VALUE",
37
37
  * },
38
38
  * ],
39
39
  * imageTagMutability: "STRING_VALUE",
40
- * imageScanningConfiguration: {
40
+ * imageScanningConfiguration: { // ImageScanningConfiguration
41
41
  * scanOnPush: true || false,
42
42
  * },
43
- * encryptionConfiguration: {
43
+ * encryptionConfiguration: { // EncryptionConfiguration
44
44
  * encryptionType: "STRING_VALUE", // required
45
45
  * kmsKey: "STRING_VALUE",
46
46
  * },
@@ -26,7 +26,7 @@ export interface DeleteLifecyclePolicyCommandOutput extends DeleteLifecyclePolic
26
26
  * import { ECRClient, DeleteLifecyclePolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
27
27
  * // const { ECRClient, DeleteLifecyclePolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
28
28
  * const client = new ECRClient(config);
29
- * const input = {
29
+ * const input = { // DeleteLifecyclePolicyRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
32
  * };
@@ -26,7 +26,7 @@ export interface DeletePullThroughCacheRuleCommandOutput extends DeletePullThrou
26
26
  * import { ECRClient, DeletePullThroughCacheRuleCommand } from "@aws-sdk/client-ecr"; // ES Modules import
27
27
  * // const { ECRClient, DeletePullThroughCacheRuleCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
28
28
  * const client = new ECRClient(config);
29
- * const input = {
29
+ * const input = { // DeletePullThroughCacheRuleRequest
30
30
  * ecrRepositoryPrefix: "STRING_VALUE", // required
31
31
  * registryId: "STRING_VALUE",
32
32
  * };
@@ -28,7 +28,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse,
28
28
  * import { ECRClient, DeleteRepositoryCommand } from "@aws-sdk/client-ecr"; // ES Modules import
29
29
  * // const { ECRClient, DeleteRepositoryCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
30
30
  * const client = new ECRClient(config);
31
- * const input = {
31
+ * const input = { // DeleteRepositoryRequest
32
32
  * registryId: "STRING_VALUE",
33
33
  * repositoryName: "STRING_VALUE", // required
34
34
  * force: true || false,
@@ -26,7 +26,7 @@ export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPol
26
26
  * import { ECRClient, DeleteRepositoryPolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
27
27
  * // const { ECRClient, DeleteRepositoryPolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
28
28
  * const client = new ECRClient(config);
29
- * const input = {
29
+ * const input = { // DeleteRepositoryPolicyRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
32
  * };
@@ -26,9 +26,9 @@ export interface DescribeImageReplicationStatusCommandOutput extends DescribeIma
26
26
  * import { ECRClient, DescribeImageReplicationStatusCommand } from "@aws-sdk/client-ecr"; // ES Modules import
27
27
  * // const { ECRClient, DescribeImageReplicationStatusCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
28
28
  * const client = new ECRClient(config);
29
- * const input = {
29
+ * const input = { // DescribeImageReplicationStatusRequest
30
30
  * repositoryName: "STRING_VALUE", // required
31
- * imageId: {
31
+ * imageId: { // ImageIdentifier
32
32
  * imageDigest: "STRING_VALUE",
33
33
  * imageTag: "STRING_VALUE",
34
34
  * },