# File lib/fog/aws/models/cloud_watch/alarms.rb, line 11 def all data = [] next_token = nil loop do body = service.describe_alarms('NextToken' => next_token).body data += body['DescribeAlarmsResult']['MetricAlarms'] next_token = body['ResponseMetadata']['NextToken'] break if next_token.nil? end load(data) end