Class: AWSCDK::Connect::CfnUser::AfterContactWorkConfigPerChannelProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_user.rb

Overview

After Contact Work configuration per channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(after_contact_work_config:, channel:, agent_first_callback_after_contact_work_config: nil) ⇒ AfterContactWorkConfigPerChannelProperty

Returns a new instance of AfterContactWorkConfigPerChannelProperty.

Parameters:



718
719
720
721
722
723
724
725
# File 'connect/cfn_user.rb', line 718

def initialize(after_contact_work_config:, channel:, agent_first_callback_after_contact_work_config: nil)
  @after_contact_work_config = after_contact_work_config.is_a?(Hash) ? ::AWSCDK::Connect::CfnUser::AfterContactWorkConfigProperty.new(**after_contact_work_config.transform_keys(&:to_sym)) : after_contact_work_config
  Jsii::Type.check_type(@after_contact_work_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblVzZXIuQWZ0ZXJDb250YWN0V29ya0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "afterContactWorkConfig")
  @channel = channel
  Jsii::Type.check_type(@channel, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channel")
  @agent_first_callback_after_contact_work_config = agent_first_callback_after_contact_work_config.is_a?(Hash) ? ::AWSCDK::Connect::CfnUser::AfterContactWorkConfigProperty.new(**agent_first_callback_after_contact_work_config.transform_keys(&:to_sym)) : agent_first_callback_after_contact_work_config
  Jsii::Type.check_type(@agent_first_callback_after_contact_work_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblVzZXIuQWZ0ZXJDb250YWN0V29ya0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "agentFirstCallbackAfterContactWorkConfig") unless @agent_first_callback_after_contact_work_config.nil?
end

Instance Attribute Details

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

After Contact Work configuration.



741
742
743
# File 'connect/cfn_user.rb', line 741

def agent_first_callback_after_contact_work_config
  @agent_first_callback_after_contact_work_config
end

#channelString (readonly)

The channels that agents can handle in the Contact Control Panel (CCP).



736
737
738
# File 'connect/cfn_user.rb', line 736

def channel
  @channel
end

Class Method Details

.jsii_propertiesObject



743
744
745
746
747
748
749
# File 'connect/cfn_user.rb', line 743

def self.jsii_properties
  {
    :after_contact_work_config => "afterContactWorkConfig",
    :channel => "channel",
    :agent_first_callback_after_contact_work_config => "agentFirstCallbackAfterContactWorkConfig",
  }
end

Instance Method Details

#to_jsiiObject



751
752
753
754
755
756
757
758
759
# File 'connect/cfn_user.rb', line 751

def to_jsii
  result = {}
  result.merge!({
    "afterContactWorkConfig" => @after_contact_work_config,
    "channel" => @channel,
    "agentFirstCallbackAfterContactWorkConfig" => @agent_first_callback_after_contact_work_config,
  })
  result.compact
end