class AWS::IAM::LoginProfile

user.login_profile.delete
@example Deleting the login profile for a user
user.login_profile.password = “TheNewPassword”
@example Setting a password for a user’s login profile
Using the AWS Management Console}.)
{docs.amazonwebservices.com/IAM/latest/UserGuide/Using_AWSManagementConsole.html<br>Management Console, see
console. (For information about accessing and using the AWS
Console}. Without a login profile, a user cannot access the
to log in to the {aws.amazon.com/console AWS Management
A login profile is a user name and password that enables a user

def delete

Other tags:
    Note: - Deleting a user's login profile does not prevent a user
def delete
  client.delete_login_profile(resource_options)
end

def exists?

Returns:
  • (Boolean) - True if a login profile exists for the user.
def exists?
  client.get_login_profile(resource_options)
rescue Errors::NoSuchEntity => e
  false
else
  true
end

def initialize(user, opts = {})

Other tags:
    Private: -
def initialize(user, opts = {})
  @user = user
  super
end

def password=(password)

Parameters:
  • password (String) -- The new password for the user.
def password=(password)
  options = resource_options(:password => password)
  client.update_login_profile(options)
  password
rescue Errors::NoSuchEntity => e
  client.create_login_profile(options)
  password
end

def resource_identifiers

def resource_identifiers
  [[:user_name, user.name]]
end