com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardVisualCustomActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.DashboardVisualCustomActionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardVisualCustomActionTrigger
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardWidgetStatus
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property actionOperations A list of `VisualCustomActionOperations` .
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
* @property customActionId The ID of the `VisualCustomAction` .
* @property name The name of the `VisualCustomAction` .
* @property status The status of the `VisualCustomAction` .
* @property trigger The trigger of the `VisualCustomAction` .
* Valid values are defined as follows:
* - `DATA_POINT_CLICK` : Initiates a custom action by a left pointer click on a data point.
* - `DATA_POINT_MENU` : Initiates a custom action by right pointer click from the menu.
*/
public data class DashboardVisualCustomActionArgs(
public val actionOperations: Output>,
public val customActionId: Output,
public val name: Output,
public val status: Output? = null,
public val trigger: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardVisualCustomActionArgs =
com.pulumi.awsnative.quicksight.inputs.DashboardVisualCustomActionArgs.builder()
.actionOperations(
actionOperations.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.customActionId(customActionId.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.trigger(trigger.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DashboardVisualCustomActionArgs].
*/
@PulumiTagMarker
public class DashboardVisualCustomActionArgsBuilder internal constructor() {
private var actionOperations: Output>? = null
private var customActionId: Output? = null
private var name: Output? = null
private var status: Output? = null
private var trigger: Output? = null
/**
* @param value A list of `VisualCustomActionOperations` .
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
*/
@JvmName("rmlpjbacbaihhacx")
public suspend fun actionOperations(`value`: Output>) {
this.actionOperations = value
}
@JvmName("omyosrprfxewbuxi")
public suspend fun actionOperations(vararg values: Output) {
this.actionOperations = Output.all(values.asList())
}
/**
* @param values A list of `VisualCustomActionOperations` .
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
*/
@JvmName("jimdalyyitwndjkr")
public suspend fun actionOperations(values: List