Module Values_0.TopicRuleSource

Describes a rule.

Sourcetype nonrec t = {
  1. ruleName : RuleName.t option;
    (*

    The name of the rule.

    *)
  2. sql : SQL.t option;
    (*

    The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.

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

    The description of the rule.

    *)
  4. createdAt : CreatedAtDate.t option;
    (*

    The date and time the rule was created.

    *)
  5. actions : ActionList.t option;
    (*

    The actions associated with the rule.

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

    Specifies whether the rule is disabled.

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

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

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

    The action to perform when an error occurs.

    *)
}
Sourceval make : ?ruleName:??? -> ?sql:??? -> ?description:??? -> ?createdAt:??? -> ?actions:??? -> ?ruleDisabled:??? -> ?awsIotSqlVersion:??? -> ?errorAction:??? -> 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 RuleName.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 | `Timestamp of CreatedAtDate.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