All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.connectcampaigns.kotlin.outputs.CampaignOutboundCallConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connectcampaigns.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * The configuration used for outbound calls.
 * @property answerMachineDetectionConfig Whether answering machine detection has been enabled.
 * @property connectContactFlowArn The identifier of the contact flow for the outbound call.
 * @property connectQueueArn The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number.
 * @property connectSourcePhoneNumber The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.
 */
public data class CampaignOutboundCallConfig(
    public val answerMachineDetectionConfig: CampaignAnswerMachineDetectionConfig? = null,
    public val connectContactFlowArn: String,
    public val connectQueueArn: String? = null,
    public val connectSourcePhoneNumber: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connectcampaigns.outputs.CampaignOutboundCallConfig): CampaignOutboundCallConfig = CampaignOutboundCallConfig(
            answerMachineDetectionConfig = javaType.answerMachineDetectionConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.connectcampaigns.kotlin.outputs.CampaignAnswerMachineDetectionConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            connectContactFlowArn = javaType.connectContactFlowArn(),
            connectQueueArn = javaType.connectQueueArn().map({ args0 -> args0 }).orElse(null),
            connectSourcePhoneNumber = javaType.connectSourcePhoneNumber().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy