@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
84 lines (83 loc) • 2.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get project details.
* For more information see
* [API](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const project = gcp.organizations.getProject({});
* export const projectNumber = project.then(project => project.number);
* ```
*/
export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectArgs {
/**
* The project ID. If it is not provided, the provider project is used.
*/
projectId?: string;
}
/**
* A collection of values returned by getProject.
*/
export interface GetProjectResult {
readonly autoCreateNetwork: boolean;
readonly billingAccount: string;
readonly deletionPolicy: string;
readonly effectiveLabels: {
[key: string]: string;
};
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly name: string;
/**
* The numeric identifier of the project.
*/
readonly number: string;
readonly orgId: string;
readonly projectId?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly tags: {
[key: string]: string;
};
}
/**
* Use this data source to get project details.
* For more information see
* [API](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const project = gcp.organizations.getProject({});
* export const projectNumber = project.then(project => project.number);
* ```
*/
export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult>;
/**
* A collection of arguments for invoking getProject.
*/
export interface GetProjectOutputArgs {
/**
* The project ID. If it is not provided, the provider project is used.
*/
projectId?: pulumi.Input<string>;
}