UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

21 lines 1.05 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.__unused = void 0; const topic_1 = require("./topic"); const cloudfunctions = require("../cloudfunctions"); topic_1.Topic.prototype.onMessagePublished = function (name, handlerOrCallbackArgs, args = {}, opts = {}) { const callbackArgs = handlerOrCallbackArgs instanceof Function ? { callback: handlerOrCallbackArgs } : handlerOrCallbackArgs; return new cloudfunctions.CallbackFunction(name, Object.assign(Object.assign({}, callbackArgs), { eventTrigger: { resource: this.name, failurePolicy: args.failurePolicy, eventType: `google.pubsub.topic.publish`, } }), Object.assign({ parent: this }, opts)); }; // Needed so that typescript won't elide this module /** @internal */ exports.__unused = 0; //# sourceMappingURL=zMixins.js.map