Sha256: dffd681f6634a4bee731b99990cfef69b61cd09ca9fc843fc35d86252c7d7643

Contents?: true

Size: 993 Bytes

Versions: 1

Compression:

Stored size: 993 Bytes

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'rackspace-fog/aws/parsers/iam/login_profile'

        # Retrieves the login profile for a user
        # 
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_CreateLoginProfile.html
        # ==== Parameters
        # * user_name<~String> - Name of user to retrieve the login profile for
        # * password<~String> - The new password for this user
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'LoginProfile'<~Hash>
        #        * UserName<~String>
        #        * CreateDate
        #     * 'RequestId'<~String> - Id of the request
        #
        #
        def get_login_profile(user_name)
          request({
            'Action'    => 'GetLoginProfile',
            'UserName'  => user_name,
            :parser     => Fog::Parsers::AWS::IAM::LoginProfile.new
          })
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/iam/get_login_profile.rb