Class: AWSCDK::SMSVoice::CfnConfigurationSet::SNSDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sms_voice/cfn_configuration_set.rb

Overview

An object that defines an Amazon SNS destination for events.

You can use Amazon SNS to send notification when certain events occur.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic_arn:) ⇒ SNSDestinationProperty

Returns a new instance of SNSDestinationProperty.

Parameters:

  • topic_arn (String)

    The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.



791
792
793
794
# File 'sms_voice/cfn_configuration_set.rb', line 791

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

Instance Attribute Details

#topic_arnString (readonly)

The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.



800
801
802
# File 'sms_voice/cfn_configuration_set.rb', line 800

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



802
803
804
805
806
# File 'sms_voice/cfn_configuration_set.rb', line 802

def self.jsii_properties
  {
    :topic_arn => "topicArn",
  }
end

Instance Method Details

#to_jsiiObject



808
809
810
811
812
813
814
# File 'sms_voice/cfn_configuration_set.rb', line 808

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