Class: AWSCDK::PinpointEmail::CfnConfigurationSetEventDestinationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PinpointEmail::CfnConfigurationSetEventDestinationProps
- Defined in:
- pinpoint_email/cfn_configuration_set_event_destination_props.rb
Overview
Properties for defining a CfnConfigurationSetEventDestination.
Instance Attribute Summary collapse
-
#configuration_set_name ⇒ String
readonly
The name of the configuration set that contains the event destination that you want to modify.
-
#event_destination ⇒ AWSCDK::IResolvable, ...
readonly
An object that defines the event destination.
-
#event_destination_name ⇒ String
readonly
The name of the event destination that you want to modify.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration_set_name:, event_destination_name:, event_destination: nil) ⇒ CfnConfigurationSetEventDestinationProps
constructor
A new instance of CfnConfigurationSetEventDestinationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration_set_name:, event_destination_name:, event_destination: nil) ⇒ CfnConfigurationSetEventDestinationProps
Returns a new instance of CfnConfigurationSetEventDestinationProps.
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_name ⇒ String (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_destination ⇒ AWSCDK::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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |