Values.CreateCachePolicyResultSourceCreates a cache policy. After you create a cache policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the cache policy determines the following: The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer. The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache. If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the Cache-Control: no-cache, no-store, or private directives are present in the origin headers. The headers, cookies, and query strings that are included in the cache key are also included in requests that CloudFront sends to the origin. CloudFront sends a request when it can't find an object in its cache that matches the request's cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy. For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.
type nonrec t = {cachePolicy : CachePolicy.t option;A cache policy.
*)location : String_.t option;The fully qualified URI of the cache policy just created.
*)eTag : String_.t option;The current version of the cache policy.
*)}type nonrec error = [ | `AccessDenied of AccessDenied.t| `CachePolicyAlreadyExists of CachePolicyAlreadyExists.t| `InconsistentQuantities of InconsistentQuantities.t| `InvalidArgument of InvalidArgument.t| `TooManyCachePolicies of TooManyCachePolicies.t| `TooManyCookiesInCachePolicy of TooManyCookiesInCachePolicy.t| `TooManyHeadersInCachePolicy of TooManyHeadersInCachePolicy.t| `TooManyQueryStringsInCachePolicy of TooManyQueryStringsInCachePolicy.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDenied of AccessDenied.t
| `CachePolicyAlreadyExists of CachePolicyAlreadyExists.t
| `InconsistentQuantities of InconsistentQuantities.t
| `InvalidArgument of InvalidArgument.t
| `TooManyCachePolicies of TooManyCachePolicies.t
| `TooManyCookiesInCachePolicy of TooManyCookiesInCachePolicy.t
| `TooManyHeadersInCachePolicy of TooManyHeadersInCachePolicy.t
| `TooManyQueryStringsInCachePolicy of TooManyQueryStringsInCachePolicy.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDenied of AccessDenied.t
| `CachePolicyAlreadyExists of CachePolicyAlreadyExists.t
| `InconsistentQuantities of InconsistentQuantities.t
| `InvalidArgument of InvalidArgument.t
| `TooManyCachePolicies of TooManyCachePolicies.t
| `TooManyCookiesInCachePolicy of TooManyCookiesInCachePolicy.t
| `TooManyHeadersInCachePolicy of TooManyHeadersInCachePolicy.t
| `TooManyQueryStringsInCachePolicy of TooManyQueryStringsInCachePolicy.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `Long of Long.t
| `String of String_.t
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Structure of
(string
* [> `Enum of string
| `Structure of
(string
* [> `Integer of Integer.t
| `List of [> `String of String_.t ] list ])
list ])
list ])
list ])
list
| `Timestamp of Timestamp.t ])
list ])
list ]