RuleAction

sealed class RuleAction

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

Inheritors

Types

Link copied to clipboard
data class AddHeader(val value: AddHeaderAction) : RuleAction

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

Link copied to clipboard
data class Archive(val value: ArchiveAction) : RuleAction

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

Link copied to clipboard

This action delivers an email to a WorkMail mailbox.

Link copied to clipboard

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

Link copied to clipboard
data class Drop(val value: DropAction) : RuleAction

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

Link copied to clipboard
data class PublishToSns(val value: SnsAction) : RuleAction

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

Link copied to clipboard
data class Relay(val value: RelayAction) : RuleAction

This action relays the email to another SMTP server.

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
data class Send(val value: SendAction) : RuleAction

This action sends the email to the internet.

Link copied to clipboard
data class WriteToS3(val value: S3Action) : RuleAction

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

Functions

Link copied to clipboard

Casts this RuleAction as a AddHeader and retrieves its aws.sdk.kotlin.services.mailmanager.model.AddHeaderAction value. Throws an exception if the RuleAction is not a AddHeader.

Link copied to clipboard
Link copied to clipboard

Casts this RuleAction as a Archive and retrieves its aws.sdk.kotlin.services.mailmanager.model.ArchiveAction value. Throws an exception if the RuleAction is not a Archive.

Link copied to clipboard

Casts this RuleAction as a Archive and retrieves its aws.sdk.kotlin.services.mailmanager.model.ArchiveAction value. Returns null if the RuleAction is not a Archive.

Link copied to clipboard
Link copied to clipboard

Casts this RuleAction as a Drop and retrieves its aws.sdk.kotlin.services.mailmanager.model.DropAction value. Throws an exception if the RuleAction is not a Drop.

Link copied to clipboard

Casts this RuleAction as a Drop and retrieves its aws.sdk.kotlin.services.mailmanager.model.DropAction value. Returns null if the RuleAction is not a Drop.

Link copied to clipboard

Casts this RuleAction as a PublishToSns and retrieves its aws.sdk.kotlin.services.mailmanager.model.SnsAction value. Throws an exception if the RuleAction is not a PublishToSns.

Link copied to clipboard

Casts this RuleAction as a PublishToSns and retrieves its aws.sdk.kotlin.services.mailmanager.model.SnsAction value. Returns null if the RuleAction is not a PublishToSns.

Link copied to clipboard

Casts this RuleAction as a Relay and retrieves its aws.sdk.kotlin.services.mailmanager.model.RelayAction value. Throws an exception if the RuleAction is not a Relay.

Link copied to clipboard

Casts this RuleAction as a Relay and retrieves its aws.sdk.kotlin.services.mailmanager.model.RelayAction value. Returns null if the RuleAction is not a Relay.

Link copied to clipboard
Link copied to clipboard

Casts this RuleAction as a Send and retrieves its aws.sdk.kotlin.services.mailmanager.model.SendAction value. Throws an exception if the RuleAction is not a Send.

Link copied to clipboard

Casts this RuleAction as a Send and retrieves its aws.sdk.kotlin.services.mailmanager.model.SendAction value. Returns null if the RuleAction is not a Send.

Link copied to clipboard

Casts this RuleAction as a WriteToS3 and retrieves its aws.sdk.kotlin.services.mailmanager.model.S3Action value. Throws an exception if the RuleAction is not a WriteToS3.

Link copied to clipboard

Casts this RuleAction as a WriteToS3 and retrieves its aws.sdk.kotlin.services.mailmanager.model.S3Action value. Returns null if the RuleAction is not a WriteToS3.