@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
56 lines • 1.76 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.getTeamOutput = exports.getTeam = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to retrieve information about a GitHub team.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getTeam({
* slug: "example",
* });
* ```
*/
function getTeam(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("github:index/getTeam:getTeam", {
"membershipType": args.membershipType,
"resultsPerPage": args.resultsPerPage,
"slug": args.slug,
"summaryOnly": args.summaryOnly,
}, opts);
}
exports.getTeam = getTeam;
/**
* Use this data source to retrieve information about a GitHub team.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getTeam({
* slug: "example",
* });
* ```
*/
function getTeamOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("github:index/getTeam:getTeam", {
"membershipType": args.membershipType,
"resultsPerPage": args.resultsPerPage,
"slug": args.slug,
"summaryOnly": args.summaryOnly,
}, opts);
}
exports.getTeamOutput = getTeamOutput;
//# sourceMappingURL=getTeam.js.map
;