Origin class

A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server), Amazon MediaStore, or other server from which CloudFront gets your files. This can also be an origin group, if you've created an origin group. You must specify at least one origin or origin group.

For the current limit on the number of origins or origin groups that you can specify for a distribution, see Amazon CloudFront Limits in the AWS General Reference.

Constructors

Origin({required String domainName, required String id, CustomHeaders? customHeaders, CustomOriginConfig? customOriginConfig, String? originPath, S3OriginConfig? s3OriginConfig})
Origin.fromXml(XmlElement elem)
factory

Properties

customHeaders CustomHeaders?
A complex type that contains names and values for the custom headers that you want.
final
customOriginConfig CustomOriginConfig?
A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
final
domainName String
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.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for the origin or origin group. The value of Id must be unique within the distribution.
final
originPath String?
An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName, for example, example.com/production. Do not include a / at the end of the directory name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s3OriginConfig S3OriginConfig?
A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXml(String elemName, {List<XmlAttribute>? attributes}) → XmlElement

Operators

operator ==(Object other) bool
The equality operator.
inherited