# File lib/fog/aws/models/auto_scaling/policies.rb, line 17 def all(filters_arg = filters) data = [] next_token = nil self.filters = filters_arg loop do result = service.describe_policies(filters.merge('NextToken' => next_token)).body['DescribePoliciesResult'] data += result['ScalingPolicies'] next_token = result['NextToken'] break if next_token.nil? end load(data) end