# CfnCachePolicyProps

Properties for defining a `CfnCachePolicy`.

Extends: CfnCachePolicyProps
Used as props by: CfnCachePolicy

- Source: Generated code

## 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 cfnCachePolicyProps: cloudfront.CfnCachePolicyProps = {
  cachePolicyConfig: {
    defaultTtl: 123,
    maxTtl: 123,
    minTtl: 123,
    name: 'name',
    parametersInCacheKeyAndForwardedToOrigin: {
      cookiesConfig: {
        cookieBehavior: 'cookieBehavior',

        // the properties below are optional
        cookies: ['cookies'],
      },
      enableAcceptEncodingGzip: false,
      headersConfig: {
        headerBehavior: 'headerBehavior',

        // the properties below are optional
        headers: ['headers'],
      },
      queryStringsConfig: {
        queryStringBehavior: 'queryStringBehavior',

        // the properties below are optional
        queryStrings: ['queryStrings'],
      },

      // the properties below are optional
      enableAcceptEncodingBrotli: false,
    },

    // the properties below are optional
    comment: 'comment',
  },
};
```

## Properties

- `cachePolicyConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCachePolicy.CachePolicyConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnCachePolicy.CachePolicyConfigProperty.html) (required) — The cache policy configuration.
