lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.12.0 vs lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.13.0
- old
+ new
@@ -2206,10 +2206,12 @@
# },
# ],
# group_ids: ["String"],
# group_names: ["String"],
# dry_run: false,
+ # next_token: "String",
+ # max_results: 1,
# })
# @param [Hash] options ({})
# @option options [Array<Types::Filter>] :filters
# One or more filters. If using multiple filters for rules, the results
# include security groups for which any combination of rules - not
@@ -2271,9 +2273,15 @@
# @option options [Boolean] :dry_run
# Checks whether you have the required permissions for the action,
# without actually making the request, and provides an error response.
# If you have the required permissions, the error response is
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
+ # @option options [String] :next_token
+ # The token to request the next page of results.
+ # @option options [Integer] :max_results
+ # The maximum number of results to return in a single call. To retrieve
+ # the remaining results, make another request with the returned
+ # `NextToken` value. This value can be between 5 and 1000.
# @return [SecurityGroup::Collection]
def security_groups(options = {})
batches = Enumerator.new do |y|
batch = []
resp = @client.describe_security_groups(options)