Class: AWSCDK::Interfaces::AWSFMS::NotificationChannelReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsfms/notification_channel_reference.rb

Overview

A reference to a NotificationChannel resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sns_topic_arn:) ⇒ NotificationChannelReference

Returns a new instance of NotificationChannelReference.

Parameters:

  • sns_topic_arn (String)

    The SnsTopicArn of the NotificationChannel resource.



8
9
10
11
# File 'interfaces/awsfms/notification_channel_reference.rb', line 8

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

Instance Attribute Details

#sns_topic_arnString (readonly)

The SnsTopicArn of the NotificationChannel resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/awsfms/notification_channel_reference.rb', line 16

def sns_topic_arn
  @sns_topic_arn
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/awsfms/notification_channel_reference.rb', line 18

def self.jsii_properties
  {
    :sns_topic_arn => "snsTopicArn",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/awsfms/notification_channel_reference.rb', line 24

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