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

com.pulumi.awsnative.connect.kotlin.outputs.RuleActions.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 RuleActions(
    public val assignContactCategoryActions: List? = null,
    public val createCaseActions: List? = null,
    public val endAssociatedTasksActions: List? = null,
    public val eventBridgeActions: List? = null,
    public val sendNotificationActions: List? = null,
    public val submitAutoEvaluationActions: List? = null,
    public val taskActions: List? = null,
    public val updateCaseActions: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.RuleActions): RuleActions =
            RuleActions(
                assignContactCategoryActions = javaType.assignContactCategoryActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleAssignContactCategoryAction.Companion.toKotlin(args0)
                    })
                }),
                createCaseActions = javaType.createCaseActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleCreateCaseAction.Companion.toKotlin(args0)
                    })
                }),
                endAssociatedTasksActions = javaType.endAssociatedTasksActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleEndAssociatedTasksAction.Companion.toKotlin(args0)
                    })
                }),
                eventBridgeActions = javaType.eventBridgeActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleEventBridgeAction.Companion.toKotlin(args0)
                    })
                }),
                sendNotificationActions = javaType.sendNotificationActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleSendNotificationAction.Companion.toKotlin(args0)
                    })
                }),
                submitAutoEvaluationActions = javaType.submitAutoEvaluationActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleSubmitAutoEvaluationAction.Companion.toKotlin(args0)
                    })
                }),
                taskActions = javaType.taskActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleTaskAction.Companion.toKotlin(args0)
                    })
                }),
                updateCaseActions = javaType.updateCaseActions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.connect.kotlin.outputs.RuleUpdateCaseAction.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy