aws-cdk-lib.aws_cloudfront.CfnOriginRequestPolicyProps

interface CfnOriginRequestPolicyProps

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnOriginRequestPolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnOriginRequestPolicyProps
Javasoftware.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicyProps
Pythonaws_cdk.aws_cloudfront.CfnOriginRequestPolicyProps
TypeScript aws-cdk-lib » aws_cloudfront » CfnOriginRequestPolicyProps

Properties for defining a CfnOriginRequestPolicy.

Example

// 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

NameTypeDescription
originRequestPolicyConfigIResolvable | OriginRequestPolicyConfigPropertyThe origin request policy configuration.

originRequestPolicyConfig

Type: IResolvable | OriginRequestPolicyConfigProperty

The origin request policy configuration.