Class: AWSCDK::CodeStarNotifications::NotificationRuleTargetConfig

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_address:, target_type:) ⇒ NotificationRuleTargetConfig

Returns a new instance of NotificationRuleTargetConfig.

Parameters:

  • target_address (String)

    The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.

  • target_type (String)

    The target type.



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_addressString (readonly)

The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.

Returns:

  • (String)


19
20
21
# File 'code_star_notifications/notification_rule_target_config.rb', line 19

def target_address
  @target_address
end

#target_typeString (readonly)

The target type.

Can be an Amazon SNS topic or AWS Chatbot client.

Returns:

  • (String)


25
26
27
# File 'code_star_notifications/notification_rule_target_config.rb', line 25

def target_type
  @target_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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