Module Values_0.TopicRulePayloadSource

Describes a rule.

Sourcetype nonrec t = {
  1. sql : SQL.t;
    (*

    The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.

    *)
  2. description : Description.t option;
    (*

    The description of the rule.

    *)
  3. actions : ActionList.t;
    (*

    The actions associated with the rule.

    *)
  4. ruleDisabled : IsDisabled.t option;
    (*

    Specifies whether the rule is disabled.

    *)
  5. awsIotSqlVersion : AwsIotSqlVersion.t option;
    (*

    The version of the SQL rules engine to use when evaluating the rule.

    *)
  6. errorAction : Action.t option;
    (*

    The action to take when an error occurs.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?ruleDisabled:??? -> ?awsIotSqlVersion:??? -> ?errorAction:??? -> sql:SQL.t -> actions:ActionList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of IsDisabled.t | `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of UseBase64.t | `Enum of string | `Integer of Qos.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of AssetPropertyQuality.t | `Structure of (string * [> `String of AssetPropertyStringValue.t ]) list ]) list ] list | `String of AssetPropertyEntryId.t ]) list ] list | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of TableName.t | `Structure of (string * [> `Boolean of BatchAcrossTopics.t | `Integer of MaxBatchOpenMs.t | `List of [> `Structure of (string * [> `String of UserPropertyKey.t ]) list ] list | `String of TableName.t | `Structure of (string * [> `String of SigningRegion.t ]) list ]) list ]) list ]) list ] list | `String of SQL.t | `Structure of (string * [> `Structure of (string * [> `Boolean of UseBase64.t | `Enum of string | `Integer of Qos.t | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of AssetPropertyQuality.t | `Structure of (string * [> `String of AssetPropertyStringValue.t ]) list ]) list ] list | `String of AssetPropertyEntryId.t ]) list ] list | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of TableName.t | `Structure of (string * [> `Boolean of BatchAcrossTopics.t | `Integer of MaxBatchOpenMs.t | `List of [> `Structure of (string * [> `String of UserPropertyKey.t ]) list ] list | `String of TableName.t | `Structure of (string * [> `String of SigningRegion.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