Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.awsnative.connect.kotlin.inputs.RuleActionsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.connect.kotlin.inputs
import com.pulumi.awsnative.connect.inputs.RuleActionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The list of actions that will be executed when a rule is triggered.
* @property assignContactCategoryActions Information about the contact category action. The syntax can be empty, for example, `{}` .
* @property createCaseActions
* @property endAssociatedTasksActions
* @property eventBridgeActions Information about the EventBridge action.
* @property sendNotificationActions Information about the send notification action.
* @property submitAutoEvaluationActions
* @property taskActions Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
* @property updateCaseActions
*/
public data class RuleActionsArgs(
public val assignContactCategoryActions: Output>? =
null,
public val createCaseActions: Output>? = null,
public val endAssociatedTasksActions: Output>? = null,
public val eventBridgeActions: Output>? = null,
public val sendNotificationActions: Output>? = null,
public val submitAutoEvaluationActions: Output>? = null,
public val taskActions: Output>? = null,
public val updateCaseActions: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.connect.inputs.RuleActionsArgs =
com.pulumi.awsnative.connect.inputs.RuleActionsArgs.builder()
.assignContactCategoryActions(
assignContactCategoryActions?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.createCaseActions(
createCaseActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.endAssociatedTasksActions(
endAssociatedTasksActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.eventBridgeActions(
eventBridgeActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.sendNotificationActions(
sendNotificationActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.submitAutoEvaluationActions(
submitAutoEvaluationActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.taskActions(
taskActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.updateCaseActions(
updateCaseActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [RuleActionsArgs].
*/
@PulumiTagMarker
public class RuleActionsArgsBuilder internal constructor() {
private var assignContactCategoryActions: Output>? =
null
private var createCaseActions: Output>? = null
private var endAssociatedTasksActions: Output>? = null
private var eventBridgeActions: Output>? = null
private var sendNotificationActions: Output>? = null
private var submitAutoEvaluationActions: Output>? = null
private var taskActions: Output>? = null
private var updateCaseActions: Output>? = null
/**
* @param value Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("mspgqtehunjgkgoj")
public suspend fun assignContactCategoryActions(`value`: Output>) {
this.assignContactCategoryActions = value
}
@JvmName("mdujrwcxyfsvknrx")
public suspend fun assignContactCategoryActions(vararg values: Output) {
this.assignContactCategoryActions = Output.all(values.asList())
}
/**
* @param values Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("fcspehswqayxlofe")
public suspend fun assignContactCategoryActions(values: List>) {
this.assignContactCategoryActions = Output.all(values)
}
/**
* @param value
*/
@JvmName("rjmcboneuigyuyme")
public suspend fun createCaseActions(`value`: Output>) {
this.createCaseActions = value
}
@JvmName("kllncytjvvbeiovk")
public suspend fun createCaseActions(vararg values: Output) {
this.createCaseActions = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("jbcwojgtkkfnkeqw")
public suspend fun createCaseActions(values: List>) {
this.createCaseActions = Output.all(values)
}
/**
* @param value
*/
@JvmName("lwrnyrnvabrucrky")
public suspend fun endAssociatedTasksActions(`value`: Output>) {
this.endAssociatedTasksActions = value
}
@JvmName("ffkqfnrqthpbwoly")
public suspend fun endAssociatedTasksActions(vararg values: Output) {
this.endAssociatedTasksActions = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("ueibcwieensefimp")
public suspend fun endAssociatedTasksActions(values: List>) {
this.endAssociatedTasksActions = Output.all(values)
}
/**
* @param value Information about the EventBridge action.
*/
@JvmName("gtijesxnvehbflhf")
public suspend fun eventBridgeActions(`value`: Output>) {
this.eventBridgeActions = value
}
@JvmName("fwuxsrgjplgiwtte")
public suspend fun eventBridgeActions(vararg values: Output) {
this.eventBridgeActions = Output.all(values.asList())
}
/**
* @param values Information about the EventBridge action.
*/
@JvmName("jbylufskrgrovteb")
public suspend fun eventBridgeActions(values: List>) {
this.eventBridgeActions = Output.all(values)
}
/**
* @param value Information about the send notification action.
*/
@JvmName("lpaxnisnalywgnrr")
public suspend fun sendNotificationActions(`value`: Output>) {
this.sendNotificationActions = value
}
@JvmName("eyobyvxdqhhhgcmk")
public suspend fun sendNotificationActions(vararg values: Output) {
this.sendNotificationActions = Output.all(values.asList())
}
/**
* @param values Information about the send notification action.
*/
@JvmName("jvpohfwmskwngrxv")
public suspend fun sendNotificationActions(values: List>) {
this.sendNotificationActions = Output.all(values)
}
/**
* @param value
*/
@JvmName("ccaluuingienlmgy")
public suspend fun submitAutoEvaluationActions(`value`: Output>) {
this.submitAutoEvaluationActions = value
}
@JvmName("kfqxenifxxbchlqt")
public suspend fun submitAutoEvaluationActions(vararg values: Output) {
this.submitAutoEvaluationActions = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("trattdbyqlxuiyod")
public suspend fun submitAutoEvaluationActions(values: List>) {
this.submitAutoEvaluationActions = Output.all(values)
}
/**
* @param value Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("qlnteqtqskafujej")
public suspend fun taskActions(`value`: Output>) {
this.taskActions = value
}
@JvmName("jeyhuiupoqqxkmsu")
public suspend fun taskActions(vararg values: Output) {
this.taskActions = Output.all(values.asList())
}
/**
* @param values Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("lmidhogaybhwrutd")
public suspend fun taskActions(values: List>) {
this.taskActions = Output.all(values)
}
/**
* @param value
*/
@JvmName("tdewdlmiavsclotj")
public suspend fun updateCaseActions(`value`: Output>) {
this.updateCaseActions = value
}
@JvmName("hgupkuktjnbgaqws")
public suspend fun updateCaseActions(vararg values: Output) {
this.updateCaseActions = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("icytltwqsatnebel")
public suspend fun updateCaseActions(values: List>) {
this.updateCaseActions = Output.all(values)
}
/**
* @param value Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("fnivmtyynyqpegpi")
public suspend fun assignContactCategoryActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.assignContactCategoryActions = mapped
}
/**
* @param argument Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("dahpatysqobapevb")
public suspend fun assignContactCategoryActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleAssignContactCategoryActionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.assignContactCategoryActions = mapped
}
/**
* @param argument Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("pstgfqqstxhcvxhk")
public suspend fun assignContactCategoryActions(vararg argument: suspend RuleAssignContactCategoryActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleAssignContactCategoryActionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.assignContactCategoryActions = mapped
}
/**
* @param argument Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("hailrbsggewwhgty")
public suspend fun assignContactCategoryActions(argument: suspend RuleAssignContactCategoryActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RuleAssignContactCategoryActionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.assignContactCategoryActions = mapped
}
/**
* @param values Information about the contact category action. The syntax can be empty, for example, `{}` .
*/
@JvmName("rtsacjmvstmyptxc")
public suspend fun assignContactCategoryActions(vararg values: RuleAssignContactCategoryActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.assignContactCategoryActions = mapped
}
/**
* @param value
*/
@JvmName("uouqdgdxrdpusokf")
public suspend fun createCaseActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.createCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("qhhywnlcffplovuw")
public suspend fun createCaseActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleCreateCaseActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.createCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("myyugcfwhmjpudgm")
public suspend fun createCaseActions(vararg argument: suspend RuleCreateCaseActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleCreateCaseActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.createCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("aueamrmelwwayasr")
public suspend fun createCaseActions(argument: suspend RuleCreateCaseActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleCreateCaseActionArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.createCaseActions = mapped
}
/**
* @param values
*/
@JvmName("kvxrrfjasxxjmveh")
public suspend fun createCaseActions(vararg values: RuleCreateCaseActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.createCaseActions = mapped
}
/**
* @param value
*/
@JvmName("tocnmeeyyxvgefmy")
public suspend fun endAssociatedTasksActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endAssociatedTasksActions = mapped
}
/**
* @param argument
*/
@JvmName("toupdtnwndhirpgn")
public suspend fun endAssociatedTasksActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleEndAssociatedTasksActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.endAssociatedTasksActions = mapped
}
/**
* @param argument
*/
@JvmName("rrsdkectaubipldl")
public suspend fun endAssociatedTasksActions(vararg argument: suspend RuleEndAssociatedTasksActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleEndAssociatedTasksActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.endAssociatedTasksActions = mapped
}
/**
* @param argument
*/
@JvmName("yhqhhkxprperifct")
public suspend fun endAssociatedTasksActions(argument: suspend RuleEndAssociatedTasksActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RuleEndAssociatedTasksActionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.endAssociatedTasksActions = mapped
}
/**
* @param values
*/
@JvmName("hykkxeaqrwkxvrts")
public suspend fun endAssociatedTasksActions(vararg values: RuleEndAssociatedTasksActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endAssociatedTasksActions = mapped
}
/**
* @param value Information about the EventBridge action.
*/
@JvmName("hotfxolotgqqfojk")
public suspend fun eventBridgeActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventBridgeActions = mapped
}
/**
* @param argument Information about the EventBridge action.
*/
@JvmName("qprwgferbrfarghq")
public suspend fun eventBridgeActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleEventBridgeActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.eventBridgeActions = mapped
}
/**
* @param argument Information about the EventBridge action.
*/
@JvmName("bghtbncllnpchvwb")
public suspend fun eventBridgeActions(vararg argument: suspend RuleEventBridgeActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleEventBridgeActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.eventBridgeActions = mapped
}
/**
* @param argument Information about the EventBridge action.
*/
@JvmName("anfbxyyngiuhqsgb")
public suspend fun eventBridgeActions(argument: suspend RuleEventBridgeActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleEventBridgeActionArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.eventBridgeActions = mapped
}
/**
* @param values Information about the EventBridge action.
*/
@JvmName("ucslncqgngmxbhec")
public suspend fun eventBridgeActions(vararg values: RuleEventBridgeActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventBridgeActions = mapped
}
/**
* @param value Information about the send notification action.
*/
@JvmName("lrwnvmjtxalaumpt")
public suspend fun sendNotificationActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sendNotificationActions = mapped
}
/**
* @param argument Information about the send notification action.
*/
@JvmName("mpcevtjamqoyhsso")
public suspend fun sendNotificationActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleSendNotificationActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.sendNotificationActions = mapped
}
/**
* @param argument Information about the send notification action.
*/
@JvmName("echsmtlbnthnelcs")
public suspend fun sendNotificationActions(vararg argument: suspend RuleSendNotificationActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleSendNotificationActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.sendNotificationActions = mapped
}
/**
* @param argument Information about the send notification action.
*/
@JvmName("bfeiersjmdwjikic")
public suspend fun sendNotificationActions(argument: suspend RuleSendNotificationActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RuleSendNotificationActionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.sendNotificationActions = mapped
}
/**
* @param values Information about the send notification action.
*/
@JvmName("hsvxsppehalaaprg")
public suspend fun sendNotificationActions(vararg values: RuleSendNotificationActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sendNotificationActions = mapped
}
/**
* @param value
*/
@JvmName("xqnfstikrjyuehjh")
public suspend fun submitAutoEvaluationActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.submitAutoEvaluationActions = mapped
}
/**
* @param argument
*/
@JvmName("doaqrxvmbwhkssva")
public suspend fun submitAutoEvaluationActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleSubmitAutoEvaluationActionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.submitAutoEvaluationActions = mapped
}
/**
* @param argument
*/
@JvmName("uuqkqpnoijxhccgc")
public suspend fun submitAutoEvaluationActions(vararg argument: suspend RuleSubmitAutoEvaluationActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleSubmitAutoEvaluationActionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.submitAutoEvaluationActions = mapped
}
/**
* @param argument
*/
@JvmName("qumtchuognonlemb")
public suspend fun submitAutoEvaluationActions(argument: suspend RuleSubmitAutoEvaluationActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
RuleSubmitAutoEvaluationActionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.submitAutoEvaluationActions = mapped
}
/**
* @param values
*/
@JvmName("intssmdvmduhfyfe")
public suspend fun submitAutoEvaluationActions(vararg values: RuleSubmitAutoEvaluationActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.submitAutoEvaluationActions = mapped
}
/**
* @param value Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("bnmsrewhmtjuimyg")
public suspend fun taskActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.taskActions = mapped
}
/**
* @param argument Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("xrpoxyljmxxprkiw")
public suspend fun taskActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleTaskActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.taskActions = mapped
}
/**
* @param argument Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("ildiaaihlthcgmwh")
public suspend fun taskActions(vararg argument: suspend RuleTaskActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleTaskActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.taskActions = mapped
}
/**
* @param argument Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("fhobtquovythqsxw")
public suspend fun taskActions(argument: suspend RuleTaskActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleTaskActionArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.taskActions = mapped
}
/**
* @param values Information about the task action. This field is required if `TriggerEventSource` is one of the following values: `OnZendeskTicketCreate` | `OnZendeskTicketStatusUpdate` | `OnSalesforceCaseCreate`
*/
@JvmName("alptxqqetwdehypa")
public suspend fun taskActions(vararg values: RuleTaskActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.taskActions = mapped
}
/**
* @param value
*/
@JvmName("nxyegsrenhxharqm")
public suspend fun updateCaseActions(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.updateCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("nwhbyaatydjfvxwq")
public suspend fun updateCaseActions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleUpdateCaseActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.updateCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("iymtivrpcdlmdurg")
public suspend fun updateCaseActions(vararg argument: suspend RuleUpdateCaseActionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleUpdateCaseActionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.updateCaseActions = mapped
}
/**
* @param argument
*/
@JvmName("hqohurujogrklerm")
public suspend fun updateCaseActions(argument: suspend RuleUpdateCaseActionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleUpdateCaseActionArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.updateCaseActions = mapped
}
/**
* @param values
*/
@JvmName("pqkayxxfwgyrvfxu")
public suspend fun updateCaseActions(vararg values: RuleUpdateCaseActionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.updateCaseActions = mapped
}
internal fun build(): RuleActionsArgs = RuleActionsArgs(
assignContactCategoryActions = assignContactCategoryActions,
createCaseActions = createCaseActions,
endAssociatedTasksActions = endAssociatedTasksActions,
eventBridgeActions = eventBridgeActions,
sendNotificationActions = sendNotificationActions,
submitAutoEvaluationActions = submitAutoEvaluationActions,
taskActions = taskActions,
updateCaseActions = updateCaseActions,
)
}