UNPKG

@pulumi/pulumiservice

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice) [![Python version](https://badge.fury.io

30 lines 1.27 kB
import * as pulumi from "@pulumi/pulumi"; /** * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift. */ export declare function getCurrentUser(args?: GetCurrentUserArgs, opts?: pulumi.InvokeOptions): Promise<GetCurrentUserResult>; export interface GetCurrentUserArgs { } export interface GetCurrentUserResult { /** * URL of the user's avatar image. */ readonly avatarUrl: string; /** * The user's email address. */ readonly email: string; /** * The user's display name. */ readonly name: string; /** * The user's Pulumi Cloud username. */ readonly username: string; } /** * Returns the Pulumi Cloud user that the provider's access token belongs to. Useful for seeding a newly-created `Team` with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift. */ export declare function getCurrentUserOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCurrentUserResult>; //# sourceMappingURL=getCurrentUser.d.ts.map