Module Values.UpdateFunctionRequestSource

Updates a CloudFront function. You can update a function's code or the comment that describes the function. You cannot update a function's name. To update a function, you provide the function's name and version (ETag value) along with the updated function code. To get the name and version, you can use ListFunctions and DescribeFunction.

Sourcetype nonrec t = {
  1. name : FunctionName.t;
    (*

    The name of the function that you are updating.

    *)
  2. ifMatch : String_.t;
    (*

    The current version (ETag value) of the function that you are updating, which you can get using DescribeFunction.

    *)
  3. functionConfig : FunctionConfig.t;
    (*

    Configuration information about the function.

    *)
  4. functionCode : FunctionBlob.t;
    (*

    The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.

    *)
}
Sourceval context_ : string
Sourceval make : name:FunctionName.t -> ifMatch:String_.t -> functionConfig:FunctionConfig.t -> functionCode:FunctionBlob.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of FunctionBlob.t | `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 ]) 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