class Fog::AWS::IAM::Users

Public Instance Methods

all() click to toggle source
# File lib/fog/aws/models/iam/users.rb, line 12
def all
  data = connection.list_users.body['Users']
  load(data) # data is an array of attribute hashes
end
get(identity) click to toggle source
# File lib/fog/aws/models/iam/users.rb, line 17
def get(identity)
  data = connection.get_user(identity).body['User']
  new(data) # data is an attribute hash
rescue Fog::AWS::IAM::NotFound
  nil
end