Class: AWSCDK::SES::ConfigurationSetEventDestinationOptions

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

Overview

Options for a configuration set event destination.

Direct Known Subclasses

ConfigurationSetEventDestinationProps

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, configuration_set_event_destination_name: nil, enabled: nil, events: nil) ⇒ ConfigurationSetEventDestinationOptions

Returns a new instance of ConfigurationSetEventDestinationOptions.

Parameters:

  • destination (AWSCDK::SES::EventDestination)

    The event destination.

  • configuration_set_event_destination_name (String, nil) (defaults to: nil)

    A name for the configuration set event destination.

  • enabled (Boolean, nil) (defaults to: nil)

    Whether Amazon SES publishes events to this destination.

  • events (Array<AWSCDK::SES::EmailSendingEvent>, nil) (defaults to: nil)

    The type of email sending events to publish to the event destination.



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_nameString? (readonly)

Note:

Default: - a CloudFormation generated name

A name for the configuration set event destination.

Returns:

  • (String, nil)


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

#destinationAWSCDK::SES::EventDestination (readonly)

The event destination.



25
26
27
# File 'ses/configuration_set_event_destination_options.rb', line 25

def destination
  @destination
end

#enabledBoolean? (readonly)

Note:

Default: true

Whether Amazon SES publishes events to this destination.

Returns:

  • (Boolean, nil)


35
36
37
# File 'ses/configuration_set_event_destination_options.rb', line 35

def enabled
  @enabled
end

#eventsArray<AWSCDK::SES::EmailSendingEvent>? (readonly)

Note:

Default: - send all event types

The type of email sending events to publish to the event destination.

Returns:



40
41
42
# File 'ses/configuration_set_event_destination_options.rb', line 40

def events
  @events
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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