title: AWS::CloudFront::OriginRequestPolicy resource in CloudFormation
body: <p>I am trying to CloudFormation for my Lambda@Edge resource, which I would like to utilize CloudFront's new <a href="https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-announces-cache-and-origin-request-policies" rel="nofollow noreferrer">origin request policy</a>.</p>
  <p>However, when I tried to deploy the following resource with aws cloudformation:</p>
  <pre><code>AWSTemplateFormatVersion: '2010-09-09'
  Transform: AWS::Serverless-2016-10-31
  Description: &quot;Test&quot;
  Resources:
    CloudFrontOriginRequestPolicy:
      Type: AWS::CloudFront::OriginRequestPolicy
      Properties:
        OriginRequestPolicyConfig:
          CookiesConfig:
            CookieBehavior: none
          HeadersConfig:
            HeaderBehavior: none
          QueryStringsConfig:
            QueryStringBehavior: none
          Name: Managed-CORS-Policy
  </code></pre>
  <p>It only gave this error:
  <code>Invalid request provided: AWS::CloudFront::OriginRequestPolicy</code></p>
  <p>I have no clue where it really went wrong; I believe I already provided all required fields in the resource following:
  <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html</a></p>
  <p>Anyone has experience how this resource should be setup? Thanks!</p>