@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
60 lines • 2.07 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.getCodespacesSecretsOutput = exports.getCodespacesSecrets = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to retrieve the list of codespaces secrets for a GitHub repository.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getCodespacesSecrets({
* name: "example_repository",
* });
* const example2 = github.getCodespacesSecrets({
* fullName: "org/example_repository",
* });
* ```
*/
function getCodespacesSecrets(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("github:index/getCodespacesSecrets:getCodespacesSecrets", {
"fullName": args.fullName,
"name": args.name,
}, opts);
}
exports.getCodespacesSecrets = getCodespacesSecrets;
/**
* Use this data source to retrieve the list of codespaces secrets for a GitHub repository.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const example = github.getCodespacesSecrets({
* name: "example_repository",
* });
* const example2 = github.getCodespacesSecrets({
* fullName: "org/example_repository",
* });
* ```
*/
function getCodespacesSecretsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("github:index/getCodespacesSecrets:getCodespacesSecrets", {
"fullName": args.fullName,
"name": args.name,
}, opts);
}
exports.getCodespacesSecretsOutput = getCodespacesSecretsOutput;
//# sourceMappingURL=getCodespacesSecrets.js.map
;