CloudFrontBehaviorSchema
Index
Properties
optionalallowedMethods
The HTTP methods CloudFront forwards to the origin. See ICloudFrontAllowedMethods.
optionalcachedMethods
The subset of allowedMethods whose responses CloudFront caches. See
ICloudFrontCachedMethods.
cachePolicy
Which policy decides the cache key and the TTLs. See ICloudFrontPolicyReference, and ICloudFrontManagedCachePolicy for the managed ones.
optionalcompress
Whether CloudFront compresses the response for viewers that accept it.
optionalfunctionAssociations
Edge functions to run for this behavior. See CloudFrontFunctionAssociationSchema.
optionaloriginRequestPolicy
Which policy decides what reaches the origin, independently of the cache key.
null forwards only what the cache policy already selected.
See ICloudFrontManagedOriginRequestPolicy for the managed ones.
optionalpathPattern
The paths this behavior claims, e.g. /api/*. Absent on the default behavior, which claims
everything no other behavior did.
optionalresponseHeadersPolicy
Which policy decides the headers CloudFront adds on the way out - CORS, HSTS, and the app's own content security policy. See ICloudFrontManagedResponseHeadersPolicy for the managed ones.
targetOriginId
The originId or originGroupId serving these paths.
optionalviewerProtocolPolicy
What CloudFront does with a plain HTTP request. See ICloudFrontViewerProtocolPolicy.
One rule binding a set of paths to an origin, and deciding everything about how those paths are served.
Resources/CloudFrontDistribution