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.

Constructors

Origin({@_s.required String domainName, @_s.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. [...]
read-only, inherited
id String
A unique identifier for the origin. 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.
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
toXml(String elemName) XmlElement

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited