Cook the elbow macaroni according to package instructions until al dente. Drain and rinse under cold water to cool. Set aside.
In a large mixing bowl, combine the mayonnaise, apple cider vinegar, sugar, Dijon mustard, salt, and black pepper. Whisk until smooth and well combined.
Add the cooled macaroni to the bowl with the dressing. Stir to coat the pasta evenly.
Fold in the diced ham, pineapple, red bell pepper, peas, and green onions. Mix gently until all ingredients are well incorporated.
Cover the salad with plastic wrap and refrigerate for at least 1 hour to allow the flavors to meld. For best results, chill for 2-3 hours.
Before serving, give the salad a gentle stir and adjust seasoning if necessary.