createLoginProfile

abstract suspend fun createLoginProfile(input: CreateLoginProfileRequest = CreateLoginProfileRequest { }): CreateLoginProfileResponse

Creates a password for the specified IAM user. A password allows an IAM user to access Amazon Web Services services through the Amazon Web Services Management Console.

You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to create a password for any IAM user. Use ChangePassword to update your own existing password in the My Security Credentials page in the Amazon Web Services Management Console.

For more information about managing passwords, see Managing passwords in the IAM User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following command changes IAM user Bob s password and sets the flag that required Bob to change
// the password the next time he signs in.
val resp = iamClient.createLoginProfile {
    userName = "Bob"
    password = "h]6EszR}vJ*m"
    passwordResetRequired = true
} 
   //sampleEnd
}