Amazon S3 origins: The DNS name of the Amazon S3 bucket from which
you want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com. If you set up your bucket to be
configured as a website endpoint, enter the Amazon S3 static website hosting
endpoint for the bucket.
Constraints for Amazon S3 origins:
If you configured Amazon S3 Transfer Acceleration for your bucket, don't
- The bucket name must be between 3 and 63 characters long (inclusive).
- The bucket name must contain only lowercase characters, numbers, periods, underscores, and dashes.
- The bucket name must not contain adjacent periods.
Constraints for custom origins:
DomainNamemust be a valid DNS name that contains only a-z, A-Z, 0-9, dot (.), hyphen (-), or underscore (_) characters.
- The name cannot exceed 128 characters.
final String domainName;