Module Values.GetOriginRequestPolicyResultSource

Gets an origin request policy, including the following metadata: The policy's identifier. The date and time when the policy was last modified. To get an origin request policy, you must provide the policy's identifier. If the origin request policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.

Sourcetype nonrec t = {
  1. originRequestPolicy : OriginRequestPolicy.t option;
    (*

    The origin request policy.

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

    The current version of the origin request policy.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDenied of AccessDenied.t
  2. | `NoSuchOriginRequestPolicy of NoSuchOriginRequestPolicy.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?originRequestPolicy:??? -> ?eTag:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDenied of AccessDenied.t | `NoSuchOriginRequestPolicy of NoSuchOriginRequestPolicy.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDenied of AccessDenied.t | `NoSuchOriginRequestPolicy of NoSuchOriginRequestPolicy.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 * OriginRequestPolicy.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 * [> `Enum of string | `Structure of (string * [> `Integer of Integer.t | `List of [> `String of String_.t ] list ]) 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