Class: AWSCDK::PinpointEmail::CfnConfigurationSetEventDestinationProps

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

Overview

Properties for defining a CfnConfigurationSetEventDestination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration_set_name:, event_destination_name:, event_destination: nil) ⇒ CfnConfigurationSetEventDestinationProps

Returns a new instance of CfnConfigurationSetEventDestinationProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 12

def initialize(configuration_set_name:, event_destination_name:, event_destination: nil)
  @configuration_set_name = configuration_set_name
  Jsii::Type.check_type(@configuration_set_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationSetName")
  @event_destination_name = event_destination_name
  Jsii::Type.check_type(@event_destination_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventDestinationName")
  @event_destination = event_destination.is_a?(Hash) ? ::AWSCDK::PinpointEmail::CfnConfigurationSetEventDestination::EventDestinationProperty.new(**event_destination.transform_keys(&:to_sym)) : event_destination
  Jsii::Type.check_type(@event_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waW5wb2ludGVtYWlsLkNmbkNvbmZpZ3VyYXRpb25TZXRFdmVudERlc3RpbmF0aW9uLkV2ZW50RGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "eventDestination") unless @event_destination.nil?
end

Instance Attribute Details

#configuration_set_nameString (readonly)

The name of the configuration set that contains the event destination that you want to modify.



25
26
27
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 25

def configuration_set_name
  @configuration_set_name
end

#event_destinationAWSCDK::IResolvable, ... (readonly)

An object that defines the event destination.



35
36
37
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 35

def event_destination
  @event_destination
end

#event_destination_nameString (readonly)

The name of the event destination that you want to modify.



30
31
32
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 30

def event_destination_name
  @event_destination_name
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 37

def self.jsii_properties
  {
    :configuration_set_name => "configurationSetName",
    :event_destination_name => "eventDestinationName",
    :event_destination => "eventDestination",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'pinpoint_email/cfn_configuration_set_event_destination_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "configurationSetName" => @configuration_set_name,
    "eventDestinationName" => @event_destination_name,
    "eventDestination" => @event_destination,
  })
  result.compact
end