AWS CloudFormation
User Guide (API Version 2010-05-15)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.

CloudFront DistributionConfig Origin

Origin is a property of the DistributionConfig property that describes an Amazon CloudFront distribution origin.

Syntax

{
  "CustomOriginConfig" : Custom Origin,
  "DomainName" : String,
  "Id" : String,
  "OriginPath" : String,
  "S3OriginConfig" : S3 Origin
}

Properties

Note

For more information about the constraints and valid values of each property, see the elements table in the DistributionConfig Complex Type topic in the Amazon CloudFront API Reference.

CustomOriginConfig

Origin information to specify a custom origin.

Required: Conditional. You cannot use CustomOriginConfig and S3OriginConfig in the same distribution, but you must specify one or the other.

Type: CustomOrigin 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 Id must be unique within the distribution.

Required: Yes

Type: String

OriginPath

The path that CloudFront uses to request content from an S3 bucket or custom origin. The combination of the DomainName and OriginPath properties 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 S3OriginConfig and CustomOriginConfig in the same distribution, but you must specify one or the other.

Type: S3Origin type