aws-sdk-ecr 1.49.0 → 1.50.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: 5e8b25d74daf72b885851507981eb0381006eaca1bc171544711c8d17e65ea6f
4
+ data.tar.gz: 947a4adfa82f6061678d985009af9399404e3504092da1279ff657dbb117964c
5
5
  SHA512:
6
- metadata.gz: 4caef5143d68deff1301550faa6183d402374377af3c1b17665a1f6f352a3b4f8168036a91f9ebd6b3a19f0f3232c98db9bd5c1d54fb7738258eb6524976d4f2
7
- data.tar.gz: d817b3837dcc26d57b8df6e721d128757976075b57f1c2bff714a4b02634c4579dd70063140b99426bddfa784b2da2059dc27244f071f45a5fbf9ebe02ba8b5d
6
+ metadata.gz: 7e6158ae230f0dc0955704cac24fbd7cc007d4075134a2301d9f037b106ae526d5b29cf154eab297a82724c46a28ced7385f02e8ae7d00066ea51b41f6f9e818
7
+ data.tar.gz: 33d106e7f36fe1cf005ebe706d4770cebea4cc1967126d0b4f3dbb3c003c87d2904587fe2c874be4bb58b3cc118fdbd103ef635e7a6cea8489e3345832ad7af9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.49.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.50.0
@@ -593,6 +593,46 @@ module Aws::ECR
593
593
  req.send_request(options)
594
594
  end
595
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
+
596
636
  # Informs Amazon ECR that the image layer upload has completed for a
597
637
  # specified registry, repository name, and upload ID. You can optionally
598
638
  # provide a `sha256` digest of the image layer for data validation
@@ -654,6 +694,54 @@ module Aws::ECR
654
694
  req.send_request(options)
655
695
  end
656
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
+
657
745
  # Creates a repository. For more information, see [Amazon ECR
658
746
  # repositories][1] in the *Amazon Elastic Container Registry User
659
747
  # Guide*.
@@ -663,9 +751,9 @@ module Aws::ECR
663
751
  # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
664
752
  #
665
753
  # @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.
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.
669
757
  #
670
758
  # @option params [required, String] :repository_name
671
759
  # The name to use for the repository. The repository name may be
@@ -801,6 +889,47 @@ module Aws::ECR
801
889
  req.send_request(options)
802
890
  end
803
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
+
804
933
  # Deletes the registry permissions policy.
805
934
  #
806
935
  # @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1059,10 +1188,12 @@ module Aws::ECR
1059
1188
  # resp.repository_name #=> String
1060
1189
  # resp.image_id.image_digest #=> String
1061
1190
  # resp.image_id.image_tag #=> String
1062
- # 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"
1063
1192
  # resp.image_scan_status.description #=> String
1064
1193
  # resp.image_scan_findings.image_scan_completed_at #=> Time
1065
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
1066
1197
  # resp.image_scan_findings.findings #=> Array
1067
1198
  # resp.image_scan_findings.findings[0].name #=> String
1068
1199
  # resp.image_scan_findings.findings[0].description #=> String
@@ -1071,8 +1202,65 @@ module Aws::ECR
1071
1202
  # resp.image_scan_findings.findings[0].attributes #=> Array
1072
1203
  # resp.image_scan_findings.findings[0].attributes[0].key #=> String
1073
1204
  # 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
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
1076
1264
  # resp.next_token #=> String
1077
1265
  #
1078
1266
  #
@@ -1168,7 +1356,7 @@ module Aws::ECR
1168
1356
  # resp.image_details[0].image_tags[0] #=> String
1169
1357
  # resp.image_details[0].image_size_in_bytes #=> Integer
1170
1358
  # resp.image_details[0].image_pushed_at #=> Time
1171
- # 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"
1172
1360
  # resp.image_details[0].image_scan_status.description #=> String
1173
1361
  # resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
1174
1362
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
@@ -1187,6 +1375,72 @@ module Aws::ECR
1187
1375
  req.send_request(options)
1188
1376
  end
1189
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
+
1190
1444
  # Describes the settings for a registry. The replication configuration
1191
1445
  # for a repository can be created or updated with the
1192
1446
  # PutReplicationConfiguration API action.
@@ -1597,6 +1851,32 @@ module Aws::ECR
1597
1851
  req.send_request(options)
1598
1852
  end
1599
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
+
1600
1880
  # Retrieves the repository policy for the specified repository.
1601
1881
  #
1602
1882
  # @option params [String] :registry_id
@@ -2092,6 +2372,64 @@ module Aws::ECR
2092
2372
  req.send_request(options)
2093
2373
  end
2094
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
+
2095
2433
  # Creates or updates the replication configuration for a registry. The
2096
2434
  # existing replication configuration for a repository can be retrieved
2097
2435
  # with the DescribeRegistry API action. The first time the
@@ -2266,7 +2604,7 @@ module Aws::ECR
2266
2604
  # resp.repository_name #=> String
2267
2605
  # resp.image_id.image_digest #=> String
2268
2606
  # resp.image_id.image_tag #=> String
2269
- # 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"
2270
2608
  # resp.image_scan_status.description #=> String
2271
2609
  #
2272
2610
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
@@ -2473,7 +2811,7 @@ module Aws::ECR
2473
2811
  params: params,
2474
2812
  config: config)
2475
2813
  context[:gem_name] = 'aws-sdk-ecr'
2476
- context[:gem_version] = '1.49.0'
2814
+ context[:gem_version] = '1.50.0'
2477
2815
  Seahorse::Client::Request.new(handlers, context)
2478
2816
  end
2479
2817