aws-sdk-ec2 1.448.0 → 1.448.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +1 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +29 -2
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4f21788e57b5cf88216a6cb6938abb7165c063ac7c14469c1354648e6781e2
|
4
|
+
data.tar.gz: 78cea13978d866836b421b13391eae9668d3ce7a6151890c66baf6eebbb14130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
1.448.1
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -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.
|
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
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.
|
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-
|
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
|