Adding same logic from patch...
requested to merge issue/cloudfront_cache_path_invalidate-3444498:3444498-caller-reference-is into 3.0.x
Adding same logic from patch cloudfront_purger!1.diff to our invalidate function.
Closes #3444498
Adding same logic from patch cloudfront_purger!1.diff to our invalidate function.
Closes #3444498