Module Values.FunctionAssociationSource

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

Sourcetype nonrec t = {
  1. functionARN : FunctionARN.t;
    (*

    The Amazon Resource Name (ARN) of the function.

    *)
  2. eventType : EventType.t;
    (*

    The event type of the function, either viewer-request or viewer-response. You cannot use origin-facing event types (origin-request and origin-response) with a CloudFront function.

    *)
}
Sourceval context_ : string
Sourceval make : functionARN:FunctionARN.t -> eventType:EventType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of FunctionARN.t ]) 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