Class: AWSCDK::SES::BounceActionConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::BounceActionConfig
- Defined in:
- ses/bounce_action_config.rb
Overview
BoundAction configuration.
Instance Attribute Summary collapse
-
#message ⇒ String
readonly
Human-readable text to include in the bounce message.
-
#sender ⇒ String
readonly
The email address of the sender of the bounced email.
-
#smtp_reply_code ⇒ String
readonly
The SMTP reply code, as defined by RFC 5321.
-
#status_code ⇒ String?
readonly
The SMTP enhanced status code, as defined by RFC 3463.
-
#topic_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message:, sender:, smtp_reply_code:, status_code: nil, topic_arn: nil) ⇒ BounceActionConfig
constructor
A new instance of BounceActionConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(message:, sender:, smtp_reply_code:, status_code: nil, topic_arn: nil) ⇒ BounceActionConfig
Returns a new instance of BounceActionConfig.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'ses/bounce_action_config.rb', line 12 def initialize(message:, sender:, smtp_reply_code:, status_code: nil, topic_arn: nil) @message = Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message") @sender = sender Jsii::Type.check_type(@sender, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sender") @smtp_reply_code = smtp_reply_code Jsii::Type.check_type(@smtp_reply_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "smtpReplyCode") @status_code = status_code Jsii::Type.check_type(@status_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statusCode") unless @status_code.nil? @topic_arn = topic_arn Jsii::Type.check_type(@topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicArn") unless @topic_arn.nil? end |
Instance Attribute Details
#message ⇒ String (readonly)
Human-readable text to include in the bounce message.
28 29 30 |
# File 'ses/bounce_action_config.rb', line 28 def @message end |
#sender ⇒ String (readonly)
The email address of the sender of the bounced email.
This is the address that the bounce message is sent from.
34 35 36 |
# File 'ses/bounce_action_config.rb', line 34 def sender @sender end |
#smtp_reply_code ⇒ String (readonly)
The SMTP reply code, as defined by RFC 5321.
38 39 40 |
# File 'ses/bounce_action_config.rb', line 38 def smtp_reply_code @smtp_reply_code end |
#status_code ⇒ String? (readonly)
Default: - No status code.
The SMTP enhanced status code, as defined by RFC 3463.
43 44 45 |
# File 'ses/bounce_action_config.rb', line 43 def status_code @status_code end |
#topic_arn ⇒ String? (readonly)
Default: - No notification is sent to SNS.
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
48 49 50 |
# File 'ses/bounce_action_config.rb', line 48 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'ses/bounce_action_config.rb', line 50 def self.jsii_properties { :message => "message", :sender => "sender", :smtp_reply_code => "smtpReplyCode", :status_code => "statusCode", :topic_arn => "topicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 'ses/bounce_action_config.rb', line 60 def to_jsii result = {} result.merge!({ "message" => @message, "sender" => @sender, "smtpReplyCode" => @smtp_reply_code, "statusCode" => @status_code, "topicArn" => @topic_arn, }) result.compact end |