Class: AWSCDK::Connect::CfnUser::AutoAcceptConfigProperty

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

Overview

Auto-accept configuration per channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_accept:, channel:, agent_first_callback_auto_accept: nil) ⇒ AutoAcceptConfigProperty

Returns a new instance of AutoAcceptConfigProperty.

Parameters:

  • auto_accept (Boolean, AWSCDK::IResolvable)

    The Auto accept setting.

  • channel (String)

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

  • agent_first_callback_auto_accept (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    The agent first callback auto accept setting.



804
805
806
807
808
809
810
811
# File 'connect/cfn_user.rb', line 804

def initialize(auto_accept:, channel:, agent_first_callback_auto_accept: nil)
  @auto_accept = auto_accept
  Jsii::Type.check_type(@auto_accept, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoAccept")
  @channel = channel
  Jsii::Type.check_type(@channel, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channel")
  @agent_first_callback_auto_accept = agent_first_callback_auto_accept
  Jsii::Type.check_type(@agent_first_callback_auto_accept, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "agentFirstCallbackAutoAccept") unless @agent_first_callback_auto_accept.nil?
end

Instance Attribute Details

#agent_first_callback_auto_acceptBoolean, ... (readonly)

The agent first callback auto accept setting.



827
828
829
# File 'connect/cfn_user.rb', line 827

def agent_first_callback_auto_accept
  @agent_first_callback_auto_accept
end

#auto_acceptBoolean, AWSCDK::IResolvable (readonly)

The Auto accept setting.



817
818
819
# File 'connect/cfn_user.rb', line 817

def auto_accept
  @auto_accept
end

#channelString (readonly)

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



822
823
824
# File 'connect/cfn_user.rb', line 822

def channel
  @channel
end

Class Method Details

.jsii_propertiesObject



829
830
831
832
833
834
835
# File 'connect/cfn_user.rb', line 829

def self.jsii_properties
  {
    :auto_accept => "autoAccept",
    :channel => "channel",
    :agent_first_callback_auto_accept => "agentFirstCallbackAutoAccept",
  }
end

Instance Method Details

#to_jsiiObject



837
838
839
840
841
842
843
844
845
# File 'connect/cfn_user.rb', line 837

def to_jsii
  result = {}
  result.merge!({
    "autoAccept" => @auto_accept,
    "channel" => @channel,
    "agentFirstCallbackAutoAccept" => @agent_first_callback_auto_accept,
  })
  result.compact
end