Values.CreateFunctionRequestSourceCreates 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 = {name : FunctionName.t;A name to identify the function.
*)functionConfig : FunctionConfig.t;Configuration information about the function, including an optional comment and the function's runtime.
*)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.
*)}val make :
?tags:??? ->
name:FunctionName.t ->
functionConfig:FunctionConfig.t ->
functionCode:FunctionBlob.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Blob of FunctionBlob.t
| `String of FunctionName.t
| `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of (string * [> `String of TagKey.t ]) list ]
list
| `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 ]