aws-sdk-ec2 1.82.0 → 1.83.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -672,10 +672,10 @@ module Aws::EC2
672
672
  # The ID of the VPC with which you are creating the VPC peering
673
673
  # connection. You must specify this parameter in the request.
674
674
  # @option options [String] :peer_region
675
- # The region code for the accepter VPC, if the accepter VPC is located
676
- # in a region other than the region in which you make the request.
675
+ # The Region code for the accepter VPC, if the accepter VPC is located
676
+ # in a Region other than the Region in which you make the request.
677
677
  #
678
- # Default: The region in which you make the request.
678
+ # Default: The Region in which you make the request.
679
679
  # @return [VpcPeeringConnection]
680
680
  def request_vpc_peering_connection(options = {})
681
681
  options = options.merge(vpc_id: @id)
@@ -1826,20 +1826,22 @@ module Aws::EC2
1826
1826
  # @return [Subnet::Collection]
1827
1827
  def subnets(options = {})
1828
1828
  batches = Enumerator.new do |y|
1829
- batch = []
1830
1829
  options = Aws::Util.deep_merge(options, filters: [{
1831
1830
  name: "vpc-id",
1832
1831
  values: [@id]
1833
1832
  }])
1834
1833
  resp = @client.describe_subnets(options)
1835
- resp.data.subnets.each do |s|
1836
- batch << Subnet.new(
1837
- id: s.subnet_id,
1838
- data: s,
1839
- client: @client
1840
- )
1834
+ resp.each_page do |page|
1835
+ batch = []
1836
+ page.data.subnets.each do |s|
1837
+ batch << Subnet.new(
1838
+ id: s.subnet_id,
1839
+ data: s,
1840
+ client: @client
1841
+ )
1842
+ end
1843
+ y.yield(batch)
1841
1844
  end
1842
- y.yield(batch)
1843
1845
  end
1844
1846
  Subnet::Collection.new(batches)
1845
1847
  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.82.0
4
+ version: 1.83.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: 2019-05-01 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4