Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::TelephonyOutboundConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ConnectCampaignsv2::CfnCampaign::TelephonyOutboundConfigProperty
- Defined in:
- connect_campaignsv2/cfn_campaign.rb
Overview
The outbound configuration for telephony.
Instance Attribute Summary collapse
-
#answer_machine_detection_config ⇒ AWSCDK::IResolvable, ...
readonly
The answering machine detection configuration.
-
#connect_contact_flow_id ⇒ String
readonly
The identifier of the published Amazon Connect contact flow.
-
#connect_source_phone_number ⇒ String?
readonly
The Amazon Connect source phone number.
-
#ring_timeout ⇒ Numeric?
readonly
The ring timeout configuration for outbound calls.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connect_contact_flow_id:, answer_machine_detection_config: nil, connect_source_phone_number: nil, ring_timeout: nil) ⇒ TelephonyOutboundConfigProperty
constructor
A new instance of TelephonyOutboundConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connect_contact_flow_id:, answer_machine_detection_config: nil, connect_source_phone_number: nil, ring_timeout: nil) ⇒ TelephonyOutboundConfigProperty
Returns a new instance of TelephonyOutboundConfigProperty.
1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1807 def initialize(connect_contact_flow_id:, answer_machine_detection_config: nil, connect_source_phone_number: nil, ring_timeout: nil) @connect_contact_flow_id = connect_contact_flow_id Jsii::Type.check_type(@connect_contact_flow_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectContactFlowId") @answer_machine_detection_config = answer_machine_detection_config.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uQW5zd2VyTWFjaGluZURldGVjdGlvbkNvbmZpZ1Byb3BlcnR5In1dfX0=")), "answerMachineDetectionConfig") unless @answer_machine_detection_config.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? @ring_timeout = ring_timeout Jsii::Type.check_type(@ring_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ringTimeout") unless @ring_timeout.nil? end |
Instance Attribute Details
#answer_machine_detection_config ⇒ AWSCDK::IResolvable, ... (readonly)
The answering machine detection configuration.
1827 1828 1829 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1827 def answer_machine_detection_config @answer_machine_detection_config end |
#connect_contact_flow_id ⇒ String (readonly)
The identifier of the published Amazon Connect contact flow.
1822 1823 1824 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1822 def connect_contact_flow_id @connect_contact_flow_id end |
#connect_source_phone_number ⇒ String? (readonly)
The Amazon Connect source phone number.
1832 1833 1834 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1832 def connect_source_phone_number @connect_source_phone_number end |
#ring_timeout ⇒ Numeric? (readonly)
The ring timeout configuration for outbound calls.
Specifies how long to wait for the call to be answered before timing out.
1839 1840 1841 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1839 def ring_timeout @ring_timeout end |
Class Method Details
.jsii_properties ⇒ Object
1841 1842 1843 1844 1845 1846 1847 1848 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1841 def self.jsii_properties { :connect_contact_flow_id => "connectContactFlowId", :answer_machine_detection_config => "answerMachineDetectionConfig", :connect_source_phone_number => "connectSourcePhoneNumber", :ring_timeout => "ringTimeout", } end |
Instance Method Details
#to_jsii ⇒ Object
1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1850 def to_jsii result = {} result.merge!({ "connectContactFlowId" => @connect_contact_flow_id, "answerMachineDetectionConfig" => @answer_machine_detection_config, "connectSourcePhoneNumber" => @connect_source_phone_number, "ringTimeout" => @ring_timeout, }) result.compact end |