# File lib/fog/aws/models/auto_scaling/policies.rb, line 14 def all data = [] next_token = nil loop do result = service.describe_policies('NextToken' => next_token).body['DescribePoliciesResult'] data += result['ScalingPolicies'] next_token = result['NextToken'] break if next_token.nil? end load(data) end
# File lib/fog/aws/models/auto_scaling/policies.rb, line 26 def get(identity, auto_scaling_group = nil) data = service.describe_policies('PolicyNames' => identity, 'AutoScalingGroupName' => auto_scaling_group).body['DescribePoliciesResult']['ScalingPolicies'].first new(data) unless data.nil? end
Generated with the Darkfish Rdoc Generator 2.