Skip to main content

CloudFrontOriginRequestPolicySchema

An origin request policy this distribution declares, referenced by a behavior under { kind: 'custom', name }.

It decides what reaches the origin beyond what the cache policy already sends, without adding it to the cache key, e.g. forward the viewer's Authorization header without every distinct token becoming its own cache entry. AWS: origin request policies.

@group

Resources/CloudFrontDistribution

Index

Properties

optionalcookies

cookies?: ICloudFrontValueSelection = { kind: 'none' }

Which cookies reach the origin. See ICloudFrontValueSelection.

optionalheaders

headers?: ICloudFrontValueSelection = { kind: 'none' }

Which request headers reach the origin. See ICloudFrontValueSelection.

name

name: string

How a behavior names this policy. It is also the policy's name in AWS, which must be unique across the account.

optionalqueryStrings

queryStrings?: ICloudFrontValueSelection = { kind: 'none' }

Which query strings reach the origin. See ICloudFrontValueSelection.

Page Options