![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.networkfirewall.kotlin.inputs.RuleGroupCustomActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.networkfirewall.kotlin.inputs
import com.pulumi.awsnative.networkfirewall.inputs.RuleGroupCustomActionArgs.builder
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.jvm.JvmName
/**
*
* @property actionDefinition The custom action associated with the action name.
* @property actionName The descriptive name of the custom action. You can't change the name of a custom action after you create it.
*/
public data class RuleGroupCustomActionArgs(
public val actionDefinition: Output,
public val actionName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.networkfirewall.inputs.RuleGroupCustomActionArgs =
com.pulumi.awsnative.networkfirewall.inputs.RuleGroupCustomActionArgs.builder()
.actionDefinition(actionDefinition.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.actionName(actionName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RuleGroupCustomActionArgs].
*/
@PulumiTagMarker
public class RuleGroupCustomActionArgsBuilder internal constructor() {
private var actionDefinition: Output? = null
private var actionName: Output? = null
/**
* @param value The custom action associated with the action name.
*/
@JvmName("jcqmrkdgmpxcuaqa")
public suspend fun actionDefinition(`value`: Output) {
this.actionDefinition = value
}
/**
* @param value The descriptive name of the custom action. You can't change the name of a custom action after you create it.
*/
@JvmName("rmvmgwdtypylkvfg")
public suspend fun actionName(`value`: Output) {
this.actionName = value
}
/**
* @param value The custom action associated with the action name.
*/
@JvmName("mfpexwepcdrohkqb")
public suspend fun actionDefinition(`value`: RuleGroupActionDefinitionArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.actionDefinition = mapped
}
/**
* @param argument The custom action associated with the action name.
*/
@JvmName("tjiakngnbuedfmpk")
public suspend fun actionDefinition(argument: suspend RuleGroupActionDefinitionArgsBuilder.() -> Unit) {
val toBeMapped = RuleGroupActionDefinitionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.actionDefinition = mapped
}
/**
* @param value The descriptive name of the custom action. You can't change the name of a custom action after you create it.
*/
@JvmName("dykwdgjauufmeiht")
public suspend fun actionName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.actionName = mapped
}
internal fun build(): RuleGroupCustomActionArgs = RuleGroupCustomActionArgs(
actionDefinition = actionDefinition ?: throw PulumiNullFieldException("actionDefinition"),
actionName = actionName ?: throw PulumiNullFieldException("actionName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy