Class: Aws::MailManager::Types::RuleAction
- Inherits:
-
Struct
- Object
- Struct
- Aws::MailManager::Types::RuleAction
- Defined in:
- gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb
Overview
RuleAction is a union - when making an API calls you must set exactly one of the members.
RuleAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RuleAction corresponding to the set member.
The action for a rule to take. Only one of the contained actions can be set.
Direct Known Subclasses
AddHeader, Archive, Bounce, DeliverToMailbox, DeliverToQBusiness, Drop, InvokeLambda, PublishToSns, Relay, ReplaceRecipient, Send, Unknown, WriteToS3
Defined Under Namespace
Classes: AddHeader, Archive, Bounce, DeliverToMailbox, DeliverToQBusiness, Drop, InvokeLambda, PublishToSns, Relay, ReplaceRecipient, Send, Unknown, WriteToS3
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#add_header ⇒ Types::AddHeaderAction
This action adds a header.
-
#archive ⇒ Types::ArchiveAction
This action archives the email.
-
#bounce ⇒ Types::BounceAction
This action sends a bounce response for the email.
-
#deliver_to_mailbox ⇒ Types::DeliverToMailboxAction
This action delivers an email to a WorkMail mailbox.
-
#deliver_to_q_business ⇒ Types::DeliverToQBusinessAction
This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
-
#drop ⇒ Types::DropAction
This action terminates the evaluation of rules in the rule set.
-
#invoke_lambda ⇒ Types::InvokeLambdaAction
This action invokes an Amazon Web Services Lambda function to process the email.
-
#publish_to_sns ⇒ Types::SnsAction
This action publishes the email content to an Amazon SNS topic.
-
#relay ⇒ Types::RelayAction
This action relays the email to another SMTP server.
-
#replace_recipient ⇒ Types::ReplaceRecipientAction
The action replaces certain or all recipients with a different set of recipients.
-
#send ⇒ Types::SendAction
This action sends the email to the internet.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
-
#write_to_s3 ⇒ Types::S3Action
This action writes the MIME content of the email to an S3 bucket.
Instance Attribute Details
#add_header ⇒ Types::AddHeaderAction
This action adds a header. This can be used to add arbitrary email headers.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#archive ⇒ Types::ArchiveAction
This action archives the email. This can be used to deliver an email to an archive.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#bounce ⇒ Types::BounceAction
This action sends a bounce response for the email.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#deliver_to_mailbox ⇒ Types::DeliverToMailboxAction
This action delivers an email to a WorkMail mailbox.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#deliver_to_q_business ⇒ Types::DeliverToQBusinessAction
This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#drop ⇒ Types::DropAction
This action terminates the evaluation of rules in the rule set.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#invoke_lambda ⇒ Types::InvokeLambdaAction
This action invokes an Amazon Web Services Lambda function to process the email.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#publish_to_sns ⇒ Types::SnsAction
This action publishes the email content to an Amazon SNS topic.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#relay ⇒ Types::RelayAction
This action relays the email to another SMTP server.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#replace_recipient ⇒ Types::ReplaceRecipientAction
The action replaces certain or all recipients with a different set of recipients.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#send ⇒ Types::SendAction
This action sends the email to the internet.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
3735 3736 3737 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 def unknown @unknown end |
#write_to_s3 ⇒ Types::S3Action
This action writes the MIME content of the email to an S3 bucket.
3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 |
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 3735 class RuleAction < Struct.new( :drop, :relay, :archive, :write_to_s3, :send, :add_header, :replace_recipient, :deliver_to_mailbox, :deliver_to_q_business, :publish_to_sns, :bounce, :invoke_lambda, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Drop < RuleAction; end class Relay < RuleAction; end class Archive < RuleAction; end class WriteToS3 < RuleAction; end class Send < RuleAction; end class AddHeader < RuleAction; end class ReplaceRecipient < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class PublishToSns < RuleAction; end class Bounce < RuleAction; end class InvokeLambda < RuleAction; end class Unknown < RuleAction; end end |