UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

49 lines 1.67 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.getWebhookOutput = exports.getWebhook = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const webhook = spacelift.getWebhook({ * webhookId: spacelift_webhook.webhook.id, * }); * ``` */ function getWebhook(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getWebhook:getWebhook", { "moduleId": args.moduleId, "stackId": args.stackId, "webhookId": args.webhookId, }, opts); } exports.getWebhook = getWebhook; /** * `spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const webhook = spacelift.getWebhook({ * webhookId: spacelift_webhook.webhook.id, * }); * ``` */ function getWebhookOutput(args, opts) { return pulumi.output(args).apply((a) => getWebhook(a, opts)); } exports.getWebhookOutput = getWebhookOutput; //# sourceMappingURL=getWebhook.js.map