Class: AWSCDK::PinpointEmail::CfnConfigurationSetEventDestination::SNSDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint_email/cfn_configuration_set_event_destination.rb

Overview

An object that defines an Amazon SNS destination for email events.

You can use Amazon SNS to send notification when certain email 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 email events to.



812
813
814
815
# File 'pinpoint_email/cfn_configuration_set_event_destination.rb', line 812

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 email events to.

For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .



823
824
825
# File 'pinpoint_email/cfn_configuration_set_event_destination.rb', line 823

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



825
826
827
828
829
# File 'pinpoint_email/cfn_configuration_set_event_destination.rb', line 825

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

Instance Method Details

#to_jsiiObject



831
832
833
834
835
836
837
# File 'pinpoint_email/cfn_configuration_set_event_destination.rb', line 831

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