Sha256: 180bd50b57de0b5edfc04beb7a83600beb1747b284d174f93346fe2e990fdd4f

Contents?: true

Size: 980 Bytes

Versions: 26

Compression:

Stored size: 980 Bytes

Contents

module Fog
  module AWS
    class IAM
      class Real
        require '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

26 entries across 26 versions & 5 rubygems

Version Path
ns-fog-1.22.6 lib/fog/aws/requests/iam/get_login_profile.rb
fog-1.23.0 lib/fog/aws/requests/iam/get_login_profile.rb
ns-fog-1.22.4 lib/fog/aws/requests/iam/get_login_profile.rb
ns-fog-1.22.3 lib/fog/aws/requests/iam/get_login_profile.rb
ns-fog-1.22.2 lib/fog/aws/requests/iam/get_login_profile.rb
fog-1.22.1 lib/fog/aws/requests/iam/get_login_profile.rb