AWS CloudFormation
User Guide (API Version 2010-05-15)
« 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.Did this page help you?  Yes | No |  Tell us about it...

CloudFront Origin Type

Describes an Amazon CloudFront distribution origin. This is an embedded property of the DistributionConfig type.

Syntax

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

Properties

DomainName

The DNS name of the Amazon 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

S3OriginConfig

Origin information to specify an Amazon S3 origin.

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

Type: S3Origin type

CustomOriginConfig

Origin information to specify a custom origin.

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

Type: CustomOrigin type

Template Examples

To view AWS::CloudFront::Distribution snippets, see Amazon CloudFront Template Snippets.