Class: AWSCDK::CodeStarNotifications::NotificationRuleSourceConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_star_notifications/notification_rule_source_config.rb

Overview

Information about the Codebuild or CodePipeline associated with a notification source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_arn:) ⇒ NotificationRuleSourceConfig

Returns a new instance of NotificationRuleSourceConfig.

Parameters:

  • source_arn (String)

    The Amazon Resource Name (ARN) of the notification source.



8
9
10
11
# File 'code_star_notifications/notification_rule_source_config.rb', line 8

def initialize(source_arn:)
  @source_arn = source_arn
  Jsii::Type.check_type(@source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceArn")
end

Instance Attribute Details

#source_arnString (readonly)

The Amazon Resource Name (ARN) of the notification source.

Returns:

  • (String)


16
17
18
# File 'code_star_notifications/notification_rule_source_config.rb', line 16

def source_arn
  @source_arn
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'code_star_notifications/notification_rule_source_config.rb', line 18

def self.jsii_properties
  {
    :source_arn => "sourceArn",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'code_star_notifications/notification_rule_source_config.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "sourceArn" => @source_arn,
  })
  result.compact
end