Module Values.RuleActionSource

The action for a rule to take. Only one of the contained actions can be set.

Sourcetype nonrec t = {
  1. drop : DropAction.t option;
    (*

    This action terminates the evaluation of rules in the rule set.

    *)
  2. relay : RelayAction.t option;
    (*

    This action relays the email to another SMTP server.

    *)
  3. archive : ArchiveAction.t option;
    (*

    This action archives the email. This can be used to deliver an email to an archive.

    *)
  4. writeToS3 : S3Action.t option;
    (*

    This action writes the MIME content of the email to an S3 bucket.

    *)
  5. send : SendAction.t option;
    (*

    This action sends the email to the internet.

    *)
  6. addHeader : AddHeaderAction.t option;
    (*

    This action adds a header. This can be used to add arbitrary email headers.

    *)
  7. replaceRecipient : ReplaceRecipientAction.t option;
    (*

    The action replaces certain or all recipients with a different set of recipients.

    *)
  8. deliverToMailbox : DeliverToMailboxAction.t option;
    (*

    This action delivers an email to a WorkMail mailbox.

    *)
  9. deliverToQBusiness : DeliverToQBusinessAction.t option;
    (*

    This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.

    *)
  10. publishToSns : SnsAction.t option;
    (*

    This action publishes the email content to an Amazon SNS topic.

    *)
  11. bounce : BounceAction.t option;
    (*

    This action sends a bounce response for the email.

    *)
  12. invokeLambda : InvokeLambdaAction.t option;
    (*

    This action invokes an Amazon Web Services Lambda function to process the email.

    *)
}
Sourceval make : ?drop:??? -> ?relay:??? -> ?archive:??? -> ?writeToS3:??? -> ?send:??? -> ?addHeader:??? -> ?replaceRecipient:??? -> ?deliverToMailbox:??? -> ?deliverToQBusiness:??? -> ?publishToSns:??? -> ?bounce:??? -> ?invokeLambda:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of LambdaRetryTimeMinutes.t | `List of [> `String of EmailAddress.t ] list | `String of IdOrArn.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