Class: Aws::MailManager::Types::RuleAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb

Overview

Note:

RuleAction is a union - when making an API calls you must set exactly one of the members.

Note:

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.

Defined Under Namespace

Classes: AddHeader, Archive, DeliverToMailbox, Drop, Relay, ReplaceRecipient, Send, Unknown, WriteToS3

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#add_headerTypes::AddHeaderAction

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



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end

#archiveTypes::ArchiveAction

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



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 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_mailboxTypes::DeliverToMailboxAction

This action delivers an email to a WorkMail mailbox.



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end

#dropTypes::DropAction

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

Returns:

  • (Types::DropAction)


2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end

#relayTypes::RelayAction

This action relays the email to another SMTP server.

Returns:



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 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_recipientTypes::ReplaceRecipientAction

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



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end

#sendTypes::SendAction

This action sends the email to the internet.

Returns:



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2656
2657
2658
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

def unknown
  @unknown
end

#write_to_s3Types::S3Action

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

Returns:



2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/types.rb', line 2656

class RuleAction < Struct.new(
  :add_header,
  :archive,
  :deliver_to_mailbox,
  :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 Drop < RuleAction; end
  class Relay < RuleAction; end
  class ReplaceRecipient < RuleAction; end
  class Send < RuleAction; end
  class WriteToS3 < RuleAction; end
  class Unknown < RuleAction; end
end