aws-sdk-ecr 1.94.0 → 1.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccd6a0cbd8c79a35023782f288479302c7a476d313bace7ab24c5d9042c89fae
4
- data.tar.gz: 50474dbbbfa22c8f0716d1794f70bdab28a0b40529dfcdde6a58a905439d7a65
3
+ metadata.gz: 0145dba4e29a6bcc4a0d1d64e4edd7a48f18b36f36325d765aa66bd6908f0348
4
+ data.tar.gz: 83cb8a268642991067440c2686a30d0bf5cb5ee9ded5056f7cfa979beb0f3ba7
5
5
  SHA512:
6
- metadata.gz: 317e3c3092b011140d3b8d640622ed85b8657b7635bd8e1f54bc98b19005a40f6eb2c9ba98978fc4e87f982a942755850184f03f0f18603e064ae04638b7121f
7
- data.tar.gz: e807c8afb37b5a24ff258433973fe69fd360526b82e1a36dea628291897cd42964f3ebb37b26317621efc8111cca6ebd493639644653f81b0a215d890ed0b395
6
+ metadata.gz: 6c44358c984da69853d41dd5ec122bc4bcbf7dde2a7741a8e0f7d19981015a9373cd52d77070f083b243c69d90d406ddc1c3cae5e468a1e4428b454a742aea1a
7
+ data.tar.gz: 7780182fafbe1ff67a5845d4b6a78903440eca217979eb82514c336f8df4604a0e1c8dc51f9c559a32077fb470177d79232e2ebb61adb2a0766952ea7e113344
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.0 (2025-02-07)
5
+ ------------------
6
+
7
+ * Feature - Adds support to handle the new basic scanning daily quota.
8
+
9
+ 1.95.0 (2025-02-06)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.94.0 (2025-01-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.94.0
1
+ 1.96.0
@@ -1606,7 +1606,7 @@ module Aws::ECR
1606
1606
  # resp.repository_name #=> String
1607
1607
  # resp.image_id.image_digest #=> String
1608
1608
  # resp.image_id.image_tag #=> String
1609
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1609
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE", "LIMIT_EXCEEDED"
1610
1610
  # resp.image_scan_status.description #=> String
1611
1611
  # resp.image_scan_findings.image_scan_completed_at #=> Time
1612
1612
  # resp.image_scan_findings.vulnerability_source_updated_at #=> Time
@@ -1777,7 +1777,7 @@ module Aws::ECR
1777
1777
  # resp.image_details[0].image_tags[0] #=> String
1778
1778
  # resp.image_details[0].image_size_in_bytes #=> Integer
1779
1779
  # resp.image_details[0].image_pushed_at #=> Time
1780
- # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
1780
+ # resp.image_details[0].image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE", "LIMIT_EXCEEDED"
1781
1781
  # resp.image_details[0].image_scan_status.description #=> String
1782
1782
  # resp.image_details[0].image_scan_findings_summary.image_scan_completed_at #=> Time
1783
1783
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
@@ -3193,14 +3193,18 @@ module Aws::ECR
3193
3193
  req.send_request(options)
3194
3194
  end
3195
3195
 
3196
- # Starts an image vulnerability scan. An image scan can only be started
3197
- # once per 24 hours on an individual image. This limit includes if an
3198
- # image was scanned on initial push. For more information, see [Image
3199
- # scanning][1] in the *Amazon Elastic Container Registry User Guide*.
3196
+ # Starts a basic image vulnerability scan.
3200
3197
  #
3198
+ # A basic image scan can only be started once per 24 hours on an
3199
+ # individual image. This limit includes if an image was scanned on
3200
+ # initial push. You can start up to 100,000 basic scans per 24 hours.
3201
+ # This limit includes both scans on initial push and scans initiated by
3202
+ # the StartImageScan API. For more information, see [Basic scanning][1]
3203
+ # in the *Amazon Elastic Container Registry User Guide*.
3201
3204
  #
3202
3205
  #
3203
- # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
3206
+ #
3207
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html
3204
3208
  #
3205
3209
  # @option params [String] :registry_id
3206
3210
  # The Amazon Web Services account ID associated with the registry that
@@ -3238,7 +3242,7 @@ module Aws::ECR
3238
3242
  # resp.repository_name #=> String
3239
3243
  # resp.image_id.image_digest #=> String
3240
3244
  # resp.image_id.image_tag #=> String
3241
- # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE"
3245
+ # resp.image_scan_status.status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED", "UNSUPPORTED_IMAGE", "ACTIVE", "PENDING", "SCAN_ELIGIBILITY_EXPIRED", "FINDINGS_UNAVAILABLE", "LIMIT_EXCEEDED"
3242
3246
  # resp.image_scan_status.description #=> String
3243
3247
  #
3244
3248
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan AWS API Documentation
@@ -3700,7 +3704,7 @@ module Aws::ECR
3700
3704
  tracer: tracer
3701
3705
  )
3702
3706
  context[:gem_name] = 'aws-sdk-ecr'
3703
- context[:gem_version] = '1.94.0'
3707
+ context[:gem_version] = '1.96.0'
3704
3708
  Seahorse::Client::Request.new(handlers, context)
3705
3709
  end
3706
3710
 
@@ -10,46 +10,42 @@
10
10
  module Aws::ECR
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
- use_dual_stack = parameters.use_dual_stack
15
- use_fips = parameters.use_fips
16
- endpoint = parameters.endpoint
17
- if Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
32
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
37
- return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
33
+ return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
38
34
  end
39
35
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
40
- return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
36
+ return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
41
37
  end
42
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
45
41
  end
46
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
42
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
47
43
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
48
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
44
+ return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
45
  end
50
46
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
51
47
  end
52
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
48
+ return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
53
49
  end
54
50
  end
55
51
  raise ArgumentError, "Invalid Configuration: Missing Region"
data/lib/aws-sdk-ecr.rb CHANGED
@@ -55,7 +55,7 @@ module Aws::ECR
55
55
  autoload :EndpointProvider, 'aws-sdk-ecr/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-ecr/endpoints'
57
57
 
58
- GEM_VERSION = '1.94.0'
58
+ GEM_VERSION = '1.96.0'
59
59
 
60
60
  end
61
61
 
data/sig/types.rbs CHANGED
@@ -579,7 +579,7 @@ module Aws::ECR
579
579
  end
580
580
 
581
581
  class ImageScanStatus
582
- attr_accessor status: ("IN_PROGRESS" | "COMPLETE" | "FAILED" | "UNSUPPORTED_IMAGE" | "ACTIVE" | "PENDING" | "SCAN_ELIGIBILITY_EXPIRED" | "FINDINGS_UNAVAILABLE")
582
+ attr_accessor status: ("IN_PROGRESS" | "COMPLETE" | "FAILED" | "UNSUPPORTED_IMAGE" | "ACTIVE" | "PENDING" | "SCAN_ELIGIBILITY_EXPIRED" | "FINDINGS_UNAVAILABLE" | "LIMIT_EXCEEDED")
583
583
  attr_accessor description: ::String
584
584
  SENSITIVE: []
585
585
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.94.0
4
+ version: 1.96.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-30 00:00:00.000000000 Z
11
+ date: 2025-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core