UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

40 lines 1.66 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.getFunctionTriggerOutput = exports.getFunctionTrigger = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Yandex Cloud Function Trigger. For more information about Yandex Cloud Functions, see * [Yandex Cloud Functions](https://cloud.yandex.com/docs/functions/). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const myTrigger = pulumi.output(yandex.getFunctionTrigger({ * triggerId: "are1sampletrigger11", * })); * ``` * * This data source is used to define [Yandex Cloud Functions Trigger](https://cloud.yandex.com/docs/functions/concepts/trigger) that can be used by other resources. */ function getFunctionTrigger(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("yandex:index/getFunctionTrigger:getFunctionTrigger", { "folderId": args.folderId, "name": args.name, "triggerId": args.triggerId, }, opts); } exports.getFunctionTrigger = getFunctionTrigger; function getFunctionTriggerOutput(args, opts) { return pulumi.output(args).apply(a => getFunctionTrigger(a, opts)); } exports.getFunctionTriggerOutput = getFunctionTriggerOutput; //# sourceMappingURL=getFunctionTrigger.js.map