@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
46 lines • 1.7 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOrganizationWebhooksOutput = exports.getOrganizationWebhooks = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to retrieve all webhooks of the organization.
*
* ## Example Usage
*
* To retrieve *all* webhooks of the organization:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const all = github.getOrganizationWebhooks({});
* ```
*/
function getOrganizationWebhooks(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("github:index/getOrganizationWebhooks:getOrganizationWebhooks", {}, opts);
}
exports.getOrganizationWebhooks = getOrganizationWebhooks;
/**
* Use this data source to retrieve all webhooks of the organization.
*
* ## Example Usage
*
* To retrieve *all* webhooks of the organization:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const all = github.getOrganizationWebhooks({});
* ```
*/
function getOrganizationWebhooksOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("github:index/getOrganizationWebhooks:getOrganizationWebhooks", {}, opts);
}
exports.getOrganizationWebhooksOutput = getOrganizationWebhooksOutput;
//# sourceMappingURL=getOrganizationWebhooks.js.map
;