aws-sdk-ecr 1.49.0 → 1.53.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 901dbb5ec2a30b18a1a5a9c96868ba1f5f68a0645e9caf83bccd73a9f86c2f3d
4
- data.tar.gz: 4f875005fa194ad2595c3ee7a8cea483f242a9d5478f50f1b826019b61cf136f
3
+ metadata.gz: 175d1bf833f2ac89551d4ec9d40dcebb6939d6c9d6f986352919d2ac9dc20c36
4
+ data.tar.gz: e6c52e27225e35d03554f8c1ad153313183fefd1cae3bdf347e84dc2327f1db7
5
5
  SHA512:
6
- metadata.gz: 4caef5143d68deff1301550faa6183d402374377af3c1b17665a1f6f352a3b4f8168036a91f9ebd6b3a19f0f3232c98db9bd5c1d54fb7738258eb6524976d4f2
7
- data.tar.gz: d817b3837dcc26d57b8df6e721d128757976075b57f1c2bff714a4b02634c4579dd70063140b99426bddfa784b2da2059dc27244f071f45a5fbf9ebe02ba8b5d
6
+ metadata.gz: b295cc57a95990f2b33557ce9dbc469e47f24149c739b2907d213561dd7f6c26858a37e3873f58874511f086440858b8d4d0a16ffc6bd2660eadeab19d24c128
7
+ data.tar.gz: 3023465ea80de6fd8371b03db4726a724afc6449e0d6d4b45df6e447cdfa9563ebe13850175578aaa1c861ad629bb549a8168c2d6a499645c511611e765b389f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.52.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.51.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.50.0 (2021-11-29)
20
+ ------------------
21
+
22
+ * Feature - This release adds supports for pull through cache rules and enhanced scanning.
23
+
4
24
  1.49.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.53.0
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::ECR
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
82
 
@@ -119,7 +123,9 @@ module Aws::ECR
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::ECR
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -305,7 +315,7 @@ module Aws::ECR
305
315
  # seconds to wait when opening a HTTP session before raising a
306
316
  # `Timeout::Error`.
307
317
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
318
+ # @option options [Float] :http_read_timeout (60) The default
309
319
  # number of seconds to wait for response data. This value can
310
320
  # safely be set per-request on the session.
311
321
  #
@@ -321,6 +331,9 @@ module Aws::ECR
321
331
  # disables this behaviour. This value can safely be set per
322
332
  # request on the session.
323
333
  #
334
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
335
+ # in seconds.
336
+ #
324
337
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
338
  # HTTP debug output will be sent to the `:logger`.
326
339
  #
@@ -593,6 +606,46 @@ module Aws::ECR
593
606
  req.send_request(options)
594
607
  end
595
608
 
609
+ # Gets the scanning configuration for one or more repositories.
610
+ #
611
+ # @option params [required, Array<String>] :repository_names
612
+ # One or more repository names to get the scanning configuration for.
613
+ #
614
+ # @return [Types::BatchGetRepositoryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
615
+ #
616
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#scanning_configurations #scanning_configurations} => Array&lt;Types::RepositoryScanningConfiguration&gt;
617
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#failures #failures} => Array&lt;Types::RepositoryScanningConfigurationFailure&gt;
618
+ #
619
+ # @example Request syntax with placeholder values
620
+ #
621
+ # resp = client.batch_get_repository_scanning_configuration({
622
+ # repository_names: ["RepositoryName"], # required
623
+ # })
624
+ #
625
+ # @example Response structure
626
+ #
627
+ # resp.scanning_configurations #=> Array
628
+ # resp.scanning_configurations[0].repository_arn #=> String
629
+ # resp.scanning_configurations[0].repository_name #=> String
630
+ # resp.scanning_configurations[0].scan_on_push #=> Boolean
631
+ # resp.scanning_configurations[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
632
+ # resp.scanning_configurations[0].applied_scan_filters #=> Array
633
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter #=> String
634
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter_type #=> String, one of "WILDCARD"
635
+ # resp.failures #=> Array
636
+ # resp.failures[0].repository_name #=> String
637
+ # resp.failures[0].failure_code #=> String, one of "REPOSITORY_NOT_FOUND"
638
+ # resp.failures[0].failure_reason #=> String
639
+ #
640
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetRepositoryScanningConfiguration AWS API Documentation
641
+ #
642
+ # @overload batch_get_repository_scanning_configuration(params = {})
643
+ # @param [Hash] params ({})
644
+ def batch_get_repository_scanning_configuration(params = {}, options = {})
645
+ req = build_request(:batch_get_repository_scanning_configuration, params)
646
+ req.send_request(options)
647
+ end
648
+
596
649
  # Informs Amazon ECR that the image layer upload has completed for a
597
650
  # specified registry, repository name, and upload ID. You can optionally
598
651
  # provide a `sha256` digest of the image layer for data validation
@@ -654,6 +707,54 @@ module Aws::ECR
654
707
  req.send_request(options)
655
708
  end
656
709
 
710
+ # Creates a pull through cache rule. A pull through cache rule provides
711
+ # a way to cache images from an external public registry in your Amazon
712
+ # ECR private registry.
713
+ #
714
+ # @option params [required, String] :ecr_repository_prefix
715
+ # The repository name prefix to use when caching images from the source
716
+ # registry.
717
+ #
718
+ # @option params [required, String] :upstream_registry_url
719
+ # The registry URL of the upstream public registry to use as the source
720
+ # for the pull through cache rule.
721
+ #
722
+ # @option params [String] :registry_id
723
+ # The Amazon Web Services account ID associated with the registry to
724
+ # create the pull through cache rule for. If you do not specify a
725
+ # registry, the default registry is assumed.
726
+ #
727
+ # @return [Types::CreatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
728
+ #
729
+ # * {Types::CreatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
730
+ # * {Types::CreatePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
731
+ # * {Types::CreatePullThroughCacheRuleResponse#created_at #created_at} => Time
732
+ # * {Types::CreatePullThroughCacheRuleResponse#registry_id #registry_id} => String
733
+ #
734
+ # @example Request syntax with placeholder values
735
+ #
736
+ # resp = client.create_pull_through_cache_rule({
737
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
738
+ # upstream_registry_url: "Url", # required
739
+ # registry_id: "RegistryId",
740
+ # })
741
+ #
742
+ # @example Response structure
743
+ #
744
+ # resp.ecr_repository_prefix #=> String
745
+ # resp.upstream_registry_url #=> String
746
+ # resp.created_at #=> Time
747
+ # resp.registry_id #=> String
748
+ #
749
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRule AWS API Documentation
750
+ #
751
+ # @overload create_pull_through_cache_rule(params = {})
752
+ # @param [Hash] params ({})
753
+ def create_pull_through_cache_rule(params = {}, options = {})
754
+ req = build_request(:create_pull_through_cache_rule, params)
755
+ req.send_request(options)
756
+ end
757
+
657
758
  # Creates a repository. For more information, see [Amazon ECR
658
759
  # repositories][1] in the *Amazon Elastic Container Registry User
659
760
  # Guide*.
@@ -663,9 +764,9 @@ module Aws::ECR
663
764
  # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
664
765
  #
665
766
  # @option params [String] :registry_id
666
- # The AWS account ID associated with the registry to create the
667
- # repository. If you do not specify a registry, the default registry is
668
- # assumed.
767
+ # The Amazon Web Services account ID associated with the registry to
768
+ # create the repository. If you do not specify a registry, the default
769
+ # registry is assumed.
669
770
  #
670
771
  # @option params [required, String] :repository_name
671
772
  # The name to use for the repository. The repository name may be
@@ -801,6 +902,47 @@ module Aws::ECR
801
902
  req.send_request(options)
802
903
  end
803
904
 
905
+ # Deletes a pull through cache rule.
906
+ #
907
+ # @option params [required, String] :ecr_repository_prefix
908
+ # The Amazon ECR repository prefix associated with the pull through
909
+ # cache rule to delete.
910
+ #
911
+ # @option params [String] :registry_id
912
+ # The Amazon Web Services account ID associated with the registry that
913
+ # contains the pull through cache rule. If you do not specify a
914
+ # registry, the default registry is assumed.
915
+ #
916
+ # @return [Types::DeletePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
917
+ #
918
+ # * {Types::DeletePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
919
+ # * {Types::DeletePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
920
+ # * {Types::DeletePullThroughCacheRuleResponse#created_at #created_at} => Time
921
+ # * {Types::DeletePullThroughCacheRuleResponse#registry_id #registry_id} => String
922
+ #
923
+ # @example Request syntax with placeholder values
924
+ #
925
+ # resp = client.delete_pull_through_cache_rule({
926
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
927
+ # registry_id: "RegistryId",
928
+ # })
929
+ #
930
+ # @example Response structure
931
+ #
932
+ # resp.ecr_repository_prefix #=> String
933
+ # resp.upstream_registry_url #=> String
934
+ # resp.created_at #=> Time
935
+ # resp.registry_id #=> String
936
+ #
937
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule AWS API Documentation
938
+ #
939
+ # @overload delete_pull_through_cache_rule(params = {})
940
+ # @param [Hash] params ({})
941
+ def delete_pull_through_cache_rule(params = {}, options = {})
942
+ req = build_request(:delete_pull_through_cache_rule, params)
943
+ req.send_request(options)
944
+ end
945
+
804
946
  # Deletes the registry permissions policy.
805
947
  #
806
948
  # @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1059,10 +1201,12 @@ module Aws::ECR
1059
1201
  # resp.repository_name #=> String
1060
1202
  # resp.image_id.image_digest #=> String
1061
1203
  # resp.image_id.image_tag #=> String
1062
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1204
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1063
1205
  # resp.image_scan_status.description #=> String
1064
1206
  # resp.image_scan_findings.image_scan_completed_at #=> Time
1065
1207
  # resp.image_scan_findings.vulnerability_source_updated_at #=> Time
1208
+ # resp.image_scan_findings.finding_severity_counts #=> Hash
1209
+ # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1066
1210
  # resp.image_scan_findings.findings #=> Array
1067
1211
  # resp.image_scan_findings.findings[0].name #=> String
1068
1212
  # resp.image_scan_findings.findings[0].description #=> String
@@ -1071,8 +1215,65 @@ module Aws::ECR
1071
1215
  # resp.image_scan_findings.findings[0].attributes #=> Array
1072
1216
  # resp.image_scan_findings.findings[0].attributes[0].key #=> String
1073
1217
  # resp.image_scan_findings.findings[0].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1074
- # resp.image_scan_findings.finding_severity_counts #=> Hash
1075
- # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1218
+ # resp.image_scan_findings.enhanced_findings #=> Array
1219
+ # resp.image_scan_findings.enhanced_findings[0].aws_account_id #=> String
1220
+ # resp.image_scan_findings.enhanced_findings[0].description #=> String
1221
+ # resp.image_scan_findings.enhanced_findings[0].finding_arn #=> String
1222
+ # resp.image_scan_findings.enhanced_findings[0].first_observed_at #=> Time
1223
+ # resp.image_scan_findings.enhanced_findings[0].last_observed_at #=> Time
1224
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss #=> Array
1225
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].base_score #=> Float
1226
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].scoring_vector #=> String
1227
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].source #=> String
1228
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].version #=> String
1229
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls #=> Array
1230
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls[0] #=> String
1231
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities #=> Array
1232
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities[0] #=> String
1233
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source #=> String
1234
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source_url #=> String
1235
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_created_at #=> Time
1236
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_severity #=> String
1237
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_updated_at #=> Time
1238
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerability_id #=> String
1239
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages #=> Array
1240
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].arch #=> String
1241
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].epoch #=> Integer
1242
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].file_path #=> String
1243
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].name #=> String
1244
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].package_manager #=> String
1245
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].release #=> String
1246
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].source_layer_hash #=> String
1247
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].version #=> String
1248
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.url #=> String
1249
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.text #=> String
1250
+ # resp.image_scan_findings.enhanced_findings[0].resources #=> Array
1251
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.architecture #=> String
1252
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.author #=> String
1253
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_hash #=> String
1254
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags #=> Array
1255
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags[0] #=> String
1256
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.platform #=> String
1257
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
1258
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
1259
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.repository_name #=> String
1260
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].id #=> String
1261
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags #=> Hash
1262
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags["TagKey"] #=> String
1263
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].type #=> String
1264
+ # resp.image_scan_findings.enhanced_findings[0].score #=> Float
1265
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments #=> Array
1266
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].metric #=> String
1267
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].reason #=> String
1268
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score #=> Float
1269
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score_source #=> String
1270
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.scoring_vector #=> String
1271
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.version #=> String
1272
+ # resp.image_scan_findings.enhanced_findings[0].severity #=> String
1273
+ # resp.image_scan_findings.enhanced_findings[0].status #=> String
1274
+ # resp.image_scan_findings.enhanced_findings[0].title #=> String
1275
+ # resp.image_scan_findings.enhanced_findings[0].type #=> String
1276
+ # resp.image_scan_findings.enhanced_findings[0].updated_at #=> Time
1076
1277
  # resp.next_token #=> String
1077
1278
  #
1078
1279
  #
@@ -1168,7 +1369,7 @@ module Aws::ECR
1168
1369
  # resp.image_details[0].image_tags[0] #=> String
1169
1370
  # resp.image_details[0].image_size_in_bytes #=> Integer
1170
1371
  # resp.image_details[0].image_pushed_at #=> Time
1171
- # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1372
+ # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1172
1373
  # resp.image_details[0].image_scan_status.description #=> String
1173
1374
  # resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
1174
1375
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
@@ -1187,6 +1388,72 @@ module Aws::ECR
1187
1388
  req.send_request(options)
1188
1389
  end
1189
1390
 
1391
+ # Returns the pull through cache rules for a registry.
1392
+ #
1393
+ # @option params [String] :registry_id
1394
+ # The Amazon Web Services account ID associated with the registry to
1395
+ # return the pull through cache rules for. If you do not specify a
1396
+ # registry, the default registry is assumed.
1397
+ #
1398
+ # @option params [Array<String>] :ecr_repository_prefixes
1399
+ # The Amazon ECR repository prefixes associated with the pull through
1400
+ # cache rules to return. If no repository prefix value is specified, all
1401
+ # pull through cache rules are returned.
1402
+ #
1403
+ # @option params [String] :next_token
1404
+ # The `nextToken` value returned from a previous paginated
1405
+ # `DescribePullThroughCacheRulesRequest` request where `maxResults` was
1406
+ # used and the results exceeded the value of that parameter. Pagination
1407
+ # continues from the end of the previous results that returned the
1408
+ # `nextToken` value. This value is null when there are no more results
1409
+ # to return.
1410
+ #
1411
+ # @option params [Integer] :max_results
1412
+ # The maximum number of pull through cache rules returned by
1413
+ # `DescribePullThroughCacheRulesRequest` in paginated output. When this
1414
+ # parameter is used, `DescribePullThroughCacheRulesRequest` only returns
1415
+ # `maxResults` results in a single page along with a `nextToken`
1416
+ # response element. The remaining results of the initial request can be
1417
+ # seen by sending another `DescribePullThroughCacheRulesRequest` request
1418
+ # with the returned `nextToken` value. This value can be between 1 and
1419
+ # 1000. If this parameter is not used, then
1420
+ # `DescribePullThroughCacheRulesRequest` returns up to 100 results and a
1421
+ # `nextToken` value, if applicable.
1422
+ #
1423
+ # @return [Types::DescribePullThroughCacheRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1424
+ #
1425
+ # * {Types::DescribePullThroughCacheRulesResponse#pull_through_cache_rules #pull_through_cache_rules} => Array&lt;Types::PullThroughCacheRule&gt;
1426
+ # * {Types::DescribePullThroughCacheRulesResponse#next_token #next_token} => String
1427
+ #
1428
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1429
+ #
1430
+ # @example Request syntax with placeholder values
1431
+ #
1432
+ # resp = client.describe_pull_through_cache_rules({
1433
+ # registry_id: "RegistryId",
1434
+ # ecr_repository_prefixes: ["PullThroughCacheRuleRepositoryPrefix"],
1435
+ # next_token: "NextToken",
1436
+ # max_results: 1,
1437
+ # })
1438
+ #
1439
+ # @example Response structure
1440
+ #
1441
+ # resp.pull_through_cache_rules #=> Array
1442
+ # resp.pull_through_cache_rules[0].ecr_repository_prefix #=> String
1443
+ # resp.pull_through_cache_rules[0].upstream_registry_url #=> String
1444
+ # resp.pull_through_cache_rules[0].created_at #=> Time
1445
+ # resp.pull_through_cache_rules[0].registry_id #=> String
1446
+ # resp.next_token #=> String
1447
+ #
1448
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribePullThroughCacheRules AWS API Documentation
1449
+ #
1450
+ # @overload describe_pull_through_cache_rules(params = {})
1451
+ # @param [Hash] params ({})
1452
+ def describe_pull_through_cache_rules(params = {}, options = {})
1453
+ req = build_request(:describe_pull_through_cache_rules, params)
1454
+ req.send_request(options)
1455
+ end
1456
+
1190
1457
  # Describes the settings for a registry. The replication configuration
1191
1458
  # for a repository can be created or updated with the
1192
1459
  # PutReplicationConfiguration API action.
@@ -1597,6 +1864,32 @@ module Aws::ECR
1597
1864
  req.send_request(options)
1598
1865
  end
1599
1866
 
1867
+ # Retrieves the scanning configuration for a registry.
1868
+ #
1869
+ # @return [Types::GetRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1870
+ #
1871
+ # * {Types::GetRegistryScanningConfigurationResponse#registry_id #registry_id} => String
1872
+ # * {Types::GetRegistryScanningConfigurationResponse#scanning_configuration #scanning_configuration} => Types::RegistryScanningConfiguration
1873
+ #
1874
+ # @example Response structure
1875
+ #
1876
+ # resp.registry_id #=> String
1877
+ # resp.scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
1878
+ # resp.scanning_configuration.rules #=> Array
1879
+ # resp.scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
1880
+ # resp.scanning_configuration.rules[0].repository_filters #=> Array
1881
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter #=> String
1882
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
1883
+ #
1884
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryScanningConfiguration AWS API Documentation
1885
+ #
1886
+ # @overload get_registry_scanning_configuration(params = {})
1887
+ # @param [Hash] params ({})
1888
+ def get_registry_scanning_configuration(params = {}, options = {})
1889
+ req = build_request(:get_registry_scanning_configuration, params)
1890
+ req.send_request(options)
1891
+ end
1892
+
1600
1893
  # Retrieves the repository policy for the specified repository.
1601
1894
  #
1602
1895
  # @option params [String] :registry_id
@@ -2092,6 +2385,64 @@ module Aws::ECR
2092
2385
  req.send_request(options)
2093
2386
  end
2094
2387
 
2388
+ # Creates or updates the scanning configuration for your private
2389
+ # registry.
2390
+ #
2391
+ # @option params [String] :scan_type
2392
+ # The scanning type to set for the registry.
2393
+ #
2394
+ # By default, the `BASIC` scan type is used. When basic scanning is set,
2395
+ # you may specify filters to determine which individual repositories, or
2396
+ # all repositories, are scanned when new images are pushed.
2397
+ # Alternatively, you can do manual scans of images with basic scanning.
2398
+ #
2399
+ # When the `ENHANCED` scan type is set, Amazon Inspector provides
2400
+ # automated, continuous scanning of all repositories in your registry.
2401
+ #
2402
+ # @option params [Array<Types::RegistryScanningRule>] :rules
2403
+ # The scanning rules to use for the registry. A scanning rule is used to
2404
+ # determine which repository filters are used and at what frequency
2405
+ # scanning will occur.
2406
+ #
2407
+ # @return [Types::PutRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2408
+ #
2409
+ # * {Types::PutRegistryScanningConfigurationResponse#registry_scanning_configuration #registry_scanning_configuration} => Types::RegistryScanningConfiguration
2410
+ #
2411
+ # @example Request syntax with placeholder values
2412
+ #
2413
+ # resp = client.put_registry_scanning_configuration({
2414
+ # scan_type: "BASIC", # accepts BASIC, ENHANCED
2415
+ # rules: [
2416
+ # {
2417
+ # scan_frequency: "SCAN_ON_PUSH", # required, accepts SCAN_ON_PUSH, CONTINUOUS_SCAN, MANUAL
2418
+ # repository_filters: [ # required
2419
+ # {
2420
+ # filter: "ScanningRepositoryFilterValue", # required
2421
+ # filter_type: "WILDCARD", # required, accepts WILDCARD
2422
+ # },
2423
+ # ],
2424
+ # },
2425
+ # ],
2426
+ # })
2427
+ #
2428
+ # @example Response structure
2429
+ #
2430
+ # resp.registry_scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
2431
+ # resp.registry_scanning_configuration.rules #=> Array
2432
+ # resp.registry_scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
2433
+ # resp.registry_scanning_configuration.rules[0].repository_filters #=> Array
2434
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter #=> String
2435
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
2436
+ #
2437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryScanningConfiguration AWS API Documentation
2438
+ #
2439
+ # @overload put_registry_scanning_configuration(params = {})
2440
+ # @param [Hash] params ({})
2441
+ def put_registry_scanning_configuration(params = {}, options = {})
2442
+ req = build_request(:put_registry_scanning_configuration, params)
2443
+ req.send_request(options)
2444
+ end
2445
+
2095
2446
  # Creates or updates the replication configuration for a registry. The
2096
2447
  # existing replication configuration for a repository can be retrieved
2097
2448
  # with the DescribeRegistry API action. The first time the
@@ -2266,7 +2617,7 @@ module Aws::ECR
2266
2617
  # resp.repository_name #=> String
2267
2618
  # resp.image_id.image_digest #=> String
2268
2619
  # resp.image_id.image_tag #=> String
2269
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
2620
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
2270
2621
  # resp.image_scan_status.description #=> String
2271
2622
  #
2272
2623
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
@@ -2473,7 +2824,7 @@ module Aws::ECR
2473
2824
  params: params,
2474
2825
  config: config)
2475
2826
  context[:gem_name] = 'aws-sdk-ecr'
2476
- context[:gem_version] = '1.49.0'
2827
+ context[:gem_version] = '1.53.0'
2477
2828
  Seahorse::Client::Request.new(handlers, context)
2478
2829
  end
2479
2830