RuleAction
The action for a rule to take. Only one of the contained actions can be set.
Inheritors
Types
This action adds a header. This can be used to add arbitrary email headers.
This action archives the email. This can be used to deliver an email to an archive.
This action delivers an email to a WorkMail mailbox.
This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
This action terminates the evaluation of rules in the rule set.
This action publishes the email content to an Amazon SNS topic.
This action relays the email to another SMTP server.
The action replaces certain or all recipients with a different set of recipients.
This action sends the email to the internet.
This action writes the MIME content of the email to an S3 bucket.
Functions
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.
Casts this RuleAction as a AddHeader and retrieves its aws.sdk.kotlin.services.mailmanager.model.AddHeaderAction value. Returns null if the RuleAction is not a AddHeader.
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.
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.
Casts this RuleAction as a DeliverToMailbox and retrieves its aws.sdk.kotlin.services.mailmanager.model.DeliverToMailboxAction value. Throws an exception if the RuleAction is not a DeliverToMailbox.
Casts this RuleAction as a DeliverToMailbox and retrieves its aws.sdk.kotlin.services.mailmanager.model.DeliverToMailboxAction value. Returns null if the RuleAction is not a DeliverToMailbox.
Casts this RuleAction as a DeliverToQBusiness and retrieves its aws.sdk.kotlin.services.mailmanager.model.DeliverToQBusinessAction value. Throws an exception if the RuleAction is not a DeliverToQBusiness.
Casts this RuleAction as a DeliverToQBusiness and retrieves its aws.sdk.kotlin.services.mailmanager.model.DeliverToQBusinessAction value. Returns null if the RuleAction is not a DeliverToQBusiness.
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.
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.
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.
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.
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.
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.
Casts this RuleAction as a ReplaceRecipient and retrieves its aws.sdk.kotlin.services.mailmanager.model.ReplaceRecipientAction value. Throws an exception if the RuleAction is not a ReplaceRecipient.
Casts this RuleAction as a ReplaceRecipient and retrieves its aws.sdk.kotlin.services.mailmanager.model.ReplaceRecipientAction value. Returns null if the RuleAction is not a ReplaceRecipient.
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.
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.
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.
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.