aws-sdk-ecr 1.46.0 → 1.50.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01cc0742d62ee8ad28cc56bf77f57b49a65ac594eeee009246dfa2ee2d549efd
4
- data.tar.gz: d87628d51f66f007b74876f92aaf4b5a221007f669b9b440507b801541213bee
3
+ metadata.gz: 5e8b25d74daf72b885851507981eb0381006eaca1bc171544711c8d17e65ea6f
4
+ data.tar.gz: 947a4adfa82f6061678d985009af9399404e3504092da1279ff657dbb117964c
5
5
  SHA512:
6
- metadata.gz: 93b12c6eb4f4b9f4312a29ae73d85750d5ca933cc6dd989432e5f74fc00ea6c06f07a0da95e07edc2331a922b1302a3578e7ef34df76e4f3b4ccdb2d8bc798af
7
- data.tar.gz: dd9677da00da3ddaa18107519a186c1ea30783e672bc38c848897cad21a0400618d2334a7f4603a4356c1fdd396cd8d3e7d97d1d9cb3f9920652c88d7ce2e63d
6
+ metadata.gz: 7e6158ae230f0dc0955704cac24fbd7cc007d4075134a2301d9f037b106ae526d5b29cf154eab297a82724c46a28ced7385f02e8ae7d00066ea51b41f6f9e818
7
+ data.tar.gz: 33d106e7f36fe1cf005ebe706d4770cebea4cc1967126d0b4f3dbb3c003c87d2904587fe2c874be4bb58b3cc118fdbd103ef635e7a6cea8489e3345832ad7af9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.50.0 (2021-11-29)
5
+ ------------------
6
+
7
+ * Feature - This release adds supports for pull through cache rules and enhanced scanning.
8
+
9
+ 1.49.0 (2021-11-04)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.48.0 (2021-10-18)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.47.0 (2021-09-21)
20
+ ------------------
21
+
22
+ * Feature - This release adds additional support for repository replication
23
+
4
24
  1.46.0 (2021-09-10)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.46.0
1
+ 1.50.0
@@ -285,6 +285,15 @@ module Aws::ECR
285
285
  # ** Please note ** When response stubbing is enabled, no HTTP
286
286
  # requests are made, and retries are disabled.
287
287
  #
288
+ # @option options [Boolean] :use_dualstack_endpoint
289
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
290
+ # will be used if available.
291
+ #
292
+ # @option options [Boolean] :use_fips_endpoint
293
+ # When set to `true`, fips compatible endpoints will be used if available.
294
+ # When a `fips` region is used, the region is normalized and this config
295
+ # is set to `true`.
296
+ #
288
297
  # @option options [Boolean] :validate_params (true)
289
298
  # When `true`, request parameters are validated before
290
299
  # sending the request.
@@ -584,6 +593,46 @@ module Aws::ECR
584
593
  req.send_request(options)
585
594
  end
586
595
 
596
+ # Gets the scanning configuration for one or more repositories.
597
+ #
598
+ # @option params [required, Array<String>] :repository_names
599
+ # One or more repository names to get the scanning configuration for.
600
+ #
601
+ # @return [Types::BatchGetRepositoryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
602
+ #
603
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#scanning_configurations #scanning_configurations} => Array&lt;Types::RepositoryScanningConfiguration&gt;
604
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#failures #failures} => Array&lt;Types::RepositoryScanningConfigurationFailure&gt;
605
+ #
606
+ # @example Request syntax with placeholder values
607
+ #
608
+ # resp = client.batch_get_repository_scanning_configuration({
609
+ # repository_names: ["RepositoryName"], # required
610
+ # })
611
+ #
612
+ # @example Response structure
613
+ #
614
+ # resp.scanning_configurations #=> Array
615
+ # resp.scanning_configurations[0].repository_arn #=> String
616
+ # resp.scanning_configurations[0].repository_name #=> String
617
+ # resp.scanning_configurations[0].scan_on_push #=> Boolean
618
+ # resp.scanning_configurations[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
619
+ # resp.scanning_configurations[0].applied_scan_filters #=> Array
620
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter #=> String
621
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter_type #=> String, one of "WILDCARD"
622
+ # resp.failures #=> Array
623
+ # resp.failures[0].repository_name #=> String
624
+ # resp.failures[0].failure_code #=> String, one of "REPOSITORY_NOT_FOUND"
625
+ # resp.failures[0].failure_reason #=> String
626
+ #
627
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetRepositoryScanningConfiguration AWS API Documentation
628
+ #
629
+ # @overload batch_get_repository_scanning_configuration(params = {})
630
+ # @param [Hash] params ({})
631
+ def batch_get_repository_scanning_configuration(params = {}, options = {})
632
+ req = build_request(:batch_get_repository_scanning_configuration, params)
633
+ req.send_request(options)
634
+ end
635
+
587
636
  # Informs Amazon ECR that the image layer upload has completed for a
588
637
  # specified registry, repository name, and upload ID. You can optionally
589
638
  # provide a `sha256` digest of the image layer for data validation
@@ -645,6 +694,54 @@ module Aws::ECR
645
694
  req.send_request(options)
646
695
  end
647
696
 
697
+ # Creates a pull through cache rule. A pull through cache rule provides
698
+ # a way to cache images from an external public registry in your Amazon
699
+ # ECR private registry.
700
+ #
701
+ # @option params [required, String] :ecr_repository_prefix
702
+ # The repository name prefix to use when caching images from the source
703
+ # registry.
704
+ #
705
+ # @option params [required, String] :upstream_registry_url
706
+ # The registry URL of the upstream public registry to use as the source
707
+ # for the pull through cache rule.
708
+ #
709
+ # @option params [String] :registry_id
710
+ # The Amazon Web Services account ID associated with the registry to
711
+ # create the pull through cache rule for. If you do not specify a
712
+ # registry, the default registry is assumed.
713
+ #
714
+ # @return [Types::CreatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
715
+ #
716
+ # * {Types::CreatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
717
+ # * {Types::CreatePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
718
+ # * {Types::CreatePullThroughCacheRuleResponse#created_at #created_at} => Time
719
+ # * {Types::CreatePullThroughCacheRuleResponse#registry_id #registry_id} => String
720
+ #
721
+ # @example Request syntax with placeholder values
722
+ #
723
+ # resp = client.create_pull_through_cache_rule({
724
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
725
+ # upstream_registry_url: "Url", # required
726
+ # registry_id: "RegistryId",
727
+ # })
728
+ #
729
+ # @example Response structure
730
+ #
731
+ # resp.ecr_repository_prefix #=> String
732
+ # resp.upstream_registry_url #=> String
733
+ # resp.created_at #=> Time
734
+ # resp.registry_id #=> String
735
+ #
736
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRule AWS API Documentation
737
+ #
738
+ # @overload create_pull_through_cache_rule(params = {})
739
+ # @param [Hash] params ({})
740
+ def create_pull_through_cache_rule(params = {}, options = {})
741
+ req = build_request(:create_pull_through_cache_rule, params)
742
+ req.send_request(options)
743
+ end
744
+
648
745
  # Creates a repository. For more information, see [Amazon ECR
649
746
  # repositories][1] in the *Amazon Elastic Container Registry User
650
747
  # Guide*.
@@ -653,6 +750,11 @@ module Aws::ECR
653
750
  #
654
751
  # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
655
752
  #
753
+ # @option params [String] :registry_id
754
+ # The Amazon Web Services account ID associated with the registry to
755
+ # create the repository. If you do not specify a registry, the default
756
+ # registry is assumed.
757
+ #
656
758
  # @option params [required, String] :repository_name
657
759
  # The name to use for the repository. The repository name may be
658
760
  # specified on its own (such as `nginx-web-app`) or it can be prepended
@@ -708,6 +810,7 @@ module Aws::ECR
708
810
  # @example Request syntax with placeholder values
709
811
  #
710
812
  # resp = client.create_repository({
813
+ # registry_id: "RegistryId",
711
814
  # repository_name: "RepositoryName", # required
712
815
  # tags: [
713
816
  # {
@@ -786,6 +889,47 @@ module Aws::ECR
786
889
  req.send_request(options)
787
890
  end
788
891
 
892
+ # Deletes a pull through cache rule.
893
+ #
894
+ # @option params [required, String] :ecr_repository_prefix
895
+ # The Amazon ECR repository prefix associated with the pull through
896
+ # cache rule to delete.
897
+ #
898
+ # @option params [String] :registry_id
899
+ # The Amazon Web Services account ID associated with the registry that
900
+ # contains the pull through cache rule. If you do not specify a
901
+ # registry, the default registry is assumed.
902
+ #
903
+ # @return [Types::DeletePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
904
+ #
905
+ # * {Types::DeletePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
906
+ # * {Types::DeletePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
907
+ # * {Types::DeletePullThroughCacheRuleResponse#created_at #created_at} => Time
908
+ # * {Types::DeletePullThroughCacheRuleResponse#registry_id #registry_id} => String
909
+ #
910
+ # @example Request syntax with placeholder values
911
+ #
912
+ # resp = client.delete_pull_through_cache_rule({
913
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
914
+ # registry_id: "RegistryId",
915
+ # })
916
+ #
917
+ # @example Response structure
918
+ #
919
+ # resp.ecr_repository_prefix #=> String
920
+ # resp.upstream_registry_url #=> String
921
+ # resp.created_at #=> Time
922
+ # resp.registry_id #=> String
923
+ #
924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule AWS API Documentation
925
+ #
926
+ # @overload delete_pull_through_cache_rule(params = {})
927
+ # @param [Hash] params ({})
928
+ def delete_pull_through_cache_rule(params = {}, options = {})
929
+ req = build_request(:delete_pull_through_cache_rule, params)
930
+ req.send_request(options)
931
+ end
932
+
789
933
  # Deletes the registry permissions policy.
790
934
  #
791
935
  # @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -931,6 +1075,56 @@ module Aws::ECR
931
1075
  req.send_request(options)
932
1076
  end
933
1077
 
1078
+ # Returns the replication status for a specified image.
1079
+ #
1080
+ # @option params [required, String] :repository_name
1081
+ # The name of the repository that the image is in.
1082
+ #
1083
+ # @option params [required, Types::ImageIdentifier] :image_id
1084
+ # An object with identifying information for an image in an Amazon ECR
1085
+ # repository.
1086
+ #
1087
+ # @option params [String] :registry_id
1088
+ # The Amazon Web Services account ID associated with the registry. If
1089
+ # you do not specify a registry, the default registry is assumed.
1090
+ #
1091
+ # @return [Types::DescribeImageReplicationStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1092
+ #
1093
+ # * {Types::DescribeImageReplicationStatusResponse#repository_name #repository_name} => String
1094
+ # * {Types::DescribeImageReplicationStatusResponse#image_id #image_id} => Types::ImageIdentifier
1095
+ # * {Types::DescribeImageReplicationStatusResponse#replication_statuses #replication_statuses} => Array&lt;Types::ImageReplicationStatus&gt;
1096
+ #
1097
+ # @example Request syntax with placeholder values
1098
+ #
1099
+ # resp = client.describe_image_replication_status({
1100
+ # repository_name: "RepositoryName", # required
1101
+ # image_id: { # required
1102
+ # image_digest: "ImageDigest",
1103
+ # image_tag: "ImageTag",
1104
+ # },
1105
+ # registry_id: "RegistryId",
1106
+ # })
1107
+ #
1108
+ # @example Response structure
1109
+ #
1110
+ # resp.repository_name #=> String
1111
+ # resp.image_id.image_digest #=> String
1112
+ # resp.image_id.image_tag #=> String
1113
+ # resp.replication_statuses #=> Array
1114
+ # resp.replication_statuses[0].region #=> String
1115
+ # resp.replication_statuses[0].registry_id #=> String
1116
+ # resp.replication_statuses[0].status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1117
+ # resp.replication_statuses[0].failure_code #=> String
1118
+ #
1119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImageReplicationStatus AWS API Documentation
1120
+ #
1121
+ # @overload describe_image_replication_status(params = {})
1122
+ # @param [Hash] params ({})
1123
+ def describe_image_replication_status(params = {}, options = {})
1124
+ req = build_request(:describe_image_replication_status, params)
1125
+ req.send_request(options)
1126
+ end
1127
+
934
1128
  # Returns the scan findings for the specified image.
935
1129
  #
936
1130
  # @option params [String] :registry_id
@@ -943,7 +1137,8 @@ module Aws::ECR
943
1137
  # The repository for the image for which to describe the scan findings.
944
1138
  #
945
1139
  # @option params [required, Types::ImageIdentifier] :image_id
946
- # An object with identifying information for an Amazon ECR image.
1140
+ # An object with identifying information for an image in an Amazon ECR
1141
+ # repository.
947
1142
  #
948
1143
  # @option params [String] :next_token
949
1144
  # The `nextToken` value returned from a previous paginated
@@ -993,10 +1188,12 @@ module Aws::ECR
993
1188
  # resp.repository_name #=> String
994
1189
  # resp.image_id.image_digest #=> String
995
1190
  # resp.image_id.image_tag #=> String
996
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1191
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
997
1192
  # resp.image_scan_status.description #=> String
998
1193
  # resp.image_scan_findings.image_scan_completed_at #=> Time
999
1194
  # resp.image_scan_findings.vulnerability_source_updated_at #=> Time
1195
+ # resp.image_scan_findings.finding_severity_counts #=> Hash
1196
+ # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1000
1197
  # resp.image_scan_findings.findings #=> Array
1001
1198
  # resp.image_scan_findings.findings[0].name #=> String
1002
1199
  # resp.image_scan_findings.findings[0].description #=> String
@@ -1005,8 +1202,65 @@ module Aws::ECR
1005
1202
  # resp.image_scan_findings.findings[0].attributes #=> Array
1006
1203
  # resp.image_scan_findings.findings[0].attributes[0].key #=> String
1007
1204
  # resp.image_scan_findings.findings[0].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1008
- # resp.image_scan_findings.finding_severity_counts #=> Hash
1009
- # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1205
+ # resp.image_scan_findings.enhanced_findings #=> Array
1206
+ # resp.image_scan_findings.enhanced_findings[0].aws_account_id #=> String
1207
+ # resp.image_scan_findings.enhanced_findings[0].description #=> String
1208
+ # resp.image_scan_findings.enhanced_findings[0].finding_arn #=> String
1209
+ # resp.image_scan_findings.enhanced_findings[0].first_observed_at #=> Time
1210
+ # resp.image_scan_findings.enhanced_findings[0].last_observed_at #=> Time
1211
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss #=> Array
1212
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].base_score #=> Float
1213
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].scoring_vector #=> String
1214
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].source #=> String
1215
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].version #=> String
1216
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls #=> Array
1217
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls[0] #=> String
1218
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities #=> Array
1219
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities[0] #=> String
1220
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source #=> String
1221
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source_url #=> String
1222
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_created_at #=> Time
1223
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_severity #=> String
1224
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_updated_at #=> Time
1225
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerability_id #=> String
1226
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages #=> Array
1227
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].arch #=> String
1228
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].epoch #=> Integer
1229
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].file_path #=> String
1230
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].name #=> String
1231
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].package_manager #=> String
1232
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].release #=> String
1233
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].source_layer_hash #=> String
1234
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].version #=> String
1235
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.url #=> String
1236
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.text #=> String
1237
+ # resp.image_scan_findings.enhanced_findings[0].resources #=> Array
1238
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.architecture #=> String
1239
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.author #=> String
1240
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_hash #=> String
1241
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags #=> Array
1242
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags[0] #=> String
1243
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.platform #=> String
1244
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
1245
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
1246
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.repository_name #=> String
1247
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].id #=> String
1248
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags #=> Hash
1249
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags["TagKey"] #=> String
1250
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].type #=> String
1251
+ # resp.image_scan_findings.enhanced_findings[0].score #=> Float
1252
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments #=> Array
1253
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].metric #=> String
1254
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].reason #=> String
1255
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score #=> Float
1256
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score_source #=> String
1257
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.scoring_vector #=> String
1258
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.version #=> String
1259
+ # resp.image_scan_findings.enhanced_findings[0].severity #=> String
1260
+ # resp.image_scan_findings.enhanced_findings[0].status #=> String
1261
+ # resp.image_scan_findings.enhanced_findings[0].title #=> String
1262
+ # resp.image_scan_findings.enhanced_findings[0].type #=> String
1263
+ # resp.image_scan_findings.enhanced_findings[0].updated_at #=> Time
1010
1264
  # resp.next_token #=> String
1011
1265
  #
1012
1266
  #
@@ -1102,7 +1356,7 @@ module Aws::ECR
1102
1356
  # resp.image_details[0].image_tags[0] #=> String
1103
1357
  # resp.image_details[0].image_size_in_bytes #=> Integer
1104
1358
  # resp.image_details[0].image_pushed_at #=> Time
1105
- # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1359
+ # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1106
1360
  # resp.image_details[0].image_scan_status.description #=> String
1107
1361
  # resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
1108
1362
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
@@ -1121,6 +1375,72 @@ module Aws::ECR
1121
1375
  req.send_request(options)
1122
1376
  end
1123
1377
 
1378
+ # Returns the pull through cache rules for a registry.
1379
+ #
1380
+ # @option params [String] :registry_id
1381
+ # The Amazon Web Services account ID associated with the registry to
1382
+ # return the pull through cache rules for. If you do not specify a
1383
+ # registry, the default registry is assumed.
1384
+ #
1385
+ # @option params [Array<String>] :ecr_repository_prefixes
1386
+ # The Amazon ECR repository prefixes associated with the pull through
1387
+ # cache rules to return. If no repository prefix value is specified, all
1388
+ # pull through cache rules are returned.
1389
+ #
1390
+ # @option params [String] :next_token
1391
+ # The `nextToken` value returned from a previous paginated
1392
+ # `DescribePullThroughCacheRulesRequest` request where `maxResults` was
1393
+ # used and the results exceeded the value of that parameter. Pagination
1394
+ # continues from the end of the previous results that returned the
1395
+ # `nextToken` value. This value is null when there are no more results
1396
+ # to return.
1397
+ #
1398
+ # @option params [Integer] :max_results
1399
+ # The maximum number of pull through cache rules returned by
1400
+ # `DescribePullThroughCacheRulesRequest` in paginated output. When this
1401
+ # parameter is used, `DescribePullThroughCacheRulesRequest` only returns
1402
+ # `maxResults` results in a single page along with a `nextToken`
1403
+ # response element. The remaining results of the initial request can be
1404
+ # seen by sending another `DescribePullThroughCacheRulesRequest` request
1405
+ # with the returned `nextToken` value. This value can be between 1 and
1406
+ # 1000. If this parameter is not used, then
1407
+ # `DescribePullThroughCacheRulesRequest` returns up to 100 results and a
1408
+ # `nextToken` value, if applicable.
1409
+ #
1410
+ # @return [Types::DescribePullThroughCacheRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1411
+ #
1412
+ # * {Types::DescribePullThroughCacheRulesResponse#pull_through_cache_rules #pull_through_cache_rules} => Array&lt;Types::PullThroughCacheRule&gt;
1413
+ # * {Types::DescribePullThroughCacheRulesResponse#next_token #next_token} => String
1414
+ #
1415
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1416
+ #
1417
+ # @example Request syntax with placeholder values
1418
+ #
1419
+ # resp = client.describe_pull_through_cache_rules({
1420
+ # registry_id: "RegistryId",
1421
+ # ecr_repository_prefixes: ["PullThroughCacheRuleRepositoryPrefix"],
1422
+ # next_token: "NextToken",
1423
+ # max_results: 1,
1424
+ # })
1425
+ #
1426
+ # @example Response structure
1427
+ #
1428
+ # resp.pull_through_cache_rules #=> Array
1429
+ # resp.pull_through_cache_rules[0].ecr_repository_prefix #=> String
1430
+ # resp.pull_through_cache_rules[0].upstream_registry_url #=> String
1431
+ # resp.pull_through_cache_rules[0].created_at #=> Time
1432
+ # resp.pull_through_cache_rules[0].registry_id #=> String
1433
+ # resp.next_token #=> String
1434
+ #
1435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribePullThroughCacheRules AWS API Documentation
1436
+ #
1437
+ # @overload describe_pull_through_cache_rules(params = {})
1438
+ # @param [Hash] params ({})
1439
+ def describe_pull_through_cache_rules(params = {}, options = {})
1440
+ req = build_request(:describe_pull_through_cache_rules, params)
1441
+ req.send_request(options)
1442
+ end
1443
+
1124
1444
  # Describes the settings for a registry. The replication configuration
1125
1445
  # for a repository can be created or updated with the
1126
1446
  # PutReplicationConfiguration API action.
@@ -1137,6 +1457,9 @@ module Aws::ECR
1137
1457
  # resp.replication_configuration.rules[0].destinations #=> Array
1138
1458
  # resp.replication_configuration.rules[0].destinations[0].region #=> String
1139
1459
  # resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
1460
+ # resp.replication_configuration.rules[0].repository_filters #=> Array
1461
+ # resp.replication_configuration.rules[0].repository_filters[0].filter #=> String
1462
+ # resp.replication_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "PREFIX_MATCH"
1140
1463
  #
1141
1464
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistry AWS API Documentation
1142
1465
  #
@@ -1528,6 +1851,32 @@ module Aws::ECR
1528
1851
  req.send_request(options)
1529
1852
  end
1530
1853
 
1854
+ # Retrieves the scanning configuration for a registry.
1855
+ #
1856
+ # @return [Types::GetRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1857
+ #
1858
+ # * {Types::GetRegistryScanningConfigurationResponse#registry_id #registry_id} => String
1859
+ # * {Types::GetRegistryScanningConfigurationResponse#scanning_configuration #scanning_configuration} => Types::RegistryScanningConfiguration
1860
+ #
1861
+ # @example Response structure
1862
+ #
1863
+ # resp.registry_id #=> String
1864
+ # resp.scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
1865
+ # resp.scanning_configuration.rules #=> Array
1866
+ # resp.scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
1867
+ # resp.scanning_configuration.rules[0].repository_filters #=> Array
1868
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter #=> String
1869
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
1870
+ #
1871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryScanningConfiguration AWS API Documentation
1872
+ #
1873
+ # @overload get_registry_scanning_configuration(params = {})
1874
+ # @param [Hash] params ({})
1875
+ def get_registry_scanning_configuration(params = {}, options = {})
1876
+ req = build_request(:get_registry_scanning_configuration, params)
1877
+ req.send_request(options)
1878
+ end
1879
+
1531
1880
  # Retrieves the repository policy for the specified repository.
1532
1881
  #
1533
1882
  # @option params [String] :registry_id
@@ -2023,6 +2372,64 @@ module Aws::ECR
2023
2372
  req.send_request(options)
2024
2373
  end
2025
2374
 
2375
+ # Creates or updates the scanning configuration for your private
2376
+ # registry.
2377
+ #
2378
+ # @option params [String] :scan_type
2379
+ # The scanning type to set for the registry.
2380
+ #
2381
+ # By default, the `BASIC` scan type is used. When basic scanning is set,
2382
+ # you may specify filters to determine which individual repositories, or
2383
+ # all repositories, are scanned when new images are pushed.
2384
+ # Alternatively, you can do manual scans of images with basic scanning.
2385
+ #
2386
+ # When the `ENHANCED` scan type is set, Amazon Inspector provides
2387
+ # automated, continuous scanning of all repositories in your registry.
2388
+ #
2389
+ # @option params [Array<Types::RegistryScanningRule>] :rules
2390
+ # The scanning rules to use for the registry. A scanning rule is used to
2391
+ # determine which repository filters are used and at what frequency
2392
+ # scanning will occur.
2393
+ #
2394
+ # @return [Types::PutRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2395
+ #
2396
+ # * {Types::PutRegistryScanningConfigurationResponse#registry_scanning_configuration #registry_scanning_configuration} => Types::RegistryScanningConfiguration
2397
+ #
2398
+ # @example Request syntax with placeholder values
2399
+ #
2400
+ # resp = client.put_registry_scanning_configuration({
2401
+ # scan_type: "BASIC", # accepts BASIC, ENHANCED
2402
+ # rules: [
2403
+ # {
2404
+ # scan_frequency: "SCAN_ON_PUSH", # required, accepts SCAN_ON_PUSH, CONTINUOUS_SCAN, MANUAL
2405
+ # repository_filters: [ # required
2406
+ # {
2407
+ # filter: "ScanningRepositoryFilterValue", # required
2408
+ # filter_type: "WILDCARD", # required, accepts WILDCARD
2409
+ # },
2410
+ # ],
2411
+ # },
2412
+ # ],
2413
+ # })
2414
+ #
2415
+ # @example Response structure
2416
+ #
2417
+ # resp.registry_scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
2418
+ # resp.registry_scanning_configuration.rules #=> Array
2419
+ # resp.registry_scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
2420
+ # resp.registry_scanning_configuration.rules[0].repository_filters #=> Array
2421
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter #=> String
2422
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
2423
+ #
2424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryScanningConfiguration AWS API Documentation
2425
+ #
2426
+ # @overload put_registry_scanning_configuration(params = {})
2427
+ # @param [Hash] params ({})
2428
+ def put_registry_scanning_configuration(params = {}, options = {})
2429
+ req = build_request(:put_registry_scanning_configuration, params)
2430
+ req.send_request(options)
2431
+ end
2432
+
2026
2433
  # Creates or updates the replication configuration for a registry. The
2027
2434
  # existing replication configuration for a repository can be retrieved
2028
2435
  # with the DescribeRegistry API action. The first time the
@@ -2061,6 +2468,12 @@ module Aws::ECR
2061
2468
  # registry_id: "RegistryId", # required
2062
2469
  # },
2063
2470
  # ],
2471
+ # repository_filters: [
2472
+ # {
2473
+ # filter: "RepositoryFilterValue", # required
2474
+ # filter_type: "PREFIX_MATCH", # required, accepts PREFIX_MATCH
2475
+ # },
2476
+ # ],
2064
2477
  # },
2065
2478
  # ],
2066
2479
  # },
@@ -2072,6 +2485,9 @@ module Aws::ECR
2072
2485
  # resp.replication_configuration.rules[0].destinations #=> Array
2073
2486
  # resp.replication_configuration.rules[0].destinations[0].region #=> String
2074
2487
  # resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
2488
+ # resp.replication_configuration.rules[0].repository_filters #=> Array
2489
+ # resp.replication_configuration.rules[0].repository_filters[0].filter #=> String
2490
+ # resp.replication_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "PREFIX_MATCH"
2075
2491
  #
2076
2492
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfiguration AWS API Documentation
2077
2493
  #
@@ -2161,7 +2577,8 @@ module Aws::ECR
2161
2577
  # The name of the repository that contains the images to scan.
2162
2578
  #
2163
2579
  # @option params [required, Types::ImageIdentifier] :image_id
2164
- # An object with identifying information for an Amazon ECR image.
2580
+ # An object with identifying information for an image in an Amazon ECR
2581
+ # repository.
2165
2582
  #
2166
2583
  # @return [Types::StartImageScanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2167
2584
  #
@@ -2187,7 +2604,7 @@ module Aws::ECR
2187
2604
  # resp.repository_name #=> String
2188
2605
  # resp.image_id.image_digest #=> String
2189
2606
  # resp.image_id.image_tag #=> String
2190
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
2607
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
2191
2608
  # resp.image_scan_status.description #=> String
2192
2609
  #
2193
2610
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
@@ -2394,7 +2811,7 @@ module Aws::ECR
2394
2811
  params: params,
2395
2812
  config: config)
2396
2813
  context[:gem_name] = 'aws-sdk-ecr'
2397
- context[:gem_version] = '1.46.0'
2814
+ context[:gem_version] = '1.50.0'
2398
2815
  Seahorse::Client::Request.new(handlers, context)
2399
2816
  end
2400
2817