Exemplo n.º 1
0
func (u *User) DeleteUser(svc *iam.IAM) error {
	params := &iam.DeleteUserInput{
		UserName: aws.String(u.UserName), // Required
	}
	_, err := svc.DeleteUser(params)

	if err != nil {
		return err
	}

	return nil
}