Class: AWSCDK::SES::ConfigurationSetEventDestinationOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::ConfigurationSetEventDestinationOptions
- Defined in:
- ses/configuration_set_event_destination_options.rb
Overview
Options for a configuration set event destination.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration_set_event_destination_name ⇒ String?
readonly
A name for the configuration set event destination.
-
#destination ⇒ AWSCDK::SES::EventDestination
readonly
The event destination.
-
#enabled ⇒ Boolean?
readonly
Whether Amazon SES publishes events to this destination.
-
#events ⇒ Array<AWSCDK::SES::EmailSendingEvent>?
readonly
The type of email sending events to publish to the event destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, configuration_set_event_destination_name: nil, enabled: nil, events: nil) ⇒ ConfigurationSetEventDestinationOptions
constructor
A new instance of ConfigurationSetEventDestinationOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, configuration_set_event_destination_name: nil, enabled: nil, events: nil) ⇒ ConfigurationSetEventDestinationOptions
Returns a new instance of ConfigurationSetEventDestinationOptions.
11 12 13 14 15 16 17 18 19 20 |
# File 'ses/configuration_set_event_destination_options.rb', line 11 def initialize(destination:, configuration_set_event_destination_name: nil, enabled: nil, events: nil) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkV2ZW50RGVzdGluYXRpb24ifQ==")), "destination") @configuration_set_event_destination_name = configuration_set_event_destination_name Jsii::Type.check_type(@configuration_set_event_destination_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationSetEventDestinationName") unless @configuration_set_event_destination_name.nil? @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled") unless @enabled.nil? @events = events Jsii::Type.check_type(@events, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuRW1haWxTZW5kaW5nRXZlbnQifSwia2luZCI6ImFycmF5In19")), "events") unless @events.nil? end |
Instance Attribute Details
#configuration_set_event_destination_name ⇒ String? (readonly)
Note:
Default: - a CloudFormation generated name
A name for the configuration set event destination.
30 31 32 |
# File 'ses/configuration_set_event_destination_options.rb', line 30 def configuration_set_event_destination_name @configuration_set_event_destination_name end |
#destination ⇒ AWSCDK::SES::EventDestination (readonly)
The event destination.
25 26 27 |
# File 'ses/configuration_set_event_destination_options.rb', line 25 def destination @destination end |
#enabled ⇒ Boolean? (readonly)
Note:
Default: true
Whether Amazon SES publishes events to this destination.
35 36 37 |
# File 'ses/configuration_set_event_destination_options.rb', line 35 def enabled @enabled end |
#events ⇒ Array<AWSCDK::SES::EmailSendingEvent>? (readonly)
Note:
Default: - send all event types
The type of email sending events to publish to the event destination.
40 41 42 |
# File 'ses/configuration_set_event_destination_options.rb', line 40 def events @events end |
Class Method Details
.jsii_properties ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'ses/configuration_set_event_destination_options.rb', line 42 def self.jsii_properties { :destination => "destination", :configuration_set_event_destination_name => "configurationSetEventDestinationName", :enabled => "enabled", :events => "events", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'ses/configuration_set_event_destination_options.rb', line 51 def to_jsii result = {} result.merge!({ "destination" => @destination, "configurationSetEventDestinationName" => @configuration_set_event_destination_name, "enabled" => @enabled, "events" => @events, }) result.compact end |