AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudFront::OriginRequestPolicy

CloudFront OriginRequestPolicy

An origin request policy. When it's attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following: + The request body and the URL path (without the domain name) from the viewer request. + The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id. + All HTTP h...

Properties

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

Filter:
PropertyTypeFlags
OriginRequestPolicyConfig
OriginRequestPolicyConfig
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::OriginRequestPolicy

Resources:
  MyResource:
    Type: AWS::CloudFront::OriginRequestPolicy
    Properties:
      OriginRequestPolicyConfig: "value"

Required IAM Permissions

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

create

cloudfront:CreateOriginRequestPolicy

delete

cloudfront:DeleteOriginRequestPolicycloudfront:GetOriginRequestPolicy

list

cloudfront:ListOriginRequestPolicies

read

cloudfront:GetOriginRequestPolicy

update

cloudfront:UpdateOriginRequestPolicycloudfront:GetOriginRequestPolicy

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