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 DistributionConfig Type

DistributionConfig is an embedded property of the AWS::CloudFront::Distribution type.

Syntax

{
   "Aliases" : [ String, ... ],
   "CacheBehaviors" : [ CacheBehavior, ... ],
   "Comment" : String,
   "DefaultCacheBehavior" : DefaultCacheBehavior,
   "DefaultRootObject" : String,
   "Enabled" : Boolean,
   "Logging" : Logging,
   "Origins" : [ Origin, ... ]
}     

Properties

Aliases

CNAMEs (alternate domain names), if any, for the distribution.

Required: No

Type: List of Strings

CacheBehaviors

A list of CacheBehavior types for the distribution.

Required: No

Type: List of CacheBehavior

Update requires: no interruption

Comment

Any comments you want to include about the distribution.

Required: No

Type: String

Update requires: no interruption

DefaultCacheBehavior

The default cache behavior that is triggered if you do not specify a CacheBehavior element, or if files don't match any of the values of PathPattern in CacheBehavior elements.

Required: Yes

Type: DefaultCacheBehavior type

Update requires: no interruption

DefaultRootObject

The object (ex. "index.html") that you want CloudFront to request from your origin when the root URL for your distribution (ex. "http://example.com/") is requested.

Note

Specifying a default root object avoids exposing the contents of your distribution.

Required: No

Type: String

Enabled

Controls whether the distribution is enabled to accept end user requests for content.

Required: Yes

Type: Boolean

Logging

Controls whether access logs are written for the distribution. To turn on access logs, include this property.

Required: No

Type: Logging type

Origins

A list of origins for this CloudFront distribution. For each origin, you can specify whether it is an S3 or custom origin.

Required: Yes

Type: list of Origins.

Template Examples

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

See Also