domainName property
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
specify the
s3-accelerateendpoint forDomainName. - 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.
www.example.com.
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.
Implementation
final String domainName;