changePassword
Changes the password of the IAM user who is calling this operation. This operation can be performed using the CLI, the Amazon Web Services API, or the My Security Credentials page in the Amazon Web Services Management Console. The Amazon Web Services account root user password is not affected by this operation.
Use UpdateLoginProfile to use the CLI, the Amazon Web Services API, or the Users page in the IAM console to change the password for any IAM user. For more information about modifying passwords, see Managing passwords in the IAM User Guide.
Samples
fun main() {
//sampleStart
// The following command changes the password for the current IAM user.
iamClient.changePassword {
newPassword = "]35d/{pB9Fo9wJ"
oldPassword = "3s0K_;xh4~8XXI"
}
//sampleEnd
}