Data Source: aws_cloudfront_cache_policy

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

Example Usage

Basic Usage

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

AWS-Managed Policies

AWS managed cache policy names are prefixed with Managed-:

data "aws_cloudfront_cache_policy" "example" {
  name = "Managed-CachingOptimized"
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

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

Parameters In Cache Key And Forwarded To Origin

Cookies Config

Headers Config

Query String Config

Items