Class: AWSCDK::SES::CfnConfigurationSetEventDestination::SNSDestinationProperty

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

Overview

Contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.

Event destinations, such as Amazon SNS, are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide .

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 ARN of the Amazon SNS topic for email sending events.



817
818
819
820
# File 'ses/cfn_configuration_set_event_destination.rb', line 817

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 ARN of the Amazon SNS topic for email sending events.

You can find the ARN of a topic by using the ListTopics Amazon SNS operation.

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



830
831
832
# File 'ses/cfn_configuration_set_event_destination.rb', line 830

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



832
833
834
835
836
# File 'ses/cfn_configuration_set_event_destination.rb', line 832

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

Instance Method Details

#to_jsiiObject



838
839
840
841
842
843
844
# File 'ses/cfn_configuration_set_event_destination.rb', line 838

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