Module Values.PublishFunctionResultSource

Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE. This automatically updates all cache behaviors that are using this function to use the newly published copy in the LIVE stage. When a function is published to the LIVE stage, you can attach the function to a distribution's cache behavior, using the function's Amazon Resource Name (ARN). To publish a function, you must provide the function's name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

Sourcetype nonrec t = {
  1. functionSummary : FunctionSummary.t option;
    (*

    Contains configuration information and metadata about a CloudFront function.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidArgument of InvalidArgument.t
  2. | `InvalidIfMatchVersion of InvalidIfMatchVersion.t
  3. | `NoSuchFunctionExists of NoSuchFunctionExists.t
  4. | `PreconditionFailed of PreconditionFailed.t
  5. | `UnsupportedOperation of UnsupportedOperation.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?functionSummary:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidArgument of InvalidArgument.t | `InvalidIfMatchVersion of InvalidIfMatchVersion.t | `NoSuchFunctionExists of NoSuchFunctionExists.t | `PreconditionFailed of PreconditionFailed.t | `Unknown_operation_error of string * string option | `UnsupportedOperation of UnsupportedOperation.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidArgument of InvalidArgument.t | `InvalidIfMatchVersion of InvalidIfMatchVersion.t | `NoSuchFunctionExists of NoSuchFunctionExists.t | `PreconditionFailed of PreconditionFailed.t | `Unknown_operation_error of string * string option | `UnsupportedOperation of UnsupportedOperation.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ('a * FunctionSummary.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `String of FunctionName.t | `Structure of (string * [> `Enum of string | `String of String_.t | `Structure of (string * [> `Integer of Integer.t | `List of [> `Structure of (string * [> `String of KeyValueStoreARN.t ]) list ] list ]) list | `Timestamp of Timestamp.t ]) list ]) 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