Class: AWSCDK::CodeStarNotifications::CfnNotificationRule::TargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeStarNotifications::CfnNotificationRule::TargetProperty
- Defined in:
- code_star_notifications/cfn_notification_rule.rb
Overview
Information about the topics or clients associated with a notification rule.
Instance Attribute Summary collapse
-
#target_address ⇒ String
readonly
The Amazon Resource Name (ARN) of the topic or client.
-
#target_type ⇒ String
readonly
The target type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_address:, target_type:) ⇒ TargetProperty
constructor
A new instance of TargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_address:, target_type:) ⇒ TargetProperty
Returns a new instance of TargetProperty.
636 637 638 639 640 641 |
# File 'code_star_notifications/cfn_notification_rule.rb', line 636 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 topic or client.
647 648 649 |
# File 'code_star_notifications/cfn_notification_rule.rb', line 647 def target_address @target_address end |
#target_type ⇒ String (readonly)
The target type. Can be an Amazon Simple Notification Service topic or client.
- Amazon Simple Notification Service topics are specified as
SNS. - clients are specified as
AWSChatbotSlack. - clients for Microsoft Teams are specified as
AWSChatbotMicrosoftTeams.
656 657 658 |
# File 'code_star_notifications/cfn_notification_rule.rb', line 656 def target_type @target_type end |
Class Method Details
.jsii_properties ⇒ Object
658 659 660 661 662 663 |
# File 'code_star_notifications/cfn_notification_rule.rb', line 658 def self.jsii_properties { :target_address => "targetAddress", :target_type => "targetType", } end |
Instance Method Details
#to_jsii ⇒ Object
665 666 667 668 669 670 671 672 |
# File 'code_star_notifications/cfn_notification_rule.rb', line 665 def to_jsii result = {} result.merge!({ "targetAddress" => @target_address, "targetType" => @target_type, }) result.compact end |