EventTriggerArgs

data class EventTriggerArgs(val channel: Output<String>? = null, val eventFilters: Output<List<EventFilterArgs>>? = null, val eventType: Output<String>, val pubsubTopic: Output<String>? = null, val retryPolicy: Output<EventTriggerRetryPolicy>? = null, val serviceAccountEmail: Output<String>? = null, val triggerRegion: Output<String>? = null) : ConvertibleToJava<EventTriggerArgs>

Describes EventTrigger, used to request events to be sent from another service.

Constructors

Link copied to clipboard
fun EventTriggerArgs(channel: Output<String>? = null, eventFilters: Output<List<EventFilterArgs>>? = null, eventType: Output<String>, pubsubTopic: Output<String>? = null, retryPolicy: Output<EventTriggerRetryPolicy>? = null, serviceAccountEmail: Output<String>? = null, triggerRegion: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EventTriggerArgs

Properties

Link copied to clipboard
val channel: Output<String>? = null

Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.

Link copied to clipboard
val eventFilters: Output<List<EventFilterArgs>>? = null

Criteria used to filter events.

Link copied to clipboard
val eventType: Output<String>

The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.

Link copied to clipboard
val pubsubTopic: Output<String>? = null

Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.

Link copied to clipboard

Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).

Link copied to clipboard
val serviceAccountEmail: Output<String>? = null

Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.

Link copied to clipboard
val triggerRegion: Output<String>? = null

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.