CachePolicyParametersInCacheKeyAndForwardedToOrigin constructor

const CachePolicyParametersInCacheKeyAndForwardedToOrigin({
  1. required Input<CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig> cookiesConfig,
  2. Input<bool?>? enableAcceptEncodingBrotli,
  3. Input<bool?>? enableAcceptEncodingGzip,
  4. required Input<CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig> headersConfig,
  5. required Input<CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig> queryStringsConfig,
})

Creates a new CachePolicyParametersInCacheKeyAndForwardedToOrigin. cookiesConfig Whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. enableAcceptEncodingBrotli Flag determines whether the Accept-Encoding HTTP header is included in the cache key and in requests that CloudFront sends to the origin. enableAcceptEncodingGzip Whether the Accept-Encoding HTTP header is included in the cache key and in requests sent to the origin by CloudFront. headersConfig Whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. queryStringsConfig Whether any URL query strings in viewer requests are included in the cache key. It also automatically includes these query strings in requests that CloudFront sends to the origin. Please refer to the Query String Config for more information.

Implementation

const CachePolicyParametersInCacheKeyAndForwardedToOrigin({
  required this.cookiesConfig,
  this.enableAcceptEncodingBrotli,
  this.enableAcceptEncodingGzip,
  required this.headersConfig,
  required this.queryStringsConfig,
});