A Response Headers Policy configuration.
import { ResponseHeadersPolicy } from 'aws-cdk-lib/aws-cloudfront';Or use the module namespace:
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.ResponseHeadersPolicyConfiguration passed to the constructor as ResponseHeadersPolicyProps.
commentOptionalstringA comment to describe the response headers policy.
Default: - no comment
corsBehaviorOptionalResponseHeadersCorsBehaviorA configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
Default: - no cors behavior
customHeadersBehaviorOptionalResponseCustomHeadersBehaviorA configuration for a set of custom HTTP response headers.
Default: - no custom headers behavior
removeHeadersOptionalstring[]A list of HTTP response headers that CloudFront removes from HTTP responses that it sends to viewers.
Default: - no headers are removed
responseHeadersPolicyNameOptionalstringA unique name to identify the response headers policy.
Default: - generated from the `id`
securityHeadersBehaviorOptionalResponseSecurityHeadersBehaviorA configuration for a set of security-related HTTP response headers.
Default: - no security headers behavior
serverTimingSamplingRateOptionalnumberThe percentage of responses that you want CloudFront to add the Server-Timing header to.
Default: - no Server-Timing header is added to HTTP responses
Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.
Download Free Infographicaws-cloudfront