@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
47 lines (46 loc) • 1.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to retrieve information about a GitHub Codespaces User 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 an user 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.getCodespacesUserPublicKey({});
* ```
*/
export declare function getCodespacesUserPublicKey(opts?: pulumi.InvokeOptions): Promise<GetCodespacesUserPublicKeyResult>;
/**
* A collection of values returned by getCodespacesUserPublicKey.
*/
export interface GetCodespacesUserPublicKeyResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Actual key retrieved.
*/
readonly key: string;
/**
* ID of the key that has been retrieved.
*/
readonly keyId: string;
}
/**
* Use this data source to retrieve information about a GitHub Codespaces User 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 an user 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.getCodespacesUserPublicKey({});
* ```
*/
export declare function getCodespacesUserPublicKeyOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCodespacesUserPublicKeyResult>;