UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

54 lines 1.98 kB
"use strict"; // *** 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.getOrganizationCustomRoleOutput = exports.getOrganizationCustomRole = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve information about a custom role in a GitHub Organization. * * > Note: Custom roles are currently only available in GitHub Enterprise Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getOrganizationCustomRole({ * name: "example", * }); * ``` */ function getOrganizationCustomRole(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getOrganizationCustomRole:getOrganizationCustomRole", { "name": args.name, }, opts); } exports.getOrganizationCustomRole = getOrganizationCustomRole; /** * Use this data source to retrieve information about a custom role in a GitHub Organization. * * > Note: Custom roles are currently only available in GitHub Enterprise Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getOrganizationCustomRole({ * name: "example", * }); * ``` */ function getOrganizationCustomRoleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getOrganizationCustomRole:getOrganizationCustomRole", { "name": args.name, }, opts); } exports.getOrganizationCustomRoleOutput = getOrganizationCustomRoleOutput; //# sourceMappingURL=getOrganizationCustomRole.js.map