Module Values_0.CreateRuleRequestSource

Creates a rule for the specified Amazon Connect instance. Use the Rules Function language to code conditions for the rule.

Sourcetype nonrec t = {
  1. instanceId : InstanceId.t;
    (*

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

    *)
  2. name : RuleName.t;
    (*

    A unique name for the rule.

    *)
  3. triggerEventSource : RuleTriggerEventSource.t;
    (*

    The event source to trigger the rule.

    *)
  4. function_ : RuleFunction.t;
    (*

    The conditions of the rule.

    *)
  5. actions : RuleActions.t;
    (*

    A list of actions to be run when the rule is triggered.

    *)
  6. publishStatus : RulePublishStatus.t;
    (*

    The publish status of the rule.

    *)
  7. clientToken : ClientToken.t option;
    (*

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientToken:??? -> instanceId:InstanceId.t -> name:RuleName.t -> triggerEventSource:RuleTriggerEventSource.t -> function_:RuleFunction.t -> actions:RuleActions.t -> publishStatus:RulePublishStatus.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of FieldValueId.t | `Structure of (string * [> `Boolean of Boolean.t | `Double of Double.t | `String of FieldStringValue.t | `Structure of 'a list ]) list ]) list ] list | `Map of ([> `String of ReferenceKey.t ] * [> `Structure of (string * [> `Enum of string | `String of ReferenceValue.t ]) list ]) list | `String of TaskNameExpression.t | `Structure of (string * [> `Enum of string | `List of [> `String of UserId.t | `Structure of (string * [> `Boolean of Boolean.t | `Double of Double.t | `String of FieldStringValue.t | `Structure of 'b list ]) list ] list | `Long of TargetSlaMinutes.t | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of SlaName.t ]) list ]) list ]) list ] list | `String of InstanceId.t | `Structure of (string * [> `Enum of string | `String of IntegrationAssociationId.t ]) 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