1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/iam/update_user.rb

38 lines
1.3 KiB
Ruby
Raw Normal View History

module Fog
module AWS
class IAM
class Real
require 'fog/aws/parsers/iam/update_user'
# Update a user
#
# ==== Parameters
# * user_name<~String> - Required. Name of the User to update. If you're changing the name of the User, this is the original User name.
# * options<~Hash>:
# * new_path<~String> - New path for the User. Include this parameter only if you're changing the User's path.
# * new_user_name<~String> - New name for the User. Include this parameter only if you're changing the User's name.
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'RequestId'<~String> - Id of the request
# * 'User'<~Hash> - Changed user info
# * 'Arn'<~String> -
# * 'Path'<~String> -
# * 'UserId'<~String> -
# * 'UserName'<~String> -
#
# ==== See Also
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateUser.html
#
def update_user(user_name, options = {})
request({
'Action' => 'UpdateUser',
'UserName' => user_name,
:parser => Fog::Parsers::AWS::IAM::UpdateUser.new
}.merge!(options))
end
end
end
end
end