Module Values.LambdaEventSourceSource

Contains information about an event source for an Lambda function. The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.

Sourcetype nonrec t = {
  1. topic : TopicString.t;
    (*

    The topic to which to subscribe to receive event messages.

    *)
  2. type_ : LambdaEventSourceType.t;
    (*

    The type of event source. Choose from the following options: PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic. IOT_CORE – Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

    *)
}
Sourceval context_ : string
Sourceval make : topic:TopicString.t -> type_:LambdaEventSourceType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of TopicString.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