@aws-sdk/client-ecr 3.43.0 → 3.47.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 (64) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/ECR.js +90 -0
  3. package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +36 -0
  4. package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +36 -0
  5. package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +36 -0
  6. package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +36 -0
  7. package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +36 -0
  8. package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +10 -0
  11. package/dist-cjs/models/models_0.js +199 -175
  12. package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +1070 -16
  15. package/dist-cjs/runtimeConfig.browser.js +7 -2
  16. package/dist-cjs/runtimeConfig.js +9 -3
  17. package/dist-es/ECR.js +90 -0
  18. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +39 -0
  19. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +39 -0
  20. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +39 -0
  21. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +39 -0
  22. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +39 -0
  23. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +39 -0
  24. package/dist-es/commands/index.js +6 -0
  25. package/dist-es/endpoints.js +10 -0
  26. package/dist-es/models/models_0.js +144 -120
  27. package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +74 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_1.js +1204 -120
  30. package/dist-es/runtimeConfig.browser.js +12 -3
  31. package/dist-es/runtimeConfig.js +13 -6
  32. package/dist-types/ECR.d.ts +43 -0
  33. package/dist-types/ECRClient.d.ts +13 -3
  34. package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +35 -0
  35. package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +36 -0
  36. package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +35 -0
  37. package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +35 -0
  38. package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +35 -0
  39. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +35 -0
  40. package/dist-types/commands/index.d.ts +6 -0
  41. package/dist-types/models/models_0.d.ts +912 -283
  42. package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
  43. package/dist-types/pagination/index.d.ts +1 -0
  44. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  45. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  46. package/dist-types/runtimeConfig.d.ts +4 -3
  47. package/dist-types/runtimeConfig.native.d.ts +1 -0
  48. package/dist-types/ts3.4/ECR.d.ts +30 -0
  49. package/dist-types/ts3.4/ECRClient.d.ts +11 -3
  50. package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +462 -130
  58. package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
  59. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  60. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  64. package/package.json +39 -46
@@ -109,12 +109,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
109
109
  */
110
110
  message?: string;
111
111
  }
112
- export declare namespace InvalidParameterException {
113
- /**
114
- * @internal
115
- */
116
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
117
- }
118
112
  /**
119
113
  * <p>The specified repository could not be found. Check the spelling of the specified
120
114
  * repository and ensure that you are performing operations on the correct registry.</p>
@@ -127,12 +121,6 @@ export interface RepositoryNotFoundException extends __SmithyException, $Metadat
127
121
  */
128
122
  message?: string;
129
123
  }
130
- export declare namespace RepositoryNotFoundException {
131
- /**
132
- * @internal
133
- */
134
- const filterSensitiveLog: (obj: RepositoryNotFoundException) => any;
135
- }
136
124
  /**
137
125
  * <p>These errors are usually caused by a server-side issue.</p>
138
126
  */
@@ -144,12 +132,6 @@ export interface ServerException extends __SmithyException, $MetadataBearer {
144
132
  */
145
133
  message?: string;
146
134
  }
147
- export declare namespace ServerException {
148
- /**
149
- * @internal
150
- */
151
- const filterSensitiveLog: (obj: ServerException) => any;
152
- }
153
135
  /**
154
136
  * <p>An object with identifying information for an image in an Amazon ECR repository.</p>
155
137
  */
@@ -322,6 +304,127 @@ export declare namespace BatchGetImageResponse {
322
304
  */
323
305
  const filterSensitiveLog: (obj: BatchGetImageResponse) => any;
324
306
  }
307
+ export interface BatchGetRepositoryScanningConfigurationRequest {
308
+ /**
309
+ * <p>One or more repository names to get the scanning configuration for.</p>
310
+ */
311
+ repositoryNames: string[] | undefined;
312
+ }
313
+ export declare namespace BatchGetRepositoryScanningConfigurationRequest {
314
+ /**
315
+ * @internal
316
+ */
317
+ const filterSensitiveLog: (obj: BatchGetRepositoryScanningConfigurationRequest) => any;
318
+ }
319
+ export declare enum ScanningConfigurationFailureCode {
320
+ REPOSITORY_NOT_FOUND = "REPOSITORY_NOT_FOUND"
321
+ }
322
+ /**
323
+ * <p>The details about any failures associated with the scanning configuration of a
324
+ * repository.</p>
325
+ */
326
+ export interface RepositoryScanningConfigurationFailure {
327
+ /**
328
+ * <p>The name of the repository.</p>
329
+ */
330
+ repositoryName?: string;
331
+ /**
332
+ * <p>The failure code.</p>
333
+ */
334
+ failureCode?: ScanningConfigurationFailureCode | string;
335
+ /**
336
+ * <p>The reason for the failure.</p>
337
+ */
338
+ failureReason?: string;
339
+ }
340
+ export declare namespace RepositoryScanningConfigurationFailure {
341
+ /**
342
+ * @internal
343
+ */
344
+ const filterSensitiveLog: (obj: RepositoryScanningConfigurationFailure) => any;
345
+ }
346
+ export declare enum ScanningRepositoryFilterType {
347
+ WILDCARD = "WILDCARD"
348
+ }
349
+ /**
350
+ * <p>The details of a scanning repository filter.</p>
351
+ */
352
+ export interface ScanningRepositoryFilter {
353
+ /**
354
+ * <p>The filter to use when scanning.</p>
355
+ */
356
+ filter: string | undefined;
357
+ /**
358
+ * <p>The type associated with the filter.</p>
359
+ */
360
+ filterType: ScanningRepositoryFilterType | string | undefined;
361
+ }
362
+ export declare namespace ScanningRepositoryFilter {
363
+ /**
364
+ * @internal
365
+ */
366
+ const filterSensitiveLog: (obj: ScanningRepositoryFilter) => any;
367
+ }
368
+ export declare enum ScanFrequency {
369
+ CONTINUOUS_SCAN = "CONTINUOUS_SCAN",
370
+ MANUAL = "MANUAL",
371
+ SCAN_ON_PUSH = "SCAN_ON_PUSH"
372
+ }
373
+ /**
374
+ * <p>The details of the scanning configuration for a repository.</p>
375
+ */
376
+ export interface RepositoryScanningConfiguration {
377
+ /**
378
+ * <p>The ARN of the repository.</p>
379
+ */
380
+ repositoryArn?: string;
381
+ /**
382
+ * <p>The name of the repository.</p>
383
+ */
384
+ repositoryName?: string;
385
+ /**
386
+ * <p>Whether or not scan on push is configured for the repository.</p>
387
+ */
388
+ scanOnPush?: boolean;
389
+ /**
390
+ * <p>The scan frequency for the repository.</p>
391
+ */
392
+ scanFrequency?: ScanFrequency | string;
393
+ /**
394
+ * <p>The scan filters applied to the repository.</p>
395
+ */
396
+ appliedScanFilters?: ScanningRepositoryFilter[];
397
+ }
398
+ export declare namespace RepositoryScanningConfiguration {
399
+ /**
400
+ * @internal
401
+ */
402
+ const filterSensitiveLog: (obj: RepositoryScanningConfiguration) => any;
403
+ }
404
+ export interface BatchGetRepositoryScanningConfigurationResponse {
405
+ /**
406
+ * <p>The scanning configuration for the requested repositories.</p>
407
+ */
408
+ scanningConfigurations?: RepositoryScanningConfiguration[];
409
+ /**
410
+ * <p>Any failures associated with the call.</p>
411
+ */
412
+ failures?: RepositoryScanningConfigurationFailure[];
413
+ }
414
+ export declare namespace BatchGetRepositoryScanningConfigurationResponse {
415
+ /**
416
+ * @internal
417
+ */
418
+ const filterSensitiveLog: (obj: BatchGetRepositoryScanningConfigurationResponse) => any;
419
+ }
420
+ /**
421
+ * <p>There was an exception validating this request.</p>
422
+ */
423
+ export interface ValidationException extends __SmithyException, $MetadataBearer {
424
+ name: "ValidationException";
425
+ $fault: "client";
426
+ message?: string;
427
+ }
325
428
  export interface CompleteLayerUploadRequest {
326
429
  /**
327
430
  * <p>The Amazon Web Services account ID associated with the registry to which to upload layers.
@@ -383,12 +486,6 @@ export interface EmptyUploadException extends __SmithyException, $MetadataBearer
383
486
  */
384
487
  message?: string;
385
488
  }
386
- export declare namespace EmptyUploadException {
387
- /**
388
- * @internal
389
- */
390
- const filterSensitiveLog: (obj: EmptyUploadException) => any;
391
- }
392
489
  /**
393
490
  * <p>The layer digest calculation performed by Amazon ECR upon receipt of the image layer does
394
491
  * not match the digest specified.</p>
@@ -401,12 +498,6 @@ export interface InvalidLayerException extends __SmithyException, $MetadataBeare
401
498
  */
402
499
  message?: string;
403
500
  }
404
- export declare namespace InvalidLayerException {
405
- /**
406
- * @internal
407
- */
408
- const filterSensitiveLog: (obj: InvalidLayerException) => any;
409
- }
410
501
  /**
411
502
  * <p>The operation failed due to a KMS exception.</p>
412
503
  */
@@ -419,12 +510,6 @@ export interface KmsException extends __SmithyException, $MetadataBearer {
419
510
  */
420
511
  kmsError?: string;
421
512
  }
422
- export declare namespace KmsException {
423
- /**
424
- * @internal
425
- */
426
- const filterSensitiveLog: (obj: KmsException) => any;
427
- }
428
513
  /**
429
514
  * <p>The image layer already exists in the associated repository.</p>
430
515
  */
@@ -436,12 +521,6 @@ export interface LayerAlreadyExistsException extends __SmithyException, $Metadat
436
521
  */
437
522
  message?: string;
438
523
  }
439
- export declare namespace LayerAlreadyExistsException {
440
- /**
441
- * @internal
442
- */
443
- const filterSensitiveLog: (obj: LayerAlreadyExistsException) => any;
444
- }
445
524
  /**
446
525
  * <p>Layer parts must be at least 5 MiB in size.</p>
447
526
  */
@@ -453,12 +532,6 @@ export interface LayerPartTooSmallException extends __SmithyException, $Metadata
453
532
  */
454
533
  message?: string;
455
534
  }
456
- export declare namespace LayerPartTooSmallException {
457
- /**
458
- * @internal
459
- */
460
- const filterSensitiveLog: (obj: LayerPartTooSmallException) => any;
461
- }
462
535
  /**
463
536
  * <p>The upload could not be found, or the specified upload ID is not valid for this
464
537
  * repository.</p>
@@ -471,11 +544,82 @@ export interface UploadNotFoundException extends __SmithyException, $MetadataBea
471
544
  */
472
545
  message?: string;
473
546
  }
474
- export declare namespace UploadNotFoundException {
547
+ export interface CreatePullThroughCacheRuleRequest {
548
+ /**
549
+ * <p>The repository name prefix to use when caching images from the source registry.</p>
550
+ */
551
+ ecrRepositoryPrefix: string | undefined;
552
+ /**
553
+ * <p>The registry URL of the upstream public registry to use as the source for the pull
554
+ * through cache rule.</p>
555
+ */
556
+ upstreamRegistryUrl: string | undefined;
557
+ /**
558
+ * <p>The Amazon Web Services account ID associated with the registry to create the pull through cache
559
+ * rule for. If you do not specify a registry, the default registry is assumed.</p>
560
+ */
561
+ registryId?: string;
562
+ }
563
+ export declare namespace CreatePullThroughCacheRuleRequest {
564
+ /**
565
+ * @internal
566
+ */
567
+ const filterSensitiveLog: (obj: CreatePullThroughCacheRuleRequest) => any;
568
+ }
569
+ export interface CreatePullThroughCacheRuleResponse {
570
+ /**
571
+ * <p>The Amazon ECR repository prefix associated with the pull through cache rule.</p>
572
+ */
573
+ ecrRepositoryPrefix?: string;
574
+ /**
575
+ * <p>The upstream registry URL associated with the pull through cache rule.</p>
576
+ */
577
+ upstreamRegistryUrl?: string;
578
+ /**
579
+ * <p>The date and time, in JavaScript date format, when the pull through cache rule was
580
+ * created.</p>
581
+ */
582
+ createdAt?: Date;
583
+ /**
584
+ * <p>The registry ID associated with the request.</p>
585
+ */
586
+ registryId?: string;
587
+ }
588
+ export declare namespace CreatePullThroughCacheRuleResponse {
475
589
  /**
476
590
  * @internal
477
591
  */
478
- const filterSensitiveLog: (obj: UploadNotFoundException) => any;
592
+ const filterSensitiveLog: (obj: CreatePullThroughCacheRuleResponse) => any;
593
+ }
594
+ /**
595
+ * <p>The operation did not succeed because it would have exceeded a service limit for your
596
+ * account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in
597
+ * the Amazon Elastic Container Registry User Guide.</p>
598
+ */
599
+ export interface LimitExceededException extends __SmithyException, $MetadataBearer {
600
+ name: "LimitExceededException";
601
+ $fault: "client";
602
+ /**
603
+ * <p>The error message associated with the exception.</p>
604
+ */
605
+ message?: string;
606
+ }
607
+ /**
608
+ * <p>A pull through cache rule with these settings already exists for the private
609
+ * registry.</p>
610
+ */
611
+ export interface PullThroughCacheRuleAlreadyExistsException extends __SmithyException, $MetadataBearer {
612
+ name: "PullThroughCacheRuleAlreadyExistsException";
613
+ $fault: "client";
614
+ message?: string;
615
+ }
616
+ /**
617
+ * <p>The specified upstream registry isn't supported.</p>
618
+ */
619
+ export interface UnsupportedUpstreamRegistryException extends __SmithyException, $MetadataBearer {
620
+ name: "UnsupportedUpstreamRegistryException";
621
+ $fault: "client";
622
+ message?: string;
479
623
  }
480
624
  export declare enum EncryptionType {
481
625
  AES256 = "AES256",
@@ -502,12 +646,12 @@ export interface EncryptionConfiguration {
502
646
  * for Amazon ECR, or specify your own KMS key, which you already created. For more
503
647
  * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting data using server-side
504
648
  * encryption with an KMS key stored in Key Management Service (SSE-KMS)</a> in the
505
- * <i>Amazon Simple Storage Service Console Developer Guide.</i>.</p>
649
+ * <i>Amazon Simple Storage Service Console Developer Guide</i>.</p>
506
650
  * <p>If you use the <code>AES256</code> encryption type, Amazon ECR uses server-side encryption
507
651
  * with Amazon S3-managed encryption keys which encrypts the images in the repository using an
508
652
  * AES-256 encryption algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Protecting data using
509
653
  * server-side encryption with Amazon S3-managed encryption keys (SSE-S3)</a> in the
510
- * <i>Amazon Simple Storage Service Console Developer Guide.</i>.</p>
654
+ * <i>Amazon Simple Storage Service Console Developer Guide</i>.</p>
511
655
  */
512
656
  encryptionType: EncryptionType | string | undefined;
513
657
  /**
@@ -572,7 +716,7 @@ export declare namespace Tag {
572
716
  }
573
717
  export interface CreateRepositoryRequest {
574
718
  /**
575
- * <p>The AWS account ID associated with the registry to create the repository.
719
+ * <p>The Amazon Web Services account ID associated with the registry to create the repository.
576
720
  * If you do not specify a registry, the default registry is assumed.</p>
577
721
  */
578
722
  registryId?: string;
@@ -681,31 +825,6 @@ export interface InvalidTagParameterException extends __SmithyException, $Metada
681
825
  $fault: "client";
682
826
  message?: string;
683
827
  }
684
- export declare namespace InvalidTagParameterException {
685
- /**
686
- * @internal
687
- */
688
- const filterSensitiveLog: (obj: InvalidTagParameterException) => any;
689
- }
690
- /**
691
- * <p>The operation did not succeed because it would have exceeded a service limit for your
692
- * account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in
693
- * the Amazon Elastic Container Registry User Guide.</p>
694
- */
695
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
696
- name: "LimitExceededException";
697
- $fault: "client";
698
- /**
699
- * <p>The error message associated with the exception.</p>
700
- */
701
- message?: string;
702
- }
703
- export declare namespace LimitExceededException {
704
- /**
705
- * @internal
706
- */
707
- const filterSensitiveLog: (obj: LimitExceededException) => any;
708
- }
709
828
  /**
710
829
  * <p>The specified repository already exists in the specified registry.</p>
711
830
  */
@@ -717,12 +836,6 @@ export interface RepositoryAlreadyExistsException extends __SmithyException, $Me
717
836
  */
718
837
  message?: string;
719
838
  }
720
- export declare namespace RepositoryAlreadyExistsException {
721
- /**
722
- * @internal
723
- */
724
- const filterSensitiveLog: (obj: RepositoryAlreadyExistsException) => any;
725
- }
726
839
  /**
727
840
  * <p>The list of tags on the repository is over the limit. The maximum number of tags that
728
841
  * can be applied to a repository is 50.</p>
@@ -732,12 +845,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
732
845
  $fault: "client";
733
846
  message?: string;
734
847
  }
735
- export declare namespace TooManyTagsException {
736
- /**
737
- * @internal
738
- */
739
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
740
- }
741
848
  export interface DeleteLifecyclePolicyRequest {
742
849
  /**
743
850
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository.
@@ -788,11 +895,56 @@ export interface LifecyclePolicyNotFoundException extends __SmithyException, $Me
788
895
  $fault: "client";
789
896
  message?: string;
790
897
  }
791
- export declare namespace LifecyclePolicyNotFoundException {
898
+ export interface DeletePullThroughCacheRuleRequest {
899
+ /**
900
+ * <p>The Amazon ECR repository prefix associated with the pull through cache rule to
901
+ * delete.</p>
902
+ */
903
+ ecrRepositoryPrefix: string | undefined;
904
+ /**
905
+ * <p>The Amazon Web Services account ID associated with the registry that contains the pull through cache
906
+ * rule. If you do not specify a registry, the default registry is assumed.</p>
907
+ */
908
+ registryId?: string;
909
+ }
910
+ export declare namespace DeletePullThroughCacheRuleRequest {
911
+ /**
912
+ * @internal
913
+ */
914
+ const filterSensitiveLog: (obj: DeletePullThroughCacheRuleRequest) => any;
915
+ }
916
+ export interface DeletePullThroughCacheRuleResponse {
917
+ /**
918
+ * <p>The Amazon ECR repository prefix associated with the request.</p>
919
+ */
920
+ ecrRepositoryPrefix?: string;
921
+ /**
922
+ * <p>The upstream registry URL associated with the pull through cache rule.</p>
923
+ */
924
+ upstreamRegistryUrl?: string;
925
+ /**
926
+ * <p>The timestamp associated with the pull through cache rule.</p>
927
+ */
928
+ createdAt?: Date;
929
+ /**
930
+ * <p>The registry ID associated with the request.</p>
931
+ */
932
+ registryId?: string;
933
+ }
934
+ export declare namespace DeletePullThroughCacheRuleResponse {
792
935
  /**
793
936
  * @internal
794
937
  */
795
- const filterSensitiveLog: (obj: LifecyclePolicyNotFoundException) => any;
938
+ const filterSensitiveLog: (obj: DeletePullThroughCacheRuleResponse) => any;
939
+ }
940
+ /**
941
+ * <p>The pull through cache rule was not found. Specify a valid pull through cache rule and
942
+ * try again.</p>
943
+ */
944
+ export interface PullThroughCacheRuleNotFoundException extends __SmithyException, $MetadataBearer {
945
+ name: "PullThroughCacheRuleNotFoundException";
946
+ $fault: "client";
947
+ message?: string;
796
948
  }
797
949
  export interface DeleteRegistryPolicyRequest {
798
950
  }
@@ -826,26 +978,6 @@ export interface RegistryPolicyNotFoundException extends __SmithyException, $Met
826
978
  $fault: "client";
827
979
  message?: string;
828
980
  }
829
- export declare namespace RegistryPolicyNotFoundException {
830
- /**
831
- * @internal
832
- */
833
- const filterSensitiveLog: (obj: RegistryPolicyNotFoundException) => any;
834
- }
835
- /**
836
- * <p>There was an exception validating this request.</p>
837
- */
838
- export interface ValidationException extends __SmithyException, $MetadataBearer {
839
- name: "ValidationException";
840
- $fault: "client";
841
- message?: string;
842
- }
843
- export declare namespace ValidationException {
844
- /**
845
- * @internal
846
- */
847
- const filterSensitiveLog: (obj: ValidationException) => any;
848
- }
849
981
  export interface DeleteRepositoryRequest {
850
982
  /**
851
983
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository to
@@ -891,12 +1023,6 @@ export interface RepositoryNotEmptyException extends __SmithyException, $Metadat
891
1023
  */
892
1024
  message?: string;
893
1025
  }
894
- export declare namespace RepositoryNotEmptyException {
895
- /**
896
- * @internal
897
- */
898
- const filterSensitiveLog: (obj: RepositoryNotEmptyException) => any;
899
- }
900
1026
  export interface DeleteRepositoryPolicyRequest {
901
1027
  /**
902
1028
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository policy
@@ -947,12 +1073,6 @@ export interface RepositoryPolicyNotFoundException extends __SmithyException, $M
947
1073
  */
948
1074
  message?: string;
949
1075
  }
950
- export declare namespace RepositoryPolicyNotFoundException {
951
- /**
952
- * @internal
953
- */
954
- const filterSensitiveLog: (obj: RepositoryPolicyNotFoundException) => any;
955
- }
956
1076
  export interface DescribeImageReplicationStatusRequest {
957
1077
  /**
958
1078
  * <p>The name of the repository that the image is in.</p>
@@ -987,7 +1107,7 @@ export interface ImageReplicationStatus {
987
1107
  */
988
1108
  region?: string;
989
1109
  /**
990
- * <p>The AWS account ID associated with the registry to which the image belongs.</p>
1110
+ * <p>The Amazon Web Services account ID associated with the registry to which the image belongs.</p>
991
1111
  */
992
1112
  registryId?: string;
993
1113
  /**
@@ -1033,12 +1153,6 @@ export interface ImageNotFoundException extends __SmithyException, $MetadataBear
1033
1153
  $fault: "client";
1034
1154
  message?: string;
1035
1155
  }
1036
- export declare namespace ImageNotFoundException {
1037
- /**
1038
- * @internal
1039
- */
1040
- const filterSensitiveLog: (obj: ImageNotFoundException) => any;
1041
- }
1042
1156
  export declare enum TagStatus {
1043
1157
  ANY = "ANY",
1044
1158
  TAGGED = "TAGGED",
@@ -1143,151 +1257,538 @@ export declare namespace ImageScanFindingsSummary {
1143
1257
  const filterSensitiveLog: (obj: ImageScanFindingsSummary) => any;
1144
1258
  }
1145
1259
  export declare enum ScanStatus {
1260
+ ACTIVE = "ACTIVE",
1146
1261
  COMPLETE = "COMPLETE",
1147
1262
  FAILED = "FAILED",
1148
- IN_PROGRESS = "IN_PROGRESS"
1263
+ FINDINGS_UNAVAILABLE = "FINDINGS_UNAVAILABLE",
1264
+ IN_PROGRESS = "IN_PROGRESS",
1265
+ PENDING = "PENDING",
1266
+ SCAN_ELIGIBILITY_EXPIRED = "SCAN_ELIGIBILITY_EXPIRED",
1267
+ UNSUPPORTED_IMAGE = "UNSUPPORTED_IMAGE"
1149
1268
  }
1150
1269
  /**
1151
1270
  * <p>The current status of an image scan.</p>
1152
1271
  */
1153
- export interface ImageScanStatus {
1272
+ export interface ImageScanStatus {
1273
+ /**
1274
+ * <p>The current state of an image scan.</p>
1275
+ */
1276
+ status?: ScanStatus | string;
1277
+ /**
1278
+ * <p>The description of the image scan status.</p>
1279
+ */
1280
+ description?: string;
1281
+ }
1282
+ export declare namespace ImageScanStatus {
1283
+ /**
1284
+ * @internal
1285
+ */
1286
+ const filterSensitiveLog: (obj: ImageScanStatus) => any;
1287
+ }
1288
+ /**
1289
+ * <p>An object that describes an image returned by a <a>DescribeImages</a>
1290
+ * operation.</p>
1291
+ */
1292
+ export interface ImageDetail {
1293
+ /**
1294
+ * <p>The Amazon Web Services account ID associated with the registry to which this image belongs.</p>
1295
+ */
1296
+ registryId?: string;
1297
+ /**
1298
+ * <p>The name of the repository to which this image belongs.</p>
1299
+ */
1300
+ repositoryName?: string;
1301
+ /**
1302
+ * <p>The <code>sha256</code> digest of the image manifest.</p>
1303
+ */
1304
+ imageDigest?: string;
1305
+ /**
1306
+ * <p>The list of tags associated with this image.</p>
1307
+ */
1308
+ imageTags?: string[];
1309
+ /**
1310
+ * <p>The size, in bytes, of the image in the repository.</p>
1311
+ * <p>If the image is a manifest list, this will be the max size of all manifests in the
1312
+ * list.</p>
1313
+ * <note>
1314
+ * <p>Beginning with Docker version 1.9, the Docker client compresses image layers
1315
+ * before pushing them to a V2 Docker registry. The output of the <code>docker
1316
+ * images</code> command shows the uncompressed image size, so it may return a
1317
+ * larger image size than the image sizes returned by <a>DescribeImages</a>.</p>
1318
+ * </note>
1319
+ */
1320
+ imageSizeInBytes?: number;
1321
+ /**
1322
+ * <p>The date and time, expressed in standard JavaScript date format, at which the current
1323
+ * image was pushed to the repository. </p>
1324
+ */
1325
+ imagePushedAt?: Date;
1326
+ /**
1327
+ * <p>The current state of the scan.</p>
1328
+ */
1329
+ imageScanStatus?: ImageScanStatus;
1330
+ /**
1331
+ * <p>A summary of the last completed image scan.</p>
1332
+ */
1333
+ imageScanFindingsSummary?: ImageScanFindingsSummary;
1334
+ /**
1335
+ * <p>The media type of the image manifest.</p>
1336
+ */
1337
+ imageManifestMediaType?: string;
1338
+ /**
1339
+ * <p>The artifact media type of the image.</p>
1340
+ */
1341
+ artifactMediaType?: string;
1342
+ }
1343
+ export declare namespace ImageDetail {
1344
+ /**
1345
+ * @internal
1346
+ */
1347
+ const filterSensitiveLog: (obj: ImageDetail) => any;
1348
+ }
1349
+ export interface DescribeImagesResponse {
1350
+ /**
1351
+ * <p>A list of <a>ImageDetail</a> objects that contain data about the
1352
+ * image.</p>
1353
+ */
1354
+ imageDetails?: ImageDetail[];
1355
+ /**
1356
+ * <p>The <code>nextToken</code> value to include in a future <code>DescribeImages</code>
1357
+ * request. When the results of a <code>DescribeImages</code> request exceed
1358
+ * <code>maxResults</code>, this value can be used to retrieve the next page of
1359
+ * results. This value is <code>null</code> when there are no more results to
1360
+ * return.</p>
1361
+ */
1362
+ nextToken?: string;
1363
+ }
1364
+ export declare namespace DescribeImagesResponse {
1365
+ /**
1366
+ * @internal
1367
+ */
1368
+ const filterSensitiveLog: (obj: DescribeImagesResponse) => any;
1369
+ }
1370
+ export interface DescribeImageScanFindingsRequest {
1371
+ /**
1372
+ * <p>The Amazon Web Services account ID associated with the registry that contains the repository in
1373
+ * which to describe the image scan findings for. If you do not specify a registry, the default registry is assumed.</p>
1374
+ */
1375
+ registryId?: string;
1376
+ /**
1377
+ * <p>The repository for the image for which to describe the scan findings.</p>
1378
+ */
1379
+ repositoryName: string | undefined;
1380
+ /**
1381
+ * <p>An object with identifying information for an image in an Amazon ECR repository.</p>
1382
+ */
1383
+ imageId: ImageIdentifier | undefined;
1384
+ /**
1385
+ * <p>The <code>nextToken</code> value returned from a previous paginated
1386
+ * <code>DescribeImageScanFindings</code> request where <code>maxResults</code> was
1387
+ * used and the results exceeded the value of that parameter. Pagination continues from the
1388
+ * end of the previous results that returned the <code>nextToken</code> value. This value
1389
+ * is null when there are no more results to return.</p>
1390
+ */
1391
+ nextToken?: string;
1392
+ /**
1393
+ * <p>The maximum number of image scan results returned by
1394
+ * <code>DescribeImageScanFindings</code> in paginated output. When this parameter is
1395
+ * used, <code>DescribeImageScanFindings</code> only returns <code>maxResults</code>
1396
+ * results in a single page along with a <code>nextToken</code> response element. The
1397
+ * remaining results of the initial request can be seen by sending another
1398
+ * <code>DescribeImageScanFindings</code> request with the returned
1399
+ * <code>nextToken</code> value. This value can be between 1 and 1000. If this
1400
+ * parameter is not used, then <code>DescribeImageScanFindings</code> returns up to 100
1401
+ * results and a <code>nextToken</code> value, if applicable.</p>
1402
+ */
1403
+ maxResults?: number;
1404
+ }
1405
+ export declare namespace DescribeImageScanFindingsRequest {
1406
+ /**
1407
+ * @internal
1408
+ */
1409
+ const filterSensitiveLog: (obj: DescribeImageScanFindingsRequest) => any;
1410
+ }
1411
+ /**
1412
+ * <p>The CVSS score for a finding.</p>
1413
+ */
1414
+ export interface CvssScore {
1415
+ /**
1416
+ * <p>The base CVSS score used for the finding.</p>
1417
+ */
1418
+ baseScore?: number;
1419
+ /**
1420
+ * <p>The vector string of the CVSS score.</p>
1421
+ */
1422
+ scoringVector?: string;
1423
+ /**
1424
+ * <p>The source of the CVSS score.</p>
1425
+ */
1426
+ source?: string;
1427
+ /**
1428
+ * <p>The version of CVSS used for the score.</p>
1429
+ */
1430
+ version?: string;
1431
+ }
1432
+ export declare namespace CvssScore {
1433
+ /**
1434
+ * @internal
1435
+ */
1436
+ const filterSensitiveLog: (obj: CvssScore) => any;
1437
+ }
1438
+ /**
1439
+ * <p>Information on the vulnerable package identified by a finding.</p>
1440
+ */
1441
+ export interface VulnerablePackage {
1442
+ /**
1443
+ * <p>The architecture of the vulnerable package.</p>
1444
+ */
1445
+ arch?: string;
1446
+ /**
1447
+ * <p>The epoch of the vulnerable package.</p>
1448
+ */
1449
+ epoch?: number;
1450
+ /**
1451
+ * <p>The file path of the vulnerable package.</p>
1452
+ */
1453
+ filePath?: string;
1454
+ /**
1455
+ * <p>The name of the vulnerable package.</p>
1456
+ */
1457
+ name?: string;
1458
+ /**
1459
+ * <p>The package manager of the vulnerable package.</p>
1460
+ */
1461
+ packageManager?: string;
1462
+ /**
1463
+ * <p>The release of the vulnerable package.</p>
1464
+ */
1465
+ release?: string;
1466
+ /**
1467
+ * <p>The source layer hash of the vulnerable package.</p>
1468
+ */
1469
+ sourceLayerHash?: string;
1470
+ /**
1471
+ * <p>The version of the vulnerable package.</p>
1472
+ */
1473
+ version?: string;
1474
+ }
1475
+ export declare namespace VulnerablePackage {
1476
+ /**
1477
+ * @internal
1478
+ */
1479
+ const filterSensitiveLog: (obj: VulnerablePackage) => any;
1480
+ }
1481
+ /**
1482
+ * <p>Information about a package vulnerability finding.</p>
1483
+ */
1484
+ export interface PackageVulnerabilityDetails {
1485
+ /**
1486
+ * <p>An object that contains details about the CVSS score of a finding.</p>
1487
+ */
1488
+ cvss?: CvssScore[];
1489
+ /**
1490
+ * <p>One or more URLs that contain details about this vulnerability type.</p>
1491
+ */
1492
+ referenceUrls?: string[];
1493
+ /**
1494
+ * <p>One or more vulnerabilities related to the one identified in this finding.</p>
1495
+ */
1496
+ relatedVulnerabilities?: string[];
1497
+ /**
1498
+ * <p>The source of the vulnerability information.</p>
1499
+ */
1500
+ source?: string;
1501
+ /**
1502
+ * <p>A URL to the source of the vulnerability information.</p>
1503
+ */
1504
+ sourceUrl?: string;
1505
+ /**
1506
+ * <p>The date and time that this vulnerability was first added to the vendor's
1507
+ * database.</p>
1508
+ */
1509
+ vendorCreatedAt?: Date;
1510
+ /**
1511
+ * <p>The severity the vendor has given to this vulnerability type.</p>
1512
+ */
1513
+ vendorSeverity?: string;
1514
+ /**
1515
+ * <p>The date and time the vendor last updated this vulnerability in their database.</p>
1516
+ */
1517
+ vendorUpdatedAt?: Date;
1518
+ /**
1519
+ * <p>The ID given to this vulnerability.</p>
1520
+ */
1521
+ vulnerabilityId?: string;
1522
+ /**
1523
+ * <p>The packages impacted by this vulnerability.</p>
1524
+ */
1525
+ vulnerablePackages?: VulnerablePackage[];
1526
+ }
1527
+ export declare namespace PackageVulnerabilityDetails {
1528
+ /**
1529
+ * @internal
1530
+ */
1531
+ const filterSensitiveLog: (obj: PackageVulnerabilityDetails) => any;
1532
+ }
1533
+ /**
1534
+ * <p>Details about the recommended course of action to remediate the finding.</p>
1535
+ */
1536
+ export interface Recommendation {
1537
+ /**
1538
+ * <p>The URL address to the CVE remediation recommendations.</p>
1539
+ */
1540
+ url?: string;
1541
+ /**
1542
+ * <p>The recommended course of action to remediate the finding.</p>
1543
+ */
1544
+ text?: string;
1545
+ }
1546
+ export declare namespace Recommendation {
1547
+ /**
1548
+ * @internal
1549
+ */
1550
+ const filterSensitiveLog: (obj: Recommendation) => any;
1551
+ }
1552
+ /**
1553
+ * <p>Information on how to remediate a finding.</p>
1554
+ */
1555
+ export interface Remediation {
1556
+ /**
1557
+ * <p>An object that contains information about the recommended course of action to
1558
+ * remediate the finding.</p>
1559
+ */
1560
+ recommendation?: Recommendation;
1561
+ }
1562
+ export declare namespace Remediation {
1563
+ /**
1564
+ * @internal
1565
+ */
1566
+ const filterSensitiveLog: (obj: Remediation) => any;
1567
+ }
1568
+ /**
1569
+ * <p>The image details of the Amazon ECR container image.</p>
1570
+ */
1571
+ export interface AwsEcrContainerImageDetails {
1572
+ /**
1573
+ * <p>The architecture of the Amazon ECR container image.</p>
1574
+ */
1575
+ architecture?: string;
1576
+ /**
1577
+ * <p>The image author of the Amazon ECR container image.</p>
1578
+ */
1579
+ author?: string;
1580
+ /**
1581
+ * <p>The image hash of the Amazon ECR container image.</p>
1582
+ */
1583
+ imageHash?: string;
1584
+ /**
1585
+ * <p>The image tags attached to the Amazon ECR container image.</p>
1586
+ */
1587
+ imageTags?: string[];
1588
+ /**
1589
+ * <p>The platform of the Amazon ECR container image.</p>
1590
+ */
1591
+ platform?: string;
1592
+ /**
1593
+ * <p>The date and time the Amazon ECR container image was pushed.</p>
1594
+ */
1595
+ pushedAt?: Date;
1596
+ /**
1597
+ * <p>The registry the Amazon ECR container image belongs to.</p>
1598
+ */
1599
+ registry?: string;
1600
+ /**
1601
+ * <p>The name of the repository the Amazon ECR container image resides in.</p>
1602
+ */
1603
+ repositoryName?: string;
1604
+ }
1605
+ export declare namespace AwsEcrContainerImageDetails {
1606
+ /**
1607
+ * @internal
1608
+ */
1609
+ const filterSensitiveLog: (obj: AwsEcrContainerImageDetails) => any;
1610
+ }
1611
+ /**
1612
+ * <p>Contains details about the resource involved in the finding.</p>
1613
+ */
1614
+ export interface ResourceDetails {
1615
+ /**
1616
+ * <p>An object that contains details about the Amazon ECR container image involved in the
1617
+ * finding.</p>
1618
+ */
1619
+ awsEcrContainerImage?: AwsEcrContainerImageDetails;
1620
+ }
1621
+ export declare namespace ResourceDetails {
1622
+ /**
1623
+ * @internal
1624
+ */
1625
+ const filterSensitiveLog: (obj: ResourceDetails) => any;
1626
+ }
1627
+ /**
1628
+ * <p>Details about the resource involved in a finding.</p>
1629
+ */
1630
+ export interface Resource {
1631
+ /**
1632
+ * <p>An object that contains details about the resource involved in a finding.</p>
1633
+ */
1634
+ details?: ResourceDetails;
1635
+ /**
1636
+ * <p>The ID of the resource.</p>
1637
+ */
1638
+ id?: string;
1639
+ /**
1640
+ * <p>The tags attached to the resource.</p>
1641
+ */
1642
+ tags?: {
1643
+ [key: string]: string;
1644
+ };
1645
+ /**
1646
+ * <p>The type of resource.</p>
1647
+ */
1648
+ type?: string;
1649
+ }
1650
+ export declare namespace Resource {
1651
+ /**
1652
+ * @internal
1653
+ */
1654
+ const filterSensitiveLog: (obj: Resource) => any;
1655
+ }
1656
+ /**
1657
+ * <p>Details on adjustments Amazon Inspector made to the CVSS score for a finding.</p>
1658
+ */
1659
+ export interface CvssScoreAdjustment {
1154
1660
  /**
1155
- * <p>The current state of an image scan.</p>
1661
+ * <p>The metric used to adjust the CVSS score.</p>
1156
1662
  */
1157
- status?: ScanStatus | string;
1663
+ metric?: string;
1158
1664
  /**
1159
- * <p>The description of the image scan status.</p>
1665
+ * <p>The reason the CVSS score has been adjustment.</p>
1160
1666
  */
1161
- description?: string;
1667
+ reason?: string;
1162
1668
  }
1163
- export declare namespace ImageScanStatus {
1669
+ export declare namespace CvssScoreAdjustment {
1164
1670
  /**
1165
1671
  * @internal
1166
1672
  */
1167
- const filterSensitiveLog: (obj: ImageScanStatus) => any;
1673
+ const filterSensitiveLog: (obj: CvssScoreAdjustment) => any;
1168
1674
  }
1169
1675
  /**
1170
- * <p>An object that describes an image returned by a <a>DescribeImages</a>
1171
- * operation.</p>
1676
+ * <p>Information about the CVSS score.</p>
1172
1677
  */
1173
- export interface ImageDetail {
1678
+ export interface CvssScoreDetails {
1174
1679
  /**
1175
- * <p>The Amazon Web Services account ID associated with the registry to which this image belongs.</p>
1680
+ * <p>An object that contains details about adjustment Amazon Inspector made to the CVSS score.</p>
1176
1681
  */
1177
- registryId?: string;
1682
+ adjustments?: CvssScoreAdjustment[];
1178
1683
  /**
1179
- * <p>The name of the repository to which this image belongs.</p>
1684
+ * <p>The CVSS score.</p>
1180
1685
  */
1181
- repositoryName?: string;
1686
+ score?: number;
1182
1687
  /**
1183
- * <p>The <code>sha256</code> digest of the image manifest.</p>
1688
+ * <p>The source for the CVSS score.</p>
1184
1689
  */
1185
- imageDigest?: string;
1690
+ scoreSource?: string;
1186
1691
  /**
1187
- * <p>The list of tags associated with this image.</p>
1692
+ * <p>The vector for the CVSS score.</p>
1188
1693
  */
1189
- imageTags?: string[];
1694
+ scoringVector?: string;
1190
1695
  /**
1191
- * <p>The size, in bytes, of the image in the repository.</p>
1192
- * <p>If the image is a manifest list, this will be the max size of all manifests in the
1193
- * list.</p>
1194
- * <note>
1195
- * <p>Beginning with Docker version 1.9, the Docker client compresses image layers
1196
- * before pushing them to a V2 Docker registry. The output of the <code>docker
1197
- * images</code> command shows the uncompressed image size, so it may return a
1198
- * larger image size than the image sizes returned by <a>DescribeImages</a>.</p>
1199
- * </note>
1696
+ * <p>The CVSS version used in scoring.</p>
1200
1697
  */
1201
- imageSizeInBytes?: number;
1698
+ version?: string;
1699
+ }
1700
+ export declare namespace CvssScoreDetails {
1202
1701
  /**
1203
- * <p>The date and time, expressed in standard JavaScript date format, at which the current
1204
- * image was pushed to the repository. </p>
1702
+ * @internal
1205
1703
  */
1206
- imagePushedAt?: Date;
1704
+ const filterSensitiveLog: (obj: CvssScoreDetails) => any;
1705
+ }
1706
+ /**
1707
+ * <p>Information about the Amazon Inspector score given to a finding.</p>
1708
+ */
1709
+ export interface ScoreDetails {
1207
1710
  /**
1208
- * <p>The current state of the scan.</p>
1711
+ * <p>An object that contains details about the CVSS score given to a finding.</p>
1209
1712
  */
1210
- imageScanStatus?: ImageScanStatus;
1713
+ cvss?: CvssScoreDetails;
1714
+ }
1715
+ export declare namespace ScoreDetails {
1211
1716
  /**
1212
- * <p>A summary of the last completed image scan.</p>
1717
+ * @internal
1213
1718
  */
1214
- imageScanFindingsSummary?: ImageScanFindingsSummary;
1719
+ const filterSensitiveLog: (obj: ScoreDetails) => any;
1720
+ }
1721
+ /**
1722
+ * <p>The details of an enhanced image scan. This is returned when enhanced scanning is
1723
+ * enabled for your private registry.</p>
1724
+ */
1725
+ export interface EnhancedImageScanFinding {
1215
1726
  /**
1216
- * <p>The media type of the image manifest.</p>
1727
+ * <p>The Amazon Web Services account ID associated with the image.</p>
1217
1728
  */
1218
- imageManifestMediaType?: string;
1729
+ awsAccountId?: string;
1219
1730
  /**
1220
- * <p>The artifact media type of the image.</p>
1731
+ * <p>The description of the finding.</p>
1221
1732
  */
1222
- artifactMediaType?: string;
1223
- }
1224
- export declare namespace ImageDetail {
1733
+ description?: string;
1225
1734
  /**
1226
- * @internal
1735
+ * <p>The Amazon Resource Number (ARN) of the finding.</p>
1227
1736
  */
1228
- const filterSensitiveLog: (obj: ImageDetail) => any;
1229
- }
1230
- export interface DescribeImagesResponse {
1737
+ findingArn?: string;
1231
1738
  /**
1232
- * <p>A list of <a>ImageDetail</a> objects that contain data about the
1233
- * image.</p>
1739
+ * <p>The date and time that the finding was first observed.</p>
1234
1740
  */
1235
- imageDetails?: ImageDetail[];
1741
+ firstObservedAt?: Date;
1236
1742
  /**
1237
- * <p>The <code>nextToken</code> value to include in a future <code>DescribeImages</code>
1238
- * request. When the results of a <code>DescribeImages</code> request exceed
1239
- * <code>maxResults</code>, this value can be used to retrieve the next page of
1240
- * results. This value is <code>null</code> when there are no more results to
1241
- * return.</p>
1743
+ * <p>The date and time that the finding was last observed.</p>
1242
1744
  */
1243
- nextToken?: string;
1244
- }
1245
- export declare namespace DescribeImagesResponse {
1745
+ lastObservedAt?: Date;
1246
1746
  /**
1247
- * @internal
1747
+ * <p>An object that contains the details of a package vulnerability finding.</p>
1248
1748
  */
1249
- const filterSensitiveLog: (obj: DescribeImagesResponse) => any;
1250
- }
1251
- export interface DescribeImageScanFindingsRequest {
1749
+ packageVulnerabilityDetails?: PackageVulnerabilityDetails;
1252
1750
  /**
1253
- * <p>The Amazon Web Services account ID associated with the registry that contains the repository in
1254
- * which to describe the image scan findings for. If you do not specify a registry, the default registry is assumed.</p>
1751
+ * <p>An object that contains the details about how to remediate a finding.</p>
1255
1752
  */
1256
- registryId?: string;
1753
+ remediation?: Remediation;
1257
1754
  /**
1258
- * <p>The repository for the image for which to describe the scan findings.</p>
1755
+ * <p>Contains information on the resources involved in a finding.</p>
1259
1756
  */
1260
- repositoryName: string | undefined;
1757
+ resources?: Resource[];
1261
1758
  /**
1262
- * <p>An object with identifying information for an image in an Amazon ECR repository.</p>
1759
+ * <p>The Amazon Inspector score given to the finding.</p>
1263
1760
  */
1264
- imageId: ImageIdentifier | undefined;
1761
+ score?: number;
1265
1762
  /**
1266
- * <p>The <code>nextToken</code> value returned from a previous paginated
1267
- * <code>DescribeImageScanFindings</code> request where <code>maxResults</code> was
1268
- * used and the results exceeded the value of that parameter. Pagination continues from the
1269
- * end of the previous results that returned the <code>nextToken</code> value. This value
1270
- * is null when there are no more results to return.</p>
1763
+ * <p>An object that contains details of the Amazon Inspector score.</p>
1271
1764
  */
1272
- nextToken?: string;
1765
+ scoreDetails?: ScoreDetails;
1273
1766
  /**
1274
- * <p>The maximum number of image scan results returned by
1275
- * <code>DescribeImageScanFindings</code> in paginated output. When this parameter is
1276
- * used, <code>DescribeImageScanFindings</code> only returns <code>maxResults</code>
1277
- * results in a single page along with a <code>nextToken</code> response element. The
1278
- * remaining results of the initial request can be seen by sending another
1279
- * <code>DescribeImageScanFindings</code> request with the returned
1280
- * <code>nextToken</code> value. This value can be between 1 and 1000. If this
1281
- * parameter is not used, then <code>DescribeImageScanFindings</code> returns up to 100
1282
- * results and a <code>nextToken</code> value, if applicable.</p>
1767
+ * <p>The severity of the finding.</p>
1283
1768
  */
1284
- maxResults?: number;
1769
+ severity?: string;
1770
+ /**
1771
+ * <p>The status of the finding.</p>
1772
+ */
1773
+ status?: string;
1774
+ /**
1775
+ * <p>The title of the finding.</p>
1776
+ */
1777
+ title?: string;
1778
+ /**
1779
+ * <p>The type of the finding.</p>
1780
+ */
1781
+ type?: string;
1782
+ /**
1783
+ * <p>The date and time the finding was last updated at.</p>
1784
+ */
1785
+ updatedAt?: Date;
1285
1786
  }
1286
- export declare namespace DescribeImageScanFindingsRequest {
1787
+ export declare namespace EnhancedImageScanFinding {
1287
1788
  /**
1288
1789
  * @internal
1289
1790
  */
1290
- const filterSensitiveLog: (obj: DescribeImageScanFindingsRequest) => any;
1791
+ const filterSensitiveLog: (obj: EnhancedImageScanFinding) => any;
1291
1792
  }
1292
1793
  /**
1293
1794
  * <p>This data type is used in the <a>ImageScanFinding</a> data type.</p>
@@ -1351,16 +1852,20 @@ export interface ImageScanFindings {
1351
1852
  * <p>The time when the vulnerability data was last scanned.</p>
1352
1853
  */
1353
1854
  vulnerabilitySourceUpdatedAt?: Date;
1354
- /**
1355
- * <p>The findings from the image scan.</p>
1356
- */
1357
- findings?: ImageScanFinding[];
1358
1855
  /**
1359
1856
  * <p>The image vulnerability counts, sorted by severity.</p>
1360
1857
  */
1361
1858
  findingSeverityCounts?: {
1362
1859
  [key: string]: number;
1363
1860
  };
1861
+ /**
1862
+ * <p>The findings from the image scan.</p>
1863
+ */
1864
+ findings?: ImageScanFinding[];
1865
+ /**
1866
+ * <p>Details about the enhanced scan findings from Amazon Inspector.</p>
1867
+ */
1868
+ enhancedFindings?: EnhancedImageScanFinding[];
1364
1869
  }
1365
1870
  export declare namespace ImageScanFindings {
1366
1871
  /**
@@ -1413,11 +1918,93 @@ export interface ScanNotFoundException extends __SmithyException, $MetadataBeare
1413
1918
  $fault: "client";
1414
1919
  message?: string;
1415
1920
  }
1416
- export declare namespace ScanNotFoundException {
1921
+ export interface DescribePullThroughCacheRulesRequest {
1922
+ /**
1923
+ * <p>The Amazon Web Services account ID associated with the registry to return the pull through cache
1924
+ * rules for. If you do not specify a registry, the default registry is assumed.</p>
1925
+ */
1926
+ registryId?: string;
1927
+ /**
1928
+ * <p>The Amazon ECR repository prefixes associated with the pull through cache rules to return.
1929
+ * If no repository prefix value is specified, all pull through cache rules are
1930
+ * returned.</p>
1931
+ */
1932
+ ecrRepositoryPrefixes?: string[];
1933
+ /**
1934
+ * <p>The <code>nextToken</code> value returned from a previous paginated
1935
+ * <code>DescribePullThroughCacheRulesRequest</code> request where
1936
+ * <code>maxResults</code> was used and the results exceeded the value of that
1937
+ * parameter. Pagination continues from the end of the previous results that returned the
1938
+ * <code>nextToken</code> value. This value is null when there are no more results to
1939
+ * return.</p>
1940
+ */
1941
+ nextToken?: string;
1942
+ /**
1943
+ * <p>The maximum number of pull through cache rules returned by
1944
+ * <code>DescribePullThroughCacheRulesRequest</code> in paginated output. When this
1945
+ * parameter is used, <code>DescribePullThroughCacheRulesRequest</code> only returns
1946
+ * <code>maxResults</code> results in a single page along with a <code>nextToken</code>
1947
+ * response element. The remaining results of the initial request can be seen by sending
1948
+ * another <code>DescribePullThroughCacheRulesRequest</code> request with the returned
1949
+ * <code>nextToken</code> value. This value can be between 1 and 1000. If this
1950
+ * parameter is not used, then <code>DescribePullThroughCacheRulesRequest</code> returns up
1951
+ * to 100 results and a <code>nextToken</code> value, if applicable.</p>
1952
+ */
1953
+ maxResults?: number;
1954
+ }
1955
+ export declare namespace DescribePullThroughCacheRulesRequest {
1956
+ /**
1957
+ * @internal
1958
+ */
1959
+ const filterSensitiveLog: (obj: DescribePullThroughCacheRulesRequest) => any;
1960
+ }
1961
+ /**
1962
+ * <p>The details of a pull through cache rule.</p>
1963
+ */
1964
+ export interface PullThroughCacheRule {
1965
+ /**
1966
+ * <p>The Amazon ECR repository prefix associated with the pull through cache rule.</p>
1967
+ */
1968
+ ecrRepositoryPrefix?: string;
1969
+ /**
1970
+ * <p>The upstream registry URL associated with the pull through cache rule.</p>
1971
+ */
1972
+ upstreamRegistryUrl?: string;
1973
+ /**
1974
+ * <p>The date and time the pull through cache was created.</p>
1975
+ */
1976
+ createdAt?: Date;
1977
+ /**
1978
+ * <p>The Amazon Web Services account ID associated with the registry the pull through cache rule is
1979
+ * associated with.</p>
1980
+ */
1981
+ registryId?: string;
1982
+ }
1983
+ export declare namespace PullThroughCacheRule {
1984
+ /**
1985
+ * @internal
1986
+ */
1987
+ const filterSensitiveLog: (obj: PullThroughCacheRule) => any;
1988
+ }
1989
+ export interface DescribePullThroughCacheRulesResponse {
1990
+ /**
1991
+ * <p>The details of the pull through cache rules.</p>
1992
+ */
1993
+ pullThroughCacheRules?: PullThroughCacheRule[];
1994
+ /**
1995
+ * <p>The <code>nextToken</code> value to include in a future
1996
+ * <code>DescribePullThroughCacheRulesRequest</code> request. When the results of a
1997
+ * <code>DescribePullThroughCacheRulesRequest</code> request exceed
1998
+ * <code>maxResults</code>, this value can be used to retrieve the next page of
1999
+ * results. This value is null when there are no more results to return.</p>
2000
+ */
2001
+ nextToken?: string;
2002
+ }
2003
+ export declare namespace DescribePullThroughCacheRulesResponse {
1417
2004
  /**
1418
2005
  * @internal
1419
2006
  */
1420
- const filterSensitiveLog: (obj: ScanNotFoundException) => any;
2007
+ const filterSensitiveLog: (obj: DescribePullThroughCacheRulesResponse) => any;
1421
2008
  }
1422
2009
  export interface DescribeRegistryRequest {
1423
2010
  }
@@ -1701,12 +2288,6 @@ export interface LayerInaccessibleException extends __SmithyException, $Metadata
1701
2288
  */
1702
2289
  message?: string;
1703
2290
  }
1704
- export declare namespace LayerInaccessibleException {
1705
- /**
1706
- * @internal
1707
- */
1708
- const filterSensitiveLog: (obj: LayerInaccessibleException) => any;
1709
- }
1710
2291
  /**
1711
2292
  * <p>The specified layers could not be found, or the specified layer is not valid for this
1712
2293
  * repository.</p>
@@ -1719,12 +2300,6 @@ export interface LayersNotFoundException extends __SmithyException, $MetadataBea
1719
2300
  */
1720
2301
  message?: string;
1721
2302
  }
1722
- export declare namespace LayersNotFoundException {
1723
- /**
1724
- * @internal
1725
- */
1726
- const filterSensitiveLog: (obj: LayersNotFoundException) => any;
1727
- }
1728
2303
  export interface GetLifecyclePolicyRequest {
1729
2304
  /**
1730
2305
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository.
@@ -1959,12 +2534,6 @@ export interface LifecyclePolicyPreviewNotFoundException extends __SmithyExcepti
1959
2534
  $fault: "client";
1960
2535
  message?: string;
1961
2536
  }
1962
- export declare namespace LifecyclePolicyPreviewNotFoundException {
1963
- /**
1964
- * @internal
1965
- */
1966
- const filterSensitiveLog: (obj: LifecyclePolicyPreviewNotFoundException) => any;
1967
- }
1968
2537
  export interface GetRegistryPolicyRequest {
1969
2538
  }
1970
2539
  export declare namespace GetRegistryPolicyRequest {
@@ -1989,6 +2558,73 @@ export declare namespace GetRegistryPolicyResponse {
1989
2558
  */
1990
2559
  const filterSensitiveLog: (obj: GetRegistryPolicyResponse) => any;
1991
2560
  }
2561
+ export interface GetRegistryScanningConfigurationRequest {
2562
+ }
2563
+ export declare namespace GetRegistryScanningConfigurationRequest {
2564
+ /**
2565
+ * @internal
2566
+ */
2567
+ const filterSensitiveLog: (obj: GetRegistryScanningConfigurationRequest) => any;
2568
+ }
2569
+ /**
2570
+ * <p>The details of a scanning rule for a private registry.</p>
2571
+ */
2572
+ export interface RegistryScanningRule {
2573
+ /**
2574
+ * <p>The frequency that scans are performed at for a private registry.</p>
2575
+ */
2576
+ scanFrequency: ScanFrequency | string | undefined;
2577
+ /**
2578
+ * <p>The repository filters associated with the scanning configuration for a private
2579
+ * registry.</p>
2580
+ */
2581
+ repositoryFilters: ScanningRepositoryFilter[] | undefined;
2582
+ }
2583
+ export declare namespace RegistryScanningRule {
2584
+ /**
2585
+ * @internal
2586
+ */
2587
+ const filterSensitiveLog: (obj: RegistryScanningRule) => any;
2588
+ }
2589
+ export declare enum ScanType {
2590
+ BASIC = "BASIC",
2591
+ ENHANCED = "ENHANCED"
2592
+ }
2593
+ /**
2594
+ * <p>The scanning configuration for a private registry.</p>
2595
+ */
2596
+ export interface RegistryScanningConfiguration {
2597
+ /**
2598
+ * <p>The type of scanning configured for the registry.</p>
2599
+ */
2600
+ scanType?: ScanType | string;
2601
+ /**
2602
+ * <p>The scanning rules associated with the registry.</p>
2603
+ */
2604
+ rules?: RegistryScanningRule[];
2605
+ }
2606
+ export declare namespace RegistryScanningConfiguration {
2607
+ /**
2608
+ * @internal
2609
+ */
2610
+ const filterSensitiveLog: (obj: RegistryScanningConfiguration) => any;
2611
+ }
2612
+ export interface GetRegistryScanningConfigurationResponse {
2613
+ /**
2614
+ * <p>The ID of the registry.</p>
2615
+ */
2616
+ registryId?: string;
2617
+ /**
2618
+ * <p>The scanning configuration for the registry.</p>
2619
+ */
2620
+ scanningConfiguration?: RegistryScanningConfiguration;
2621
+ }
2622
+ export declare namespace GetRegistryScanningConfigurationResponse {
2623
+ /**
2624
+ * @internal
2625
+ */
2626
+ const filterSensitiveLog: (obj: GetRegistryScanningConfigurationResponse) => any;
2627
+ }
1992
2628
  export interface GetRepositoryPolicyRequest {
1993
2629
  /**
1994
2630
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository.
@@ -2179,12 +2815,6 @@ export interface ImageAlreadyExistsException extends __SmithyException, $Metadat
2179
2815
  */
2180
2816
  message?: string;
2181
2817
  }
2182
- export declare namespace ImageAlreadyExistsException {
2183
- /**
2184
- * @internal
2185
- */
2186
- const filterSensitiveLog: (obj: ImageAlreadyExistsException) => any;
2187
- }
2188
2818
  /**
2189
2819
  * <p>The specified image digest does not match the digest that Amazon ECR calculated for the
2190
2820
  * image.</p>
@@ -2194,12 +2824,6 @@ export interface ImageDigestDoesNotMatchException extends __SmithyException, $Me
2194
2824
  $fault: "client";
2195
2825
  message?: string;
2196
2826
  }
2197
- export declare namespace ImageDigestDoesNotMatchException {
2198
- /**
2199
- * @internal
2200
- */
2201
- const filterSensitiveLog: (obj: ImageDigestDoesNotMatchException) => any;
2202
- }
2203
2827
  /**
2204
2828
  * <p>The specified image is tagged with a tag that already exists. The repository is
2205
2829
  * configured for tag immutability.</p>
@@ -2209,12 +2833,6 @@ export interface ImageTagAlreadyExistsException extends __SmithyException, $Meta
2209
2833
  $fault: "client";
2210
2834
  message?: string;
2211
2835
  }
2212
- export declare namespace ImageTagAlreadyExistsException {
2213
- /**
2214
- * @internal
2215
- */
2216
- const filterSensitiveLog: (obj: ImageTagAlreadyExistsException) => any;
2217
- }
2218
2836
  export interface PutImageRequest {
2219
2837
  /**
2220
2838
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository in
@@ -2271,12 +2889,6 @@ export interface ReferencedImagesNotFoundException extends __SmithyException, $M
2271
2889
  $fault: "client";
2272
2890
  message?: string;
2273
2891
  }
2274
- export declare namespace ReferencedImagesNotFoundException {
2275
- /**
2276
- * @internal
2277
- */
2278
- const filterSensitiveLog: (obj: ReferencedImagesNotFoundException) => any;
2279
- }
2280
2892
  export interface PutImageScanningConfigurationRequest {
2281
2893
  /**
2282
2894
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository in
@@ -2439,6 +3051,41 @@ export declare namespace PutRegistryPolicyResponse {
2439
3051
  */
2440
3052
  const filterSensitiveLog: (obj: PutRegistryPolicyResponse) => any;
2441
3053
  }
3054
+ export interface PutRegistryScanningConfigurationRequest {
3055
+ /**
3056
+ * <p>The scanning type to set for the registry.</p>
3057
+ * <p>By default, the <code>BASIC</code> scan type is used. When basic scanning is set, you
3058
+ * may specify filters to determine which individual repositories, or all repositories, are
3059
+ * scanned when new images are pushed. Alternatively, you can do manual scans of images
3060
+ * with basic scanning.</p>
3061
+ * <p>When the <code>ENHANCED</code> scan type is set, Amazon Inspector provides automated, continuous
3062
+ * scanning of all repositories in your registry.</p>
3063
+ */
3064
+ scanType?: ScanType | string;
3065
+ /**
3066
+ * <p>The scanning rules to use for the registry. A scanning rule is used to determine which
3067
+ * repository filters are used and at what frequency scanning will occur.</p>
3068
+ */
3069
+ rules?: RegistryScanningRule[];
3070
+ }
3071
+ export declare namespace PutRegistryScanningConfigurationRequest {
3072
+ /**
3073
+ * @internal
3074
+ */
3075
+ const filterSensitiveLog: (obj: PutRegistryScanningConfigurationRequest) => any;
3076
+ }
3077
+ export interface PutRegistryScanningConfigurationResponse {
3078
+ /**
3079
+ * <p>The scanning configuration for your registry.</p>
3080
+ */
3081
+ registryScanningConfiguration?: RegistryScanningConfiguration;
3082
+ }
3083
+ export declare namespace PutRegistryScanningConfigurationResponse {
3084
+ /**
3085
+ * @internal
3086
+ */
3087
+ const filterSensitiveLog: (obj: PutRegistryScanningConfigurationResponse) => any;
3088
+ }
2442
3089
  export interface PutReplicationConfigurationRequest {
2443
3090
  /**
2444
3091
  * <p>An object representing the replication configuration for a registry.</p>
@@ -2565,12 +3212,6 @@ export interface UnsupportedImageTypeException extends __SmithyException, $Metad
2565
3212
  $fault: "client";
2566
3213
  message?: string;
2567
3214
  }
2568
- export declare namespace UnsupportedImageTypeException {
2569
- /**
2570
- * @internal
2571
- */
2572
- const filterSensitiveLog: (obj: UnsupportedImageTypeException) => any;
2573
- }
2574
3215
  /**
2575
3216
  * <p>The previous lifecycle policy preview request has not completed. Wait and try
2576
3217
  * again.</p>
@@ -2580,12 +3221,6 @@ export interface LifecyclePolicyPreviewInProgressException extends __SmithyExcep
2580
3221
  $fault: "client";
2581
3222
  message?: string;
2582
3223
  }
2583
- export declare namespace LifecyclePolicyPreviewInProgressException {
2584
- /**
2585
- * @internal
2586
- */
2587
- const filterSensitiveLog: (obj: LifecyclePolicyPreviewInProgressException) => any;
2588
- }
2589
3224
  export interface StartLifecyclePolicyPreviewRequest {
2590
3225
  /**
2591
3226
  * <p>The Amazon Web Services account ID associated with the registry that contains the repository.
@@ -2713,12 +3348,6 @@ export interface InvalidLayerPartException extends __SmithyException, $MetadataB
2713
3348
  */
2714
3349
  message?: string;
2715
3350
  }
2716
- export declare namespace InvalidLayerPartException {
2717
- /**
2718
- * @internal
2719
- */
2720
- const filterSensitiveLog: (obj: InvalidLayerPartException) => any;
2721
- }
2722
3351
  export interface UploadLayerPartRequest {
2723
3352
  /**
2724
3353
  * <p>The Amazon Web Services account ID associated with the registry to which you are uploading layer