com.pulumi.gcp.cloudfunctions.kotlin.outputs.GetFunctionEventTrigger.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property eventType The type of event to observe. For example: `"google.storage.object.finalize"`.
* See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/)
* for a full reference of accepted triggers.
* @property failurePolicies Policy for failed executions. Structure is documented below.
* @property resource The name of the resource whose events are being observed, for example, `"myBucket"`
*/
public data class GetFunctionEventTrigger(
public val eventType: String,
public val failurePolicies: List,
public val resource: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctions.outputs.GetFunctionEventTrigger): GetFunctionEventTrigger = GetFunctionEventTrigger(
eventType = javaType.eventType(),
failurePolicies = javaType.failurePolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctions.kotlin.outputs.GetFunctionEventTriggerFailurePolicy.Companion.toKotlin(args0)
})
}),
resource = javaType.resource(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy