Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::ChannelSubtypeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ConnectCampaignsv2::CfnCampaign::ChannelSubtypeConfigProperty
- Defined in:
- connect_campaignsv2/cfn_campaign.rb
Overview
Contains channel subtype configuration for an outbound campaign.
Instance Attribute Summary collapse
-
#email ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the email channel subtype.
-
#sms ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the SMS channel subtype.
-
#telephony ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the telephony channel subtype.
-
#whats_app ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the WhatsApp channel subtype.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email: nil, sms: nil, telephony: nil, whats_app: nil) ⇒ ChannelSubtypeConfigProperty
constructor
A new instance of ChannelSubtypeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(email: nil, sms: nil, telephony: nil, whats_app: nil) ⇒ ChannelSubtypeConfigProperty
Returns a new instance of ChannelSubtypeConfigProperty.
703 704 705 706 707 708 709 710 711 712 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 703 def initialize(email: nil, sms: nil, telephony: nil, whats_app: nil) @email = email.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::EmailChannelSubtypeConfigProperty.new(**email.transform_keys(&:to_sym)) : email Jsii::Type.check_type(@email, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uRW1haWxDaGFubmVsU3VidHlwZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "email") unless @email.nil? @sms = sms.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::SmsChannelSubtypeConfigProperty.new(**sms.transform_keys(&:to_sym)) : sms Jsii::Type.check_type(@sms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uU21zQ2hhbm5lbFN1YnR5cGVDb25maWdQcm9wZXJ0eSJ9XX19")), "sms") unless @sms.nil? @telephony = telephony.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TelephonyChannelSubtypeConfigProperty.new(**telephony.transform_keys(&:to_sym)) : telephony Jsii::Type.check_type(@telephony, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGVsZXBob255Q2hhbm5lbFN1YnR5cGVDb25maWdQcm9wZXJ0eSJ9XX19")), "telephony") unless @telephony.nil? @whats_app = whats_app.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::WhatsAppChannelSubtypeConfigProperty.new(**whats_app.transform_keys(&:to_sym)) : whats_app Jsii::Type.check_type(@whats_app, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uV2hhdHNBcHBDaGFubmVsU3VidHlwZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "whatsApp") unless @whats_app.nil? end |
Instance Attribute Details
#email ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of the email channel subtype.
718 719 720 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 718 def email @email end |
#sms ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of the SMS channel subtype.
723 724 725 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 723 def sms @sms end |
#telephony ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of the telephony channel subtype.
728 729 730 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 728 def telephony @telephony end |
#whats_app ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of the WhatsApp channel subtype.
733 734 735 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 733 def whats_app @whats_app end |
Class Method Details
.jsii_properties ⇒ Object
735 736 737 738 739 740 741 742 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 735 def self.jsii_properties { :email => "email", :sms => "sms", :telephony => "telephony", :whats_app => "whatsApp", } end |
Instance Method Details
#to_jsii ⇒ Object
744 745 746 747 748 749 750 751 752 753 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 744 def to_jsii result = {} result.merge!({ "email" => @email, "sms" => @sms, "telephony" => @telephony, "whatsApp" => @whats_app, }) result.compact end |