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.11.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.10.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.9.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.8.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.7.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.7 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.6 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.5 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.4 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.3 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.6.2 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.5.2 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.5.1 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.5.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.4.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.3.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.2.0 lib/fog/aws/requests/iam/update_user.rb
fog-aws-3.1.0 lib/fog/aws/requests/iam/update_user.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/iam/update_user.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/requests/iam/update_user.rb