Origin class

A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files. You must create at least one origin.

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


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


customHeaders CustomHeaders
A complex type that contains names and values for the custom headers that you want.
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.
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. [...]
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
A unique identifier for the origin. The value of Id must be unique within the distribution. [...]
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. [...]
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.


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


operator ==(Object other) bool
The equality operator. [...]