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,
  "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 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 S3OriginConfig and CustomOriginConfig in the same distribution, but you must specify one or the other.

Type: S3Origin type

Template Examples

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