Class: Aws::MailManager::Types::RuleAction
- Inherits:
-
Struct
- Object
- Struct
- Aws::MailManager::Types::RuleAction
- Includes:
- Structure, Structure::Union
- Defined in:
- 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, DeliverToMailbox, DeliverToQBusiness, Drop, Relay, ReplaceRecipient, Send, Unknown, WriteToS3
Defined Under Namespace
Classes: AddHeader, Archive, DeliverToMailbox, DeliverToQBusiness, Drop, 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.
-
#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.
-
#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.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < 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.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#deliver_to_mailbox ⇒ Types::DeliverToMailboxAction
This action delivers an email to a WorkMail mailbox.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < 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.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#drop ⇒ Types::DropAction
This action terminates the evaluation of rules in the rule set.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#relay ⇒ Types::RelayAction
This action relays the email to another SMTP server.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#replace_recipient ⇒ Types::ReplaceRecipientAction
The action replaces certain or all recipients with a different set of recipients.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#send ⇒ Types::SendAction
This action sends the email to the internet.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
2806 2807 2808 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 def unknown @unknown end |
#write_to_s3 ⇒ Types::S3Action
This action writes the MIME content of the email to an S3 bucket.
2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 |
# File 'lib/aws-sdk-mailmanager/types.rb', line 2806 class RuleAction < Struct.new( :add_header, :archive, :deliver_to_mailbox, :deliver_to_q_business, :drop, :relay, :replace_recipient, :send, :write_to_s3, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class AddHeader < RuleAction; end class Archive < RuleAction; end class DeliverToMailbox < RuleAction; end class DeliverToQBusiness < RuleAction; end class Drop < RuleAction; end class Relay < RuleAction; end class ReplaceRecipient < RuleAction; end class Send < RuleAction; end class WriteToS3 < RuleAction; end class Unknown < RuleAction; end end |