AWS::CloudFront::CachePolicyA cache policy. When it's attached to a cache behavior, the cache policy determines the following: + The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer. + The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache. The headers, cookies, and query strings that are...
1 configurable property. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
CachePolicyConfig | CachePolicyConfig | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
LastModifiedTime | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudFront::CachePolicy
Resources:
MyResource:
Type: AWS::CloudFront::CachePolicy
Properties:
CachePolicyConfig: "value"Permissions CloudFormation needs in your IAM role to manage this resource.
cloudfront:CreateCachePolicycloudfront:DeleteCachePolicycloudfront:GetCachePolicycloudfront:ListCachePoliciescloudfront:GetCachePolicycloudfront:UpdateCachePolicycloudfront:GetCachePolicyEverything you need to know about CloudFront on one page. HD quality, print-friendly.
Download Free InfographicId