CloudFront Distribution Origin
Origin is a property of the DistributionConfig property
that describes an Amazon CloudFront distribution origin.
Syntax
JSON
{ "CustomOriginConfig" :CustomOriginConfig, "DomainName" :String, "Id" :String, "OriginCustomHeaders" : [OriginCustomHeader, ...] "OriginPath" :String, "S3OriginConfig" :S3 Origin}
YAML
CustomOriginConfig:CustomOriginConfigDomainName:StringId:StringOriginCustomHeaders: -OriginCustomHeaderOriginPath:StringS3OriginConfig:S3 Origin
Properties
Note
For more information about the constraints and valid values of each property, see the Origin data type in the Amazon CloudFront API Reference.
CustomOriginConfig-
Origin information to specify a custom origin.
Required: Conditional. You cannot use
CustomOriginConfigandS3OriginConfigin the sameOrigin, but you must specify one or the other.Type: CustomOriginConfig type
DomainName-
The DNS name of the Amazon Simple Storage Service (S3) bucket or the HTTP server from which you want CloudFront to get objects for this origin.
Required: Yes
Type: String
Id-
An identifier for the origin. The value of
Idmust be unique within the distribution.Required: Yes
Type: String
OriginCustomHeaders-
Custom headers that CloudFront includes when it forwards a request to your origin.
Required: No
Type: List of OriginCustomHeader type
OriginPath-
The path that CloudFront uses to request content from an S3 bucket or custom origin. The combination of the
DomainNameandOriginPathproperties must resolve to a valid path. The value must start with a slash mark (/) and cannot end with a slash mark.Required: No
Type: String
S3OriginConfig-
Origin information to specify an S3 origin.
Required: Conditional. You cannot use
S3OriginConfigandCustomOriginConfigin the sameOrigin, but you must specify one or the other.Type: S3Origin type
