@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
90 lines (89 loc) • 2.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to retrieve information about multiple GitHub users at once.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* // Retrieve information about multiple GitHub users.
* const example = github.getUsers({
* usernames: [
* "example1",
* "example2",
* "example3",
* ],
* });
* export const validUsers = example.then(example => example.logins);
* export const invalidUsers = example.then(example => example.unknownLogins);
* ```
*/
export declare function getUsers(args: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetUsersResult>;
/**
* A collection of arguments for invoking getUsers.
*/
export interface GetUsersArgs {
/**
* List of usernames.
*/
usernames: string[];
}
/**
* A collection of values returned by getUsers.
*/
export interface GetUsersResult {
/**
* list of the user's publicly visible profile email (will be empty string in case if user decided not to show it).
*/
readonly emails: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* list of logins of users that could be found.
*/
readonly logins: string[];
/**
* list of Node IDs of users that could be found.
*/
readonly nodeIds: string[];
/**
* list of logins without matching user.
*/
readonly unknownLogins: string[];
readonly usernames: string[];
}
/**
* Use this data source to retrieve information about multiple GitHub users at once.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* // Retrieve information about multiple GitHub users.
* const example = github.getUsers({
* usernames: [
* "example1",
* "example2",
* "example3",
* ],
* });
* export const validUsers = example.then(example => example.logins);
* export const invalidUsers = example.then(example => example.unknownLogins);
* ```
*/
export declare function getUsersOutput(args: GetUsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUsersResult>;
/**
* A collection of arguments for invoking getUsers.
*/
export interface GetUsersOutputArgs {
/**
* List of usernames.
*/
usernames: pulumi.Input<pulumi.Input<string>[]>;
}