Sha256: 96ce01d7f27e29385edd4ecd0076614491e97d80d13964007463562b1341717f

Contents?: true

Size: 1 KB

Versions: 26

Compression:

Stored size: 1 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/login_profile'

        # Creates a login profile for a user
        #
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_CreateLoginProfile.html
        # ==== Parameters
        # * user_name<~String> - Name of user to create a 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 create_login_profile(user_name, password)
          request({
            'Action'    => 'CreateLoginProfile',
            'UserName'  => user_name,
            'Password'  => password,
            :parser     => Fog::Parsers::AWS::IAM::LoginProfile.new
          })
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.3.0 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.2.2 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.2.0 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.1.2 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.1.1 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.1.0 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.0.8 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.0.7 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.0.6 lib/fog/aws/requests/iam/create_login_profile.rb
fog-aws-0.0.5 lib/fog/aws/requests/iam/create_login_profile.rb
fog-1.26.0 lib/fog/aws/requests/iam/create_login_profile.rb
fog-1.25.0 lib/fog/aws/requests/iam/create_login_profile.rb
nsidc-fog-1.24.1 lib/fog/aws/requests/iam/create_login_profile.rb
fog-1.24.0 lib/fog/aws/requests/iam/create_login_profile.rb
ns-fog-1.22.11 lib/fog/aws/requests/iam/create_login_profile.rb
ns-fog-1.22.10 lib/fog/aws/requests/iam/create_login_profile.rb
ns-fog-1.22.9 lib/fog/aws/requests/iam/create_login_profile.rb
ns-fog-1.22.8 lib/fog/aws/requests/iam/create_login_profile.rb
ns-fog-1.22.7 lib/fog/aws/requests/iam/create_login_profile.rb