Class: AWSCDK::CodeStarNotifications::CfnNotificationRule::TargetProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_address:, target_type:) ⇒ TargetProperty

Returns a new instance of TargetProperty.

Parameters:

  • target_address (String)

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

  • target_type (String)

    The target type. Can be an Amazon Simple Notification Service topic or client.



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_addressString (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_typeString (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_propertiesObject



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_jsiiObject



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