aws-sdk-ecr 1.47.0 → 1.51.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: 5fefd3b77aa0f2517749c9f3e2806af7a1752e653ff5848b8f3e6f462d200e37
4
- data.tar.gz: 283bca2dba559b1c9fba36278418d0e5fe3e4871b8fd11be6fc9c43114be8fa2
3
+ metadata.gz: 561788878894d5830891fdd9c5011eadc6d79c9fb256d618b0c33fdff2bfbcf2
4
+ data.tar.gz: 206922c2decc64d017936f2e22298fc75b3500a3625eac835e74a6770fbab649
5
5
  SHA512:
6
- metadata.gz: a72739a92883b460ac1898698c9510ce851d7b9fdc7b5d3d0381de4b28d450d6006a507597d1ea88d881e1b4ef3765dc1db7dfacef282345fe1a24be6903ceb0
7
- data.tar.gz: cd918dfe3dae5eb3542375cd2d4be8fbca4a151e17dff2182617baff366f0d5de020d496f5a134b94f6ff0221019047bde4f3bd7623913311c6cf8906119da4a
6
+ metadata.gz: 1fc5c21ab3953c49bacc10fdc8ef0a5c3e547f41bec20929beefb1e0c478ac4658417283684bbab7148abb83dac15b585e04cc9f1a6fb236c8d6eb514d210ce4
7
+ data.tar.gz: b9748eeb25cae0d32d723019b10196f1f14fa0a799a6c6c7632a9b0f5794d686ffbfff5003e106f38cc016c826e557677e38931f2a141f0561cb803351082da8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.0 (2021-11-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.50.0 (2021-11-29)
10
+ ------------------
11
+
12
+ * Feature - This release adds supports for pull through cache rules and enhanced scanning.
13
+
14
+ 1.49.0 (2021-11-04)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.48.0 (2021-10-18)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.47.0 (2021-09-21)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.51.0
@@ -119,7 +119,9 @@ module Aws::ECR
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -285,6 +287,15 @@ module Aws::ECR
285
287
  # ** Please note ** When response stubbing is enabled, no HTTP
286
288
  # requests are made, and retries are disabled.
287
289
  #
290
+ # @option options [Boolean] :use_dualstack_endpoint
291
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
+ # will be used if available.
293
+ #
294
+ # @option options [Boolean] :use_fips_endpoint
295
+ # When set to `true`, fips compatible endpoints will be used if available.
296
+ # When a `fips` region is used, the region is normalized and this config
297
+ # is set to `true`.
298
+ #
288
299
  # @option options [Boolean] :validate_params (true)
289
300
  # When `true`, request parameters are validated before
290
301
  # sending the request.
@@ -584,6 +595,46 @@ module Aws::ECR
584
595
  req.send_request(options)
585
596
  end
586
597
 
598
+ # Gets the scanning configuration for one or more repositories.
599
+ #
600
+ # @option params [required, Array<String>] :repository_names
601
+ # One or more repository names to get the scanning configuration for.
602
+ #
603
+ # @return [Types::BatchGetRepositoryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
604
+ #
605
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#scanning_configurations #scanning_configurations} => Array&lt;Types::RepositoryScanningConfiguration&gt;
606
+ # * {Types::BatchGetRepositoryScanningConfigurationResponse#failures #failures} => Array&lt;Types::RepositoryScanningConfigurationFailure&gt;
607
+ #
608
+ # @example Request syntax with placeholder values
609
+ #
610
+ # resp = client.batch_get_repository_scanning_configuration({
611
+ # repository_names: ["RepositoryName"], # required
612
+ # })
613
+ #
614
+ # @example Response structure
615
+ #
616
+ # resp.scanning_configurations #=> Array
617
+ # resp.scanning_configurations[0].repository_arn #=> String
618
+ # resp.scanning_configurations[0].repository_name #=> String
619
+ # resp.scanning_configurations[0].scan_on_push #=> Boolean
620
+ # resp.scanning_configurations[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
621
+ # resp.scanning_configurations[0].applied_scan_filters #=> Array
622
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter #=> String
623
+ # resp.scanning_configurations[0].applied_scan_filters[0].filter_type #=> String, one of "WILDCARD"
624
+ # resp.failures #=> Array
625
+ # resp.failures[0].repository_name #=> String
626
+ # resp.failures[0].failure_code #=> String, one of "REPOSITORY_NOT_FOUND"
627
+ # resp.failures[0].failure_reason #=> String
628
+ #
629
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetRepositoryScanningConfiguration AWS API Documentation
630
+ #
631
+ # @overload batch_get_repository_scanning_configuration(params = {})
632
+ # @param [Hash] params ({})
633
+ def batch_get_repository_scanning_configuration(params = {}, options = {})
634
+ req = build_request(:batch_get_repository_scanning_configuration, params)
635
+ req.send_request(options)
636
+ end
637
+
587
638
  # Informs Amazon ECR that the image layer upload has completed for a
588
639
  # specified registry, repository name, and upload ID. You can optionally
589
640
  # provide a `sha256` digest of the image layer for data validation
@@ -645,6 +696,54 @@ module Aws::ECR
645
696
  req.send_request(options)
646
697
  end
647
698
 
699
+ # Creates a pull through cache rule. A pull through cache rule provides
700
+ # a way to cache images from an external public registry in your Amazon
701
+ # ECR private registry.
702
+ #
703
+ # @option params [required, String] :ecr_repository_prefix
704
+ # The repository name prefix to use when caching images from the source
705
+ # registry.
706
+ #
707
+ # @option params [required, String] :upstream_registry_url
708
+ # The registry URL of the upstream public registry to use as the source
709
+ # for the pull through cache rule.
710
+ #
711
+ # @option params [String] :registry_id
712
+ # The Amazon Web Services account ID associated with the registry to
713
+ # create the pull through cache rule for. If you do not specify a
714
+ # registry, the default registry is assumed.
715
+ #
716
+ # @return [Types::CreatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
717
+ #
718
+ # * {Types::CreatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
719
+ # * {Types::CreatePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
720
+ # * {Types::CreatePullThroughCacheRuleResponse#created_at #created_at} => Time
721
+ # * {Types::CreatePullThroughCacheRuleResponse#registry_id #registry_id} => String
722
+ #
723
+ # @example Request syntax with placeholder values
724
+ #
725
+ # resp = client.create_pull_through_cache_rule({
726
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
727
+ # upstream_registry_url: "Url", # required
728
+ # registry_id: "RegistryId",
729
+ # })
730
+ #
731
+ # @example Response structure
732
+ #
733
+ # resp.ecr_repository_prefix #=> String
734
+ # resp.upstream_registry_url #=> String
735
+ # resp.created_at #=> Time
736
+ # resp.registry_id #=> String
737
+ #
738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRule AWS API Documentation
739
+ #
740
+ # @overload create_pull_through_cache_rule(params = {})
741
+ # @param [Hash] params ({})
742
+ def create_pull_through_cache_rule(params = {}, options = {})
743
+ req = build_request(:create_pull_through_cache_rule, params)
744
+ req.send_request(options)
745
+ end
746
+
648
747
  # Creates a repository. For more information, see [Amazon ECR
649
748
  # repositories][1] in the *Amazon Elastic Container Registry User
650
749
  # Guide*.
@@ -654,9 +753,9 @@ module Aws::ECR
654
753
  # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
655
754
  #
656
755
  # @option params [String] :registry_id
657
- # The AWS account ID associated with the registry to create the
658
- # repository. If you do not specify a registry, the default registry is
659
- # assumed.
756
+ # The Amazon Web Services account ID associated with the registry to
757
+ # create the repository. If you do not specify a registry, the default
758
+ # registry is assumed.
660
759
  #
661
760
  # @option params [required, String] :repository_name
662
761
  # The name to use for the repository. The repository name may be
@@ -792,6 +891,47 @@ module Aws::ECR
792
891
  req.send_request(options)
793
892
  end
794
893
 
894
+ # Deletes a pull through cache rule.
895
+ #
896
+ # @option params [required, String] :ecr_repository_prefix
897
+ # The Amazon ECR repository prefix associated with the pull through
898
+ # cache rule to delete.
899
+ #
900
+ # @option params [String] :registry_id
901
+ # The Amazon Web Services account ID associated with the registry that
902
+ # contains the pull through cache rule. If you do not specify a
903
+ # registry, the default registry is assumed.
904
+ #
905
+ # @return [Types::DeletePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
906
+ #
907
+ # * {Types::DeletePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
908
+ # * {Types::DeletePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
909
+ # * {Types::DeletePullThroughCacheRuleResponse#created_at #created_at} => Time
910
+ # * {Types::DeletePullThroughCacheRuleResponse#registry_id #registry_id} => String
911
+ #
912
+ # @example Request syntax with placeholder values
913
+ #
914
+ # resp = client.delete_pull_through_cache_rule({
915
+ # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
916
+ # registry_id: "RegistryId",
917
+ # })
918
+ #
919
+ # @example Response structure
920
+ #
921
+ # resp.ecr_repository_prefix #=> String
922
+ # resp.upstream_registry_url #=> String
923
+ # resp.created_at #=> Time
924
+ # resp.registry_id #=> String
925
+ #
926
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule AWS API Documentation
927
+ #
928
+ # @overload delete_pull_through_cache_rule(params = {})
929
+ # @param [Hash] params ({})
930
+ def delete_pull_through_cache_rule(params = {}, options = {})
931
+ req = build_request(:delete_pull_through_cache_rule, params)
932
+ req.send_request(options)
933
+ end
934
+
795
935
  # Deletes the registry permissions policy.
796
936
  #
797
937
  # @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1050,10 +1190,12 @@ module Aws::ECR
1050
1190
  # resp.repository_name #=> String
1051
1191
  # resp.image_id.image_digest #=> String
1052
1192
  # resp.image_id.image_tag #=> String
1053
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1193
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1054
1194
  # resp.image_scan_status.description #=> String
1055
1195
  # resp.image_scan_findings.image_scan_completed_at #=> Time
1056
1196
  # resp.image_scan_findings.vulnerability_source_updated_at #=> Time
1197
+ # resp.image_scan_findings.finding_severity_counts #=> Hash
1198
+ # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1057
1199
  # resp.image_scan_findings.findings #=> Array
1058
1200
  # resp.image_scan_findings.findings[0].name #=> String
1059
1201
  # resp.image_scan_findings.findings[0].description #=> String
@@ -1062,8 +1204,65 @@ module Aws::ECR
1062
1204
  # resp.image_scan_findings.findings[0].attributes #=> Array
1063
1205
  # resp.image_scan_findings.findings[0].attributes[0].key #=> String
1064
1206
  # resp.image_scan_findings.findings[0].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1065
- # resp.image_scan_findings.finding_severity_counts #=> Hash
1066
- # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
1207
+ # resp.image_scan_findings.enhanced_findings #=> Array
1208
+ # resp.image_scan_findings.enhanced_findings[0].aws_account_id #=> String
1209
+ # resp.image_scan_findings.enhanced_findings[0].description #=> String
1210
+ # resp.image_scan_findings.enhanced_findings[0].finding_arn #=> String
1211
+ # resp.image_scan_findings.enhanced_findings[0].first_observed_at #=> Time
1212
+ # resp.image_scan_findings.enhanced_findings[0].last_observed_at #=> Time
1213
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss #=> Array
1214
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].base_score #=> Float
1215
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].scoring_vector #=> String
1216
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].source #=> String
1217
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].version #=> String
1218
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls #=> Array
1219
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls[0] #=> String
1220
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities #=> Array
1221
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities[0] #=> String
1222
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source #=> String
1223
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source_url #=> String
1224
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_created_at #=> Time
1225
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_severity #=> String
1226
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_updated_at #=> Time
1227
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerability_id #=> String
1228
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages #=> Array
1229
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].arch #=> String
1230
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].epoch #=> Integer
1231
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].file_path #=> String
1232
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].name #=> String
1233
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].package_manager #=> String
1234
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].release #=> String
1235
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].source_layer_hash #=> String
1236
+ # resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].version #=> String
1237
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.url #=> String
1238
+ # resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.text #=> String
1239
+ # resp.image_scan_findings.enhanced_findings[0].resources #=> Array
1240
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.architecture #=> String
1241
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.author #=> String
1242
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_hash #=> String
1243
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags #=> Array
1244
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags[0] #=> String
1245
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.platform #=> String
1246
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
1247
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
1248
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.repository_name #=> String
1249
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].id #=> String
1250
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags #=> Hash
1251
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].tags["TagKey"] #=> String
1252
+ # resp.image_scan_findings.enhanced_findings[0].resources[0].type #=> String
1253
+ # resp.image_scan_findings.enhanced_findings[0].score #=> Float
1254
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments #=> Array
1255
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].metric #=> String
1256
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].reason #=> String
1257
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score #=> Float
1258
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score_source #=> String
1259
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.scoring_vector #=> String
1260
+ # resp.image_scan_findings.enhanced_findings[0].score_details.cvss.version #=> String
1261
+ # resp.image_scan_findings.enhanced_findings[0].severity #=> String
1262
+ # resp.image_scan_findings.enhanced_findings[0].status #=> String
1263
+ # resp.image_scan_findings.enhanced_findings[0].title #=> String
1264
+ # resp.image_scan_findings.enhanced_findings[0].type #=> String
1265
+ # resp.image_scan_findings.enhanced_findings[0].updated_at #=> Time
1067
1266
  # resp.next_token #=> String
1068
1267
  #
1069
1268
  #
@@ -1159,7 +1358,7 @@ module Aws::ECR
1159
1358
  # resp.image_details[0].image_tags[0] #=> String
1160
1359
  # resp.image_details[0].image_size_in_bytes #=> Integer
1161
1360
  # resp.image_details[0].image_pushed_at #=> Time
1162
- # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
1361
+ # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1163
1362
  # resp.image_details[0].image_scan_status.description #=> String
1164
1363
  # resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
1165
1364
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
@@ -1178,6 +1377,72 @@ module Aws::ECR
1178
1377
  req.send_request(options)
1179
1378
  end
1180
1379
 
1380
+ # Returns the pull through cache rules for a registry.
1381
+ #
1382
+ # @option params [String] :registry_id
1383
+ # The Amazon Web Services account ID associated with the registry to
1384
+ # return the pull through cache rules for. If you do not specify a
1385
+ # registry, the default registry is assumed.
1386
+ #
1387
+ # @option params [Array<String>] :ecr_repository_prefixes
1388
+ # The Amazon ECR repository prefixes associated with the pull through
1389
+ # cache rules to return. If no repository prefix value is specified, all
1390
+ # pull through cache rules are returned.
1391
+ #
1392
+ # @option params [String] :next_token
1393
+ # The `nextToken` value returned from a previous paginated
1394
+ # `DescribePullThroughCacheRulesRequest` request where `maxResults` was
1395
+ # used and the results exceeded the value of that parameter. Pagination
1396
+ # continues from the end of the previous results that returned the
1397
+ # `nextToken` value. This value is null when there are no more results
1398
+ # to return.
1399
+ #
1400
+ # @option params [Integer] :max_results
1401
+ # The maximum number of pull through cache rules returned by
1402
+ # `DescribePullThroughCacheRulesRequest` in paginated output. When this
1403
+ # parameter is used, `DescribePullThroughCacheRulesRequest` only returns
1404
+ # `maxResults` results in a single page along with a `nextToken`
1405
+ # response element. The remaining results of the initial request can be
1406
+ # seen by sending another `DescribePullThroughCacheRulesRequest` request
1407
+ # with the returned `nextToken` value. This value can be between 1 and
1408
+ # 1000. If this parameter is not used, then
1409
+ # `DescribePullThroughCacheRulesRequest` returns up to 100 results and a
1410
+ # `nextToken` value, if applicable.
1411
+ #
1412
+ # @return [Types::DescribePullThroughCacheRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1413
+ #
1414
+ # * {Types::DescribePullThroughCacheRulesResponse#pull_through_cache_rules #pull_through_cache_rules} => Array&lt;Types::PullThroughCacheRule&gt;
1415
+ # * {Types::DescribePullThroughCacheRulesResponse#next_token #next_token} => String
1416
+ #
1417
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1418
+ #
1419
+ # @example Request syntax with placeholder values
1420
+ #
1421
+ # resp = client.describe_pull_through_cache_rules({
1422
+ # registry_id: "RegistryId",
1423
+ # ecr_repository_prefixes: ["PullThroughCacheRuleRepositoryPrefix"],
1424
+ # next_token: "NextToken",
1425
+ # max_results: 1,
1426
+ # })
1427
+ #
1428
+ # @example Response structure
1429
+ #
1430
+ # resp.pull_through_cache_rules #=> Array
1431
+ # resp.pull_through_cache_rules[0].ecr_repository_prefix #=> String
1432
+ # resp.pull_through_cache_rules[0].upstream_registry_url #=> String
1433
+ # resp.pull_through_cache_rules[0].created_at #=> Time
1434
+ # resp.pull_through_cache_rules[0].registry_id #=> String
1435
+ # resp.next_token #=> String
1436
+ #
1437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribePullThroughCacheRules AWS API Documentation
1438
+ #
1439
+ # @overload describe_pull_through_cache_rules(params = {})
1440
+ # @param [Hash] params ({})
1441
+ def describe_pull_through_cache_rules(params = {}, options = {})
1442
+ req = build_request(:describe_pull_through_cache_rules, params)
1443
+ req.send_request(options)
1444
+ end
1445
+
1181
1446
  # Describes the settings for a registry. The replication configuration
1182
1447
  # for a repository can be created or updated with the
1183
1448
  # PutReplicationConfiguration API action.
@@ -1588,6 +1853,32 @@ module Aws::ECR
1588
1853
  req.send_request(options)
1589
1854
  end
1590
1855
 
1856
+ # Retrieves the scanning configuration for a registry.
1857
+ #
1858
+ # @return [Types::GetRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1859
+ #
1860
+ # * {Types::GetRegistryScanningConfigurationResponse#registry_id #registry_id} => String
1861
+ # * {Types::GetRegistryScanningConfigurationResponse#scanning_configuration #scanning_configuration} => Types::RegistryScanningConfiguration
1862
+ #
1863
+ # @example Response structure
1864
+ #
1865
+ # resp.registry_id #=> String
1866
+ # resp.scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
1867
+ # resp.scanning_configuration.rules #=> Array
1868
+ # resp.scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
1869
+ # resp.scanning_configuration.rules[0].repository_filters #=> Array
1870
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter #=> String
1871
+ # resp.scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
1872
+ #
1873
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryScanningConfiguration AWS API Documentation
1874
+ #
1875
+ # @overload get_registry_scanning_configuration(params = {})
1876
+ # @param [Hash] params ({})
1877
+ def get_registry_scanning_configuration(params = {}, options = {})
1878
+ req = build_request(:get_registry_scanning_configuration, params)
1879
+ req.send_request(options)
1880
+ end
1881
+
1591
1882
  # Retrieves the repository policy for the specified repository.
1592
1883
  #
1593
1884
  # @option params [String] :registry_id
@@ -2083,6 +2374,64 @@ module Aws::ECR
2083
2374
  req.send_request(options)
2084
2375
  end
2085
2376
 
2377
+ # Creates or updates the scanning configuration for your private
2378
+ # registry.
2379
+ #
2380
+ # @option params [String] :scan_type
2381
+ # The scanning type to set for the registry.
2382
+ #
2383
+ # By default, the `BASIC` scan type is used. When basic scanning is set,
2384
+ # you may specify filters to determine which individual repositories, or
2385
+ # all repositories, are scanned when new images are pushed.
2386
+ # Alternatively, you can do manual scans of images with basic scanning.
2387
+ #
2388
+ # When the `ENHANCED` scan type is set, Amazon Inspector provides
2389
+ # automated, continuous scanning of all repositories in your registry.
2390
+ #
2391
+ # @option params [Array<Types::RegistryScanningRule>] :rules
2392
+ # The scanning rules to use for the registry. A scanning rule is used to
2393
+ # determine which repository filters are used and at what frequency
2394
+ # scanning will occur.
2395
+ #
2396
+ # @return [Types::PutRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2397
+ #
2398
+ # * {Types::PutRegistryScanningConfigurationResponse#registry_scanning_configuration #registry_scanning_configuration} => Types::RegistryScanningConfiguration
2399
+ #
2400
+ # @example Request syntax with placeholder values
2401
+ #
2402
+ # resp = client.put_registry_scanning_configuration({
2403
+ # scan_type: "BASIC", # accepts BASIC, ENHANCED
2404
+ # rules: [
2405
+ # {
2406
+ # scan_frequency: "SCAN_ON_PUSH", # required, accepts SCAN_ON_PUSH, CONTINUOUS_SCAN, MANUAL
2407
+ # repository_filters: [ # required
2408
+ # {
2409
+ # filter: "ScanningRepositoryFilterValue", # required
2410
+ # filter_type: "WILDCARD", # required, accepts WILDCARD
2411
+ # },
2412
+ # ],
2413
+ # },
2414
+ # ],
2415
+ # })
2416
+ #
2417
+ # @example Response structure
2418
+ #
2419
+ # resp.registry_scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
2420
+ # resp.registry_scanning_configuration.rules #=> Array
2421
+ # resp.registry_scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
2422
+ # resp.registry_scanning_configuration.rules[0].repository_filters #=> Array
2423
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter #=> String
2424
+ # resp.registry_scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
2425
+ #
2426
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryScanningConfiguration AWS API Documentation
2427
+ #
2428
+ # @overload put_registry_scanning_configuration(params = {})
2429
+ # @param [Hash] params ({})
2430
+ def put_registry_scanning_configuration(params = {}, options = {})
2431
+ req = build_request(:put_registry_scanning_configuration, params)
2432
+ req.send_request(options)
2433
+ end
2434
+
2086
2435
  # Creates or updates the replication configuration for a registry. The
2087
2436
  # existing replication configuration for a repository can be retrieved
2088
2437
  # with the DescribeRegistry API action. The first time the
@@ -2257,7 +2606,7 @@ module Aws::ECR
2257
2606
  # resp.repository_name #=> String
2258
2607
  # resp.image_id.image_digest #=> String
2259
2608
  # resp.image_id.image_tag #=> String
2260
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
2609
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
2261
2610
  # resp.image_scan_status.description #=> String
2262
2611
  #
2263
2612
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
@@ -2464,7 +2813,7 @@ module Aws::ECR
2464
2813
  params: params,
2465
2814
  config: config)
2466
2815
  context[:gem_name] = 'aws-sdk-ecr'
2467
- context[:gem_version] = '1.47.0'
2816
+ context[:gem_version] = '1.51.0'
2468
2817
  Seahorse::Client::Request.new(handlers, context)
2469
2818
  end
2470
2819