551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
|
# File 'lib/aws-sdk-iam/group.rb', line 551
def users(options = {})
batches = Enumerator.new do |y|
options = options.merge(group_name: @name)
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
@client.get_group(options)
end
resp.each_page do |page|
batch = []
page.data.users.each do |u|
batch << User.new(
name: u.user_name,
data: u,
client: @client
)
end
y.yield(batch)
end
end
User::Collection.new(batches)
end
|