Module Values.CreateResponseHeadersPolicyResultSource

Creates 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.

Sourcetype nonrec t = {
  1. responseHeadersPolicy : ResponseHeadersPolicy.t option;
    (*

    Contains a response headers policy.

    *)
  2. location : String_.t option;
    (*

    The URL of the response headers policy.

    *)
  3. eTag : String_.t option;
    (*

    The version identifier for the current version of the response headers policy.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDenied of AccessDenied.t
  2. | `InconsistentQuantities of InconsistentQuantities.t
  3. | `InvalidArgument of InvalidArgument.t
  4. | `ResponseHeadersPolicyAlreadyExists of ResponseHeadersPolicyAlreadyExists.t
  5. | `TooLongCSPInResponseHeadersPolicy of TooLongCSPInResponseHeadersPolicy.t
  6. | `TooManyCustomHeadersInResponseHeadersPolicy of TooManyCustomHeadersInResponseHeadersPolicy.t
  7. | `TooManyRemoveHeadersInResponseHeadersPolicy of TooManyRemoveHeadersInResponseHeadersPolicy.t
  8. | `TooManyResponseHeadersPolicies of TooManyResponseHeadersPolicies.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?responseHeadersPolicy:??? -> ?location:??? -> ?eTag:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ((string, String_.t) Awso.Import.List.Assoc.t * ResponseHeadersPolicy.t) -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t