Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::CommunicationTimeConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect_campaignsv2/cfn_campaign.rb

Overview

Communication time configuration for an outbound campaign.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local_time_zone_config:, email: nil, sms: nil, telephony: nil, whats_app: nil) ⇒ CommunicationTimeConfigProperty

Returns a new instance of CommunicationTimeConfigProperty.

Parameters:



896
897
898
899
900
901
902
903
904
905
906
907
# File 'connect_campaignsv2/cfn_campaign.rb', line 896

def initialize(local_time_zone_config:, email: nil, sms: nil, telephony: nil, whats_app: nil)
  @local_time_zone_config = local_time_zone_config.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::LocalTimeZoneConfigProperty.new(**local_time_zone_config.transform_keys(&:to_sym)) : local_time_zone_config
  Jsii::Type.check_type(@local_time_zone_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uTG9jYWxUaW1lWm9uZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "localTimeZoneConfig")
  @email = email.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty.new(**email.transform_keys(&:to_sym)) : email
  Jsii::Type.check_type(@email, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGltZVdpbmRvd1Byb3BlcnR5In1dfX0=")), "email") unless @email.nil?
  @sms = sms.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty.new(**sms.transform_keys(&:to_sym)) : sms
  Jsii::Type.check_type(@sms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGltZVdpbmRvd1Byb3BlcnR5In1dfX0=")), "sms") unless @sms.nil?
  @telephony = telephony.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty.new(**telephony.transform_keys(&:to_sym)) : telephony
  Jsii::Type.check_type(@telephony, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGltZVdpbmRvd1Byb3BlcnR5In1dfX0=")), "telephony") unless @telephony.nil?
  @whats_app = whats_app.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty.new(**whats_app.transform_keys(&:to_sym)) : whats_app
  Jsii::Type.check_type(@whats_app, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGltZVdpbmRvd1Byb3BlcnR5In1dfX0=")), "whatsApp") unless @whats_app.nil?
end

Instance Attribute Details

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

The communication time configuration for the email channel subtype.



918
919
920
# File 'connect_campaignsv2/cfn_campaign.rb', line 918

def email
  @email
end

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

The communication time configuration for the SMS channel subtype.



923
924
925
# File 'connect_campaignsv2/cfn_campaign.rb', line 923

def sms
  @sms
end

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

The communication time configuration for the telephony channel subtype.



928
929
930
# File 'connect_campaignsv2/cfn_campaign.rb', line 928

def telephony
  @telephony
end

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

The communication time configuration for the WhatsApp channel subtype.



933
934
935
# File 'connect_campaignsv2/cfn_campaign.rb', line 933

def whats_app
  @whats_app
end

Class Method Details

.jsii_propertiesObject



935
936
937
938
939
940
941
942
943
# File 'connect_campaignsv2/cfn_campaign.rb', line 935

def self.jsii_properties
  {
    :local_time_zone_config => "localTimeZoneConfig",
    :email => "email",
    :sms => "sms",
    :telephony => "telephony",
    :whats_app => "whatsApp",
  }
end

Instance Method Details

#to_jsiiObject



945
946
947
948
949
950
951
952
953
954
955
# File 'connect_campaignsv2/cfn_campaign.rb', line 945

def to_jsii
  result = {}
  result.merge!({
    "localTimeZoneConfig" => @local_time_zone_config,
    "email" => @email,
    "sms" => @sms,
    "telephony" => @telephony,
    "whatsApp" => @whats_app,
  })
  result.compact
end