Module Values.CreateFunctionRequestSource

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. name : FunctionName.t;
    (*

    A name to identify the function.

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

    Configuration information about the function, including an optional comment and the function's runtime.

    *)
  3. 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.

    *)
  4. tags : Tags.t option;
}
Sourceval context_ : string
Sourceval make : ?tags:??? -> name:FunctionName.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 | `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 ]
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