com.pulumi.gcp.cloudfunctions.kotlin.inputs.FunctionEventTriggerFailurePolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudfunctions.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctions.inputs.FunctionEventTriggerFailurePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property retry Whether the function should be retried on failure. Defaults to `false`.
*/
public data class FunctionEventTriggerFailurePolicyArgs(
public val retry: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudfunctions.inputs.FunctionEventTriggerFailurePolicyArgs = com.pulumi.gcp.cloudfunctions.inputs.FunctionEventTriggerFailurePolicyArgs.builder()
.retry(retry.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionEventTriggerFailurePolicyArgs].
*/
@PulumiTagMarker
public class FunctionEventTriggerFailurePolicyArgsBuilder internal constructor() {
private var retry: Output? = null
/**
* @param value Whether the function should be retried on failure. Defaults to `false`.
*/
@JvmName("gqeegkkspfrmjwmt")
public suspend fun retry(`value`: Output) {
this.retry = value
}
/**
* @param value Whether the function should be retried on failure. Defaults to `false`.
*/
@JvmName("njdaymneyymftpjp")
public suspend fun retry(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.retry = mapped
}
internal fun build(): FunctionEventTriggerFailurePolicyArgs =
FunctionEventTriggerFailurePolicyArgs(
retry = retry ?: throw PulumiNullFieldException("retry"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy