Values.CreateResponseHeadersPolicyResultSourceCreates a response headers policy. A response headers policy contains information about a set of HTTP headers. To create a response headers policy, you provide some metadata about the policy and a set of configurations that specify the 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 configuration of the response headers policy. For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
type nonrec t = {responseHeadersPolicy : ResponseHeadersPolicy.t option;Contains a response headers policy.
*)location : String_.t option;The URL of the response headers policy.
*)eTag : String_.t option;The version identifier for the current version of the response headers policy.
*)}type nonrec error = [ | `AccessDenied of AccessDenied.t| `InconsistentQuantities of InconsistentQuantities.t| `InvalidArgument of InvalidArgument.t| `ResponseHeadersPolicyAlreadyExists of ResponseHeadersPolicyAlreadyExists.t| `TooLongCSPInResponseHeadersPolicy of TooLongCSPInResponseHeadersPolicy.t| `TooManyCustomHeadersInResponseHeadersPolicy of
TooManyCustomHeadersInResponseHeadersPolicy.t| `TooManyRemoveHeadersInResponseHeadersPolicy of
TooManyRemoveHeadersInResponseHeadersPolicy.t| `TooManyResponseHeadersPolicies of TooManyResponseHeadersPolicies.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDenied of AccessDenied.t
| `InconsistentQuantities of InconsistentQuantities.t
| `InvalidArgument of InvalidArgument.t
| `ResponseHeadersPolicyAlreadyExists of ResponseHeadersPolicyAlreadyExists.t
| `TooLongCSPInResponseHeadersPolicy of TooLongCSPInResponseHeadersPolicy.t
| `TooManyCustomHeadersInResponseHeadersPolicy of
TooManyCustomHeadersInResponseHeadersPolicy.t
| `TooManyRemoveHeadersInResponseHeadersPolicy of
TooManyRemoveHeadersInResponseHeadersPolicy.t
| `TooManyResponseHeadersPolicies of TooManyResponseHeadersPolicies.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDenied of AccessDenied.t
| `InconsistentQuantities of InconsistentQuantities.t
| `InvalidArgument of InvalidArgument.t
| `ResponseHeadersPolicyAlreadyExists of ResponseHeadersPolicyAlreadyExists.t
| `TooLongCSPInResponseHeadersPolicy of TooLongCSPInResponseHeadersPolicy.t
| `TooManyCustomHeadersInResponseHeadersPolicy of
TooManyCustomHeadersInResponseHeadersPolicy.t
| `TooManyRemoveHeadersInResponseHeadersPolicy of
TooManyRemoveHeadersInResponseHeadersPolicy.t
| `TooManyResponseHeadersPolicies of TooManyResponseHeadersPolicies.t
| `Unknown_operation_error of string * string option ]val of_header_and_body :
((string, String_.t) Awso.Import.List.Assoc.t * ResponseHeadersPolicy.t) ->
tval to_value :
t ->
[> `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Double of SamplingRate.t
| `Integer of Integer.t
| `List of
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `String of String_.t ])
list ]
list
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `Integer of Integer.t
| `List of
[> `Enum of string | `String of String_.t ]
list
| `String of String_.t ])
list ])
list ])
list
| `Timestamp of Timestamp.t ])
list ])
list ]