Class: AWSCDK::SES::CfnMailManagerArchive::ArchiveRetentionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerArchive::ArchiveRetentionProperty
- 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
-
#retention_period ⇒ String
readonly
The enum value sets the period for retaining emails in an archive.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(retention_period:) ⇒ ArchiveRetentionProperty
constructor
A new instance of ArchiveRetentionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(retention_period:) ⇒ ArchiveRetentionProperty
Returns a new instance of ArchiveRetentionProperty.
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_period ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |