lib/aws-sdk-rds/resource.rb in aws-sdk-rds-1.25.0 vs lib/aws-sdk-rds/resource.rb in aws-sdk-rds-1.26.0
- old
+ new
@@ -1661,12 +1661,10 @@
# {
# name: "String", # required
# values: ["String"], # required
# },
# ],
- # max_records: 1,
- # marker: "String",
# })
# @param [Hash] options ({})
# @option options [String] :db_cluster_identifier
# The user-supplied DB cluster identifier. If this parameter is
# specified, information from only the specific DB cluster is returned.
@@ -1685,35 +1683,24 @@
# * `db-cluster-id` - Accepts DB cluster identifiers and DB cluster
# Amazon Resource Names (ARNs). The results list will only include
# information about the DB clusters identified by these ARNs.
#
# ^
- # @option options [Integer] :max_records
- # The maximum number of records to include in the response. If more
- # records exist than the specified `MaxRecords` value, a pagination
- # token called a marker is included in the response so that the
- # remaining results can be retrieved.
- #
- # Default: 100
- #
- # Constraints: Minimum 20, maximum 100.
- # @option options [String] :marker
- # An optional pagination token provided by a previous DescribeDBClusters
- # request. If this parameter is specified, the response includes only
- # records beyond the marker, up to the value specified by `MaxRecords`.
# @return [DBCluster::Collection]
def db_clusters(options = {})
batches = Enumerator.new do |y|
- batch = []
resp = @client.describe_db_clusters(options)
- resp.data.db_clusters.each do |d|
- batch << DBCluster.new(
- id: d.db_cluster_identifier,
- data: d,
- client: @client
- )
+ resp.each_page do |page|
+ batch = []
+ page.data.db_clusters.each do |d|
+ batch << DBCluster.new(
+ id: d.db_cluster_identifier,
+ data: d,
+ client: @client
+ )
+ end
+ y.yield(batch)
end
- y.yield(batch)
end
DBCluster::Collection.new(batches)
end
# @param [String] name