Class: AWSCDK::SES::CfnMailManagerArchive::ArchiveRetentionProperty

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

Overview

The retention policy for an email archive that specifies how long emails are kept before being automatically deleted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(retention_period:) ⇒ ArchiveRetentionProperty

Returns a new instance of ArchiveRetentionProperty.

Parameters:

  • retention_period (String)

    The enum value sets the period for retaining emails in an archive.



602
603
604
605
# File 'ses/cfn_mail_manager_archive.rb', line 602

def initialize(retention_period:)
  @retention_period = retention_period
  Jsii::Type.check_type(@retention_period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "retentionPeriod")
end

Instance Attribute Details

#retention_periodString (readonly)

The enum value sets the period for retaining emails in an archive.



611
612
613
# File 'ses/cfn_mail_manager_archive.rb', line 611

def retention_period
  @retention_period
end

Class Method Details

.jsii_propertiesObject



613
614
615
616
617
# File 'ses/cfn_mail_manager_archive.rb', line 613

def self.jsii_properties
  {
    :retention_period => "retentionPeriod",
  }
end

Instance Method Details

#to_jsiiObject



619
620
621
622
623
624
625
# File 'ses/cfn_mail_manager_archive.rb', line 619

def to_jsii
  result = {}
  result.merge!({
    "retentionPeriod" => @retention_period,
  })
  result.compact
end