Module Values.CreateFunctionResultSource

Creates a CloudFront function. To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function. When you create a function, it's in the DEVELOPMENT stage. In this stage, you can test the function with TestFunction, and update it with UpdateFunction. When you're ready to use your function with a CloudFront distribution, use PublishFunction to copy the function from the DEVELOPMENT stage to LIVE. When it's live, you can attach the function to a distribution's cache behavior, using the function's ARN.

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

    Contains configuration information and metadata about a CloudFront function.

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

    The URL of the CloudFront function. Use the URL to manage the function with the CloudFront API.

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

    The version identifier for the current version of the CloudFront function.

    *)
}
Sourcetype nonrec error = [
  1. | `FunctionAlreadyExists of FunctionAlreadyExists.t
  2. | `FunctionSizeLimitExceeded of FunctionSizeLimitExceeded.t
  3. | `InvalidArgument of InvalidArgument.t
  4. | `TooManyFunctions of TooManyFunctions.t
  5. | `UnsupportedOperation of UnsupportedOperation.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?functionSummary:??? -> ?location:??? -> ?eTag:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `FunctionAlreadyExists of FunctionAlreadyExists.t | `FunctionSizeLimitExceeded of FunctionSizeLimitExceeded.t | `InvalidArgument of InvalidArgument.t | `TooManyFunctions of TooManyFunctions.t | `Unknown_operation_error of string * string option | `UnsupportedOperation of UnsupportedOperation.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `FunctionAlreadyExists of FunctionAlreadyExists.t | `FunctionSizeLimitExceeded of FunctionSizeLimitExceeded.t | `InvalidArgument of InvalidArgument.t | `TooManyFunctions of TooManyFunctions.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 : ((string, String_.t) Awso.Import.List.Assoc.t * FunctionSummary.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t | `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