Class: AWSCDK::SES::CfnMailManagerRuleSet::ArchiveActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_mail_manager_rule_set.rb

Overview

The action to archive the email by delivering the email to an Amazon SES archive.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_archive:, action_failure_policy: nil) ⇒ ArchiveActionProperty

Returns a new instance of ArchiveActionProperty.

Parameters:

  • target_archive (String)

    The identifier of the archive to send the email to.

  • action_failure_policy (String, nil) (defaults to: nil)

    A policy that states what to do in the case of failure.



670
671
672
673
674
675
# File 'ses/cfn_mail_manager_rule_set.rb', line 670

def initialize(target_archive:, action_failure_policy: nil)
  @target_archive = target_archive
  Jsii::Type.check_type(@target_archive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArchive")
  @action_failure_policy = action_failure_policy
  Jsii::Type.check_type(@action_failure_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionFailurePolicy") unless @action_failure_policy.nil?
end

Instance Attribute Details

#action_failure_policyString? (readonly)

A policy that states what to do in the case of failure.

The action will fail if there are configuration errors. For example, the specified archive has been deleted.



688
689
690
# File 'ses/cfn_mail_manager_rule_set.rb', line 688

def action_failure_policy
  @action_failure_policy
end

#target_archiveString (readonly)

The identifier of the archive to send the email to.



681
682
683
# File 'ses/cfn_mail_manager_rule_set.rb', line 681

def target_archive
  @target_archive
end

Class Method Details

.jsii_propertiesObject



690
691
692
693
694
695
# File 'ses/cfn_mail_manager_rule_set.rb', line 690

def self.jsii_properties
  {
    :target_archive => "targetArchive",
    :action_failure_policy => "actionFailurePolicy",
  }
end

Instance Method Details

#to_jsiiObject



697
698
699
700
701
702
703
704
# File 'ses/cfn_mail_manager_rule_set.rb', line 697

def to_jsii
  result = {}
  result.merge!({
    "targetArchive" => @target_archive,
    "actionFailurePolicy" => @action_failure_policy,
  })
  result.compact
end