Filters events based on path pattern matching on the CloudEvents attributes.Similar to eventFilters, but supports wildcard patterns for flexible matching where matches any single path segment, * matches zero or more path segments, and {param} captures a path segment as a parameter
Filters events based on exact matches on the CloudEvents attributes.Each key-value pair represents an attribute name and its required value for exact matching. Events must match all specified filters to trigger the function.
The service account that EventArc should use to invoke this function. Requires the P4SA to have ActAs permission on this service account.
EventHandlerOptions.channel
The name of the channel where the function receives events.
Signature:
channel?:string;
EventHandlerOptions.eventFilterPathPatterns
Filters events based on path pattern matching on the CloudEvents attributes.
Similar to eventFilters, but supports wildcard patterns for flexible matching where * matches any single path segment, ** matches zero or more path segments, and {param} captures a path segment as a parameter
Filters events based on exact matches on the CloudEvents attributes.
Each key-value pair represents an attribute name and its required value for exact matching. Events must match all specified filters to trigger the function.
[[["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-06-04 UTC."],[],[],null,["# EventHandlerOptions interface\n\nAdditional fields that can be set on any event-handling function.\n\n**Signature:** \n\n export interface EventHandlerOptions extends Omit\u003cGlobalOptions, \"enforceAppCheck\"\u003e \n\n**Extends:** Omit\\\u003c[GlobalOptions](./firebase-functions.globaloptions.md#globaloptions_interface), \"enforceAppCheck\"\\\u003e\n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [channel](./firebase-functions.eventhandleroptions.md#eventhandleroptionschannel) | string | The name of the channel where the function receives events. |\n| [eventFilterPathPatterns](./firebase-functions.eventhandleroptions.md#eventhandleroptionseventfilterpathpatterns) | Record\\\u003cstring, string \\| [Expression](./firebase-functions.params.expression.md#paramsexpression_class)\\\u003cstring\\\u003e\\\u003e | Filters events based on path pattern matching on the CloudEvents attributes.Similar to eventFilters, but supports wildcard patterns for flexible matching where *matches any single path segment,* `*` matches zero or more path segments, and `{param}` captures a path segment as a parameter |\n| [eventFilters](./firebase-functions.eventhandleroptions.md#eventhandleroptionseventfilters) | Record\\\u003cstring, string \\| [Expression](./firebase-functions.params.expression.md#paramsexpression_class)\\\u003cstring\\\u003e\\\u003e | Filters events based on exact matches on the CloudEvents attributes.Each key-value pair represents an attribute name and its required value for exact matching. Events must match all specified filters to trigger the function. |\n| [eventType](./firebase-functions.eventhandleroptions.md#eventhandleroptionseventtype) | string | Type of the event. |\n| [region](./firebase-functions.eventhandleroptions.md#eventhandleroptionsregion) | string \\| [Expression](./firebase-functions.params.expression.md#paramsexpression_class)\\\u003cstring\\\u003e \\| ResetValue | Region of the EventArc trigger. |\n| [retry](./firebase-functions.eventhandleroptions.md#eventhandleroptionsretry) | boolean \\| [Expression](./firebase-functions.params.expression.md#paramsexpression_class)\\\u003cboolean\\\u003e \\| ResetValue | Whether failed executions should be delivered again. |\n| [serviceAccount](./firebase-functions.eventhandleroptions.md#eventhandleroptionsserviceaccount) | string \\| [Expression](./firebase-functions.params.expression.md#paramsexpression_class)\\\u003cstring\\\u003e \\| ResetValue | The service account that EventArc should use to invoke this function. Requires the P4SA to have ActAs permission on this service account. |\n\nEventHandlerOptions.channel\n---------------------------\n\nThe name of the channel where the function receives events.\n\n**Signature:** \n\n channel?: string;\n\nEventHandlerOptions.eventFilterPathPatterns\n-------------------------------------------\n\nFilters events based on path pattern matching on the CloudEvents attributes.\n\nSimilar to eventFilters, but supports wildcard patterns for flexible matching where `*` matches any single path segment, `**` matches zero or more path segments, and `{param}` captures a path segment as a parameter\n\n**Signature:** \n\n eventFilterPathPatterns?: Record\u003cstring, string | Expression\u003cstring\u003e\u003e;\n\nEventHandlerOptions.eventFilters\n--------------------------------\n\nFilters events based on exact matches on the CloudEvents attributes.\n\nEach key-value pair represents an attribute name and its required value for exact matching. Events must match all specified filters to trigger the function.\n\n**Signature:** \n\n eventFilters?: Record\u003cstring, string | Expression\u003cstring\u003e\u003e;\n\nEventHandlerOptions.eventType\n-----------------------------\n\nType of the event.\n\n**Signature:** \n\n eventType?: string;\n\nEventHandlerOptions.region\n--------------------------\n\nRegion of the EventArc trigger.\n\n**Signature:** \n\n region?: string | Expression\u003cstring\u003e | ResetValue;\n\nEventHandlerOptions.retry\n-------------------------\n\nWhether failed executions should be delivered again.\n\n**Signature:** \n\n retry?: boolean | Expression\u003cboolean\u003e | ResetValue;\n\nEventHandlerOptions.serviceAccount\n----------------------------------\n\nThe service account that EventArc should use to invoke this function. Requires the P4SA to have ActAs permission on this service account.\n\n**Signature:** \n\n serviceAccount?: string | Expression\u003cstring\u003e | ResetValue;"]]