com.pulumi.gcp.cloudfunctionsv2.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.cloudfunctionsv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property eventFilters Criteria used to filter events.
* @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: ["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 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 GetFunctionEventTrigger(
public val eventFilters: List,
public val eventType: String,
public val pubsubTopic: String,
public val retryPolicy: String,
public val serviceAccountEmail: String,
public val trigger: String,
public val triggerRegion: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionEventTrigger): GetFunctionEventTrigger = GetFunctionEventTrigger(
eventFilters = javaType.eventFilters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionEventTriggerEventFilter.Companion.toKotlin(args0)
})
}),
eventType = javaType.eventType(),
pubsubTopic = javaType.pubsubTopic(),
retryPolicy = javaType.retryPolicy(),
serviceAccountEmail = javaType.serviceAccountEmail(),
trigger = javaType.trigger(),
triggerRegion = javaType.triggerRegion(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy