Class: AWSCDK::SES::CfnReceiptRule::SNSActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnReceiptRule::SNSActionProperty
- Defined in:
- ses/cfn_receipt_rule.rb
Overview
The action to publish the email content to an Amazon SNS topic.
When executed, this action will send the email as a notification to the specified SNS topic.
Instance Attribute Summary collapse
-
#encoding ⇒ String?
readonly
The encoding to use for the email within the Amazon SNS notification.
-
#topic_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encoding: nil, topic_arn: nil) ⇒ SNSActionProperty
constructor
A new instance of SNSActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encoding: nil, topic_arn: nil) ⇒ SNSActionProperty
Returns a new instance of SNSActionProperty.
1086 1087 1088 1089 1090 1091 |
# File 'ses/cfn_receipt_rule.rb', line 1086 def initialize(encoding: nil, topic_arn: nil) @encoding = encoding Jsii::Type.check_type(@encoding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encoding") unless @encoding.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
#encoding ⇒ String? (readonly)
The encoding to use for the email within the Amazon SNS notification.
The default value is UTF-8 . Use BASE64 if you need to preserve all special characters, especially when the original message uses a different encoding format.
1099 1100 1101 |
# File 'ses/cfn_receipt_rule.rb', line 1099 def encoding @encoding end |
#topic_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.
1104 1105 1106 |
# File 'ses/cfn_receipt_rule.rb', line 1104 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
1106 1107 1108 1109 1110 1111 |
# File 'ses/cfn_receipt_rule.rb', line 1106 def self.jsii_properties { :encoding => "encoding", :topic_arn => "topicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'ses/cfn_receipt_rule.rb', line 1113 def to_jsii result = {} result.merge!({ "encoding" => @encoding, "topicArn" => @topic_arn, }) result.compact end |