fix(CDN): multiple calls to determine bucket function

TODO:
- document getEndpoint API method
- document objectProperties.bucket option
- document new S3-specific canned file property (bucket)

#1332
#1016