// Changes the password of the IAM user who is calling this operation. The AWS
// account root user password is not affected by this operation. To change the
// password for a different user, see UpdateLoginProfile. For more information
// about modifying passwords, see Managing Passwords
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) in
// the IAM User Guide.
Changes the password of the IAM user who is calling this operation. The AWS
account root user password is not affected by this operation. To change the
password for a different user, see UpdateLoginProfile. For more information
about modifying passwords, see Managing Passwords
in
the IAM User Guide.
// Changes the password of the IAM user who is calling this operation . The AWS // account root user password is not affected by this operation . To change the // password for a different user see UpdateLoginProfile . For more information // about modifying passwords see Managing Passwords // ( https : // docs . aws . amazon . com / IAM / latest / UserGuide / Using_ManagingLogins . html ) in // the IAM User Guide .
func (c *Client) ChangePassword(ctx context.Context, params *ChangePasswordInput, optFns ...func(*Options)) (*ChangePasswordOutput, error) {
	if params == nil {
		params = &ChangePasswordInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ChangePassword", params, optFns, addOperationChangePasswordMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ChangePasswordOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ChangePassword ( ctx context . Context , params * ChangePasswordInput , optFns ... func ( * Options ) ) ( * ChangePasswordOutput , error ) { if params == nil { params = & ChangePasswordInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationChangePasswordMiddlewares ) if err != nil { return nil , err } out := result . ( * ChangePasswordOutput ) out . ResultMetadata = metadata return out , nil }
Changes the password of the IAM user who is calling this operation.
Changes the password of the IAM user who is calling this operation .