com.pulumi.gcp.cloudfunctions.kotlin.outputs.FunctionEventTrigger.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
/**
*
* @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 failurePolicy Specifies policy for failed executions. Structure is documented below.
* @property resource Required. The name or partial URI of the resource from
* which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`
*/
public data class FunctionEventTrigger(
public val eventType: String,
public val failurePolicy: FunctionEventTriggerFailurePolicy? = null,
public val resource: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctions.outputs.FunctionEventTrigger): FunctionEventTrigger = FunctionEventTrigger(
eventType = javaType.eventType(),
failurePolicy = javaType.failurePolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctions.kotlin.outputs.FunctionEventTriggerFailurePolicy.Companion.toKotlin(args0)
})
}).orElse(null),
resource = javaType.resource(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy