Cloudfront Distribution
Resource Icon
Resource Overview
Amazon CloudFront accelerates the distribution of static and dynamic web content such as .html, .css, .php, images, and media files. When a user requests content, CloudFront serves it through a network of edge locations around the world, providing low latency and high performance.
Associated Resources
Parent Resources
Connected Resources
Resource Setting Values
enabled
: Whether the distribution is enabled to accept end user requests for content -true
,false
origin
: A unique identifier for the origincache_policy
: Cache Policy namemin_ttl
: Minimum amount of time (in seconds) that an object should remain in the CloudFront cachemax_ttl
: Maximum amount of time (in seconds) that an object should remain in the CloudFront cachedefault_ttl
: Default amount of time (in seconds) that an object should remain in the CloudFront cachecookie_behavior
: Determines whether cookies from end-user requests are included in the cache key and automatically included in requests CloudFront sends to the origin -whitelist
,all
,none
,allExcept
cookies_items
: List of cookies to be passed to the origin serverheader_behavior
: Whether to cache objects based on the values of specified headers -whitelist
,none
headers_items
: List of headers to specify when caching an objectquery_string_behavior
: Whether to cache different versions of content based on query string parameter values -whitelist
,all
,none
,allExcept
query_strings_items
: List of query string parameters
cache_behavior
path_pattern
: Pattern that specifies which requests you want this cache behavior to apply tocompress
: Whether you want CloudFront to automatically compress content for web requests -true
,false
viewer_protocol_policy
: Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern -allow-all
,https-only
,redirect-to-https
allowed_methods
: Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin -GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,DELETE
cached_methods
: Controls whether CloudFront caches the response to requests using the specified HTTP methods -GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,DELETE
origin_name
: The origin name that you want CloudFront to route requests to when a request matches the path patternlinked_cache_policy_name
: The ID of the Cache Policy that is attached to the behavior
restriction
type
: The method that you want to use to restrict distribution of your content by country -whitelist
,blacklist
,none
locations
: The ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content or not distribute your content
viewer_certificate
default_certificate_enabled
: If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution -true
,false
price_class
: The price class for Cloudfront distribution -PriceClass_100
,PriceClass_200
,PriceClass_All
http_version
: The maximum HTTP version to support on the distribution -http1.1
,http2
is_ipv6_enabled
: Whether the IPv6 is enabled for the distribution -true
,false
logging
logging_enabled
: Enable logging -true
,false
linked_waf_web_acl_name
: The name of WAF WEB ACL to use when enabling security protections