Method: AWS::IAM::UserCollection#enumerator

Defined in:
lib/aws/iam/user_collection.rb

#enumerator(options = {}) ⇒ Enumerator

Returns an enumerable object for this collection. This can be useful if you want to call an enumerable method that does not accept options (e.g. collect, first, etc).

users.enumerator(:path_prefix => '/admin').collect(&:name)

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :path_prefix (String) — default: '/'

    A path prefix that filters according to the path of the user.

  • :limit (Integer)

    The maximum number of users to yield.

  • :batch_size (Integer)

    The maximum number of users to retrieve with each service request.

Returns:

  • (Enumerator)


114
115
116
# File 'lib/aws/iam/user_collection.rb', line 114

def enumerator options = {}
  super(options)
end