Class: AWSCDK::ConnectCampaigns::CfnCampaign::OutboundCallConfigProperty

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

Overview

Contains outbound call configuration for an outbound campaign.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connect_contact_flow_arn:, answer_machine_detection_config: nil, connect_queue_arn: nil, connect_source_phone_number: nil) ⇒ OutboundCallConfigProperty

Returns a new instance of OutboundCallConfigProperty.

Parameters:

  • connect_contact_flow_arn (String)

    The Amazon Resource Name (ARN) of the flow.

  • answer_machine_detection_config (AWSCDK::IResolvable, AWSCDK::ConnectCampaigns::CfnCampaign::AnswerMachineDetectionConfigProperty, nil) (defaults to: nil)

    Whether answering machine detection has been enabled.

  • connect_queue_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the queue.

  • connect_source_phone_number (String, nil) (defaults to: nil)

    The phone number associated with the outbound call.



703
704
705
706
707
708
709
710
711
712
# File 'connect_campaigns/cfn_campaign.rb', line 703

def initialize(connect_contact_flow_arn:, answer_machine_detection_config: nil, connect_queue_arn: nil, connect_source_phone_number: nil)
  @connect_contact_flow_arn = connect_contact_flow_arn
  Jsii::Type.check_type(@connect_contact_flow_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectContactFlowArn")
  @answer_machine_detection_config = answer_machine_detection_config.is_a?(Hash) ? ::AWSCDK::ConnectCampaigns::CfnCampaign::AnswerMachineDetectionConfigProperty.new(**answer_machine_detection_config.transform_keys(&:to_sym)) : answer_machine_detection_config
  Jsii::Type.check_type(@answer_machine_detection_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zLkNmbkNhbXBhaWduLkFuc3dlck1hY2hpbmVEZXRlY3Rpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "answerMachineDetectionConfig") unless @answer_machine_detection_config.nil?
  @connect_queue_arn = connect_queue_arn
  Jsii::Type.check_type(@connect_queue_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectQueueArn") unless @connect_queue_arn.nil?
  @connect_source_phone_number = connect_source_phone_number
  Jsii::Type.check_type(@connect_source_phone_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectSourcePhoneNumber") unless @connect_source_phone_number.nil?
end

Instance Attribute Details

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

Whether answering machine detection has been enabled.



723
724
725
# File 'connect_campaigns/cfn_campaign.rb', line 723

def answer_machine_detection_config
  @answer_machine_detection_config
end

#connect_contact_flow_arnString (readonly)

The Amazon Resource Name (ARN) of the flow.



718
719
720
# File 'connect_campaigns/cfn_campaign.rb', line 718

def connect_contact_flow_arn
  @connect_contact_flow_arn
end

#connect_queue_arnString? (readonly)

The Amazon Resource Name (ARN) of the queue.



728
729
730
# File 'connect_campaigns/cfn_campaign.rb', line 728

def connect_queue_arn
  @connect_queue_arn
end

#connect_source_phone_numberString? (readonly)

The phone number associated with the outbound call.

This is the caller ID that is displayed to customers when an agent calls them.



735
736
737
# File 'connect_campaigns/cfn_campaign.rb', line 735

def connect_source_phone_number
  @connect_source_phone_number
end

Class Method Details

.jsii_propertiesObject



737
738
739
740
741
742
743
744
# File 'connect_campaigns/cfn_campaign.rb', line 737

def self.jsii_properties
  {
    :connect_contact_flow_arn => "connectContactFlowArn",
    :answer_machine_detection_config => "answerMachineDetectionConfig",
    :connect_queue_arn => "connectQueueArn",
    :connect_source_phone_number => "connectSourcePhoneNumber",
  }
end

Instance Method Details

#to_jsiiObject



746
747
748
749
750
751
752
753
754
755
# File 'connect_campaigns/cfn_campaign.rb', line 746

def to_jsii
  result = {}
  result.merge!({
    "connectContactFlowArn" => @connect_contact_flow_arn,
    "answerMachineDetectionConfig" => @answer_machine_detection_config,
    "connectQueueArn" => @connect_queue_arn,
    "connectSourcePhoneNumber" => @connect_source_phone_number,
  })
  result.compact
end