Describes EventTrigger, used to request events to be sent
from another service.
Attributes
Name
Description
trigger
str
Output only. The resource name of the Eventarc trigger. The
format of this field is
projects/{project}/locations/{region}/triggers/{trigger}.
trigger_region
str
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.
event_type
str
Required. The type of event to observe. For example:
google.cloud.audit.log.v1.written or
google.cloud.pubsub.topic.v1.messagePublished.
str
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.
service_account_email
str
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.
str
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.
service
str
Optional. The hostname of the service that 1st Gen function
should be observed.
If no string is provided, the default service implementing
the API will be used. For example,
storage.googleapis.com is the default for all event
types in the google.storage namespace.
The field is only applicable to 1st Gen functions.
Classes
RetryPolicy
RetryPolicy(value)
Describes the retry policy in case of function's execution
failure. Retried execution is charged as any other execution.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class EventTrigger (1.20.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.20.4 (latest)](/python/docs/reference/cloudfunctions/latest/google.cloud.functions_v2.types.EventTrigger)\n- [1.20.3](/python/docs/reference/cloudfunctions/1.20.3/google.cloud.functions_v2.types.EventTrigger)\n- [1.19.0](/python/docs/reference/cloudfunctions/1.19.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.18.1](/python/docs/reference/cloudfunctions/1.18.1/google.cloud.functions_v2.types.EventTrigger)\n- [1.16.5](/python/docs/reference/cloudfunctions/1.16.5/google.cloud.functions_v2.types.EventTrigger)\n- [1.15.0](/python/docs/reference/cloudfunctions/1.15.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.14.0](/python/docs/reference/cloudfunctions/1.14.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.13.2](/python/docs/reference/cloudfunctions/1.13.2/google.cloud.functions_v2.types.EventTrigger)\n- [1.12.0](/python/docs/reference/cloudfunctions/1.12.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.11.0](/python/docs/reference/cloudfunctions/1.11.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.10.1](/python/docs/reference/cloudfunctions/1.10.1/google.cloud.functions_v2.types.EventTrigger)\n- [1.9.0](/python/docs/reference/cloudfunctions/1.9.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.8.3](/python/docs/reference/cloudfunctions/1.8.3/google.cloud.functions_v2.types.EventTrigger)\n- [1.7.0](/python/docs/reference/cloudfunctions/1.7.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.6.0](/python/docs/reference/cloudfunctions/1.6.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.5.2](/python/docs/reference/cloudfunctions/1.5.2/google.cloud.functions_v2.types.EventTrigger)\n- [1.4.0](/python/docs/reference/cloudfunctions/1.4.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.3.1](/python/docs/reference/cloudfunctions/1.3.1/google.cloud.functions_v2.types.EventTrigger)\n- [1.2.0](/python/docs/reference/cloudfunctions/1.2.0/google.cloud.functions_v2.types.EventTrigger)\n- [1.1.1](/python/docs/reference/cloudfunctions/1.1.1/google.cloud.functions_v2.types.EventTrigger)\n- [1.0.4](/python/docs/reference/cloudfunctions/1.0.4/google.cloud.functions_v2.types.EventTrigger)\n- [0.7.2](/python/docs/reference/cloudfunctions/0.7.2/google.cloud.functions_v2.types.EventTrigger)\n- [0.6.1](/python/docs/reference/cloudfunctions/0.6.1/google.cloud.functions_v2.types.EventTrigger)\n- [0.5.1](/python/docs/reference/cloudfunctions/0.5.1/google.cloud.functions_v2.types.EventTrigger)\n- [0.4.0](/python/docs/reference/cloudfunctions/0.4.0/google.cloud.functions_v2.types.EventTrigger)\n- [0.1.0](/python/docs/reference/cloudfunctions/0.1.0/google.cloud.functions_v2.types.EventTrigger) \n\n EventTrigger(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDescribes EventTrigger, used to request events to be sent\nfrom another service.\n\nClasses\n-------\n\n### RetryPolicy\n\n RetryPolicy(value)\n\nDescribes the retry policy in case of function's execution\nfailure. Retried execution is charged as any other execution."]]