Class: AWSCDK::CodeStarNotifications::NotificationRuleTargetConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeStarNotifications::NotificationRuleTargetConfig
- Defined in:
- code_star_notifications/notification_rule_target_config.rb
Overview
Information about the SNS topic or AWS Chatbot client associated with a notification target.
Instance Attribute Summary collapse
-
#target_address ⇒ String
readonly
The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.
-
#target_type ⇒ String
readonly
The target type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_address:, target_type:) ⇒ NotificationRuleTargetConfig
constructor
A new instance of NotificationRuleTargetConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_address:, target_type:) ⇒ NotificationRuleTargetConfig
Returns a new instance of NotificationRuleTargetConfig.
9 10 11 12 13 14 |
# File 'code_star_notifications/notification_rule_target_config.rb', line 9 def initialize(target_address:, target_type:) @target_address = target_address Jsii::Type.check_type(@target_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetAddress") @target_type = target_type Jsii::Type.check_type(@target_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetType") end |
Instance Attribute Details
#target_address ⇒ String (readonly)
The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.
19 20 21 |
# File 'code_star_notifications/notification_rule_target_config.rb', line 19 def target_address @target_address end |
#target_type ⇒ String (readonly)
The target type.
Can be an Amazon SNS topic or AWS Chatbot client.
25 26 27 |
# File 'code_star_notifications/notification_rule_target_config.rb', line 25 def target_type @target_type end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'code_star_notifications/notification_rule_target_config.rb', line 27 def self.jsii_properties { :target_address => "targetAddress", :target_type => "targetType", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'code_star_notifications/notification_rule_target_config.rb', line 34 def to_jsii result = {} result.merge!({ "targetAddress" => @target_address, "targetType" => @target_type, }) result.compact end |