modify asEc2Xxx methods from public to package-private.