{
 "additionalProperties": false,
 "definitions": {
  "CookiesConfig": {
   "additionalProperties": false,
   "properties": {
    "CookieBehavior": {
     "pattern": "^(none|whitelist|all)$",
     "type": "string"
    },
    "Cookies": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "CookieBehavior"
   ],
   "type": "object"
  },
  "HeadersConfig": {
   "additionalProperties": false,
   "properties": {
    "HeaderBehavior": {
     "pattern": "^(none|whitelist|allViewer|allViewerAndWhitelistCloudFront)$",
     "type": "string"
    },
    "Headers": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "HeaderBehavior"
   ],
   "type": "object"
  },
  "OriginRequestPolicyConfig": {
   "additionalProperties": false,
   "properties": {
    "Comment": {
     "type": "string"
    },
    "CookiesConfig": {
     "$ref": "#/definitions/CookiesConfig"
    },
    "HeadersConfig": {
     "$ref": "#/definitions/HeadersConfig"
    },
    "Name": {
     "type": "string"
    },
    "QueryStringsConfig": {
     "$ref": "#/definitions/QueryStringsConfig"
    }
   },
   "required": [
    "Name",
    "HeadersConfig",
    "CookiesConfig",
    "QueryStringsConfig"
   ],
   "type": "object"
  },
  "QueryStringsConfig": {
   "additionalProperties": false,
   "properties": {
    "QueryStringBehavior": {
     "pattern": "^(none|whitelist|all)$",
     "type": "string"
    },
    "QueryStrings": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "QueryStringBehavior"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Id": {
   "type": "string"
  },
  "LastModifiedTime": {
   "type": "string"
  },
  "OriginRequestPolicyConfig": {
   "$ref": "#/definitions/OriginRequestPolicyConfig"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/LastModifiedTime"
 ],
 "required": [
  "OriginRequestPolicyConfig"
 ],
 "typeName": "AWS::CloudFront::OriginRequestPolicy"
}
