Creates a CloudFront origin request policy with specific configurations for cookies, headers, and query strings.

Terraform Template

resource "aws_cloudfront_origin_request_policy" "example" {
  comment = "example comment"

  cookies_config {
    cookie_behavior = "whitelist"

    cookies {
      items = ["example"]
    }
  }

  headers_config {
    header_behavior = "whitelist"

    headers {
      items = ["example"]
    }
  }
  name = "example-policy"

  query_strings_config {
    query_string_behavior = "whitelist"

    query_strings {
      items = ["example"]
    }
  }
}