AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudFront::ResponseHeadersPolicy

CloudFront ResponseHeadersPolicy

A response headers policy. A response headers policy contains information about a set of HTTP response headers. After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the config...

Properties

1 configurable property. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
ResponseHeadersPolicyConfig
ResponseHeadersPolicyConfig
Required

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-
LastModifiedTimestring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudFront::ResponseHeadersPolicy

Resources:
  MyResource:
    Type: AWS::CloudFront::ResponseHeadersPolicy
    Properties:
      ResponseHeadersPolicyConfig: "value"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

cloudfront:CreateResponseHeadersPolicy

delete

cloudfront:DeleteResponseHeadersPolicycloudfront:GetResponseHeadersPolicy

list

cloudfront:ListResponseHeadersPolicies

read

cloudfront:GetResponseHeadersPolicy

update

cloudfront:UpdateResponseHeadersPolicycloudfront:GetResponseHeadersPolicy

Get the CloudFront Cheat Sheet

Everything you need to know about CloudFront on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudFront
Properties3
Required1
TaggingNot supported
Primary IDId

Supported Operations

CreateDeleteListReadUpdate

External Links