aws-sdk-ec2 1.457.0 → 1.457.1

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: 76014b975628e25477347fdc9e78eea9218c23c15bd67744851b4d391c0d5ceb
4
- data.tar.gz: 3576cf55e624f067382a81324f2054e25d540513991247d8c3584666bfeba22e
3
+ metadata.gz: 192e93e7d59303757b0c7d124faa0c9a028a11924181479371209e1ae118de3c
4
+ data.tar.gz: 967aebd6e34ea5787ec7b038ecc791c00c049143e72689bec5a959752090b64f
5
5
  SHA512:
6
- metadata.gz: c3b1de15800a2546ab668d3da93ca2b273e95ff1d7ba7700e53ce5aa40d85c640bea9aff5892d3795d698488fba67993de9ca70e674ce1c0e3d4c1b37e199ddd
7
- data.tar.gz: d77485828755830b932413383795d9c24d91120b7cf4bce363d3e9d8f8ec0570024ab39d60da67f8a56f6f8b8130468d10a3cae3057bdfcc295b0663a67f00f6
6
+ metadata.gz: 2ef2a88c376d88d476e94650543e7f04e5507d12fc3008051a29c01e8f6c75d39a45b8dfed17d44c195baff58fdd186321e7f1c1a9727eef36e182bda686a488
7
+ data.tar.gz: a69c8498cfa8b87bdc6f785253731682154f3450220ffa84925333fb7edb4aca1eb417a757c9713d722b0d795a3d3932e4598b0e1200baeade7dcd293cea3fa0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.457.1 (2024-05-21)
5
+ ------------------
6
+
7
+ * Issue - Fix Aws::EC2::Resource not to set max_results automatically when the options contains the parameter that cannot be used with the parameter max_results.
8
+
4
9
  1.457.0 (2024-05-13)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.457.0
1
+ 1.457.1
@@ -59357,7 +59357,7 @@ module Aws::EC2
59357
59357
  params: params,
59358
59358
  config: config)
59359
59359
  context[:gem_name] = 'aws-sdk-ec2'
59360
- context[:gem_version] = '1.457.0'
59360
+ context[:gem_version] = '1.457.1'
59361
59361
  Seahorse::Client::Request.new(handlers, context)
59362
59362
  end
59363
59363
 
@@ -9,22 +9,38 @@ module Aws
9
9
  # to ensure results are paginated.
10
10
  module ResourcePaginationFix
11
11
  def images(options = {})
12
- options[:max_results] ||= 1000
12
+ # Prevent the error:
13
+ # The parameter imageIdsSet cannot be used with the parameter maxResults
14
+ if options[:image_ids].nil? || options[:image_ids].empty?
15
+ options[:max_results] ||= 1000
16
+ end
13
17
  super(options)
14
18
  end
15
19
 
16
20
  def instances(options = {})
17
- options[:max_results] ||= 1000
21
+ # Prevent the error:
22
+ # The parameter instancesSet cannot be used with the parameter maxResults
23
+ if options[:instance_ids].nil? || options[:instance_ids].empty?
24
+ options[:max_results] ||= 1000
25
+ end
18
26
  super(options)
19
27
  end
20
28
 
21
29
  def snapshots(options = {})
22
- options[:max_results] ||= 1000
30
+ # Prevent the error:
31
+ # The parameter snapshotSet cannot be used with the parameter maxResults
32
+ if options[:snapshot_ids].nil? || options[:snapshot_ids].empty?
33
+ options[:max_results] ||= 1000
34
+ end
23
35
  super(options)
24
36
  end
25
37
 
26
38
  def volumes(options = {})
27
- options[:max_results] ||= 1000
39
+ # Prevent the error:
40
+ # The parameter volumeIdsSet cannot be used with the parameter maxResults
41
+ if options[:volume_ids].nil? || options[:volume_ids].empty?
42
+ options[:max_results] ||= 1000
43
+ end
28
44
  super(options)
29
45
  end
30
46
  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.457.0'
79
+ GEM_VERSION = '1.457.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.457.0
4
+ version: 1.457.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-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core