Values.CreateFunctionResultSourceCreates 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.
type nonrec t = {functionSummary : FunctionSummary.t option;Contains configuration information and metadata about a CloudFront function.
*)location : String_.t option;The URL of the CloudFront function. Use the URL to manage the function with the CloudFront API.
*)eTag : String_.t option;The version identifier for the current version of the CloudFront function.
*)}type nonrec error = [ | `FunctionAlreadyExists of FunctionAlreadyExists.t| `FunctionSizeLimitExceeded of FunctionSizeLimitExceeded.t| `InvalidArgument of InvalidArgument.t| `TooManyFunctions of TooManyFunctions.t| `UnsupportedOperation of UnsupportedOperation.t| `Unknown_operation_error of string * string option ]val 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 ]val 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 ]val of_header_and_body :
((string, String_.t) Awso.Import.List.Assoc.t * FunctionSummary.t) ->
tval 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 ]