Class AWS::IAM::LoginProfile
In: lib/aws/iam/login_profile.rb
Parent: Resource

A login profile is a user name and password that enables a user to log in to the {aws.amazon.com/console AWS Management Console}. Without a login profile, a user cannot access the console. (For information about accessing and using the AWS Management Console, see {docs.amazonwebservices.com/IAM/latest/UserGuide/Using_AWSManagementConsole.html Using the AWS Management Console}.)

@example Setting a password for a user‘s login profile

  user.login_profile.password = "TheNewPassword"

@example Deleting the login profile for a user

  user.login_profile.delete

Methods

Attributes

user  [R]  @attr_reader [User] The user to which this login profile
  belongs.

Public Class methods

Public Instance methods

Deletes the login profile for the specified user, which terminates the user‘s ability to access AWS services through the IAM login page.

@note Deleting a user‘s login profile does not prevent a user

  from accessing IAM through the command line interface or the
  API. To prevent all user access you must also either make
  the access key inactive or delete it. For more information
  about making keys inactive or deleting them, see
  {User#access_keys}.

@return [nil]

@return [Boolean] True if a login profile exists for the user.

Sets a new password for the login profile, creating the profile if no profile currently exists for the user.

@param [String] password The new password for the user.

Protected Instance methods

[Validate]