Creates a CloudFront response headers policy with both custom headers and server timing headers configurations.

Terraform Template

resource "aws_cloudfront_response_headers_policy" "example" {

  custom_headers_config {

    items {
      header = "X-Permitted-Cross-Domain-Policies"
      override = true
      value = "none"
    }
  }
  name = "example-headers-policy"

  server_timing_headers_config {
    enabled = true
    sampling_rate = 50
  }
}