com.pulumi.gcp.cloudfunctionsv2.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.cloudfunctionsv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property eventFilters Criteria used to filter events.
* Structure is documented below.
* @property eventType Required. The type of event to observe.
* @property pubsubTopic The name of a Pub/Sub topic in the same project that will be used
* as the transport topic for the event delivery.
* @property retryPolicy Describes the retry policy in case of function's execution failure.
* Retried execution is charged as any other execution.
* Possible values are: `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, `RETRY_POLICY_RETRY`.
* @property serviceAccountEmail Optional. The email of the trigger's service account. The service account
* must have permission to invoke Cloud Run services. If empty, defaults to the
* Compute Engine default service account: {project_number}[email protected].
* @property trigger (Output)
* Output only. The resource name of the Eventarc trigger.
* @property triggerRegion The region that the trigger will be in. The trigger will only receive
* events originating in this region. It can be the same
* region as the function, a different region or multi-region, or the global
* region. If not provided, defaults to the same region as the function.
*/
public data class FunctionEventTrigger(
public val eventFilters: List? = null,
public val eventType: String? = null,
public val pubsubTopic: String? = null,
public val retryPolicy: String? = null,
public val serviceAccountEmail: String? = null,
public val trigger: String? = null,
public val triggerRegion: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.FunctionEventTrigger): FunctionEventTrigger = FunctionEventTrigger(
eventFilters = javaType.eventFilters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionEventTriggerEventFilter.Companion.toKotlin(args0)
})
}),
eventType = javaType.eventType().map({ args0 -> args0 }).orElse(null),
pubsubTopic = javaType.pubsubTopic().map({ args0 -> args0 }).orElse(null),
retryPolicy = javaType.retryPolicy().map({ args0 -> args0 }).orElse(null),
serviceAccountEmail = javaType.serviceAccountEmail().map({ args0 -> args0 }).orElse(null),
trigger = javaType.trigger().map({ args0 -> args0 }).orElse(null),
triggerRegion = javaType.triggerRegion().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy