Sha256: 680706170297e9201f47a935ef87c8ad810cc72fbd22fc96ccd9a9d78f9fde51

Contents?: true

Size: 1.33 KB

Versions: 98

Compression:

Stored size: 1.33 KB

Contents

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

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.29.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.28.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.27.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.26.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.25.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.24.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.23.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.22.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.21.1 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.21.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.20.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.19.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.18.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.17.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.16.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.15.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.14.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.13.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.12.0 lib/fog/aws/requests/iam/update_user.rb