aws-sdk-ec2 1.54.0 → 1.55.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1485,8 +1485,6 @@ module Aws::EC2
1485
1485
  # ],
1486
1486
  # dry_run: false,
1487
1487
  # route_table_ids: ["String"],
1488
- # next_token: "String",
1489
- # max_results: 1,
1490
1488
  # })
1491
1489
  # @param [Hash] options ({})
1492
1490
  # @option options [Array<Types::Filter>] :filters
@@ -1563,29 +1561,25 @@ module Aws::EC2
1563
1561
  # One or more route table IDs.
1564
1562
  #
1565
1563
  # Default: Describes all your route tables.
1566
- # @option options [String] :next_token
1567
- # The token to retrieve the next page of results.
1568
- # @option options [Integer] :max_results
1569
- # The maximum number of results to return in a single call. To retrieve
1570
- # the remaining results, make another call with the returned
1571
- # **NextToken** value. This value can be between 5 and 100.
1572
1564
  # @return [RouteTable::Collection]
1573
1565
  def route_tables(options = {})
1574
1566
  batches = Enumerator.new do |y|
1575
- batch = []
1576
1567
  options = Aws::Util.deep_merge(options, filters: [{
1577
1568
  name: "vpc-id",
1578
1569
  values: [@id]
1579
1570
  }])
1580
1571
  resp = @client.describe_route_tables(options)
1581
- resp.data.route_tables.each do |r|
1582
- batch << RouteTable.new(
1583
- id: r.route_table_id,
1584
- data: r,
1585
- client: @client
1586
- )
1572
+ resp.each_page do |page|
1573
+ batch = []
1574
+ page.data.route_tables.each do |r|
1575
+ batch << RouteTable.new(
1576
+ id: r.route_table_id,
1577
+ data: r,
1578
+ client: @client
1579
+ )
1580
+ end
1581
+ y.yield(batch)
1587
1582
  end
1588
- y.yield(batch)
1589
1583
  end
1590
1584
  RouteTable::Collection.new(batches)
1591
1585
  end
@@ -1602,8 +1596,6 @@ module Aws::EC2
1602
1596
  # group_ids: ["String"],
1603
1597
  # group_names: ["String"],
1604
1598
  # dry_run: false,
1605
- # next_token: "String",
1606
- # max_results: 1,
1607
1599
  # })
1608
1600
  # @param [Hash] options ({})
1609
1601
  # @option options [Array<Types::Filter>] :filters
@@ -1702,30 +1694,25 @@ module Aws::EC2
1702
1694
  # without actually making the request, and provides an error response.
1703
1695
  # If you have the required permissions, the error response is
1704
1696
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1705
- # @option options [String] :next_token
1706
- # The token to request the next page of results.
1707
- # @option options [Integer] :max_results
1708
- # The maximum number of results to return in a single call. To retrieve
1709
- # the remaining results, make another request with the returned
1710
- # `NextToken` value. This value can be between 5 and 1000. If this
1711
- # parameter is not specified, then all results are returned.
1712
1697
  # @return [SecurityGroup::Collection]
1713
1698
  def security_groups(options = {})
1714
1699
  batches = Enumerator.new do |y|
1715
- batch = []
1716
1700
  options = Aws::Util.deep_merge(options, filters: [{
1717
1701
  name: "vpc-id",
1718
1702
  values: [@id]
1719
1703
  }])
1720
1704
  resp = @client.describe_security_groups(options)
1721
- resp.data.security_groups.each do |s|
1722
- batch << SecurityGroup.new(
1723
- id: s.group_id,
1724
- data: s,
1725
- client: @client
1726
- )
1705
+ resp.each_page do |page|
1706
+ batch = []
1707
+ page.data.security_groups.each do |s|
1708
+ batch << SecurityGroup.new(
1709
+ id: s.group_id,
1710
+ data: s,
1711
+ client: @client
1712
+ )
1713
+ end
1714
+ y.yield(batch)
1727
1715
  end
1728
- y.yield(batch)
1729
1716
  end
1730
1717
  SecurityGroup::Collection.new(batches)
1731
1718
  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.54.0
4
+ version: 1.55.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: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4