Class: AWSCDK::SES::SNSActionConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::SNSActionConfig
- Defined in:
- ses/sns_action_config.rb
Overview
SNSAction configuration.
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 notify.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encoding: nil, topic_arn: nil) ⇒ SNSActionConfig
constructor
A new instance of SNSActionConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encoding: nil, topic_arn: nil) ⇒ SNSActionConfig
Returns a new instance of SNSActionConfig.
9 10 11 12 13 14 |
# File 'ses/sns_action_config.rb', line 9 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)
Note:
Default: 'UTF-8'
The encoding to use for the email within the Amazon SNS notification.
20 21 22 |
# File 'ses/sns_action_config.rb', line 20 def encoding @encoding end |
#topic_arn ⇒ String? (readonly)
Note:
Default: - No notification is sent to SNS.
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify.
25 26 27 |
# File 'ses/sns_action_config.rb', line 25 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'ses/sns_action_config.rb', line 27 def self.jsii_properties { :encoding => "encoding", :topic_arn => "topicArn", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'ses/sns_action_config.rb', line 34 def to_jsii result = {} result.merge!({ "encoding" => @encoding, "topicArn" => @topic_arn, }) result.compact end |