CfnOriginRequestPolicyProps Struct
Properties for defining a CfnOriginRequestPolicy.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnOriginRequestPolicyProps: cloudfront.CfnOriginRequestPolicyProps = {
originRequestPolicyConfig: {
cookiesConfig: {
cookieBehavior: 'cookieBehavior',
// the properties below are optional
cookies: ['cookies'],
},
headersConfig: {
headerBehavior: 'headerBehavior',
// the properties below are optional
headers: ['headers'],
},
name: 'name',
queryStringsConfig: {
queryStringBehavior: 'queryStringBehavior',
// the properties below are optional
queryStrings: ['queryStrings'],
},
// the properties below are optional
comment: 'comment',
},
};
Properties
originRequestPolicyConfigIResolvable | CfnOriginRequestPolicy.OriginRequestPolicyConfigPropertyorigin_request_policy_configtyping.Union[IResolvable, OriginRequestPolicyConfigProperty]originRequestPolicyConfigIResolvableOriginRequestPolicyConfigIResolvableOriginRequestPolicyConfiginterface{}required#The origin request policy configuration.