Class: AWSCDK::SES::CfnMailManagerArchiveProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerArchiveProps
- Defined in:
- ses/cfn_mail_manager_archive_props.rb
Overview
Properties for defining a CfnMailManagerArchive.
Instance Attribute Summary collapse
-
#archive_name ⇒ String?
readonly
A unique name for the new archive.
-
#kms_key_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
-
#retention ⇒ AWSCDK::IResolvable, ...
readonly
The period for retaining emails in the archive before automatic deletion.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(archive_name: nil, kms_key_arn: nil, retention: nil, tags: nil) ⇒ CfnMailManagerArchiveProps
constructor
A new instance of CfnMailManagerArchiveProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(archive_name: nil, kms_key_arn: nil, retention: nil, tags: nil) ⇒ CfnMailManagerArchiveProps
Returns a new instance of CfnMailManagerArchiveProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 13 def initialize(archive_name: nil, kms_key_arn: nil, retention: nil, tags: nil) @archive_name = archive_name Jsii::Type.check_type(@archive_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "archiveName") unless @archive_name.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @retention = retention.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerArchive::ArchiveRetentionProperty.new(**retention.transform_keys(&:to_sym)) : retention Jsii::Type.check_type(@retention, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJBcmNoaXZlLkFyY2hpdmVSZXRlbnRpb25Qcm9wZXJ0eSJ9XX19")), "retention") unless @retention.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#archive_name ⇒ String? (readonly)
A unique name for the new archive.
28 29 30 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 28 def archive_name @archive_name end |
#kms_key_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
33 34 35 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 33 def kms_key_arn @kms_key_arn end |
#retention ⇒ AWSCDK::IResolvable, ... (readonly)
The period for retaining emails in the archive before automatic deletion.
38 39 40 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 38 def retention @retention end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags used to organize, track, or control access for the resource.
For example, { "tags": "key2":"value2" }.
45 46 47 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 47 def self.jsii_properties { :archive_name => "archiveName", :kms_key_arn => "kmsKeyArn", :retention => "retention", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'ses/cfn_mail_manager_archive_props.rb', line 56 def to_jsii result = {} result.merge!({ "archiveName" => @archive_name, "kmsKeyArn" => @kms_key_arn, "retention" => @retention, "tags" => @tags, }) result.compact end |