// ------------------------------------------------------------
// Non-S3 origin
// ------------------------------------------------------------
// Create a new distribution with a non-S3 (custom) origin
CustomOrigin customOrigin = new CustomOrigin(
"www.jamesmurty.com", // DNS name
CustomOrigin.OriginProtocolPolicy.HTTP_ONLY // Access content over HTTP only
// To distribute content over HTTPS use:
// CustomOrigin.OriginProtocolPolicy.MATCH_VIEWER
);