aws-sdk-ec2 1.448.0 → 1.448.1

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: e89268ba1b843d283a19bc7a7e79a45d068eb12d203b4a3acdcf002d5bd2c7fa
4
- data.tar.gz: d7193012a038c55ac2c7fe9ac12ff7c7cc12071c152b9a10014a1e022bbc8dd6
3
+ metadata.gz: ce4f21788e57b5cf88216a6cb6938abb7165c063ac7c14469c1354648e6781e2
4
+ data.tar.gz: 78cea13978d866836b421b13391eae9668d3ce7a6151890c66baf6eebbb14130
5
5
  SHA512:
6
- metadata.gz: f22dcd3b31834698822801cc6a8029bc7564b3417060aba2adc39cd0b22aaf18e6e5007b271c82587a0b6eab9fc68ccd20806d2d42d95b70f0266c51cbe542ca
7
- data.tar.gz: a9a158bbfd8274c9db946f1a0a58d203bc3be37671477d83c117426a7590a5296a6fcc150522600a87c17eb583f06fa30b340c9854ec71233fa1efe907e6b565
6
+ metadata.gz: 650ac8b1a07523bfa2613e5f84f58173407548a78572bd64a618260d8455c4ff73cbab689edcb94146f1c54aa3ab102c836c591248fa03a6adce530d5b67515d
7
+ data.tar.gz: ae099d5fc04fc34c4c07b2407514575cb55d761ee55c7405c38a4cf1096c23b2eac8d1f216c76950b6380af2c0100f41ccf3fb5b9bf8079facf7b5c286786b58
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.448.1 (2024-04-12)
5
+ ------------------
6
+
7
+ * Issue - Add default max_results value to Resource methods for legacy APIs that support un-paginated calls by default.
8
+
4
9
  1.448.0 (2024-04-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.448.0
1
+ 1.448.1
@@ -59115,7 +59115,7 @@ module Aws::EC2
59115
59115
  params: params,
59116
59116
  config: config)
59117
59117
  context[:gem_name] = 'aws-sdk-ec2'
59118
- context[:gem_version] = '1.448.0'
59118
+ context[:gem_version] = '1.448.1'
59119
59119
  Seahorse::Client::Request.new(handlers, context)
59120
59120
  end
59121
59121
 
@@ -2,8 +2,35 @@
2
2
 
3
3
  module Aws
4
4
  module EC2
5
- class Resource
6
5
 
6
+ # 5 of EC2's old APIs DescribeInstances, DescribeImages, DescribeSnapshots, DescribeVolumes and DescribeTag
7
+ # support paginated calls and will not paginate server side unless max_results is set to a non-nil value.
8
+ # This module customizes the resource association methods by adding a default value of 1000 to max_results
9
+ # to ensure results are paginated.
10
+ module ResourcePaginationFix
11
+ def images(options = {})
12
+ options[:max_results] ||= 1000
13
+ super(options)
14
+ end
15
+
16
+ def instances(options = {})
17
+ options[:max_results] ||= 1000
18
+ super(options)
19
+ end
20
+
21
+ def snapshots(options = {})
22
+ options[:max_results] ||= 1000
23
+ super(options)
24
+ end
25
+
26
+ def volumes(options = {})
27
+ options[:max_results] ||= 1000
28
+ super(options)
29
+ end
30
+ end
31
+
32
+ class Resource
33
+ prepend ResourcePaginationFix
7
34
  def create_tags(options)
8
35
  resp = Aws::Plugins::UserAgent.feature('resource') do
9
36
  @client.create_tags(options)
@@ -16,7 +43,7 @@ module Aws
16
43
  end
17
44
  Tag::Collection.new([tags], size: tags.size)
18
45
  end
19
-
20
46
  end
47
+
21
48
  end
22
49
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.448.0'
79
+ GEM_VERSION = '1.448.1'
80
80
 
81
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.448.0
4
+ version: 1.448.1
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: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core