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

Describes the Amazon CloudFront cache behavior when the requested URL matches a pattern. This is an embedded property of the DistributionConfig type.

Syntax

{
   "TargetOriginId" : String,
   "ForwardedValues" : ForwardedValues,
   "TrustedSigners" : [ String, ... ],
   "ViewerProtocolPolicy" : String,
   "MinTTL" : String
   "PathPattern" : String
}     

Properties

TargetOriginId

The ID value of the origin to which you want CloudFront to route requests when a request matches the PathPattern.

Required: Yes

Type: String

ForwardedValues

Specifies how CloudFront handles query strings.

Required: Yes

Type: ForwardedValues type

TrustedSigners

A list of AWS accounts that you want to allow to create signed URLs for private content.

Required: No

Type: list of Strings

ViewerProtocolPolicy

Specifies the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the PathPattern.

Required: Yes

Type: String

MinTTL

The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin to see whether the object has been updated.

Required: No

Type: String

PathPattern

The pattern for which you want this cache behavior to apply (ex. "images/*.jpg").

When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the stack specification for the distribution.

Required: Yes

Type: String

Template Examples

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