UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

52 lines 2.18 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.getCodespacesPublicKeyOutput = exports.getCodespacesPublicKey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions. * Note that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getCodespacesPublicKey({ * repository: "example_repo", * }); * ``` */ function getCodespacesPublicKey(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getCodespacesPublicKey:getCodespacesPublicKey", { "repository": args.repository, }, opts); } exports.getCodespacesPublicKey = getCodespacesPublicKey; /** * Use this data source to retrieve information about a GitHub Codespaces public key. This data source is required to be used with other GitHub secrets interactions. * Note that the provider `token` must have admin rights to a repository to retrieve it's Codespaces public key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getCodespacesPublicKey({ * repository: "example_repo", * }); * ``` */ function getCodespacesPublicKeyOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getCodespacesPublicKey:getCodespacesPublicKey", { "repository": args.repository, }, opts); } exports.getCodespacesPublicKeyOutput = getCodespacesPublicKeyOutput; //# sourceMappingURL=getCodespacesPublicKey.js.map