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({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. 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 ofDomainName
, 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