firebase_functions.eventarc_fn module

Cloud functions to handle Eventarc events.

Functions

on_custom_event_published

firebase_functions.eventarc_fn.on_custom_event_published(**kwargs)Callable[[Callable[[CloudEvent],None]],Callable[[CloudEvent],None]]

Creates a handler for events published on the default event eventarc channel.

Example:

fromfirebase_functionsimporteventarc_fn@eventarc_fn.on_custom_event_published(event_type="firebase.extensions.storage-resize-images.v1.complete",)defonimageresize(event:eventarc_fn.CloudEvent)->None:pass
Parameters:

**kwargs (asfirebase_functions.options.EventarcTriggerOptions) -- Options.

Return type:

typing.Callable[ [firebase_functions.core.CloudEvent ],None ]A function that takes a CloudEvent and returns None.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-07-14 UTC.