@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
78 lines (77 loc) • 2.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to retrieve default service account for this project
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.compute.getDefaultServiceAccount({});
* export const defaultAccount = _default.then(_default => _default.email);
* ```
*/
export declare function getDefaultServiceAccount(args?: GetDefaultServiceAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetDefaultServiceAccountResult>;
/**
* A collection of arguments for invoking getDefaultServiceAccount.
*/
export interface GetDefaultServiceAccountArgs {
/**
* The project ID. If it is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getDefaultServiceAccount.
*/
export interface GetDefaultServiceAccountResult {
/**
* The display name for the service account.
*/
readonly displayName: string;
/**
* Email address of the default service account used by VMs running in this project
*/
readonly email: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The Identity of the service account in the form `serviceAccount:{email}`. This value is often used to refer to the service account in order to grant IAM permissions.
*/
readonly member: string;
/**
* The fully-qualified name of the service account.
*/
readonly name: string;
readonly project: string;
/**
* The unique id of the service account.
*/
readonly uniqueId: string;
}
/**
* Use this data source to retrieve default service account for this project
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.compute.getDefaultServiceAccount({});
* export const defaultAccount = _default.then(_default => _default.email);
* ```
*/
export declare function getDefaultServiceAccountOutput(args?: GetDefaultServiceAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDefaultServiceAccountResult>;
/**
* A collection of arguments for invoking getDefaultServiceAccount.
*/
export interface GetDefaultServiceAccountOutputArgs {
/**
* The project ID. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}