Data Source: aws_cloudfront_response_headers_policy

Use this data source to retrieve information about a CloudFront cache policy.

Example Usage

Basic Usage

data "aws_cloudfront_response_headers_policy" "example" {
  name = "example-policy"
}

AWS-Managed Policies

AWS managed response header policy names are prefixed with Managed-:

data "aws_cloudfront_response_headers_policy" "example" {
  name = "Managed-SimpleCORS"
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Cors Config

Custom Header

Remove Header

Security Headers Config

Content Security Policy

Content Type Options

Frame Options

Referrer Policy

Strict Transport Security

XSS Protection

Server Timing Headers Config