1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/iam/get_user.rb
2011-02-09 16:31:57 -08:00

36 lines
895 B
Ruby

module Fog
module AWS
class IAM
class Real
require 'fog/aws/parsers/iam/get_user'
# Get User
#
# ==== Parameters
# * options<~Hash>:
# * 'UserName'<~String>: Name of the User. Defaults to current user
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'User'<~Hash> - User
# * Arn<~String> -
# * UserId<~String> -
# * UserName<~String> -
# * Path<~String> -
#
# ==== See Also
# http://docs.amazonwebservices.com/IAM/latest/APIReference/API_Getuser.html
#
def get_user(options = {})
request({
'Action' => 'GetUser',
:parser => Fog::Parsers::AWS::IAM::GetUser.new
}.merge!(options))
end
end
end
end
end