aws-sdk-ecr 1.48.0 → 1.52.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 +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecr/client.rb +369 -11
- data/lib/aws-sdk-ecr/client_api.rb +373 -1
- data/lib/aws-sdk-ecr/errors.rb +48 -0
- data/lib/aws-sdk-ecr/types.rb +973 -15
- data/lib/aws-sdk-ecr.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7c2247fd1b3119bc5efc69138875b27481dc46239eba475830016e329472373
|
|
4
|
+
data.tar.gz: 8d087c4cbf9303fcf32ddd12a67bfb88179f0bb3fb291244ac97dc50429accec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d09127dcac02fe7cc8fadfeb411b58faf728a4a5eabf0e170182bb6f88a53e3203595ce745a7fbe7e58835b5acbd6cac82daabc446aa3fb360e21de2050a8609
|
|
7
|
+
data.tar.gz: b7c73c359dce777e0c8168cae7f20b19c0d17e4626177a6625d996f8ba37c46dbb170b27a19c836473fe9cd69a65325946481acee1afe055cc9605a9a9fc239c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.52.0 (2021-12-21)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.51.0 (2021-11-30)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
1.50.0 (2021-11-29)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - This release adds supports for pull through cache rules and enhanced scanning.
|
|
18
|
+
|
|
19
|
+
1.49.0 (2021-11-04)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
23
|
+
|
|
4
24
|
1.48.0 (2021-10-18)
|
|
5
25
|
------------------
|
|
6
26
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.52.0
|
data/lib/aws-sdk-ecr/client.rb
CHANGED
|
@@ -27,6 +27,7 @@ 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'
|
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
31
32
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
32
33
|
|
|
@@ -73,6 +74,7 @@ module Aws::ECR
|
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
77
79
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
|
78
80
|
|
|
@@ -119,7 +121,9 @@ module Aws::ECR
|
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
|
122
|
-
# enable retries and extended timeouts.
|
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
|
126
|
+
# to true.
|
|
123
127
|
#
|
|
124
128
|
# @option options [required, String] :region
|
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
|
@@ -173,6 +177,10 @@ module Aws::ECR
|
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
|
175
179
|
#
|
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
|
183
|
+
#
|
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
|
178
186
|
# to default service endpoint when available.
|
|
@@ -285,6 +293,15 @@ module Aws::ECR
|
|
|
285
293
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
|
286
294
|
# requests are made, and retries are disabled.
|
|
287
295
|
#
|
|
296
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
|
297
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
|
298
|
+
# will be used if available.
|
|
299
|
+
#
|
|
300
|
+
# @option options [Boolean] :use_fips_endpoint
|
|
301
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
|
302
|
+
# When a `fips` region is used, the region is normalized and this config
|
|
303
|
+
# is set to `true`.
|
|
304
|
+
#
|
|
288
305
|
# @option options [Boolean] :validate_params (true)
|
|
289
306
|
# When `true`, request parameters are validated before
|
|
290
307
|
# sending the request.
|
|
@@ -296,7 +313,7 @@ module Aws::ECR
|
|
|
296
313
|
# seconds to wait when opening a HTTP session before raising a
|
|
297
314
|
# `Timeout::Error`.
|
|
298
315
|
#
|
|
299
|
-
# @option options [
|
|
316
|
+
# @option options [Float] :http_read_timeout (60) The default
|
|
300
317
|
# number of seconds to wait for response data. This value can
|
|
301
318
|
# safely be set per-request on the session.
|
|
302
319
|
#
|
|
@@ -312,6 +329,9 @@ module Aws::ECR
|
|
|
312
329
|
# disables this behaviour. This value can safely be set per
|
|
313
330
|
# request on the session.
|
|
314
331
|
#
|
|
332
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
|
333
|
+
# in seconds.
|
|
334
|
+
#
|
|
315
335
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
|
316
336
|
# HTTP debug output will be sent to the `:logger`.
|
|
317
337
|
#
|
|
@@ -584,6 +604,46 @@ module Aws::ECR
|
|
|
584
604
|
req.send_request(options)
|
|
585
605
|
end
|
|
586
606
|
|
|
607
|
+
# Gets the scanning configuration for one or more repositories.
|
|
608
|
+
#
|
|
609
|
+
# @option params [required, Array<String>] :repository_names
|
|
610
|
+
# One or more repository names to get the scanning configuration for.
|
|
611
|
+
#
|
|
612
|
+
# @return [Types::BatchGetRepositoryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
613
|
+
#
|
|
614
|
+
# * {Types::BatchGetRepositoryScanningConfigurationResponse#scanning_configurations #scanning_configurations} => Array<Types::RepositoryScanningConfiguration>
|
|
615
|
+
# * {Types::BatchGetRepositoryScanningConfigurationResponse#failures #failures} => Array<Types::RepositoryScanningConfigurationFailure>
|
|
616
|
+
#
|
|
617
|
+
# @example Request syntax with placeholder values
|
|
618
|
+
#
|
|
619
|
+
# resp = client.batch_get_repository_scanning_configuration({
|
|
620
|
+
# repository_names: ["RepositoryName"], # required
|
|
621
|
+
# })
|
|
622
|
+
#
|
|
623
|
+
# @example Response structure
|
|
624
|
+
#
|
|
625
|
+
# resp.scanning_configurations #=> Array
|
|
626
|
+
# resp.scanning_configurations[0].repository_arn #=> String
|
|
627
|
+
# resp.scanning_configurations[0].repository_name #=> String
|
|
628
|
+
# resp.scanning_configurations[0].scan_on_push #=> Boolean
|
|
629
|
+
# resp.scanning_configurations[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
|
|
630
|
+
# resp.scanning_configurations[0].applied_scan_filters #=> Array
|
|
631
|
+
# resp.scanning_configurations[0].applied_scan_filters[0].filter #=> String
|
|
632
|
+
# resp.scanning_configurations[0].applied_scan_filters[0].filter_type #=> String, one of "WILDCARD"
|
|
633
|
+
# resp.failures #=> Array
|
|
634
|
+
# resp.failures[0].repository_name #=> String
|
|
635
|
+
# resp.failures[0].failure_code #=> String, one of "REPOSITORY_NOT_FOUND"
|
|
636
|
+
# resp.failures[0].failure_reason #=> String
|
|
637
|
+
#
|
|
638
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetRepositoryScanningConfiguration AWS API Documentation
|
|
639
|
+
#
|
|
640
|
+
# @overload batch_get_repository_scanning_configuration(params = {})
|
|
641
|
+
# @param [Hash] params ({})
|
|
642
|
+
def batch_get_repository_scanning_configuration(params = {}, options = {})
|
|
643
|
+
req = build_request(:batch_get_repository_scanning_configuration, params)
|
|
644
|
+
req.send_request(options)
|
|
645
|
+
end
|
|
646
|
+
|
|
587
647
|
# Informs Amazon ECR that the image layer upload has completed for a
|
|
588
648
|
# specified registry, repository name, and upload ID. You can optionally
|
|
589
649
|
# provide a `sha256` digest of the image layer for data validation
|
|
@@ -645,6 +705,54 @@ module Aws::ECR
|
|
|
645
705
|
req.send_request(options)
|
|
646
706
|
end
|
|
647
707
|
|
|
708
|
+
# Creates a pull through cache rule. A pull through cache rule provides
|
|
709
|
+
# a way to cache images from an external public registry in your Amazon
|
|
710
|
+
# ECR private registry.
|
|
711
|
+
#
|
|
712
|
+
# @option params [required, String] :ecr_repository_prefix
|
|
713
|
+
# The repository name prefix to use when caching images from the source
|
|
714
|
+
# registry.
|
|
715
|
+
#
|
|
716
|
+
# @option params [required, String] :upstream_registry_url
|
|
717
|
+
# The registry URL of the upstream public registry to use as the source
|
|
718
|
+
# for the pull through cache rule.
|
|
719
|
+
#
|
|
720
|
+
# @option params [String] :registry_id
|
|
721
|
+
# The Amazon Web Services account ID associated with the registry to
|
|
722
|
+
# create the pull through cache rule for. If you do not specify a
|
|
723
|
+
# registry, the default registry is assumed.
|
|
724
|
+
#
|
|
725
|
+
# @return [Types::CreatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
726
|
+
#
|
|
727
|
+
# * {Types::CreatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
|
|
728
|
+
# * {Types::CreatePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
|
|
729
|
+
# * {Types::CreatePullThroughCacheRuleResponse#created_at #created_at} => Time
|
|
730
|
+
# * {Types::CreatePullThroughCacheRuleResponse#registry_id #registry_id} => String
|
|
731
|
+
#
|
|
732
|
+
# @example Request syntax with placeholder values
|
|
733
|
+
#
|
|
734
|
+
# resp = client.create_pull_through_cache_rule({
|
|
735
|
+
# ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
|
|
736
|
+
# upstream_registry_url: "Url", # required
|
|
737
|
+
# registry_id: "RegistryId",
|
|
738
|
+
# })
|
|
739
|
+
#
|
|
740
|
+
# @example Response structure
|
|
741
|
+
#
|
|
742
|
+
# resp.ecr_repository_prefix #=> String
|
|
743
|
+
# resp.upstream_registry_url #=> String
|
|
744
|
+
# resp.created_at #=> Time
|
|
745
|
+
# resp.registry_id #=> String
|
|
746
|
+
#
|
|
747
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRule AWS API Documentation
|
|
748
|
+
#
|
|
749
|
+
# @overload create_pull_through_cache_rule(params = {})
|
|
750
|
+
# @param [Hash] params ({})
|
|
751
|
+
def create_pull_through_cache_rule(params = {}, options = {})
|
|
752
|
+
req = build_request(:create_pull_through_cache_rule, params)
|
|
753
|
+
req.send_request(options)
|
|
754
|
+
end
|
|
755
|
+
|
|
648
756
|
# Creates a repository. For more information, see [Amazon ECR
|
|
649
757
|
# repositories][1] in the *Amazon Elastic Container Registry User
|
|
650
758
|
# Guide*.
|
|
@@ -654,9 +762,9 @@ module Aws::ECR
|
|
|
654
762
|
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html
|
|
655
763
|
#
|
|
656
764
|
# @option params [String] :registry_id
|
|
657
|
-
# The
|
|
658
|
-
# repository. If you do not specify a registry, the default
|
|
659
|
-
# assumed.
|
|
765
|
+
# The Amazon Web Services account ID associated with the registry to
|
|
766
|
+
# create the repository. If you do not specify a registry, the default
|
|
767
|
+
# registry is assumed.
|
|
660
768
|
#
|
|
661
769
|
# @option params [required, String] :repository_name
|
|
662
770
|
# The name to use for the repository. The repository name may be
|
|
@@ -792,6 +900,47 @@ module Aws::ECR
|
|
|
792
900
|
req.send_request(options)
|
|
793
901
|
end
|
|
794
902
|
|
|
903
|
+
# Deletes a pull through cache rule.
|
|
904
|
+
#
|
|
905
|
+
# @option params [required, String] :ecr_repository_prefix
|
|
906
|
+
# The Amazon ECR repository prefix associated with the pull through
|
|
907
|
+
# cache rule to delete.
|
|
908
|
+
#
|
|
909
|
+
# @option params [String] :registry_id
|
|
910
|
+
# The Amazon Web Services account ID associated with the registry that
|
|
911
|
+
# contains the pull through cache rule. If you do not specify a
|
|
912
|
+
# registry, the default registry is assumed.
|
|
913
|
+
#
|
|
914
|
+
# @return [Types::DeletePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
915
|
+
#
|
|
916
|
+
# * {Types::DeletePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
|
|
917
|
+
# * {Types::DeletePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
|
|
918
|
+
# * {Types::DeletePullThroughCacheRuleResponse#created_at #created_at} => Time
|
|
919
|
+
# * {Types::DeletePullThroughCacheRuleResponse#registry_id #registry_id} => String
|
|
920
|
+
#
|
|
921
|
+
# @example Request syntax with placeholder values
|
|
922
|
+
#
|
|
923
|
+
# resp = client.delete_pull_through_cache_rule({
|
|
924
|
+
# ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
|
|
925
|
+
# registry_id: "RegistryId",
|
|
926
|
+
# })
|
|
927
|
+
#
|
|
928
|
+
# @example Response structure
|
|
929
|
+
#
|
|
930
|
+
# resp.ecr_repository_prefix #=> String
|
|
931
|
+
# resp.upstream_registry_url #=> String
|
|
932
|
+
# resp.created_at #=> Time
|
|
933
|
+
# resp.registry_id #=> String
|
|
934
|
+
#
|
|
935
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule AWS API Documentation
|
|
936
|
+
#
|
|
937
|
+
# @overload delete_pull_through_cache_rule(params = {})
|
|
938
|
+
# @param [Hash] params ({})
|
|
939
|
+
def delete_pull_through_cache_rule(params = {}, options = {})
|
|
940
|
+
req = build_request(:delete_pull_through_cache_rule, params)
|
|
941
|
+
req.send_request(options)
|
|
942
|
+
end
|
|
943
|
+
|
|
795
944
|
# Deletes the registry permissions policy.
|
|
796
945
|
#
|
|
797
946
|
# @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
@@ -1050,10 +1199,12 @@ module Aws::ECR
|
|
|
1050
1199
|
# resp.repository_name #=> String
|
|
1051
1200
|
# resp.image_id.image_digest #=> String
|
|
1052
1201
|
# resp.image_id.image_tag #=> String
|
|
1053
|
-
# resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
|
|
1202
|
+
# resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
|
|
1054
1203
|
# resp.image_scan_status.description #=> String
|
|
1055
1204
|
# resp.image_scan_findings.image_scan_completed_at #=> Time
|
|
1056
1205
|
# resp.image_scan_findings.vulnerability_source_updated_at #=> Time
|
|
1206
|
+
# resp.image_scan_findings.finding_severity_counts #=> Hash
|
|
1207
|
+
# resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
|
|
1057
1208
|
# resp.image_scan_findings.findings #=> Array
|
|
1058
1209
|
# resp.image_scan_findings.findings[0].name #=> String
|
|
1059
1210
|
# resp.image_scan_findings.findings[0].description #=> String
|
|
@@ -1062,8 +1213,65 @@ module Aws::ECR
|
|
|
1062
1213
|
# resp.image_scan_findings.findings[0].attributes #=> Array
|
|
1063
1214
|
# resp.image_scan_findings.findings[0].attributes[0].key #=> String
|
|
1064
1215
|
# resp.image_scan_findings.findings[0].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
|
1065
|
-
# resp.image_scan_findings.
|
|
1066
|
-
# resp.image_scan_findings.
|
|
1216
|
+
# resp.image_scan_findings.enhanced_findings #=> Array
|
|
1217
|
+
# resp.image_scan_findings.enhanced_findings[0].aws_account_id #=> String
|
|
1218
|
+
# resp.image_scan_findings.enhanced_findings[0].description #=> String
|
|
1219
|
+
# resp.image_scan_findings.enhanced_findings[0].finding_arn #=> String
|
|
1220
|
+
# resp.image_scan_findings.enhanced_findings[0].first_observed_at #=> Time
|
|
1221
|
+
# resp.image_scan_findings.enhanced_findings[0].last_observed_at #=> Time
|
|
1222
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss #=> Array
|
|
1223
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].base_score #=> Float
|
|
1224
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].scoring_vector #=> String
|
|
1225
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].source #=> String
|
|
1226
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.cvss[0].version #=> String
|
|
1227
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls #=> Array
|
|
1228
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.reference_urls[0] #=> String
|
|
1229
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities #=> Array
|
|
1230
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.related_vulnerabilities[0] #=> String
|
|
1231
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source #=> String
|
|
1232
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.source_url #=> String
|
|
1233
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_created_at #=> Time
|
|
1234
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_severity #=> String
|
|
1235
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vendor_updated_at #=> Time
|
|
1236
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerability_id #=> String
|
|
1237
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages #=> Array
|
|
1238
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].arch #=> String
|
|
1239
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].epoch #=> Integer
|
|
1240
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].file_path #=> String
|
|
1241
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].name #=> String
|
|
1242
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].package_manager #=> String
|
|
1243
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].release #=> String
|
|
1244
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].source_layer_hash #=> String
|
|
1245
|
+
# resp.image_scan_findings.enhanced_findings[0].package_vulnerability_details.vulnerable_packages[0].version #=> String
|
|
1246
|
+
# resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.url #=> String
|
|
1247
|
+
# resp.image_scan_findings.enhanced_findings[0].remediation.recommendation.text #=> String
|
|
1248
|
+
# resp.image_scan_findings.enhanced_findings[0].resources #=> Array
|
|
1249
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.architecture #=> String
|
|
1250
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.author #=> String
|
|
1251
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_hash #=> String
|
|
1252
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags #=> Array
|
|
1253
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.image_tags[0] #=> String
|
|
1254
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.platform #=> String
|
|
1255
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.pushed_at #=> Time
|
|
1256
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.registry #=> String
|
|
1257
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].details.aws_ecr_container_image.repository_name #=> String
|
|
1258
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].id #=> String
|
|
1259
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].tags #=> Hash
|
|
1260
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].tags["TagKey"] #=> String
|
|
1261
|
+
# resp.image_scan_findings.enhanced_findings[0].resources[0].type #=> String
|
|
1262
|
+
# resp.image_scan_findings.enhanced_findings[0].score #=> Float
|
|
1263
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments #=> Array
|
|
1264
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].metric #=> String
|
|
1265
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.adjustments[0].reason #=> String
|
|
1266
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score #=> Float
|
|
1267
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.score_source #=> String
|
|
1268
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.scoring_vector #=> String
|
|
1269
|
+
# resp.image_scan_findings.enhanced_findings[0].score_details.cvss.version #=> String
|
|
1270
|
+
# resp.image_scan_findings.enhanced_findings[0].severity #=> String
|
|
1271
|
+
# resp.image_scan_findings.enhanced_findings[0].status #=> String
|
|
1272
|
+
# resp.image_scan_findings.enhanced_findings[0].title #=> String
|
|
1273
|
+
# resp.image_scan_findings.enhanced_findings[0].type #=> String
|
|
1274
|
+
# resp.image_scan_findings.enhanced_findings[0].updated_at #=> Time
|
|
1067
1275
|
# resp.next_token #=> String
|
|
1068
1276
|
#
|
|
1069
1277
|
#
|
|
@@ -1159,7 +1367,7 @@ module Aws::ECR
|
|
|
1159
1367
|
# resp.image_details[0].image_tags[0] #=> String
|
|
1160
1368
|
# resp.image_details[0].image_size_in_bytes #=> Integer
|
|
1161
1369
|
# resp.image_details[0].image_pushed_at #=> Time
|
|
1162
|
-
# resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
|
|
1370
|
+
# 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
1371
|
# resp.image_details[0].image_scan_status.description #=> String
|
|
1164
1372
|
# resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
|
|
1165
1373
|
# resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
|
|
@@ -1178,6 +1386,72 @@ module Aws::ECR
|
|
|
1178
1386
|
req.send_request(options)
|
|
1179
1387
|
end
|
|
1180
1388
|
|
|
1389
|
+
# Returns the pull through cache rules for a registry.
|
|
1390
|
+
#
|
|
1391
|
+
# @option params [String] :registry_id
|
|
1392
|
+
# The Amazon Web Services account ID associated with the registry to
|
|
1393
|
+
# return the pull through cache rules for. If you do not specify a
|
|
1394
|
+
# registry, the default registry is assumed.
|
|
1395
|
+
#
|
|
1396
|
+
# @option params [Array<String>] :ecr_repository_prefixes
|
|
1397
|
+
# The Amazon ECR repository prefixes associated with the pull through
|
|
1398
|
+
# cache rules to return. If no repository prefix value is specified, all
|
|
1399
|
+
# pull through cache rules are returned.
|
|
1400
|
+
#
|
|
1401
|
+
# @option params [String] :next_token
|
|
1402
|
+
# The `nextToken` value returned from a previous paginated
|
|
1403
|
+
# `DescribePullThroughCacheRulesRequest` request where `maxResults` was
|
|
1404
|
+
# used and the results exceeded the value of that parameter. Pagination
|
|
1405
|
+
# continues from the end of the previous results that returned the
|
|
1406
|
+
# `nextToken` value. This value is null when there are no more results
|
|
1407
|
+
# to return.
|
|
1408
|
+
#
|
|
1409
|
+
# @option params [Integer] :max_results
|
|
1410
|
+
# The maximum number of pull through cache rules returned by
|
|
1411
|
+
# `DescribePullThroughCacheRulesRequest` in paginated output. When this
|
|
1412
|
+
# parameter is used, `DescribePullThroughCacheRulesRequest` only returns
|
|
1413
|
+
# `maxResults` results in a single page along with a `nextToken`
|
|
1414
|
+
# response element. The remaining results of the initial request can be
|
|
1415
|
+
# seen by sending another `DescribePullThroughCacheRulesRequest` request
|
|
1416
|
+
# with the returned `nextToken` value. This value can be between 1 and
|
|
1417
|
+
# 1000. If this parameter is not used, then
|
|
1418
|
+
# `DescribePullThroughCacheRulesRequest` returns up to 100 results and a
|
|
1419
|
+
# `nextToken` value, if applicable.
|
|
1420
|
+
#
|
|
1421
|
+
# @return [Types::DescribePullThroughCacheRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1422
|
+
#
|
|
1423
|
+
# * {Types::DescribePullThroughCacheRulesResponse#pull_through_cache_rules #pull_through_cache_rules} => Array<Types::PullThroughCacheRule>
|
|
1424
|
+
# * {Types::DescribePullThroughCacheRulesResponse#next_token #next_token} => String
|
|
1425
|
+
#
|
|
1426
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1427
|
+
#
|
|
1428
|
+
# @example Request syntax with placeholder values
|
|
1429
|
+
#
|
|
1430
|
+
# resp = client.describe_pull_through_cache_rules({
|
|
1431
|
+
# registry_id: "RegistryId",
|
|
1432
|
+
# ecr_repository_prefixes: ["PullThroughCacheRuleRepositoryPrefix"],
|
|
1433
|
+
# next_token: "NextToken",
|
|
1434
|
+
# max_results: 1,
|
|
1435
|
+
# })
|
|
1436
|
+
#
|
|
1437
|
+
# @example Response structure
|
|
1438
|
+
#
|
|
1439
|
+
# resp.pull_through_cache_rules #=> Array
|
|
1440
|
+
# resp.pull_through_cache_rules[0].ecr_repository_prefix #=> String
|
|
1441
|
+
# resp.pull_through_cache_rules[0].upstream_registry_url #=> String
|
|
1442
|
+
# resp.pull_through_cache_rules[0].created_at #=> Time
|
|
1443
|
+
# resp.pull_through_cache_rules[0].registry_id #=> String
|
|
1444
|
+
# resp.next_token #=> String
|
|
1445
|
+
#
|
|
1446
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribePullThroughCacheRules AWS API Documentation
|
|
1447
|
+
#
|
|
1448
|
+
# @overload describe_pull_through_cache_rules(params = {})
|
|
1449
|
+
# @param [Hash] params ({})
|
|
1450
|
+
def describe_pull_through_cache_rules(params = {}, options = {})
|
|
1451
|
+
req = build_request(:describe_pull_through_cache_rules, params)
|
|
1452
|
+
req.send_request(options)
|
|
1453
|
+
end
|
|
1454
|
+
|
|
1181
1455
|
# Describes the settings for a registry. The replication configuration
|
|
1182
1456
|
# for a repository can be created or updated with the
|
|
1183
1457
|
# PutReplicationConfiguration API action.
|
|
@@ -1588,6 +1862,32 @@ module Aws::ECR
|
|
|
1588
1862
|
req.send_request(options)
|
|
1589
1863
|
end
|
|
1590
1864
|
|
|
1865
|
+
# Retrieves the scanning configuration for a registry.
|
|
1866
|
+
#
|
|
1867
|
+
# @return [Types::GetRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1868
|
+
#
|
|
1869
|
+
# * {Types::GetRegistryScanningConfigurationResponse#registry_id #registry_id} => String
|
|
1870
|
+
# * {Types::GetRegistryScanningConfigurationResponse#scanning_configuration #scanning_configuration} => Types::RegistryScanningConfiguration
|
|
1871
|
+
#
|
|
1872
|
+
# @example Response structure
|
|
1873
|
+
#
|
|
1874
|
+
# resp.registry_id #=> String
|
|
1875
|
+
# resp.scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
|
|
1876
|
+
# resp.scanning_configuration.rules #=> Array
|
|
1877
|
+
# resp.scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
|
|
1878
|
+
# resp.scanning_configuration.rules[0].repository_filters #=> Array
|
|
1879
|
+
# resp.scanning_configuration.rules[0].repository_filters[0].filter #=> String
|
|
1880
|
+
# resp.scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
|
|
1881
|
+
#
|
|
1882
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryScanningConfiguration AWS API Documentation
|
|
1883
|
+
#
|
|
1884
|
+
# @overload get_registry_scanning_configuration(params = {})
|
|
1885
|
+
# @param [Hash] params ({})
|
|
1886
|
+
def get_registry_scanning_configuration(params = {}, options = {})
|
|
1887
|
+
req = build_request(:get_registry_scanning_configuration, params)
|
|
1888
|
+
req.send_request(options)
|
|
1889
|
+
end
|
|
1890
|
+
|
|
1591
1891
|
# Retrieves the repository policy for the specified repository.
|
|
1592
1892
|
#
|
|
1593
1893
|
# @option params [String] :registry_id
|
|
@@ -2083,6 +2383,64 @@ module Aws::ECR
|
|
|
2083
2383
|
req.send_request(options)
|
|
2084
2384
|
end
|
|
2085
2385
|
|
|
2386
|
+
# Creates or updates the scanning configuration for your private
|
|
2387
|
+
# registry.
|
|
2388
|
+
#
|
|
2389
|
+
# @option params [String] :scan_type
|
|
2390
|
+
# The scanning type to set for the registry.
|
|
2391
|
+
#
|
|
2392
|
+
# By default, the `BASIC` scan type is used. When basic scanning is set,
|
|
2393
|
+
# you may specify filters to determine which individual repositories, or
|
|
2394
|
+
# all repositories, are scanned when new images are pushed.
|
|
2395
|
+
# Alternatively, you can do manual scans of images with basic scanning.
|
|
2396
|
+
#
|
|
2397
|
+
# When the `ENHANCED` scan type is set, Amazon Inspector provides
|
|
2398
|
+
# automated, continuous scanning of all repositories in your registry.
|
|
2399
|
+
#
|
|
2400
|
+
# @option params [Array<Types::RegistryScanningRule>] :rules
|
|
2401
|
+
# The scanning rules to use for the registry. A scanning rule is used to
|
|
2402
|
+
# determine which repository filters are used and at what frequency
|
|
2403
|
+
# scanning will occur.
|
|
2404
|
+
#
|
|
2405
|
+
# @return [Types::PutRegistryScanningConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2406
|
+
#
|
|
2407
|
+
# * {Types::PutRegistryScanningConfigurationResponse#registry_scanning_configuration #registry_scanning_configuration} => Types::RegistryScanningConfiguration
|
|
2408
|
+
#
|
|
2409
|
+
# @example Request syntax with placeholder values
|
|
2410
|
+
#
|
|
2411
|
+
# resp = client.put_registry_scanning_configuration({
|
|
2412
|
+
# scan_type: "BASIC", # accepts BASIC, ENHANCED
|
|
2413
|
+
# rules: [
|
|
2414
|
+
# {
|
|
2415
|
+
# scan_frequency: "SCAN_ON_PUSH", # required, accepts SCAN_ON_PUSH, CONTINUOUS_SCAN, MANUAL
|
|
2416
|
+
# repository_filters: [ # required
|
|
2417
|
+
# {
|
|
2418
|
+
# filter: "ScanningRepositoryFilterValue", # required
|
|
2419
|
+
# filter_type: "WILDCARD", # required, accepts WILDCARD
|
|
2420
|
+
# },
|
|
2421
|
+
# ],
|
|
2422
|
+
# },
|
|
2423
|
+
# ],
|
|
2424
|
+
# })
|
|
2425
|
+
#
|
|
2426
|
+
# @example Response structure
|
|
2427
|
+
#
|
|
2428
|
+
# resp.registry_scanning_configuration.scan_type #=> String, one of "BASIC", "ENHANCED"
|
|
2429
|
+
# resp.registry_scanning_configuration.rules #=> Array
|
|
2430
|
+
# resp.registry_scanning_configuration.rules[0].scan_frequency #=> String, one of "SCAN_ON_PUSH", "CONTINUOUS_SCAN", "MANUAL"
|
|
2431
|
+
# resp.registry_scanning_configuration.rules[0].repository_filters #=> Array
|
|
2432
|
+
# resp.registry_scanning_configuration.rules[0].repository_filters[0].filter #=> String
|
|
2433
|
+
# resp.registry_scanning_configuration.rules[0].repository_filters[0].filter_type #=> String, one of "WILDCARD"
|
|
2434
|
+
#
|
|
2435
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryScanningConfiguration AWS API Documentation
|
|
2436
|
+
#
|
|
2437
|
+
# @overload put_registry_scanning_configuration(params = {})
|
|
2438
|
+
# @param [Hash] params ({})
|
|
2439
|
+
def put_registry_scanning_configuration(params = {}, options = {})
|
|
2440
|
+
req = build_request(:put_registry_scanning_configuration, params)
|
|
2441
|
+
req.send_request(options)
|
|
2442
|
+
end
|
|
2443
|
+
|
|
2086
2444
|
# Creates or updates the replication configuration for a registry. The
|
|
2087
2445
|
# existing replication configuration for a repository can be retrieved
|
|
2088
2446
|
# with the DescribeRegistry API action. The first time the
|
|
@@ -2257,7 +2615,7 @@ module Aws::ECR
|
|
|
2257
2615
|
# resp.repository_name #=> String
|
|
2258
2616
|
# resp.image_id.image_digest #=> String
|
|
2259
2617
|
# resp.image_id.image_tag #=> String
|
|
2260
|
-
# resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
|
|
2618
|
+
# resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
|
|
2261
2619
|
# resp.image_scan_status.description #=> String
|
|
2262
2620
|
#
|
|
2263
2621
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
|
|
@@ -2464,7 +2822,7 @@ module Aws::ECR
|
|
|
2464
2822
|
params: params,
|
|
2465
2823
|
config: config)
|
|
2466
2824
|
context[:gem_name] = 'aws-sdk-ecr'
|
|
2467
|
-
context[:gem_version] = '1.
|
|
2825
|
+
context[:gem_version] = '1.52.0'
|
|
2468
2826
|
Seahorse::Client::Request.new(handlers, context)
|
|
2469
2827
|
end
|
|
2470
2828
|
|