The Google Cloud Pub/Sub topic builder.

Access via functions.pubsub.topic().

Index

Properties

Methods

Properties

Private options

Private triggerResource

triggerResource: function

Type declaration

    • (): string
    • Returns string

Methods

onPublish

  • Event handler that fires every time a Cloud Pub/Sub message is published.

    Parameters

    • handler: function

      Event handler that runs every time a Cloud Pub/Sub message is published.

    Returns CloudFunction<Message>

    A Cloud Function that you can export and deploy.