AwsCloudFrontServiceModuleRouteSchema
Index
Properties
optionalallowedMethods
The HTTP methods CloudFront forwards to the origin. For a bucket of static files, GET and HEAD.
See ICloudFrontAllowedMethods for the sets CloudFront accepts.
optionalcachedMethods
The subset of allowedMethods whose responses CloudFront caches. For a bucket of static files,
GET and HEAD. See ICloudFrontCachedMethods for the sets CloudFront accepts.
optionalcachePolicy
Which policy decides the cache key and the TTLs: a managed one by name, e.g.
{ kind: 'managed', name: 'Managed-CachingOptimized' }, or one of cachePolicies. For a static
content bucket, Managed-CachingOptimized. See ICloudFrontManagedCachePolicy for the managed
ones.
optionalcompress
Whether CloudFront compresses the response for viewers that accept it.
optionalfunctionAssociations
Edge functions to run for this route: CloudFront Functions from functions, by functionName.
originId
The originId of the origin serving these paths.
optionaloriginRequestPolicy
Which policy decides what reaches the origin, independently of the cache key. null forwards
only what the cache policy selected. See ICloudFrontManagedOriginRequestPolicy for the
managed ones.
optionalpathPattern
The paths this route claims, e.g. /api/*. Exactly one route leaves it out: the default route,
which claims everything the others do not. The others are matched in the order given, and the
first match wins.
optionalresponseHeadersPolicy
Which policy decides the headers CloudFront adds on the way out, such as CORS or HSTS. See ICloudFrontManagedResponseHeadersPolicy for the managed ones.
optionalviewerProtocolPolicy
What CloudFront does with a plain HTTP request. See ICloudFrontViewerProtocolPolicy.
One route: the paths it claims, the origin serving them, and how CloudFront handles them. Unset settings get defaults that suit the origin's source.
Modules/Service/AwsCloudFrontService