Class S3Origin


  • public class S3Origin
    extends Origin
    • Constructor Detail

      • S3Origin

        public S3Origin​(String dnsName,
                        String originAccessIdentity)
        An S3 bucket origin.
        Parameters:
        dnsName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)
        originAccessIdentity - Identifier of the origin access identity that can authorize access to S3 objects via a private distribution. If provided the distribution will be private, if null the distribution will be be public.
      • S3Origin

        public S3Origin​(String dnsName)
        An S3 bucket origin.
        Parameters:
        dnsName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)
    • Method Detail

      • getOriginAccessIdentity

        public String getOriginAccessIdentity()
      • getOriginAsBucketName

        public String getOriginAsBucketName()
        Returns:
        the origin bucket's name, without the suffix ".s3.amazonaws.com"